impaktapps-design 0.1.1 → 0.1.3

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.
@@ -10477,12 +10477,14 @@ const BottomAxis = ({
10477
10477
  yMax,
10478
10478
  value,
10479
10479
  xScale,
10480
- parentWidth
10480
+ parentWidth,
10481
+ left: left2
10481
10482
  }) => {
10482
10483
  var _a2, _b2, _c2, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o, _p, _q, _r, _s;
10483
10484
  return /* @__PURE__ */ jsx(AxisBottom$2, {
10484
10485
  numTicks: data == null ? void 0 : data.length,
10485
10486
  top: yMax,
10487
+ left: left2,
10486
10488
  hideTicks: (_a2 = value.main) == null ? void 0 : _a2.hideTicks,
10487
10489
  hideAxisLine: (_b2 = value.main) == null ? void 0 : _b2.hideBottomAxisLine,
10488
10490
  strokeWidth: (_d = (_c2 = value.style) == null ? void 0 : _c2.labelStyle) == null ? void 0 : _d.bottomAxisWidth,
@@ -11141,7 +11143,8 @@ const ToolTip = ({
11141
11143
  left: left2,
11142
11144
  children: /* @__PURE__ */ jsxs("div", {
11143
11145
  style: {
11144
- height: "50px",
11146
+ height: "auto",
11147
+ width: "auto",
11145
11148
  textAlign: "center",
11146
11149
  background: "black",
11147
11150
  padding: "10px",
@@ -12015,7 +12018,7 @@ const finalDataProvider = (type2, value) => {
12015
12018
  topLabelMargin: "-6",
12016
12019
  labelColor: "black",
12017
12020
  leftLabelOffset: 50,
12018
- bottomLabelOffset: 10,
12021
+ bottomLabelOffset: 45,
12019
12022
  tickLabelColor: "balck",
12020
12023
  tickFontSize: "10px",
12021
12024
  tickColor: "black",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-design",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "dependencies": {
5
5
  "@babel/core": "^7.16.12",
6
6
  "@visx/visx": "^3.1.2",
@@ -1,12 +1,13 @@
1
1
  import React from 'react'
2
2
  import { AxisBottom } from "@visx/axis";
3
3
  import { bottomAxisProps } from '../interface/interface';
4
- const BottomAxis = ({data,yMax,value,xScale,parentWidth}:bottomAxisProps) => {
4
+ const BottomAxis = ({data,yMax,value,xScale,parentWidth,left}:bottomAxisProps) => {
5
5
 
6
6
  return (
7
7
  <AxisBottom
8
8
  numTicks={data?.length}
9
9
  top={yMax}
10
+ left={left}
10
11
  hideTicks={value.main?.hideTicks}
11
12
  hideAxisLine={value.main?.hideBottomAxisLine}
12
13
  strokeWidth={value.style?.labelStyle?.bottomAxisWidth}
@@ -13,7 +13,8 @@ const ToolTip = ({ style, top, left, tooltipData }: tooltipProps) => {
13
13
  >
14
14
  <div
15
15
  style={{
16
- height: "50px",
16
+ height: "auto",
17
+ width:"auto",
17
18
  textAlign:"center",
18
19
  background:"black",
19
20
  padding:"10px",
@@ -55,12 +55,14 @@ export const finalDataProvider = (type: string, value: any) => {
55
55
  topLabelMargin: "-6",
56
56
  labelColor: "black",
57
57
  leftLabelOffset: 50,
58
- bottomLabelOffset: 10,
58
+ bottomLabelOffset: 45,
59
59
  tickLabelColor: "balck",
60
60
  tickFontSize: "10px",
61
61
  tickColor: "black",
62
62
  rightAxisWidth: "0.3px",
63
63
  fontSize: "10px",
64
+
65
+
64
66
  ...value?.style?.labelStyle
65
67
  },
66
68
  barStyle: {