@tecsinapse/cortex-react 1.2.0 → 1.2.1

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,11 +1,71 @@
1
- # `cortex-react`
1
+ # TecSinapse Design System
2
2
 
3
- > TODO: description
3
+ [![build workflow](https://github.com/tecsinapse/design-system/actions/workflows/publish.yml/badge.svg)](https://github.com/tecsinapse/design-system/actions/workflows/publish.yml)
4
4
 
5
- ## Usage
5
+ Welcome to [TecSinapse](https://www.tecsinapse.com.br/) Design System. This repo contains core components to build web and mobile applications.
6
+ Our primary goal is to create a system that can be used to build a wide variety of TecSinapse websites and apps,
7
+ while providing a consistent and inclusive user experience to our end users.
8
+ In addition, the design system and component library should be easy to use for developers and designers.
6
9
 
10
+ ## Quick start
11
+
12
+ Please refer to the official [documentation](https://tecsinapse.github.io/design-system).
13
+
14
+ ## Packages
15
+
16
+ | Package | Content | Version |
17
+ | --------------------------------------------------------------- | -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
18
+ | **[@tecsinapse/react-core](./packages/react-core)** | core primitives for `CSS-in-JS` packages | [![npm version](https://badge.fury.io/js/%40tecsinapse%2Freact-core.svg)](https://badge.fury.io/js/%40tecsinapse%2Freact-core) |
19
+ | **[@tecsinapse/react-web-kit](./packages/react-web-kit)** | emotion `styled-components` for browsers with `react-native-web` | [![npm version](https://badge.fury.io/js/%40tecsinapse%2Freact-web-kit.svg)](https://badge.fury.io/js/%40tecsinapse%2Freact-web-kit) |
20
+ | **[@tecsinapse/react-native-kit](./packages/react-native-kit)** | emotion native `styled-components` for `react-native` cross platform development | [![npm version](https://badge.fury.io/js/%40tecsinapse%2Freact-native-kit.svg)](https://badge.fury.io/js/%40tecsinapse%2Freact-native-kit) |
21
+ | **[@tecsinapse/react-charts](./packages/react-charts)** | charts for react & react-native based on SVG | [![npm version](https://badge.fury.io/js/%40tecsinapse%2Freact-charts.svg)](https://badge.fury.io/js/%40tecsinapse%2Freact-charts) |
22
+ | **[@tecsinapse/cortex-core](./packages/cortex-core)** | core primitives for `tailwindcss` packages | [![npm version](https://badge.fury.io/js/%40tecsinapse%2Fcortex-core.svg)](https://badge.fury.io/js/%40tecsinapse%2Fcortex-core) |
23
+ | **[@tecsinapse/cortex-react](./packages/cortex-react)** | `html` based components using `cortex-core` primitives | [![npm version](https://badge.fury.io/js/%40tecsinapse%2Fcortex-react.svg)](https://badge.fury.io/js/%40tecsinapse%2Fcortex-react) |
24
+
25
+ ## Code of conduct
26
+
27
+ We want to foster an inclusive and friendly community around our Open Source efforts. This project follows the Contributor Covenant Code of Conduct.
28
+ Please, [read it and follow it](./CODE_OF_CONDUCT.md).
29
+
30
+ If you feel another member of the community violated our code or you are experiencing problems participating in our community because of another individual's behavior,
31
+ please get in touch with our maintainers.
32
+
33
+ ## Running locally
34
+
35
+ Recommended requirements:
36
+
37
+ - `pnpm` >= 9
38
+ - `node` >= 20
39
+
40
+ To run locally, you should install the dependencies first:
41
+
42
+ ```
43
+ pnpm i
7
44
  ```
8
- const index = require('cortex-react');
9
45
 
10
- // TODO: DEMONSTRATE API
46
+ After this script, all packages will build. When developing, for a better experience, also use:
47
+
11
48
  ```
49
+ pnpm dev
50
+ ```
51
+
52
+ This script watch for changes on any package and rebuild files to reflect on live mode. To run storybook with all components, use:
53
+
54
+ ```
55
+ pnpm storybook
56
+ ```
57
+
58
+ For web development this is sufficient. For mobile, follow additional steps on [rn-playground](./packages/rn-playground).
59
+
60
+ ## How to make local changes available for other projects?
61
+
62
+ Check [these docs](https://pnpm.io/cli/link).
63
+
64
+ ## Contributing
65
+
66
+ If you have ideas for how we could improve this readme or the project in general, [let us know](https://github.com/tecsinapse/design-system/issues)!
67
+
68
+ ## About TecSinapse
69
+
70
+ [TecSinapse](https://www.tecsinapse.com.br/) is a specialist in the automotive industry for over 15 years.
71
+ We operate with diverse integrated solutions, from client prospecting to after-sales, plus market indicators tools and process improvement for complete management.\_
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { ButtonVariants } from '@tecsinapse/cortex-core';
3
3
  interface ButtonProps {
4
4
  variants?: ButtonVariants;
5
- children?: JSX.Element;
5
+ children?: React.ReactNode;
6
6
  }
7
7
  export declare const Button: React.ForwardRefExoticComponent<ButtonProps & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className"> & React.RefAttributes<HTMLButtonElement>>;
8
8
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecsinapse/cortex-react",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "React components based in @tecsinapse/cortex-core",
5
5
  "license": "MIT",
6
6
  "main": "dist/esm/index.js",
@@ -16,7 +16,7 @@
16
16
  "build:dts": "tsc --project tsconfig.build.json"
17
17
  },
18
18
  "dependencies": {
19
- "@tecsinapse/cortex-core": "0.2.0",
19
+ "@tecsinapse/cortex-core": "0.2.1",
20
20
  "clsx": "*",
21
21
  "react-icons": "^5.2.1"
22
22
  },
@@ -34,5 +34,5 @@
34
34
  "react-dom": ">=18.0.0",
35
35
  "tailwind": ">=3.3.0"
36
36
  },
37
- "gitHead": "5fdf13313937b667682216c4f86b6b84fa4612a4"
37
+ "gitHead": "dc62ed9d05cd238fc3f65dee50c5fef4a3d615e0"
38
38
  }
@@ -1,29 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- args: {
6
- value: number;
7
- intent: string;
8
- };
9
- argTypes: {
10
- intent: {
11
- options: string[];
12
- control: {
13
- type: string;
14
- };
15
- };
16
- value: {
17
- control: {
18
- type: string;
19
- };
20
- min: number;
21
- max: number;
22
- };
23
- };
24
- };
25
- export default _default;
26
- export declare const Base: {
27
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
28
- args: {};
29
- };
@@ -1,27 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- args: {
6
- value: string;
7
- intent: string;
8
- };
9
- argTypes: {
10
- intent: {
11
- options: string[];
12
- control: {
13
- type: string;
14
- };
15
- };
16
- value: {
17
- control: {
18
- type: string;
19
- };
20
- };
21
- };
22
- };
23
- export default _default;
24
- export declare const Base: {
25
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
26
- args: {};
27
- };
@@ -1,30 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- argTypes: {
6
- intent: {
7
- options: string[];
8
- control: {
9
- type: string;
10
- };
11
- };
12
- variant: {
13
- options: string[];
14
- control: {
15
- type: string;
16
- };
17
- };
18
- size: {
19
- options: string[];
20
- control: {
21
- type: string;
22
- };
23
- };
24
- };
25
- };
26
- export default _default;
27
- export declare const Base: {
28
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
29
- args: {};
30
- };
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- };
6
- export default _default;
7
- export declare const Base: {
8
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
9
- args: {};
10
- };
@@ -1,27 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- args: {
6
- intent: string;
7
- description: string;
8
- };
9
- argTypes: {
10
- intent: {
11
- options: string[];
12
- control: {
13
- type: string;
14
- };
15
- };
16
- description: {
17
- control: {
18
- type: string;
19
- };
20
- };
21
- };
22
- };
23
- export default _default;
24
- export declare const Base: {
25
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
26
- args: {};
27
- };
@@ -1,33 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- args: {
6
- label: string;
7
- placeholder: string;
8
- intent: string;
9
- };
10
- argTypes: {
11
- intent: {
12
- options: string[];
13
- control: {
14
- type: string;
15
- };
16
- };
17
- label: {
18
- control: {
19
- type: string;
20
- };
21
- };
22
- placeholder: {
23
- control: {
24
- type: string;
25
- };
26
- };
27
- };
28
- };
29
- export default _default;
30
- export declare const Base: {
31
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
32
- args: {};
33
- };
@@ -1,33 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- args: {
6
- label: string;
7
- placeholder: string;
8
- intent: string;
9
- };
10
- argTypes: {
11
- intent: {
12
- options: string[];
13
- control: {
14
- type: string;
15
- };
16
- };
17
- label: {
18
- control: {
19
- type: string;
20
- };
21
- };
22
- placeholder: {
23
- control: {
24
- type: string;
25
- };
26
- };
27
- };
28
- };
29
- export default _default;
30
- export declare const Base: {
31
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
32
- args: {};
33
- };
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- };
6
- export default _default;
7
- export declare const Base: {
8
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
9
- args: {};
10
- };
@@ -1,32 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- argTypes: {
6
- variant: {
7
- options: string[];
8
- control: {
9
- type: string;
10
- };
11
- };
12
- label: {
13
- control: {
14
- type: string;
15
- };
16
- };
17
- placeholderSearchInput: {
18
- control: {
19
- type: string;
20
- };
21
- };
22
- };
23
- };
24
- export default _default;
25
- export declare const Base: {
26
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
27
- args: {
28
- variant: string;
29
- label: string;
30
- placeholderSearchInput: string;
31
- };
32
- };
@@ -1,32 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- argTypes: {
6
- variant: {
7
- options: string[];
8
- control: {
9
- type: string;
10
- };
11
- };
12
- label: {
13
- control: {
14
- type: string;
15
- };
16
- };
17
- placeholderSearchInput: {
18
- control: {
19
- type: string;
20
- };
21
- };
22
- };
23
- };
24
- export default _default;
25
- export declare const Base: {
26
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
27
- args: {
28
- variant: string;
29
- label: string;
30
- placeholderSearchInput: string;
31
- };
32
- };
@@ -1,21 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- args: {
6
- intent: string;
7
- };
8
- argTypes: {
9
- intent: {
10
- options: string[];
11
- control: {
12
- type: string;
13
- };
14
- };
15
- };
16
- };
17
- export default _default;
18
- export declare const Base: {
19
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
20
- args: {};
21
- };
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- };
6
- export default _default;
7
- export declare const Base: {
8
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
9
- args: {};
10
- };
@@ -1,21 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- args: {
6
- intent: string;
7
- };
8
- argTypes: {
9
- intent: {
10
- options: string[];
11
- control: {
12
- type: string;
13
- };
14
- };
15
- };
16
- };
17
- export default _default;
18
- export declare const Base: {
19
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
20
- args: {};
21
- };
@@ -1,39 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- args: {
6
- rows: number;
7
- intent: string;
8
- label: string;
9
- placeholder: string;
10
- };
11
- argTypes: {
12
- intent: {
13
- options: string[];
14
- control: {
15
- type: string;
16
- };
17
- };
18
- rows: {
19
- control: {
20
- type: string;
21
- };
22
- };
23
- label: {
24
- control: {
25
- type: string;
26
- };
27
- };
28
- placeholder: {
29
- control: {
30
- type: string;
31
- };
32
- };
33
- };
34
- };
35
- export default _default;
36
- export declare const Base: {
37
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
38
- args: {};
39
- };
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- };
6
- export default _default;
7
- export declare const Base: {
8
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
9
- args: {};
10
- };
@@ -1 +0,0 @@
1
- export declare const defaultIntents: string[];