pixel-react 1.21.12 → 1.21.13

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,75 +1,75 @@
1
- ---
2
- title: PixelReact UI
3
- ---
4
-
5
- import { Button, Input } from 'pixel-react';
6
-
7
- <h1 align="center">PixelReact UI</h1>
8
-
9
- <p align="center">
10
- <strong>PixelReact UI</strong> is an open-source React component library, designed to offer a sleek, customizable, and easy-to-use collection of components for building modern user interfaces.
11
- </p>
12
-
13
- ---
14
-
15
- ## Table of Contents
16
-
17
- - [Installation](#installation)
18
- - [Usage](#usage)
19
- - [Documentation](#documentation)
20
- - [Contributing](#contributing)
21
- - [License](#license)
22
-
23
- ---
24
-
25
- ## Installation
26
-
27
- Install PixelReact UI in your project directory with:
28
-
29
- ```bash
30
- npm install pixel-react
31
- ```
32
-
33
- or with Yarn:
34
-
35
- ```bash
36
- yarn add pixel-react
37
- ```
38
-
39
- ## Usage
40
-
41
- Once installed, you can start importing and using PixelReact components in your React application. Here's a quick example:
42
-
43
- ```jsx
44
- import { Button } from 'pixel-react';
45
-
46
- function App() {
47
- return (
48
- <div>
49
- <Button label="Button Label" variant="primary" />
50
- </div>
51
- );
52
- }
53
-
54
- export default App;
55
- ```
56
-
57
- ## Documentation
58
-
59
- For detailed documentation and live examples, [click here](https://main--65d5ca6d09c1eaf0731601fc.chromatic.com/).
60
-
61
- ## Example
62
-
63
- ```jsx
64
- import { Button } from 'pixel-react';
65
-
66
- function ExampleComponent() {
67
- return <Button label="Click Me!" variant="primary" />;
68
- }
69
- ```
70
-
71
- ## License
72
-
73
- PixelReact UI is licensed under the [MIT License](LICENSE). Feel free to use it in your projects, both personal and commercial.
74
-
75
- ---
1
+ ---
2
+ title: PixelReact UI
3
+ ---
4
+
5
+ import { Button, Input } from 'pixel-react';
6
+
7
+ <h1 align="center">PixelReact UI</h1>
8
+
9
+ <p align="center">
10
+ <strong>PixelReact UI</strong> is an open-source React component library, designed to offer a sleek, customizable, and easy-to-use collection of components for building modern user interfaces.
11
+ </p>
12
+
13
+ ---
14
+
15
+ ## Table of Contents
16
+
17
+ - [Installation](#installation)
18
+ - [Usage](#usage)
19
+ - [Documentation](#documentation)
20
+ - [Contributing](#contributing)
21
+ - [License](#license)
22
+
23
+ ---
24
+
25
+ ## Installation
26
+
27
+ Install PixelReact UI in your project directory with:
28
+
29
+ ```bash
30
+ npm install pixel-react
31
+ ```
32
+
33
+ or with Yarn:
34
+
35
+ ```bash
36
+ yarn add pixel-react
37
+ ```
38
+
39
+ ## Usage
40
+
41
+ Once installed, you can start importing and using PixelReact components in your React application. Here's a quick example:
42
+
43
+ ```jsx
44
+ import { Button } from 'pixel-react';
45
+
46
+ function App() {
47
+ return (
48
+ <div>
49
+ <Button label="Button Label" variant="primary" />
50
+ </div>
51
+ );
52
+ }
53
+
54
+ export default App;
55
+ ```
56
+
57
+ ## Documentation
58
+
59
+ For detailed documentation and live examples, [click here](https://main--65d5ca6d09c1eaf0731601fc.chromatic.com/).
60
+
61
+ ## Example
62
+
63
+ ```jsx
64
+ import { Button } from 'pixel-react';
65
+
66
+ function ExampleComponent() {
67
+ return <Button label="Click Me!" variant="primary" />;
68
+ }
69
+ ```
70
+
71
+ ## License
72
+
73
+ PixelReact UI is licensed under the [MIT License](LICENSE). Feel free to use it in your projects, both personal and commercial.
74
+
75
+ ---
@@ -118,20 +118,20 @@ const BarChart = ({ data, isYaxisSticky = false, barWidth, height, barGap = 20,
118
118
  if (tooltip) {
119
119
  tooltip.style.display = 'block';
120
120
  if (customToolTip) {
121
- tooltip.innerHTML = `<div>
122
- <div><Typography fontWeight='semi-bold'>${label}</Typography></div>
123
- <div><Typography>${id ? id : ''}</Typography></div>
124
- <div><Typography>${totalLabel} : ${value} ${percent ? '(' + percent + '%)' : ''}</Typography></div>
121
+ tooltip.innerHTML = `<div>
122
+ <div><Typography fontWeight='semi-bold'>${label}</Typography></div>
123
+ <div><Typography>${id ? id : ''}</Typography></div>
124
+ <div><Typography>${totalLabel} : ${value} ${percent ? '(' + percent + '%)' : ''}</Typography></div>
125
125
  </div>`;
126
126
  }
127
127
  else if (isDashboardVersions) {
128
128
  const versionsList = versions ? versions.join(', ') : '';
129
- tooltip.innerHTML = `
130
- <div>
131
- <div><Typography>${totalLabel} : ${value}</Typography></div>
129
+ tooltip.innerHTML = `
130
+ <div>
131
+ <div><Typography>${totalLabel} : ${value}</Typography></div>
132
132
  ${versionsList
133
133
  ? `<div><Typography>Versions : ${versionsList}</Typography></div>`
134
- : ''}
134
+ : ''}
135
135
  </div>`;
136
136
  }
137
137
  else {
@@ -47,12 +47,12 @@ const calculateDonutSegmentBorderPath = (innerR, outerR, startAngle, endAngle) =
47
47
  const startInnerX = outerR * Math.cos(startAngle);
48
48
  const startInnerY = outerR * Math.sin(startAngle);
49
49
  const largeArcFlag = endAngle - startAngle > Math.PI ? 1 : 0;
50
- return `
51
- M ${startOuterX} ${startOuterY}
52
- A ${innerR} ${innerR} 0 ${largeArcFlag} 1 ${endOuterX} ${endOuterY}
53
- L ${endInnerX} ${endInnerY}
54
- A ${outerR} ${outerR} 0 ${largeArcFlag} 0 ${startInnerX} ${startInnerY}
55
- Z
50
+ return `
51
+ M ${startOuterX} ${startOuterY}
52
+ A ${innerR} ${innerR} 0 ${largeArcFlag} 1 ${endOuterX} ${endOuterY}
53
+ L ${endInnerX} ${endInnerY}
54
+ A ${outerR} ${outerR} 0 ${largeArcFlag} 0 ${startInnerX} ${startInnerY}
55
+ Z
56
56
  `;
57
57
  };
58
58
  const colorMapping = [
@@ -12,10 +12,10 @@ const calculateArc = ({ x, y, radius, startAngle, endAngle, }) => {
12
12
  const largeArcFlag = endAngle - startAngle > Math.PI ? 1 : 0;
13
13
  if (endAngle - startAngle >= 2 * Math.PI) {
14
14
  // Special case for a full circle
15
- return `
16
- M ${x + radius} ${y}
17
- A ${radius} ${radius} 0 1 1 ${x - radius} ${y}
18
- A ${radius} ${radius} 0 1 1 ${x + radius} ${y}
15
+ return `
16
+ M ${x + radius} ${y}
17
+ A ${radius} ${radius} 0 1 1 ${x - radius} ${y}
18
+ A ${radius} ${radius} 0 1 1 ${x + radius} ${y}
19
19
  `;
20
20
  }
21
21
  return `M ${startX} ${startY} A ${radius} ${radius} 0 ${largeArcFlag} 1 ${endX} ${endY}`;
@@ -24,11 +24,11 @@ const calculateArcAngles = (value, total, currentAngle, radius) => {
24
24
  const startAngle = currentAngle;
25
25
  const endAngle = startAngle + angleIncrement;
26
26
  if (percentage === 1) {
27
- const path = `
28
- M ${radius} 0
29
- A ${radius} ${radius} 0 1 1 ${-radius} 0
30
- A ${radius} ${radius} 0 1 1 ${radius} 0
31
- Z
27
+ const path = `
28
+ M ${radius} 0
29
+ A ${radius} ${radius} 0 1 1 ${-radius} 0
30
+ A ${radius} ${radius} 0 1 1 ${radius} 0
31
+ Z
32
32
  `;
33
33
  return {
34
34
  endAngle,
@@ -42,28 +42,36 @@ const StackedBarChart = ({ data, barWidth = 24, height = 250, barGap = 40, barBo
42
42
  const total = item?.segments?.reduce((idx, segment) => idx + segment.value, 0);
43
43
  const barX = barIndex * (barWidth + barGap) + padding;
44
44
  const isSelected = selectedBar?.label === item?.label;
45
+ const isZeroOnlyBar = item?.segments?.length === 1 &&
46
+ item?.segments?.[0]?.value === 0;
47
+ // SPECIAL CASE FOR ZERO-ONLY BAR
48
+ if (isZeroOnlyBar) {
49
+ const segment = item.segments[0];
50
+ const tooltipId = `zero-bar-tooltip-${segment.uniqueId}`;
51
+ return (_jsxs("g", { onClick: () => handleClick(item, barIndex), style: { cursor: isOnclick ? 'pointer' : 'default' }, children: [_jsx("rect", { x: barX, y: height + topPadding - 2, width: barWidth, height: 2, fill: segment.color, rx: barBorderRadius, ry: barBorderRadius, style: {
52
+ opacity: isSelected ? 0.85 : 1,
53
+ transition: 'opacity 0.3s ease',
54
+ } }), _jsxs("foreignObject", { x: barX, y: height + topPadding - 2, width: barWidth, height: 8, style: { overflow: 'visible' }, children: [_jsx("div", { "data-tooltip-id": tooltipId, "data-tooltip-placement": "right", style: {
55
+ width: barWidth,
56
+ height: 8,
57
+ }, onClick: () => handleSegmentClick(item.label, segment, 0) }), _jsxs("div", { id: tooltipId, className: "ff-stacked-bar-tooltip-content", style: { display: 'none' }, children: [_jsx(Typography, { as: "div", fontWeight: "semi-bold", children: item.label }), _jsxs("div", { className: "ff-stacked-bar-tooltip-row", children: [_jsx(Typography, { fontWeight: "semi-bold", children: segment.key }), _jsxs(Typography, { fontWeight: "semi-bold", children: [": ", segment.value] })] })] })] }), showXAxisLabels && (_jsx("foreignObject", { x: barX + barWidth / 2 - xAxisLabelWidth / 2, y: height + topPadding + 5, width: xAxisLabelWidth, height: 20, className: "ff-stacked-bar-x-label-wrapper", children: _jsx(AutoTruncateText, { className: "ff-stacked-bar-x-label", children: item.label }) }))] }, barIndex));
58
+ }
59
+ // NORMAL STACKED BAR LOGIC
45
60
  let stackY = height + topPadding;
46
61
  return (_jsxs("g", { onClick: () => handleClick(item, barIndex), style: { cursor: isOnclick ? 'pointer' : 'default' }, children: [item?.segments?.map((segment, segIndex) => {
47
- const minSegmentHeight = 2;
48
- const computedHeight = total > 0 ? (segment?.value / maxTotal) * height : 0;
49
- const segHeight = segment?.value === 0 ? minSegmentHeight : computedHeight;
50
- stackY -= segHeight;
51
- const isLastSeg = segIndex === item?.segments?.length - 1;
52
- const rx = isLastSeg ? barBorderRadius : 0;
62
+ const computedHeight = total > 0 ? (segment.value / maxTotal) * height : 0;
63
+ stackY -= computedHeight;
64
+ const isLastSeg = segIndex === item.segments.length - 1;
53
65
  const segY = stackY;
54
- const tooltipId = `stacked-bar-tooltip-${barIndex}-${segIndex}`;
55
- return (_jsxs("g", { children: [_jsx("rect", { x: barX, y: segY, width: barWidth, height: segHeight, fill: segment.color, rx: isLastSeg ? rx : 0, ry: isLastSeg ? rx : 0, style: {
66
+ const tooltipId = `stacked-bar-tooltip-${segment?.uniqueId}-${segIndex}`;
67
+ return (_jsxs("g", { children: [_jsx("rect", { x: barX, y: segY, width: barWidth, height: computedHeight, fill: segment.color, rx: isLastSeg ? barBorderRadius : 0, ry: isLastSeg ? barBorderRadius : 0, style: {
56
68
  opacity: isSelected ? 0.85 : 1,
57
69
  transition: 'opacity 0.3s ease',
58
- } }), _jsxs("foreignObject", { x: barX, y: segY, width: barWidth, height: segHeight, style: { overflow: 'visible', pointerEvents: 'none' }, children: [_jsx("div", { "data-tooltip-id": tooltipId, "data-tooltip-placement": "right", style: {
70
+ } }), _jsxs("foreignObject", { x: barX, y: segY, width: barWidth, height: computedHeight, children: [_jsx("div", { "data-tooltip-id": tooltipId, "data-tooltip-placement": "right", style: {
59
71
  width: barWidth,
60
- height: segHeight,
61
- pointerEvents: 'all',
62
- }, onClick: () => handleSegmentClick(item?.label, segment, segIndex) }), _jsxs("div", { id: tooltipId, className: "ff-stacked-bar-tooltip-content", style: { display: 'none' }, children: [_jsx(Typography, { as: "div", fontWeight: "semi-bold", children: item?.label }), _jsxs("div", { className: "ff-stacked-bar-tooltip-row", children: [_jsx(Typography, { fontWeight: "semi-bold", children: segment.key }), _jsxs(Typography, { fontWeight: "semi-bold", children: [": ", segment.value] })] })] })] })] }, segment?.key));
63
- }), showXAxisLabels && (_jsx("foreignObject", { x: barX + barWidth / 2 - xAxisLabelWidth / 2, y: height + topPadding + 5, width: xAxisLabelWidth, height: 20, className: "ff-stacked-bar-x-label-wrapper", style: {
64
- color: 'var(--text-color)',
65
- fontWeight: 'normal',
66
- }, children: _jsx(AutoTruncateText, { className: "ff-stacked-bar-x-label", children: item?.label }) }))] }, barIndex));
72
+ height: computedHeight,
73
+ }, onClick: () => handleSegmentClick(item?.label, segment, segIndex) }), _jsxs("div", { id: tooltipId, className: "ff-stacked-bar-tooltip-content", style: { display: 'none' }, children: [_jsx(Typography, { as: "div", fontWeight: "semi-bold", children: item?.label }), _jsxs("div", { className: "ff-stacked-bar-tooltip-row", children: [_jsx(Typography, { fontWeight: "semi-bold", children: segment.key }), _jsxs(Typography, { fontWeight: "semi-bold", children: [": ", segment.value] })] })] })] })] }, `${segment?.uniqueId}-${segIndex}`));
74
+ }), showXAxisLabels && (_jsx("foreignObject", { x: barX + barWidth / 2 - xAxisLabelWidth / 2, y: height + topPadding + 5, width: xAxisLabelWidth, height: 20, className: "ff-stacked-bar-x-label-wrapper", children: _jsx(AutoTruncateText, { className: "ff-stacked-bar-x-label", children: item?.label }) }))] }, barIndex));
67
75
  }), _jsx("line", { x1: 0, y1: height + topPadding, x2: scrollableChartWidth, y2: height + topPadding, stroke: "var(--ff-select-scroll-track-bg)", strokeWidth: "1" })] }) }), xAxisLabel && (_jsx(Typography, { as: "div", className: "ff-stacked-bar-label ff-stacked-bar-x-axis-label", fontWeight: "semi-bold", children: xAxisLabel }))] }), legend && legendPosition === 'bottom' && renderLegend()] }));
68
76
  };
69
77
  export default StackedBarChart;
@@ -1 +1 @@
1
- {"version":3,"file":"StackedBarChart.js","sourceRoot":"","sources":["../../../../src/components/Charts/StackedBarChart/StackedBarChart.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,wBAAwB,CAAC;AAEhC,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AAEtD,MAAM,eAAe,GAAmC,CAAC,EACvD,IAAI,EACJ,QAAQ,GAAG,EAAE,EACb,MAAM,GAAG,GAAG,EACZ,MAAM,GAAG,EAAE,EACX,eAAe,GAAG,CAAC,EACnB,UAAU,EACV,UAAU,EACV,cAAc,GAAG,CAAC,EAClB,OAAO,GAAG,EAAE,EACZ,MAAM,GAAG,IAAI,EACb,cAAc,GAAG,QAAQ,EACzB,eAAe,GAAG,IAAI,EACtB,cAAc,GAAG,IAAI,EACrB,SAAS,GAAG,KAAK,EACjB,aAAa,EACb,cAAc,GACf,EAAE,EAAE;IACH,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAO5C,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J,CAAC,CAAC,EAGD,eAAe,IAAI,CAClB,wBACE,CAAC,EAAE,IAAI,GAAG,QAAQ,GAAG,CAAC,GAAG,eAAe,GAAG,CAAC,EAC5C,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,CAAC,EAC1B,KAAK,EAAE,eAAe,EACtB,MAAM,EAAE,EAAE,EACV,SAAS,EAAC,gCAAgC,EAC1C,KAAK,EAAE;oDACL,KAAK,EAAE,mBAAmB;oDAC1B,UAAU,EAAE,QAAQ;iDACrB,YAED,KAAC,gBAAgB,IAAC,SAAS,EAAC,wBAAwB,YACjD,IAAI,EAAE,KAAK,GACK,GACL,CACjB,KAzFI,QAAQ,CA0FX,CACL,CAAC;gCACJ,CAAC,CAAC,EAGF,eACE,EAAE,EAAE,CAAC,EACL,EAAE,EAAE,MAAM,GAAG,UAAU,EACvB,EAAE,EAAE,oBAAoB,EACxB,EAAE,EAAE,MAAM,GAAG,UAAU,EACvB,MAAM,EAAC,kCAAkC,EACzC,WAAW,EAAC,GAAG,GACf,IACE,GACF,EACL,UAAU,IAAI,CACb,KAAC,UAAU,IACT,EAAE,EAAC,KAAK,EACR,SAAS,EAAC,kDAAkD,EAC5D,UAAU,EAAC,WAAW,YAErB,UAAU,GACA,CACd,IACG,EACL,MAAM,IAAI,cAAc,KAAK,QAAQ,IAAI,YAAY,EAAE,IACpD,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"StackedBarChart.js","sourceRoot":"","sources":["../../../../src/components/Charts/StackedBarChart/StackedBarChart.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,wBAAwB,CAAC;AAEhC,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AAEtD,MAAM,eAAe,GAAmC,CAAC,EACvD,IAAI,EACJ,QAAQ,GAAG,EAAE,EACb,MAAM,G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AE,CAAC,EACL,EAAE,EAAE,MAAM,GAAG,UAAU,EACvB,EAAE,EAAE,oBAAoB,EACxB,EAAE,EAAE,MAAM,GAAG,UAAU,EACvB,MAAM,EAAC,kCAAkC,EACzC,WAAW,EAAC,GAAG,GACf,IACE,GACF,EACL,UAAU,IAAI,CACb,KAAC,UAAU,IACT,EAAE,EAAC,KAAK,EACR,SAAS,EAAC,kDAAkD,EAC5D,UAAU,EAAC,WAAW,YAErB,UAAU,GACA,CACd,IACG,EACL,MAAM,IAAI,cAAc,KAAK,QAAQ,IAAI,YAAY,EAAE,IACpD,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -5,7 +5,8 @@ export type StackedBarSegment = {
5
5
  key: string;
6
6
  value: number;
7
7
  color: string;
8
- data?: DynamicObj;
8
+ data?: DynamicObj | any;
9
+ uniqueId?: string | any;
9
10
  };
10
11
  export type StackedBarDataItem = {
11
12
  label: string;
@@ -136,20 +136,20 @@ const Comments = ({ commentsData, handleAddComment, handleEditComment, handleDel
136
136
  const getCaretCoordinates = (element, position) => {
137
137
  const div = document.createElement('div');
138
138
  const copyStyle = getComputedStyle(element);
139
- div.style.cssText = `
140
- position: absolute;
141
- visibility: hidden;
142
- white-space: pre-wrap;
143
- word-wrap: break-word;
144
- overflow: auto;
145
- width: ${element.offsetWidth}px;
146
- height: ${element.offsetHeight}px;
147
- font-family: ${copyStyle.fontFamily};
148
- font-size: ${copyStyle.fontSize};
149
- padding: ${copyStyle.padding};
150
- border: ${copyStyle.border};
151
- box-sizing: ${copyStyle.boxSizing};
152
- line-height: ${copyStyle.lineHeight};
139
+ div.style.cssText = `
140
+ position: absolute;
141
+ visibility: hidden;
142
+ white-space: pre-wrap;
143
+ word-wrap: break-word;
144
+ overflow: auto;
145
+ width: ${element.offsetWidth}px;
146
+ height: ${element.offsetHeight}px;
147
+ font-family: ${copyStyle.fontFamily};
148
+ font-size: ${copyStyle.fontSize};
149
+ padding: ${copyStyle.padding};
150
+ border: ${copyStyle.border};
151
+ box-sizing: ${copyStyle.boxSizing};
152
+ line-height: ${copyStyle.lineHeight};
153
153
  `;
154
154
  div.scrollTop = element.scrollTop;
155
155
  div.scrollLeft = element.scrollLeft;
@@ -93,20 +93,20 @@ const ChildComment = ({ handleInsertNode, handleEditNode, handleDeleteNode, comm
93
93
  const getCaretCoordinates = (element, position) => {
94
94
  const div = document.createElement('div');
95
95
  const copyStyle = getComputedStyle(element);
96
- div.style.cssText = `
97
- position: absolute;
98
- visibility: hidden;
99
- white-space: pre-wrap;
100
- word-wrap: break-word;
101
- overflow: auto;
102
- width: ${element.offsetWidth}px;
103
- height: ${element.offsetHeight}px;
104
- font-family: ${copyStyle.fontFamily};
105
- font-size: ${copyStyle.fontSize};
106
- padding: ${copyStyle.padding};
107
- border: ${copyStyle.border};
108
- box-sizing: ${copyStyle.boxSizing};
109
- line-height: ${copyStyle.lineHeight};
96
+ div.style.cssText = `
97
+ position: absolute;
98
+ visibility: hidden;
99
+ white-space: pre-wrap;
100
+ word-wrap: break-word;
101
+ overflow: auto;
102
+ width: ${element.offsetWidth}px;
103
+ height: ${element.offsetHeight}px;
104
+ font-family: ${copyStyle.fontFamily};
105
+ font-size: ${copyStyle.fontSize};
106
+ padding: ${copyStyle.padding};
107
+ border: ${copyStyle.border};
108
+ box-sizing: ${copyStyle.boxSizing};
109
+ line-height: ${copyStyle.lineHeight};
110
110
  `;
111
111
  div.scrollTop = element.scrollTop;
112
112
  div.scrollLeft = element.scrollLeft;
@@ -77,8 +77,8 @@ isOpen = false, confirmAction, onClick, nameTooltipTitle, }) => {
77
77
  { key: 'Enter', action: () => handleKeyBoard('Enter') },
78
78
  { key: 'Escape', action: () => handleKeyBoard('Escape') },
79
79
  ], containerRef);
80
- return (_jsxs("div", { className: "ff-label-edit-text-field", ref: containerRef, children: [isEditing ? (_jsxs("div", { className: "ff-label-text-field", children: [_jsx("div", { className: "ff-label-text-field-without-dropdown", children: _jsx(Input, { name: "input", label: label ? label : '', disabled: false, error: isThrowingError, placeholder: "Enter your name", value: inputValue, onChange: handleTextFieldChange, className: `
81
-
80
+ return (_jsxs("div", { className: "ff-label-edit-text-field", ref: containerRef, children: [isEditing ? (_jsxs("div", { className: "ff-label-text-field", children: [_jsx("div", { className: "ff-label-text-field-without-dropdown", children: _jsx(Input, { name: "input", label: label ? label : '', disabled: false, error: isThrowingError, placeholder: "Enter your name", value: inputValue, onChange: handleTextFieldChange, className: `
81
+
82
82
  ${isTextFieldModified ? 'modified' : ''}`, type: "text" }) }), _jsxs("div", { className: "ff-icon-container", children: [confirmIcon && (_jsx(Tooltip, { title: "confirm", placement: 'bottom', children: _jsx(Icon, { color: confirmIcon?.color ?? 'var(--default-confirm-icon-color)', height: confirmIcon?.height ?? 20, disabled: disabled, width: confirmIcon?.width ?? 20, name: confirmIcon?.name ?? 'default-confirm-icon', className: `${confirmIcon?.className ?? 'default-confirm-class'} ${disabled ? 'disabled-confirm-icon' : 'confirm-icon'}`, onClick: handleConfirm }) })), cancelIcon && (_jsx(Tooltip, { title: "cancel", placement: 'bottom', children: _jsx(Icon, { color: cancelIcon?.color ?? 'var(--label-edit-cancel-icon)', height: cancelIcon?.height ?? 12, width: cancelIcon?.width ?? 20, name: cancelIcon?.name ?? 'default-cancel-icon', className: cancelIcon?.className ?? 'cancel-icon', onClick: handleCancel, ref: cancelRef }) }))] })] })) : (_jsxs("div", { className: "display-text-container", children: [nameTooltipTitle ? (_jsx(Tooltip, { title: nameTooltipTitle, children: _jsx("span", { className: "display-text", onClick: onClick, children: _jsx(HighlightText, { text: inputValue, highlight: highlightText }) }) })) : (_jsx("span", { className: "display-text", onClick: onClick, children: _jsx(HighlightText, { text: inputValue, highlight: highlightText }) })), _jsx(Tooltip, { title: capitalize(editIcon?.name ?? 'Edit'), children: _jsx(Icon, { color: editIcon?.color ?? 'var(--label-edit-cancel-icon)', height: editIcon?.height ?? 20, width: editIcon?.width ?? 20, name: editIcon?.name ?? 'edit', className: editIcon?.className ?? 'edit-icon', onClick: handleEditButtonClick }) })] })), showError && isEditing && (_jsx(Typography, { as: "p", fontSize: 8, className: "error-text", children: showError }))] }));
83
83
  };
84
84
  export default EditTextField;
@@ -158,10 +158,10 @@ className, height, isOpen = false, confirmAction, onClick, tooltip, onDoubleClic
158
158
  }
159
159
  }
160
160
  useKeyboardActions([{ key: 'Enter', action: () => handleKeyBoard('Enter') }], containerRef);
161
- return (_jsxs("div", { className: "ff-label-edit-text-field", ref: containerRef, children: [isEditing ? (_jsxs("div", { className: "ff-label-text-field", children: [variant === 'textFieldWithDropdown' ? (_jsxs("div", { className: `ff-label-text-field-with-dropdown ${isEditing ? 'open' : ''}`, style: { height }, children: [_jsx(Input, { name: "input", type: "text", label: label ? label : '', disabled: false, error: isThrowingError, placeholder: placeholder ? placeholder : '', value: inputValue, onChange: handleTextFieldChange, className: `${className}
162
-
163
- ${isTextFieldModified ? 'modified' : ''}` }), _jsx(Select, { label: '', optionsList: dropdownData, selectedOption: { value: dropdownValue, label: dropdownValue }, onChange: (option) => setDropdownValue(option.value) })] })) : (_jsx("div", { className: "ff-label-text-field-without-dropdown", children: _jsx(Input, { name: "input", type: "text", label: label ? label : '', disabled: false, error: isThrowingError, placeholder: placeholder ? placeholder : '', value: inputValue, onChange: handleTextFieldChange, className: `${className}
164
-
161
+ return (_jsxs("div", { className: "ff-label-edit-text-field", ref: containerRef, children: [isEditing ? (_jsxs("div", { className: "ff-label-text-field", children: [variant === 'textFieldWithDropdown' ? (_jsxs("div", { className: `ff-label-text-field-with-dropdown ${isEditing ? 'open' : ''}`, style: { height }, children: [_jsx(Input, { name: "input", type: "text", label: label ? label : '', disabled: false, error: isThrowingError, placeholder: placeholder ? placeholder : '', value: inputValue, onChange: handleTextFieldChange, className: `${className}
162
+
163
+ ${isTextFieldModified ? 'modified' : ''}` }), _jsx(Select, { label: '', optionsList: dropdownData, selectedOption: { value: dropdownValue, label: dropdownValue }, onChange: (option) => setDropdownValue(option.value) })] })) : (_jsx("div", { className: "ff-label-text-field-without-dropdown", children: _jsx(Input, { name: "input", type: "text", label: label ? label : '', disabled: false, error: isThrowingError, placeholder: placeholder ? placeholder : '', value: inputValue, onChange: handleTextFieldChange, className: `${className}
164
+
165
165
  ${isTextFieldModified ? 'modified' : ''}` }) })), _jsxs("div", { className: "ff-icon-container", children: [confirmIcon && (_jsx(Tooltip, { title: "Confirm", placement: 'bottom', children: _jsx(Icon, { color: "var(--label-edit-confirm-icon)", height: 20, width: 20, name: confirmIcon.name, disabled: disabled, className: `${disabled ? 'disabled-confirm-icon' : 'confirm-icon'}`, onClick: handleConfirm }) })), cancelIcon && (_jsx(Tooltip, { title: "Cancel", placement: 'bottom', children: _jsx(Icon, { color: "var(--label-edit-cancel-icon)", height: 12, width: 20, name: cancelIcon.name, className: "cancel-icon", onClick: handleCancel, ref: cancelRef }) }))] })] })) : (_jsx(Tooltip, { title: tooltip?.tooltipTitle ? tooltip?.tooltipTitle : '', placement: 'bottom', children: showText && (_jsx("span", { className: "display-text", onDoubleClick: handleDoubleClick, role: "button", onClick: handleClick, children: _jsx(HighlightText, { text: inputValue, highlight: highlightText }) })) })), showError && isEditing && (_jsx(Typography, { as: "p", fontSize: 8, className: "error-text", children: showError }))] }));
166
166
  };
167
167
  export default LabelEditTextField;
@@ -29,7 +29,7 @@ const StatusBadge = ({ gap = 8, fontSize = 12, entityType, statusValues, }) => {
29
29
  // };
30
30
  return (_jsx("div", { className: "ff-statusbadge-container", style: {
31
31
  gap: `${gap}px`,
32
- }, children: statusValues.map((val, idx) => (_jsxs("div", { className: "ff-statusbadge-item", "data-tooltip": `${capitalize(val?.status)}${entityType ? ` ${entityType}` : ''} :
32
+ }, children: statusValues.map((val, idx) => (_jsxs("div", { className: "ff-statusbadge-item", "data-tooltip": `${capitalize(val?.status)}${entityType ? ` ${entityType}` : ''} :
33
33
  ${Number(val?.tooltipValue).toLocaleString('fullwide', {
34
34
  useGrouping: false,
35
35
  maximumSignificantDigits: 21,
@@ -11,15 +11,15 @@ const StatusIndicator = forwardRef(({ label = 'Status', iconName = 'update_icon'
11
11
  danger: 'var(--ff-delete-button-attachment)',
12
12
  };
13
13
  const iconColor = variantColorMap[variant] || variantColorMap.default;
14
- return (_jsx("button", { disabled: isDisable, onClick: onClick, className: `
15
- ff-status-indicator
16
- ff-status-indicator--${variant}
14
+ return (_jsx("button", { disabled: isDisable, onClick: onClick, className: `
15
+ ff-status-indicator
16
+ ff-status-indicator--${variant}
17
17
  ${backgroundColor
18
18
  ? `ff-status-indicator--with-bg ff-status-indicator--${variant}-bg`
19
- : ''}
19
+ : ''}
20
20
  ${border
21
21
  ? `ff-status-indicator--with-border ff-status-indicator--${variant}-border`
22
- : ''}
22
+ : ''}
23
23
  `, ref: ref, children: _jsxs("div", { className: "ff-status-indicator__content", children: [_jsx(Icon, { name: resolvedIconName, color: iconColor, className: `ff-status-indicator__icon ff-status-indicator__icon--${variant}` }), _jsx(Typography, { as: "div", fontSize: 12, className: `ff-status-indicator__label ff-status-indicator__label--${variant}`, fontWeight: "medium", lineHeight: "20px", children: label })] }) }));
24
24
  });
25
25
  export default StatusIndicator;
package/lib/index.d.ts CHANGED
@@ -4795,7 +4795,8 @@ type StackedBarSegment = {
4795
4795
  key: string;
4796
4796
  value: number;
4797
4797
  color: string;
4798
- data?: DynamicObj;
4798
+ data?: DynamicObj | any;
4799
+ uniqueId?: string | any;
4799
4800
  };
4800
4801
  type StackedBarDataItem = {
4801
4802
  label: string;