# opencare-crown

> ## Base

Latest version **1.0.4** (published 2021-10-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install opencare-crown
pnpm add opencare-crown
yarn add opencare-crown
bun add opencare-crown
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2021-10-14 |
| First published | 2021-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8.x.x |
| Dependencies | 3 |
| Unpacked size | 3.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | opencare |

## Links

- npm: https://www.npmjs.com/package/opencare-crown
- npm.io page: https://npm.io/package/opencare-crown

## Dependencies (3)

- [antd](https://npm.io/package/antd.md) ^4.11.2
- [@ant-design/icons](https://npm.io/package/@ant-design/icons.md) ^4.4.0
- [@ant-design/compatible](https://npm.io/package/@ant-design/compatible.md) ^1.0.8

## Recent versions

- 1.0.4 (latest) — 2021-10-14
- 1.0.3 — 2021-10-14

## README

# Opencare Crown

## Base

This library outputs all of antd v4.6.6. You can read [their documentation](https://ant.design/components/overview/) to learn more about their components. Additionally, this library outputs all antd icons, plus the compatible package to make migrating from antd v3 easier.

All antd components can be imported from this library under the base `opencare-crown` like so:

`import { Button, StarOutlined, Icon } from 'opencare-crown';`

## Styleguide

This library outputs our brand styleguide. Currently it includes our [Digital Colors](https://www.figma.com/file/dy5Ar3gDLXMKmMRpVuC5hh/Crown-Library-Light-Theme?node-id=0%3A3491) which can be imported like so:

`import { colors } from 'opencare-crown/lib/styleguide';`

## Custom Components

Last but not least, this library supports the addition of custom components as we continue to grow our component library. Custom components can be imported into your app like so:

`import { ComponentName } from 'opencare-crown/lib/custom';`

## Migrating your app to use this library

1. This library requires your app be using the following versions of prop-types, react, and react-dom:

```JS
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-dom": "^16.13.1"
```

2. Furthermore, this app has `antd@4.6.6` as a dependency, so you'll need to remove antd completely from your app. Unfortunately it is not possible to maintain two versions of antd within your app. Thankfully, this library exports everything from antd, including the `@ant-design/compatible` package to make migration easier. Simply search for all instances of `'antd'` in your app, and replace with `'opencare-crown'` (Replace all imports basically).
3. If your package also uses `@ant-design/icons` or `@ant-design/compatible` you will need to remove those (and replace with this library).
4. Make sure you remove all instances of `antd.less` as it will no longer be needed.
5. Validating styling is what will take the most time in this migration (as it will need to be done manually). This library updated the hex values for various things like the `primary-color`, so you'll need to go through each page/flow and catch anything that might have broken. Also many of our apps layer custom styles on top of antd components - you will need to validate that these still work correctly.

---
_Source: https://npm.io/package/opencare-crown · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
