open-index/open-npm huggingface dataset:
npm package: @samuel-lewis/components
Description: ![](https://img.shields.io/npm/v/@samuel-lewis/components?style=flat-square&logo=npm)
Latest version: 1.0.0

# @samuel-lewis/components

![](https://img.shields.io/npm/v/@samuel-lewis/components?style=flat-square&logo=npm)

Reusable React components based on the [mantine.dev](https://mantine.dev/) library.

- [`ThemeProvider`](src/ThemeProvider/): A preconfigured [`<MantineProvider>`](https://mantine.dev/theming/mantine-provider/) with included light/dark mode caching
- [`Copyable`](src/Copyable.tsx): Wrapper Button to enable copying text to the client clipboard
- [`DebugPanel`](src/DebugPanel.tsx): Display block for showing debug information in debug environments only.
- [`ThemeToggle`](src/ThemeToggle.tsx): Toggle between light/dark mode to be used with `ThemeProvider`
npm package: @samuel-lewis/ts-helpers
Description: ![](https://img.shields.io/npm/v/@samuel-lewis/ts-helpers?style=flat-square&logo=npm)
Latest version: 0.6.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @samuel-lewis/ts-helpers

![](https://img.shields.io/npm/v/@samuel-lewis/ts-helpers?style=flat-square&logo=npm)

A collection of various Typescript helper types.

- [`Complete`](src/index.ts): Takes a given type and makes all object properties required
npm package: @samuel-lewis/utils
Description: ![](https://img.shields.io/npm/v/@samuel-lewis/utils?style=flat-square&logo=npm)
Latest version: 1.0.0

# @samuel-lewis/utils

![](https://img.shields.io/npm/v/@samuel-lewis/utils?style=flat-square&logo=npm)

A collection of various Javascript utilities.

### Array

- [`divide`](src/array.ts): Divides an array into two parts based on a given predicate
- [`split`](src/array.ts): Given two arrays, finds their unique and intersecting values

### Slug

- [`toSlug`](src/array.ts): toSlug converts a string to a url safe slug
- [`toUniqueSlug`](src/array.ts): toUniqueSlug does the same as `toSlug`, with addition of a unique ID

### Time

- [`seconds`](src/time.ts): Converts seconds to milliseconds
- [`minutes`](src/time.ts): Converts minutes to milliseconds
- [`hours`](src/time.ts): Converts hours to milliseconds
- [`days`](src/time.ts): Converts days to milliseconds