open-index/open-npm huggingface dataset:
npm package: @harvest-profit/action-sheet
Description: A cross-platform ActionSheet for React Native
Author: Jaryd Krishnan
Latest version: 1.1.1

# react-native-action-sheet [![Slack](https://slack.expo.io/badge.svg)](https://slack.expo.io)

ActionSheet is a cross-platform React Native component that uses the native UIActionSheet on iOS and a JS implementation on Android. Almost a drop in replacement for [ActionSheetIOS](https://facebook.github.io/react-native/docs/actionsheetios.html) except it cannot be called statically.

## Installation
```
npm install @harvest-profit/action-sheet
```
or
```
yarn add @harvest-profit/action-sheet
```

## A basic ActionSheet Setup

import ActionSheetProvider & connectActionSheet

```es6
import { ActionSheetProvider, connectActionSheet } from '@harvest-profit/action-sheet';
```

wrap your top-level component with `<ActionSheetProvider />`

```es6
class AppContainer extends React.Component {
  render() {
    return (
      <ActionSheetProvider>
        <App />
      </ActionSheetProvider>
    );
  }
}
```

decorate the component you want to use the action sheet with `@connectActionSheet`

```es6
@connectActionSheet
class App extends React.Component { /* ... */ }
```

access actionSheet method as `this.props.showActionSheetWithOptions`

```es6
_onOpenActionSheet = () => {
  // Same interface as https://facebook.github.io/react-native/docs/actionsheetios.html
  let options = ['Delete', 'Save', 'Cancel'];
  let destructiveButtonIndex = 0;
  let cancelButtonIndex = 2;

  this.props.showActionSheetWithOptions({
    options,
    cancelButtonIndex,
    destructiveButtonIndex,
  },
  (buttonIndex) => {
    // Do something here depending on the button index selected
  });

}
```


## Try it out

Try it in Expo: https://expo.io/@community/react-native-action-sheet-example

## Usage

[See the example app source](https://github.com/expo/react-native-action-sheet/tree/master/example)
npm package: @harvest-profit/api
Description: Adds authentication to api requests and manages cookie.
Author: Harvest Profit
Latest version: 0.0.7

[![CircleCI](https://circleci.com/gh/HarvestProfit/harvest-profit-api.svg?style=svg&circle-token=73f1c0d9f7795616f84673df728141cc00fb0454)](https://circleci.com/gh/HarvestProfit/harvest-profit-api)
[![codecov](https://codecov.io/gh/HarvestProfit/harvest-profit-api/branch/master/graph/badge.svg)](https://codecov.io/gh/HarvestProfit/harvest-profit-api)


## Installation
You can install this via [NPM](https://www.npmjs.com/):
```bash
npm install @harvest-profit/api
```
Or [Yarn](https://yarnpkg.com/en/):
```bash
yarn add @harvest-profit/api
```

## Usage

```js static
import Api from 'harvest-profit-api';
```
## Development
While developing, you may find it useful to preview your components. You can do so by running the development server with:
```bash
yarn start
```

To deploy a new version to NPM, bump the version number, commit/merge to `master`, and run the following:
```bash
yarn run clean
yarn run build

# Either NPM
npm publish
# Or Yarn, they do the same thing
yarn publish
```

## License
This project is [MIT licensed](https://github.com/HarvestProfit/harvest-profit-api/blob/master/LICENSE)
npm package: @harvest-profit/api-core
Description: Core Api.
Author: Harvest Profit
Latest version: 0.0.4

[![CircleCI](https://circleci.com/gh/HarvestProfit/harvest-profit-api-core.svg?style=svg&circle-token=1b4aaf037d0fc472f191c6c6ed967319f7703ac7)](https://circleci.com/gh/HarvestProfit/harvest-profit-api-core)
[![codecov](https://codecov.io/gh/HarvestProfit/harvest-profit-api-core/branch/master/graph/badge.svg)](https://codecov.io/gh/HarvestProfit/harvest-profit-api-core)

## Installation
You can install this via [NPM](https://www.npmjs.com/):
```bash
npm install @harvest-profit/api-core
```
Or [Yarn](https://yarnpkg.com/en/):
```bash
yarn add @harvest-profit/api-core
```

## Usage

```js static
import ApiCore from 'harvest-profit/api-core';
```

## Development
While developing, you may find it useful to preview your components. You can do so by running the development server with:
```bash
yarn start
```

To deploy a new version to NPM, bump the version number, commit/merge to `master`, and run the following:
```bash
yarn run clean
yarn run build

# Either NPM
npm publish
# Or Yarn, they do the same thing
yarn publish
```

## License
This project is [MIT licensed](https://github.com/HarvestProfit/harvest-profit-api/blob/master/LICENSE)
npm package: @harvest-profit/doc-flux-spreadsheets
Description: XLSX Spreadsheets parser for DocFlux
Author: Jake Humphrey
Latest version: 1.1.5

# DocFlux Spreadsheets
[![npm](https://img.shields.io/npm/v/@harvest-profit/doc-flux-spreadsheets.svg)](https://www.npmjs.com/package/@harvest-profit/doc-flux-spreadsheets)  [![Build Status](https://travis-ci.org/HarvestProfit/DocFlux-Spreadsheets.svg?branch=master)](https://travis-ci.org/HarvestProfit/DocFlux-Spreadsheets) [![Coverage Status](https://coveralls.io/repos/github/HarvestProfit/DocFlux-Spreadsheets/badge.svg?branch=master)](https://coveralls.io/github/HarvestProfit/DocFlux-Spreadsheets?branch=master) [![npm](https://img.shields.io/npm/l/@harvest-profit/doc-flux-spreadsheets.svg)](https://github.com/HarvestProfit/DocFlux-Spreadsheets/blob/master/LICENSE)

Allows you to create XLSX spreadsheets using [DocFlux](https://github.com/HarvestProfit/DocFlux).

## Example
This will generate a table with 2 rows in it with a table name (for XLSX) called People.
```jsx
import { DocFlux } from '@harvest-profit/doc-flux';
/** @jsx DocFlux.createElement */

export default ExampleComponent = () => (
  <table>
    <tname>People</tname>
    <thead>
      <th>Name</th>
      <th>Age</th>
    </thead>
    <tbody>
      <tr>
        <td>John</td>
        <td>24</td>
      </tr>
      <tr>
        <td>Jill</td>
        <td>25</td>
      </tr>
    </tbody>
  </table>
);
```

## Development
[Clone](https://help.github.com/articles/cloning-a-repository/) this repo, and begin committing changes. PRs are preferred over committing directly to master.

To run tests locally on your machine, run the following:
```bash
yarn run test
```

To preview documentation locally on your machine, run the following:
```bash
yarn run build-docs
```

After merging your pull request, consider updating the documentation with the following command:
```bash
yarn run publish-docs
```

To deploy a new version to NPM, bump the version number, commit/merge to `master`, and run the following:
```bash
yarn run clean
yarn run build

# Either NPM
npm publish
# Or Yarn, they do the same thing
yarn publish
```

## License
This project is [MIT licensed](https://github.com/HarvestProfit/DocFlux-Spreadsheets/blob/master/LICENSE)
npm package: @harvest-profit/npk
Description: NPK UI Design System
Latest version: 0.1.55

# NPK UI

Design system built for Harvest Profit.
[https://design.harvestprofit.com/](https://design.harvestprofit.com/)

Seeing as we are currently running reactstrap (bootstrap4), it's easier to migrate the design system slowly from a custom version of reactstrap until ultimately every component is rebuilt in the new design system.

![NPM Version](https://img.shields.io/npm/v/%40harvest-profit%2Fnpk)


## Getting Started

Use `npm install` and follow that up with `npm start` to start the storyboard server. It'll open automatically for you.

## Linking to Harvest Profit

To try out your changes in Harvest Profit, run the following:

```
npm run build
cd ../marketingplan
yarn add link:./../npk-ui
```

This will create a symlink to the node_modules in marketingplan and will then use your version in development. Run `npm run build` inside this repo whenever you make changes you want to test out.
npm package: @harvest-profit/units
Description: Units helper for Harvest Profit javascript applications
Author: Jaryd Krishnan
Latest version: 1.4.5

<div style="text-align: center">
  <img src="https://www.harvestprofit.com/logo.png" alt="Harvest Profit"></img>
</div>

[![npm](https://img.shields.io/npm/v/@harvest-profit/units.svg)](https://www.npmjs.com/package/harvest-profit-units) [![Build Status](https://travis-ci.org/HarvestProfit/harvest-profit-units.svg?branch=master)](https://travis-ci.org/HarvestProfit/harvest-profit-units) [![codecov](https://codecov.io/gh/HarvestProfit/harvest-profit-units/branch/master/graph/badge.svg)](https://codecov.io/gh/HarvestProfit/harvest-profit-units) [![npm](https://img.shields.io/npm/l/@harvest-profit/units.svg)](https://github.com/HarvestProfit/harvest-profit-units/blob/master/LICENSE)

## Installation

To add this package to your project
```bash
yarn add @harvest-profit/units
```

To use, try the following:
```js
import UnitsHelper from '@harvest-profit/units'

const isCompatibleUnit = UnitsHelper.isCompatibleUnit('lbs', 'tons');
console.log(isCompatibleUnit); // true
```

More commonly, you will use the line item/product functions or to generate units for select boxes

```js
UnitsHelper.perAcreCost(product, item, acres) // 3.50
UnitsHelper.listAvailableUnits(product) // ['gallons', 'floz', 'milliliters', ...]
```

All of this is build off of the `Units` object and a set of definitions declared in this repo.
You can use this object to handle any conversions or any other interaction with those units.

```js
import { Units } from '@harvest-profit/units';

const amount = new Units(1, 'gallon');
amount.to('pints').toNumber() // 8 pints

amount.isCompatible('lbs') // false


// Can use any different name. If a name is missing, just add it to the aliases in the definition in a PR
const gal = new Units(1, 'gal');
const gallon = new Units(1, 'gallon');
const gallons = new Units(1, 'gallons');

Units.selectableUnits('liquid') // ['gallons', 'floz', 'milliliters', ...]

Units.isCompatible('g', 'lb') // true
Units.isCompatible(gallon, 'lb') // false
Units.isCompatible(gal, gallon) // true
```

## Development
To deploy a new version to NPM, bump the version number, commit/merge to `master`, and run the following:
```bash
yarn run clean
yarn run build

# Either NPM
npm publish --access public
# Or Yarn, they do the same thing
yarn publish --access public
```

## License
This project is [MIT licensed](./LICENSE)
npm package: @harvest-profit/what-if-analysis
Description: Builds "what if" analysis for Harvest Profit
Author: Jaryd Krishnan
Latest version: 2.2.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

<div style="text-align: center">
  <img src="https://www.harvestprofit.com/logo.png" alt="Harvest Profit"></img>
</div>

[![CircleCI](https://circleci.com/gh/HarvestProfit/what-if-analysis.svg?style=svg&circle-token=c03e0d611c26b67bb54aab7af11781a320a904e6)](https://circleci.com/gh/HarvestProfit/what-if-analysis) [![codecov](https://codecov.io/gh/HarvestProfit/what-if-analysis/branch/master/graph/badge.svg?token=Q9OHn7Sm1s)](https://codecov.io/gh/HarvestProfit/what-if-analysis)

The demo can be found [published here](https://harvestprofit.github.io/what-if-analysis/)

## Installation

You can install this React Component with a simple:

```bash
yarn add @harvest-profit/what-if-analysis
```

## Usage

```js
import React, { Component } from 'react';
import WhatIfAnalysisTable from '@harvest-profit/what-if-analysis';

class WhatIfAnalysis extends Component {
  render() {
    return (
      <WhatIfAnalysisTable
        acres={200}
        cashPriceWithBasis={2.00}
        guaranteedRevenue={569}
        totalCost={500 * 200}
        aph={115}
        yieldIncrement={5}
        yieldDecriment={10}
      />
    )
  }
}
```

This component can accept the following props:

Name | Required | Description
--- | --- | ---
acres | true | The total acres for a analysis
cashPriceWithBasis | true | The cash price, after the basis has been applied.
guaranteedRevenue | true | The **per acre** revenue guaranteed by crop insurance.
totalCost | true | The **total** cost of production.
aph | true | The APH for the given field, or the estimated production.
yieldIncrement | true | Increments upward from the given APH.
yieldDecrement | true | Decrements downward from the given APH.
tableClassName | false | The css class for the overall table. Defaults to `table table-responsive`.
cellGreenClassName | false | The css class for cells representing profit. Defaults to `table-success`.
cellRedClassName | false | The css class for cells representing loss. Defaults to `table-danger`.
cellYellowClassName | false | The css class for cells representing small losses. Defaults to `table-warning`.

## Development

To get started on this repo, you will need both [`yarn`](https://yarnpkg.com/en/) and [`node`](https://nodejs.org/en/).

To install the project dependencies, from the main repo run:
```bash
yarn install
```

You can run the development server by running:
```bash
cd demo
yarn start
```

## License
This project is [MIT licensed](https://github.com/HarvestProfit/what-if-analysis/blob/master/LICENSE)