# infinity-modules-olafurd18

> This is a school project from RU that I was assigned to finish. You can absolutely use the components found here but be aware that there are probably better styling libraries out there :)

Latest version **1.0.2** (published 2020-03-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install infinity-modules-olafurd18
pnpm add infinity-modules-olafurd18
yarn add infinity-modules-olafurd18
bun add infinity-modules-olafurd18
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-03-24 |
| First published | 2020-03-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 14 |
| Unpacked size | 6.7 MB |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Author | Ólafur Andri Davíðsson |
| Maintainers | olafurd18 |
| Keywords | styling, infinity, modules |

## Links

- npm: https://www.npmjs.com/package/infinity-modules-olafurd18
- npm.io page: https://npm.io/package/infinity-modules-olafurd18

## Dependencies (14)

- [react](https://npm.io/package/react.md) ^16.13.1
- [webpack](https://npm.io/package/webpack.md) ^4.42.0
- [react-dom](https://npm.io/package/react-dom.md) ^16.13.1
- [css-loader](https://npm.io/package/css-loader.md) ^3.4.2
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.9.0
- [html-loader](https://npm.io/package/html-loader.md) ^1.0.0
- [webpack-cli](https://npm.io/package/webpack-cli.md) ^3.3.11
- [babel-loader](https://npm.io/package/babel-loader.md) ^8.1.0
- [style-loader](https://npm.io/package/style-loader.md) ^1.1.3
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.9.0
- [webpack-dev-server](https://npm.io/package/webpack-dev-server.md) ^3.10.3
- [@babel/preset-react](https://npm.io/package/@babel/preset-react.md) ^7.9.1
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) ^3.2.0

## Recent versions

- 1.0.2 (latest) — 2020-03-24
- 1.0.1 — 2020-03-24
- 1.0.0 — 2020-03-24

## README

# infinity-modules-olafurd18

This is a school project from RU that I was assigned to finish. You can absolutely use the components found here but be aware that there are probably better styling libraries out there.

## Component Overview

I set up a page dedicated to presenting the various components that this library has to offer and it [can be found here]( https://infinity-modules-olafurd18.herokuapp.com/).

## Components

This library offers a variety of React components that can be used in any way necessary. Here's a high-level overview for each component:

### Modal

A dialogue modal which can be render child nodes.

```js
import { Modal } from 'infinity-modules-olafurd18';

// jsx
<Modal
    isOpen={this.state.openModal}
    onClose={() => this.setState({openModal: false})}
>
    <Modal.Title>Modal title here</Modal.Title>
    <Modal.Body>Modal body here</Modal.Body>
    <Modal.Footer>Modal footer here</Modal.Footer>
</Modal>
```

| prop | description |
| ---- | ----------- |
| *isOpen* | A boolean that specifies whether the modal is visible or not |
| *onClose* | A function that is run whenever the 'close' button on the modal is clicked |

### Carousel

Image slider component with smooth transitions.

```js
import { Carousel } from 'infinity-modules-olafurd18';

// jsx
<Carousel 
    images={[
        'http://image1.png', 
        'http://image2.png'
    ]}
    size={'medium'} // small, medium, large
/>
```

| prop | description |
| ---- | ----------- |
| *images* | An array of valid image URL's |
| *size* | Specifies the size of the carousel. Either **small**, **medium** (default) or **large** |

### Row & Col

Grid system using Col and Row components where a row can be diveded into twelve columns. If total size of columns in a row exceeds twelve then the overflowing columns will drop down to next row.

```js
import { Col, Row } from 'infinity-modules-olafurd18';

// jsx
<Row>
    <Col size={4}> // Size = 1 - 12
        // Some content here
    </Col>
</Row>
```

| prop | description |
| ---- | ----------- |
| *size* | Specifies how many of the 12 row portions this column should span |

### DatePicker

Component to choose a date from a calendar. This component's pop-up page works very similar to its Material-UI counterpart. You can click on the year in the header to select the year or the header date to select a specific day of month.

```js
import { DatePicker } from 'infinity-modules-olafurd18';

// jsx
<DatePicker 
    locale="is-IS"
    onDatePick={(dateString) => { /* Do something here */ }}
/>
```

| prop | description |
| ---- | ----------- |
| *onDatePick* | A function run whenever the user clicks on a date in the picker |
| *locale* | The locale of the date passed to *onDatePick* and displayed in the text box |

### CartoonNetworkSpinner

Spins a few cartoon network character images at a given interval.

```js
import { CartoonNetworkSpinner } from 'infinity-modules-olafurd18';

// jsx
<CartoonNetworkSpinner interval={5} />
```

| prop | description |
| ---- | ----------- |
| *interval* | The interval between spins, **in seconds** |

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