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

@emooa/ui

v0.0.21

Published

Emooa react ui component

Downloads

221

Readme

Emooa UI

灵活丰富的 UI 组件设计语言和 React 组件库。

✨ 特点

  • 🛡 用 TypeScript 编写,具有可预测的静态类型。
  • ⚙️ 整套设计资源和开发工具。

🖥 环境支持

| Chrome | Edge | Firefox | Safari | Electron | | :-: | :-: | :-: | :-: | :-: | | 51+ | 15+ | 55+ | 12.1+ | last 2 versions |

安装

npm install @emooa/ui
// or
yarn add @emooa/ui

用法

简单的例子

import { Button, GeoJSON, Image, Space } from "@emooa/ui";

export default () => (
  <>
    <Space>
      <Button type="primary">Primary Button<Button/>
      <Button>Secondary Button<Button/>
    <Space/>
    <Image url="https://api.emooa.com/aimg" />
    <GeoJSON
      data={{
        type: 'Feature',
        geometry: {
          type: 'LineString',
          coordinates: [
            [102.0, 0.0],
            [103.0, 1.0],
            [104.0, 0.0],
            [105.0, 1.0],
          ],
          properties: {
            strokeStyle: 'green',
          },
        },
        properties: {
          name: '线',
        },
      }}
    />
  </>
);

组件

目前已经实现 ButtonIconImageGeoJSONSpace 等常见组件,并在逐步扩充,具体见 Emooa UI Components

Licensed

MIT Licensed
Copyright (c) 2023 Emooa

常见问题

  • 无法解析源映射。

    • WARNING in ./node_modules/@emooa/ui/lib/image/index.js

      Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):

      Failed to parse source map from '/xxx/node_modules/@emooa/ui/src/image/index.tsx' file: Error: ENOENT: no such file or directory, open '/xxx/node_modules/@emooa/ui/src/image/index.tsx'

    • Actually, CRA with Webpack 5.x cause it. They are working on resolving. https://github.com/facebook/create-react-app/pull/11752

    • 您可以通过将 GENERATE_SOURCEMAP=false 添加到 .env 文件来删除警告。阅读更多

      "scripts": {
        "start": "GENERATE_SOURCEMAP=false && react-scripts start",
      }