npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@logan-org/swap-ui

v1.0.62

Published

SWAP UI Framework. www.swap.work

Downloads

2

Readme

關於 SWAP-UI

基於 @material-ui/core 的前端框架來開發 SWAP 專屬的介面框架,這個框架的特性如下:

  1. 標準化元件。封裝 SWAP 服務內常見的介面場景,減少開發時重新定義相同的佈局、函式...並讓介面保持一致
  2. 易於使用。儘量不需要再寫額外的輔助函式或是過於多層的元件包裝就能使用,避免 Material-ui 多層包裝的缺點

想要參考 swap-ui 可以透過以下方式:

  1. 直接訪問 swap 的網站 www.swap.work
  2. 瀏覽 Storybook

即將新增

  1. SWAPModal: 增加支援多步驟的 Modal 視窗
  2. SWAPBanner: 顯示於頁面上的警示訊息
  3. SWAPCopyField:可複製文字至剪貼簿的輸入框
  4. SWAPIncomeAndExpenseTypeField:依據工作內容提供所得類型的建議
  5. SWAPPage: 讓用戶在完整的頁面中完成某件事情
  6. SWAPAnnotatedLayout: 用於帳戶設定頁面中,解釋各類型設定

安裝

# peerDependencies
$ yarn add react react-dom styled-components @material-ui/core @material-ui/icons

# install swap-ui
$ yarn add @yosgo/swap-ui

開發

# 產生一個元件範本
$ yarn generate NewComponentName

# 使用本機的 storybook 來瀏覽元件
$ yarn storybook

發佈

# 發佈套件到 NPM 上
$ npm publish

# 更新 gh-page 上的 Storybook
$ yarn deploy-storybook

# 確認發佈狀態
$ npm show @yosgo/swap-ui

參考資料