@tecsinapse/react-charts 1.4.0 → 1.4.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/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://github.com/tecsinapse/design-system/) [](./LICENSE.md) [](CODE_OF_CONDUCT.md)
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
[TecSinapse Design System](https://tecsinapse.github.io/design-system) is the hybrid implementation of the [TecSinapse](https://www.tecsinapse.com.br/) Design System.
|
|
7
|
+
[TecSinapse Design System](https://tecsinapse.github.io/design-system) is the hybrid implementation of the [TecSinapse](https://www.tecsinapse.com.br/) Design System.
|
|
9
8
|
Our primary goal is to create a system that can be used to build a wide variety of TecSinapase websites and apps, while providing a consistent and inclusive user experience to our end users.
|
|
10
9
|
In addition, the design system and component library should be easy to use for developers and designers.
|
|
11
10
|
|
|
@@ -24,11 +23,12 @@ Here are a few helpful links for getting started:
|
|
|
24
23
|
## Packages
|
|
25
24
|
|
|
26
25
|
| Package | Content | Version |
|
|
27
|
-
|
|
26
|
+
| --------------------------------------------------------------- | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
28
27
|
| **[@tecsinapse/react-core](./packages/react-core)** | the core hybrid React component library | [](https://badge.fury.io/js/%40tecsinapse%2Freact-core) |
|
|
29
28
|
| **[@tecsinapse/react-web-kit](./packages/react-web-kit)** | the React component library focused on web | [](https://badge.fury.io/js/%40tecsinapse%2Freact-web-kit) |
|
|
30
29
|
| **[@tecsinapse/react-native-kit](./packages/react-native-kit)** | the React native component library focused on mobile | [](https://badge.fury.io/js/%40tecsinapse%2Freact-native-kit) |
|
|
31
30
|
| **[@tecsinapse/react-charts](./packages/react-charts)** | Charts for React based on SVG | [](https://badge.fury.io/js/%40tecsinapse%2Freact-charts) |
|
|
31
|
+
| **[@tecsinapse/cortex-core](./packages/cortex-core)** | The core library for tailwindcss based design | [](https://badge.fury.io/js/%40tecsinapse%2Fcortex-core) |
|
|
32
32
|
|
|
33
33
|
## Code of conduct
|
|
34
34
|
|
|
@@ -41,27 +41,29 @@ If you feel another member of the community violated our code or you are experie
|
|
|
41
41
|
At times, it may be necessary to test changes directly in a product, and not in the design system, and for this to work in a less laborious way, we can follow the steps below:
|
|
42
42
|
|
|
43
43
|
3 terminal tabs should open:
|
|
44
|
+
|
|
44
45
|
- In one run the JS code watch:
|
|
46
|
+
|
|
45
47
|
```
|
|
46
48
|
yarn build:watch
|
|
47
49
|
```
|
|
50
|
+
|
|
48
51
|
- In another run the watch of the TS code watch
|
|
52
|
+
|
|
49
53
|
```
|
|
50
54
|
yarn build:declarations:watch
|
|
51
55
|
```
|
|
56
|
+
|
|
52
57
|
- On another run yalc push (this script updates linked local projects)
|
|
58
|
+
|
|
53
59
|
```
|
|
54
60
|
yarn yalc:push
|
|
55
61
|
```
|
|
56
62
|
|
|
57
63
|
With that, all changes will be in yalc locally.
|
|
58
64
|
|
|
59
|
-
To access in your application, see this [example](https://github.com/tecsinapse/vendas-web-poc-playground#tools) in topic "**Yalc link Design System:**"
|
|
60
|
-
|
|
61
|
-
|
|
62
65
|
### Maintainers
|
|
63
66
|
|
|
64
|
-
- [Beatriz Silva](mailto:beatriz.silva@tecsinapse.com.br)
|
|
65
67
|
- [Denner Vidal](mailto:denner.vidal@tecsinapse.com.br)
|
|
66
68
|
- [Gabriel Sanches](mailto:gabriel.sanches@tecsinapse.com.br)
|
|
67
69
|
- [Lucas Ramos](mailto:lucas.ramos@tecsinapse.com.br)
|
|
@@ -5,8 +5,7 @@ var constants = require('../../styles/constants.js');
|
|
|
5
5
|
var functions = require('../../styles/functions.js');
|
|
6
6
|
|
|
7
7
|
const getCallback = (value, label, fn) => {
|
|
8
|
-
if (!fn)
|
|
9
|
-
return {};
|
|
8
|
+
if (!fn) return {};
|
|
10
9
|
return reactNative.Platform.OS === "web" ? {
|
|
11
10
|
onClick: () => fn?.(value, label)
|
|
12
11
|
} : {
|
|
@@ -3,8 +3,7 @@ import { fontColor } from '../../styles/constants.js';
|
|
|
3
3
|
import { getFontFamilyAndWeight } from '../../styles/functions.js';
|
|
4
4
|
|
|
5
5
|
const getCallback = (value, label, fn) => {
|
|
6
|
-
if (!fn)
|
|
7
|
-
return {};
|
|
6
|
+
if (!fn) return {};
|
|
8
7
|
return Platform.OS === "web" ? {
|
|
9
8
|
onClick: () => fn?.(value, label)
|
|
10
9
|
} : {
|
|
@@ -4,7 +4,7 @@ type CallbackReturn = Record<string, unknown> | {
|
|
|
4
4
|
} | {
|
|
5
5
|
onPress: () => undefined;
|
|
6
6
|
};
|
|
7
|
-
export declare const getCallback: (value: number, label?: string, fn?: (
|
|
7
|
+
export declare const getCallback: (value: number, label?: string, fn?: (value: number, label?: string) => void) => CallbackReturn;
|
|
8
8
|
type FeaturedType = {
|
|
9
9
|
arc: {
|
|
10
10
|
outerRadius: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/react-charts",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Charts for React and React Native",
|
|
5
5
|
"homepage": "https://github.com/tecsinapse/design-system/",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"bugs": {
|
|
38
38
|
"url": "https://github.com/tecsinapse/design-system/issues"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "88caf1e99c9ff6e9a3cf84e60f79a6358fd3fc32"
|
|
41
41
|
}
|