0.0.11 • Published 2 months ago

@emooa/ui v0.0.11

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

Emooa UI

An enterprise-class UI design language and React UI library.

✨ Features

  • 🛡 Written in TypeScript with predictable static types.
  • ⚙️ Whole package of design resources and development tools.

🖥 Environment Support

ChromeEdgeFirefoxSafariElectron
51+15+55+12.1+last 2 versions

Installation

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

Usage

Simple example

import React from "react";
import { Image, GeoJSON } from "@emooa/ui";

export default () => (
  <>
    <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: 'name',
        },
      }}
    />
  </>
);

Components

License

MIT Licensed
Copyright (c) 2023 Emooa

Q&A

  • Failed to parse source map.

    • 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

    • You can remove the warning by adding GENERATE_SOURCEMAP=false to your .env file. Read More

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

2 months ago

0.0.10

2 months ago

0.0.9

4 months ago

0.0.8

4 months ago

0.0.5

4 months ago

0.0.7

4 months ago

0.0.6

4 months ago

0.0.4

4 months ago

0.0.3

4 months ago