New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@digital-ai/vs-components

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digital-ai/vs-components

[![](https://img.shields.io/static/v1?label=release&message=click%20to%20start&color=red&style=flat-square&logo=semantic-release)](https://github.com/digital-ai/vs-components/compare/master...develop?expand=1&template=release.md) [![](https://img.shields.

latest
Source
npmnpm
Version
3.3.2
Version published
Weekly downloads
2
100%
Maintainers
4
Weekly downloads
 
Created
Source

@digital-ai/vs-components

Installation

yarn add @digital-ai/vs-components

Usage

As vs-components uses dot-components under the hood, you need to wrap your application with the VsThemeProvider as:

import { VsThemeProvider } from '@digital-ai/vs-components';

<VsThemeProvider>
  <App />
</VsThemeProvider>;

VsThemeProvider wraps DotThemeProvider and adds more theme properties needed for our own components. More details about DotThemeProvider can be found here

Using this library with IE11

:warning: As of today this library is not transpiled to ES5, the output build is in ESM format with some ESNext features

If you have to support IE11 you will have to transpile this library, this can be done via babel and webpack5 as:

// ... your webpack config
target: ['web', 'es5'],
// Rules of how webpack will take our files, complie & bundle them for the browser
module: {
    rules: [

        {
            test: /\.(js|jsx)$/,
            exclude: {
                and: [/node_modules/], // Exclude libraries in node_modules ...
                not: [
                    // Except for a few of them that needs to be transpiled because they use modern syntax
                    /vs-components/
                ]
            },
            use: {
                loader: 'babel-loader'
            }
        },
        // more rules
    ]
}
// more configuration

And the babel configuration on babel.config.json:

{
  "presets": [
    [
      "@babel/preset-env",
      {
        "corejs": {
          "version": 3.14,
          "proposals": true
        },
        "useBuiltIns": "entry"
      }
    ],
    "@babel/preset-react"
  ]
}

Contributing

See our CONTRIBUTING section for more info about development and internal processes.

License

All materials included in this package are subject to your existing commercial license or subscription agreement terms with Digital.ai Software Inc. or its Affiliates.

FAQs

Package last updated on 12 Jul 2023

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