Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@douyinfe/semi-foundation

Package Overview
Dependencies
Maintainers
0
Versions
440
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@douyinfe/semi-foundation

> The infrastructure layer is used to build modern component libraries.

  • 2.70.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6K
decreased by-1.15%
Maintainers
0
Weekly downloads
 
Created
Source

The infrastructure layer is used to build modern component libraries.

Semi UI adopts a set of cross-front-end framework technical solutions to split the JavaScript of each component into two parts: Foundation and Adapter. This allows us to reuse Foundation code across frameworks by only re-implementing the adapter, e.g, React and Vue. Quickly build common component libraries on different platforms.

  • Foundation

    Foundation contains the business logic that best represents Semi Design without actually referencing any DOM elements. Foundation delegates Adapter methods for any logic that requires DOM manipulation

  • Adapter

    Adapter is an interface that has all the methods needed by Foundation to implement Semi Design business logic. Adapter can have many implementations, allowing interoperability with different frameworks.

Directory Structure

 ├── semi-foundation         // Foundation and Stylesheet of component
 │   ├── utils
 │   └── tooltip
 │       ├── constants.js    // Constant definition, including numbers, strings, cssClass
 │       ├── foundation.js   // Core foundation
 │       ├── tooltip.scss    // Stylesheet
 │       ├── mixin.scss      // Scss mixin
 │       ├── rtl.scss        // Rtl 
 │       ├── variables.scss  // Scss variable

Technical solutions

image

License

MIT

FAQs

Package last updated on 25 Nov 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc