pixel-react 1.20.51 → 1.20.52

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.
Files changed (144) hide show
  1. package/README.md +75 -75
  2. package/lib/components/Charts/BarChart/BarChart.js +8 -8
  3. package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js +6 -6
  4. package/lib/components/Charts/IconRadialChart/IconRadialChart.js +4 -4
  5. package/lib/components/Charts/PieChart/PieChart.js +5 -5
  6. package/lib/components/ChatModalAi/ChatModalAi.js +1 -3
  7. package/lib/components/ChatModalAi/ChatModalAi.js.map +1 -1
  8. package/lib/components/Comments/Comments.js +14 -14
  9. package/lib/components/Comments/childComment/ChildComment.js +14 -14
  10. package/lib/components/EditTextField/EditTextField.js +2 -2
  11. package/lib/components/LabelEditTextField/LabelEditTextField.js +4 -4
  12. package/lib/components/StatusIndicator/StatusIndicator.js +5 -5
  13. package/lib/index.js +2 -2
  14. package/lib/tsconfig.tsbuildinfo +1 -1
  15. package/package.json +109 -118
  16. package/lib/StyleGuide/ColorPalette/index.d.ts +0 -1
  17. package/lib/StyleGuide/ColorPalette/index.js +0 -2
  18. package/lib/StyleGuide/ColorPalette/index.js.map +0 -1
  19. package/lib/StyleGuide/Typography/TypographyList.d.ts +0 -5
  20. package/lib/StyleGuide/Typography/TypographyList.js +0 -4
  21. package/lib/StyleGuide/Typography/TypographyList.js.map +0 -1
  22. package/lib/StyleGuide/Typography/types.d.ts +0 -8
  23. package/lib/StyleGuide/Typography/types.js +0 -2
  24. package/lib/StyleGuide/Typography/types.js.map +0 -1
  25. package/lib/components/AddContentButton/index.d.ts +0 -1
  26. package/lib/components/AddContentButton/index.js +0 -2
  27. package/lib/components/AddContentButton/index.js.map +0 -1
  28. package/lib/components/Carousel/index.d.ts +0 -1
  29. package/lib/components/Carousel/index.js +0 -2
  30. package/lib/components/Carousel/index.js.map +0 -1
  31. package/lib/components/Charts/BarChart/types.d.ts +0 -18
  32. package/lib/components/Charts/BarChart/types.js +0 -2
  33. package/lib/components/Charts/BarChart/types.js.map +0 -1
  34. package/lib/components/ChipWithCount/index.d.ts +0 -1
  35. package/lib/components/ChipWithCount/index.js +0 -2
  36. package/lib/components/ChipWithCount/index.js.map +0 -1
  37. package/lib/components/Comments/index.d.ts +0 -1
  38. package/lib/components/Comments/index.js +0 -2
  39. package/lib/components/Comments/index.js.map +0 -1
  40. package/lib/components/ConditionalDropdown/index.d.ts +0 -1
  41. package/lib/components/ConditionalDropdown/index.js +0 -2
  42. package/lib/components/ConditionalDropdown/index.js.map +0 -1
  43. package/lib/components/ConnectingBranch/index.d.ts +0 -1
  44. package/lib/components/ConnectingBranch/index.js +0 -2
  45. package/lib/components/ConnectingBranch/index.js.map +0 -1
  46. package/lib/components/CreateVariable/index.d.ts +0 -1
  47. package/lib/components/CreateVariable/index.js +0 -2
  48. package/lib/components/CreateVariable/index.js.map +0 -1
  49. package/lib/components/DownloadClient/index.d.ts +0 -1
  50. package/lib/components/DownloadClient/index.js +0 -2
  51. package/lib/components/DownloadClient/index.js.map +0 -1
  52. package/lib/components/DragAndDrop/index.d.ts +0 -1
  53. package/lib/components/DragAndDrop/index.js +0 -2
  54. package/lib/components/DragAndDrop/index.js.map +0 -1
  55. package/lib/components/Editor/index.d.ts +0 -1
  56. package/lib/components/Editor/index.js +0 -2
  57. package/lib/components/Editor/index.js.map +0 -1
  58. package/lib/components/Excel/ExcelFile/ExcelFileComponents/areModelsEqual.d.ts +0 -1
  59. package/lib/components/Excel/ExcelFile/ExcelFileComponents/areModelsEqual.js +0 -18
  60. package/lib/components/Excel/ExcelFile/ExcelFileComponents/areModelsEqual.js.map +0 -1
  61. package/lib/components/ExpandableTable/ExpandableTable.d.ts +0 -12
  62. package/lib/components/ExpandableTable/ExpandableTable.js +0 -19
  63. package/lib/components/ExpandableTable/ExpandableTable.js.map +0 -1
  64. package/lib/components/FF_Captcha/index.d.ts +0 -0
  65. package/lib/components/FF_Captcha/index.js +0 -2
  66. package/lib/components/FF_Captcha/index.js.map +0 -1
  67. package/lib/components/Form/index.d.ts +0 -1
  68. package/lib/components/Form/index.js +0 -2
  69. package/lib/components/Form/index.js.map +0 -1
  70. package/lib/components/Form/types.d.ts +0 -1
  71. package/lib/components/Form/types.js +0 -2
  72. package/lib/components/Form/types.js.map +0 -1
  73. package/lib/components/GridLayout/index.d.ts +0 -2
  74. package/lib/components/GridLayout/index.js +0 -2
  75. package/lib/components/GridLayout/index.js.map +0 -1
  76. package/lib/components/LazyLoad/index.d.ts +0 -1
  77. package/lib/components/LazyLoad/index.js +0 -2
  78. package/lib/components/LazyLoad/index.js.map +0 -1
  79. package/lib/components/Link/index.d.ts +0 -1
  80. package/lib/components/Link/index.js +0 -2
  81. package/lib/components/Link/index.js.map +0 -1
  82. package/lib/components/MediaPreview/index.d.ts +0 -1
  83. package/lib/components/MediaPreview/index.js +0 -2
  84. package/lib/components/MediaPreview/index.js.map +0 -1
  85. package/lib/components/MobileSkin/types.d.ts +0 -37
  86. package/lib/components/MobileSkin/types.js +0 -2
  87. package/lib/components/MobileSkin/types.js.map +0 -1
  88. package/lib/components/ModulesChip/index.d.ts +0 -1
  89. package/lib/components/ModulesChip/index.js +0 -2
  90. package/lib/components/ModulesChip/index.js.map +0 -1
  91. package/lib/components/PrePostTable/index.d.ts +0 -1
  92. package/lib/components/PrePostTable/index.js +0 -2
  93. package/lib/components/PrePostTable/index.js.map +0 -1
  94. package/lib/components/ScriptGenerationLoader/index.d.ts +0 -1
  95. package/lib/components/ScriptGenerationLoader/index.js +0 -2
  96. package/lib/components/ScriptGenerationLoader/index.js.map +0 -1
  97. package/lib/components/StepsLandingTable/index.d.ts +0 -1
  98. package/lib/components/StepsLandingTable/index.js +0 -2
  99. package/lib/components/StepsLandingTable/index.js.map +0 -1
  100. package/lib/components/Table/NoDataContent.d.ts +0 -4
  101. package/lib/components/Table/NoDataContent.js +0 -9
  102. package/lib/components/Table/NoDataContent.js.map +0 -1
  103. package/lib/components/Table/index.d.ts +0 -1
  104. package/lib/components/Table/index.js +0 -2
  105. package/lib/components/Table/index.js.map +0 -1
  106. package/lib/components/TableTree/Utils/getAllChildIds.d.ts +0 -2
  107. package/lib/components/TableTree/Utils/getAllChildIds.js +0 -12
  108. package/lib/components/TableTree/Utils/getAllChildIds.js.map +0 -1
  109. package/lib/components/TableTree/Utils/renderSpaces.d.ts +0 -0
  110. package/lib/components/TableTree/Utils/renderSpaces.js +0 -2
  111. package/lib/components/TableTree/Utils/renderSpaces.js.map +0 -1
  112. package/lib/components/TableTreeFn/Utils/addNewRow.d.ts +0 -14
  113. package/lib/components/TableTreeFn/Utils/addNewRow.js +0 -80
  114. package/lib/components/TableTreeFn/Utils/addNewRow.js.map +0 -1
  115. package/lib/components/TableTreeFn/Utils/getAllChildIds.d.ts +0 -2
  116. package/lib/components/TableTreeFn/Utils/getAllChildIds.js +0 -12
  117. package/lib/components/TableTreeFn/Utils/getAllChildIds.js.map +0 -1
  118. package/lib/components/TableTreeFn/Utils/renderSpaces.d.ts +0 -0
  119. package/lib/components/TableTreeFn/Utils/renderSpaces.js +0 -2
  120. package/lib/components/TableTreeFn/Utils/renderSpaces.js.map +0 -1
  121. package/lib/components/TableTreeFn/Utils/updateParentSibling.d.ts +0 -3
  122. package/lib/components/TableTreeFn/Utils/updateParentSibling.js +0 -65
  123. package/lib/components/TableTreeFn/Utils/updateParentSibling.js.map +0 -1
  124. package/lib/components/TableWithAccordion/index.d.ts +0 -1
  125. package/lib/components/TableWithAccordion/index.js +0 -2
  126. package/lib/components/TableWithAccordion/index.js.map +0 -1
  127. package/lib/components/TabsWithSilder/index.d.ts +0 -1
  128. package/lib/components/TabsWithSilder/index.js +0 -2
  129. package/lib/components/TabsWithSilder/index.js.map +0 -1
  130. package/lib/components/TextEditor/index.d.ts +0 -1
  131. package/lib/components/TextEditor/index.js +0 -2
  132. package/lib/components/TextEditor/index.js.map +0 -1
  133. package/lib/components/ToggleSwitch/index.d.ts +0 -1
  134. package/lib/components/ToggleSwitch/index.js +0 -2
  135. package/lib/components/ToggleSwitch/index.js.map +0 -1
  136. package/lib/utils/functionCheck/functionCheck.d.ts +0 -2
  137. package/lib/utils/functionCheck/functionCheck.js +0 -6
  138. package/lib/utils/functionCheck/functionCheck.js.map +0 -1
  139. package/lib/utils/indexDBStore/indexDB copy.d.ts +0 -4
  140. package/lib/utils/indexDBStore/indexDB copy.js +0 -142
  141. package/lib/utils/indexDBStore/indexDB copy.js.map +0 -1
  142. package/lib/utils/toTitleCase/toTitleCase.d.ts +0 -1
  143. package/lib/utils/toTitleCase/toTitleCase.js +0 -7
  144. package/lib/utils/toTitleCase/toTitleCase.js.map +0 -1
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,
@@ -5,9 +5,7 @@ import { createPortal } from 'react-dom';
5
5
  import Typography from '../Typography';
