impaktapps-design 0.1.1 → 0.1.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.
@@ -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,
@@ -12015,7 +12017,7 @@ const finalDataProvider = (type2, value) => {
12015
12017
  topLabelMargin: "-6",
12016
12018
  labelColor: "black",
12017
12019
  leftLabelOffset: 50,
12018
- bottomLabelOffset: 10,
12020
+ bottomLabelOffset: 45,
12019
12021
  tickLabelColor: "balck",
12020
12022
  tickFontSize: "10px",
12021
12023
  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.2",
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}
@@ -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: {