Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@qualifyze/design-system

Package Overview
Dependencies
Maintainers
14
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qualifyze/design-system

Qualifyze Design System

latest
Source
npmnpm
Version
3.2.2
Version published
Weekly downloads
129
-19.37%
Maintainers
14
Weekly downloads
 
Created
Source

Design System

A place to develop React components in a sandboxed environment.

Docs

  • Core concepts
  • System Props
  • FAQ

Getting Started

  • Install Volta
  • Install all dependencies with npm ci
  • Run Storybook with npm start, it will open automatically in your browser.

Fonts

You need to include the new fonts from @qualifyze/mui-theme:

import "@qualifyze/mui-theme/fonts/everett/index.css"
import "@qualifyze/mui-theme/fonts/tobias/index.css"

Dependencies

The design system has a dependency on globalThis so if you are using the design system you need to either install a npm package like globalthis. Or if you have access to core-js in your project you can solve the dependency like this:

import 'core-js/features/global-this'

In your app entry where you would normally apply other polyfills.

Z-Indices

This project includes several components that have to work even when they are layered on top of each other. To not mess up the order in which they should appear on screen, let's collect all relevant values for z-index here.

Componentz-index
Header (in website)50
Cookie Banner (in website)900
Notification???
Modal500

Limitations and known issues

Stack, Inline, Tiles and Columns components with large space prop values

Child components of Stack, Inline, Tiles and Columns might "leak" into other components if values above 4 are given to it in the space prop, blocking interaction with other UI elements like buttons or text.

Workaround is to wrap the component that "leaks" and the one "leaked into" in Box or Flex components and provide z-index for both. For example, with a Stack component:

import Box from '@qualifyze/design-system'

function App() {
  return (
    <Box>
      <Box sx={{ zIndex: 2 }}>
        <Button>You can't click Me!</Button>
      </Box>
      <Box sx={{ zIndex: 1 }}>
        <Stack space={5}>
          <Button>Just a regular button</Button>
        </Stack>
      </Box>
    </Box>
  )
}

For examples of how these components can leak, check their stories in storybook under "leaking example". So far, Stack is the only one who has actually given trouble and the only example taken from the platform.

Fixing this requires a major version release because we still need to support Internet Explorer.

FAQs

Package last updated on 09 Sep 2022

Did you know?

Socket

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.

Install

Related posts