6
6
  import Icon from '../Icon';
7
7
  import classNames from 'classnames';
8
- const ChatModalAi = forwardRef(({ iconName, hoverTitle, iconPosition: { top: iconTop, left: iconLeft, bottom: iconBottom, right: iconRight, }, hoverIconPosition: { top: iconhoverTop, left: iconhoverLeft, bottom: iconhoverBottom, right: iconhoverRight, }, modalPosition: { top: modalTop, left: modalLeft, bottom: modalBottom, right: modalRight, }, modalWidth, modalHeight, headerContent = 'Header Content', footerContent = 'Footer Content', iconWidth, iconHeight, children, isVisible, isOpen, onOpen, onClose, isIconVisible,
9
- // onVisibilityChange,
10
- }, ref) => {
8
+ const ChatModalAi = forwardRef(({ iconName, hoverTitle, iconPosition: { top: iconTop, left: iconLeft, bottom: iconBottom, right: iconRight, }, hoverIconPosition: { top: iconhoverTop, left: iconhoverLeft, bottom: iconhoverBottom, right: iconhoverRight, }, modalPosition: { top: modalTop, left: modalLeft, bottom: modalBottom, right: modalRight, }, modalWidth, modalHeight, headerContent = 'Header Content', footerContent = 'Footer Content', iconWidth, iconHeight, children, isVisible, isOpen, onOpen, onClose, isIconVisible, }, ref) => {
11
9
  useImperativeHandle(ref, () => ({
12
10
  closeModal: onClose,
13
11
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"ChatModalAi.js","sourceRoot":"","sources":["../../../src/components/ChatModalAi/ChatModalAi.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,WAAW,GAAG,UAAU,CAC5B,CACE,EACE,QAAQ,EACR,UAAU,EACV,YAAY,EAAE,EACZ,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,UAAU,EAClB,KAAK,EAAE,SAAS,GACjB,EACD,iBAAiB,EAAE,EACjB,GAAG,EAAE,YAAY,EACjB,IAAI,EAAE,aAAa,EACnB,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,cAAc,GACtB,EACD,aAAa,EAAE,EACb,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,UAAU,GAClB,EACD,UAAU,EACV,WAAW,EACX,aAAa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3,"file":"ChatModalAi.js","sourceRoot":"","sources":["../../../src/components/ChatModalAi/ChatModalAi.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,WAAW,GAAG,UAAU,CAC5B,CACE,EACE,QAAQ,EACR,UAAU,EACV,YAAY,EAAE,EACZ,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,UAAU,EAClB,KAAK,EAAE,SAAS,GACjB,EACD,iBAAiB,EAAE,EACjB,GAAG,EAAE,YAAY,EACjB,IAAI,EAAE,aAAa,EACnB,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,cAAc,GACtB,EACD,aAAa,EAAE,EACb,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,UAAU,GAClB,EACD,UAAU,EACV,WAAW,EACX,aAAa,GAAG,gBAAgB,EAChC,aAAa,GAAG,gBAAgB,EAChC,SAAS,EACT,UAAU,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,MAAM,EACN,OAAO,EACP,aAAa,GACd,EACD,GAAG,EACH,EAAE;IACF,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;QAC9B,UAAU,EAAE,OAAO;KACpB,CAAC,CAAC,CAAC;IAEJ,OAAO,CACL,8BACG,aAAa,IAAI,CAChB,eACE,KAAK,EAAE;oBACL,GAAG,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS;oBACvD,IAAI,EAAE,QAAQ,KAA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CAAC,GAAG,QAAQ,IAAI,CAAC,CAAC,CAAC,SAAS;wBACzD,IAAI,EAAE,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,IAAI,CAAC,CAAC,CAAC,SAAS;wBAC5D,MAAM,EACJ,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,WAAW,IAAI,CAAC,CAAC,CAAC,SAAS;wBAC5D,KAAK,EAAE,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,UAAU,IAAI,CAAC,CAAC,CAAC,SAAS;wBAC/D,QAAQ,EAAE,OAAO;wBACjB,MAAM,EAAE,WAAW;wBACnB,KAAK,EAAE,UAAU;qBAClB,YAED,eAAK,SAAS,EAAC,6BAA6B,aACzC,aAAa,IAAI,CAChB,cAAK,SAAS,EAAC,4BAA4B,YACxC,aAAa,GACV,CACP,EACD,cAAK,SAAS,EAAC,0BAA0B,YAAE,QAAQ,GAAO,EACzD,aAAa,IAAI,CAChB,cAAK,SAAS,EAAC,4BAA4B,YACxC,aAAa,GACV,CACP,IACG,GACF,EACN,QAAQ,CAAC,IAAI,CACd,IACF,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -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;
@@ -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;