clsx-react 0.9.0 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![GitHub License](https://img.shields.io/github/license/toviszsolt/clsx-react?style=flat)](https://github.com/toviszsolt/clsx-react/blob/main/LICENSE) [![npm](https://img.shields.io/npm/v/clsx-react?style=flat&color=red)](https://www.npmjs.com/package/clsx-react) [![GitHub Repo stars](https://img.shields.io/github/stars/toviszsolt/clsx-react?color=DAAA3F)](https://github.com/toviszsolt/clsx-react/stargazers) [![Run tests](https://github.com/toviszsolt/clsx-react/actions/workflows/main.yml/badge.svg)](https://github.com/toviszsolt/clsx-react/actions/workflows/main.yml) [![codecov](https://codecov.io/gh/toviszsolt/clsx-react/branch/main/graph/badge.svg?token=IONV9YMZXG)](https://codecov.io/gh/toviszsolt/clsx-react) [![Sponsor](https://img.shields.io/static/v1?label=sponsor&message=❤&color=ff69b4)](https://github.com/sponsors/toviszsolt)
1
+ [![GitHub License](https://img.shields.io/github/license/toviszsolt/clsx-react?style=flat)](https://github.com/toviszsolt/clsx-react/blob/main/LICENSE) [![npm](https://img.shields.io/npm/v/clsx-react?style=flat&color=red)](https://www.npmjs.com/package/clsx-react) [![GitHub Repo stars](https://img.shields.io/github/stars/toviszsolt/clsx-react?color=DAAA3F)](https://github.com/toviszsolt/clsx-react/stargazers) [![Run tests](https://github.com/toviszsolt/clsx-react/actions/workflows/test.yml/badge.svg)](https://github.com/toviszsolt/clsx-react/actions/workflows/test.yml) [![codecov](https://codecov.io/gh/toviszsolt/clsx-react/branch/main/graph/badge.svg?token=IJWL1A7SXQ)](https://codecov.io/gh/toviszsolt/clsx-react) [![Sponsor](https://img.shields.io/static/v1?label=sponsor&message=❤&color=ff69b4)](https://github.com/sponsors/toviszsolt)
2
2
 
3
3
  # `clsx-react`
4
4
 
@@ -0,0 +1,18 @@
1
+ import 'react';
2
+
3
+ type ClassNameValue =
4
+ | string
5
+ | number
6
+ | boolean
7
+ | undefined
8
+ | null
9
+ | Record<string, boolean | null | undefined>
10
+ | ClassNameValue[];
11
+
12
+ declare global {
13
+ namespace JSX {
14
+ interface IntrinsicAttributes {
15
+ className?: ClassNameValue;
16
+ }
17
+ }
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clsx-react",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Custom React JSX Runtime to support arrays and objects in className prop natively.",
5
5
  "keywords": [
6
6
  "react",
File without changes