@topconsultnpm/sdkui-react 6.19.0-dev2.2 → 6.19.0-test.1

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 (125) hide show
  1. package/lib/assets/IconsS4t/add.svg +12 -12
  2. package/lib/assets/IconsS4t/aggiorna.svg +18 -18
  3. package/lib/assets/IconsS4t/bookmark.svg +42 -42
  4. package/lib/assets/IconsS4t/cancella.svg +15 -15
  5. package/lib/assets/IconsS4t/check-box.svg +19 -19
  6. package/lib/assets/IconsS4t/down-arrow-signBook.svg +40 -40
  7. package/lib/assets/IconsS4t/down.svg +28 -28
  8. package/lib/assets/IconsS4t/edit-file.svg +19 -19
  9. package/lib/assets/IconsS4t/edita.svg +32 -32
  10. package/lib/assets/IconsS4t/firma.svg +19 -19
  11. package/lib/assets/IconsS4t/icona_download.svg +16 -16
  12. package/lib/assets/IconsS4t/info.svg +51 -51
  13. package/lib/assets/IconsS4t/left.svg +20 -20
  14. package/lib/assets/IconsS4t/line.svg +40 -40
  15. package/lib/assets/IconsS4t/more.svg +19 -19
  16. package/lib/assets/IconsS4t/plus.svg +23 -23
  17. package/lib/assets/IconsS4t/printer.svg +49 -49
  18. package/lib/assets/IconsS4t/radio-on-button.svg +25 -25
  19. package/lib/assets/IconsS4t/rectangle.svg +41 -41
  20. package/lib/assets/IconsS4t/redo.svg +19 -19
  21. package/lib/assets/IconsS4t/right-arrow-signBook-finish.svg +40 -40
  22. package/lib/assets/IconsS4t/right-arrow-signBook.svg +40 -40
  23. package/lib/assets/IconsS4t/right.svg +22 -22
  24. package/lib/assets/IconsS4t/searchbar.svg +21 -21
  25. package/lib/assets/IconsS4t/text-box.svg +36 -36
  26. package/lib/assets/IconsS4t/tick.svg +8 -8
  27. package/lib/assets/IconsS4t/trash-white.svg +10 -10
  28. package/lib/assets/IconsS4t/undo.svg +19 -19
  29. package/lib/assets/IconsS4t/up.svg +32 -32
  30. package/lib/assets/IconsS4t/video-streaming.svg +2 -2
  31. package/lib/assets/IconsS4t/zoom-in.svg +58 -58
  32. package/lib/assets/IconsS4t/zoom-out.svg +56 -56
  33. package/lib/assets/icomoon.svg +96 -96
  34. package/lib/assets/italy.svg +16 -16
  35. package/lib/assets/six.svg +3 -3
  36. package/lib/assets/thumbnails/index.ts +39 -39
  37. package/lib/assets/topmedia-six.svg +65 -65
  38. package/lib/assets/topmeida-six-bianco.svg +65 -65
  39. package/lib/components/base/Styled.js +302 -302
  40. package/lib/components/base/TMAccordion.js +43 -43
  41. package/lib/components/base/TMAreaManager.js +23 -23
  42. package/lib/components/base/TMButton.js +130 -130
  43. package/lib/components/base/TMClosableList.js +46 -46
  44. package/lib/components/base/TMConfirm.js +20 -20
  45. package/lib/components/base/TMContextMenu.js +4 -4
  46. package/lib/components/base/TMContextMenuOLD.js +25 -25
  47. package/lib/components/base/TMCounterBar.js +32 -32
  48. package/lib/components/base/TMCounterContainer.js +30 -30
  49. package/lib/components/base/TMCustomButton.js +7 -7
  50. package/lib/components/base/TMDropDownMenu.js +24 -24
  51. package/lib/components/base/TMFileManagerUtils.js +19 -19
  52. package/lib/components/base/TMFloatingToolbar.js +34 -34
  53. package/lib/components/base/TMLayout.js +44 -44
  54. package/lib/components/base/TMList.js +34 -34
  55. package/lib/components/base/TMModal.js +31 -31
  56. package/lib/components/base/TMPanel.js +57 -57
  57. package/lib/components/base/TMPopUp.js +114 -114
  58. package/lib/components/base/TMProgressBar.js +20 -20
  59. package/lib/components/base/TMResizableMenu.js +28 -28
  60. package/lib/components/base/TMRightSidebar.js +40 -40
  61. package/lib/components/base/TMSpinner.js +121 -121
  62. package/lib/components/base/TMTab.js +11 -11
  63. package/lib/components/base/TMToggleButton.js +36 -36
  64. package/lib/components/base/TMToolbarCard.js +35 -35
  65. package/lib/components/base/TMTreeView.js +16 -16
  66. package/lib/components/base/TMUserAvatar.js +7 -7
  67. package/lib/components/base/TMWaitPanel.js +22 -22
  68. package/lib/components/choosers/TMCultureIDPicker.js +35 -35
  69. package/lib/components/choosers/TMDataListItemPicker.js +54 -54
  70. package/lib/components/editors/TMCheckBox.js +24 -24
  71. package/lib/components/editors/TMDropDown.js +43 -43
  72. package/lib/components/editors/TMEditorStyled.js +71 -71
  73. package/lib/components/editors/TMHtmlContentDisplay.js +16 -16
  74. package/lib/components/editors/TMLocalizedTextBox.js +31 -31
  75. package/lib/components/editors/TMMetadataValues.js +17 -17
  76. package/lib/components/editors/TMRadioButton.js +39 -39
  77. package/lib/components/editors/TMSummary.js +39 -39
  78. package/lib/components/editors/TMTextArea.js +12 -12
  79. package/lib/components/editors/TMTextBox.js +19 -19
  80. package/lib/components/features/assistant/ToppyHelpCenter.js +114 -114
  81. package/lib/components/features/blog/TMBlogCommentForm.js +3 -3
  82. package/lib/components/features/documents/TMDcmtIcon.js +8 -8
  83. package/lib/components/features/documents/TMDcmtPreview.js +30 -30
  84. package/lib/components/features/documents/TMFileUploader.js +21 -21
  85. package/lib/components/features/search/TMSavedQuerySelector.js +51 -51
  86. package/lib/components/features/search/TMSearchQueryEditor.js +13 -13
  87. package/lib/components/features/search/TMSearchQueryPanel.js +30 -30
  88. package/lib/components/features/search/TMSearchResult.js +3 -3
  89. package/lib/components/features/search/TMTreeSelector.js +66 -66
  90. package/lib/components/features/tasks/TMTaskForm.js +31 -31
  91. package/lib/components/features/wg/TMWGsCopyMoveForm.js +9 -9
  92. package/lib/components/features/workflow/TMWorkflowPopup.js +41 -41
  93. package/lib/components/features/workflow/diagram/ConnectionComponent.js +29 -29
  94. package/lib/components/features/workflow/diagram/ConnectionForm.js +10 -10
  95. package/lib/components/features/workflow/diagram/DiagramItemComponent.js +57 -57
  96. package/lib/components/features/workflow/diagram/DiagramItemForm.js +29 -29
  97. package/lib/components/features/workflow/diagram/DiagramItemSvgContent.js +12 -12
  98. package/lib/components/features/workflow/diagram/RecipientList.js +38 -38
  99. package/lib/components/features/workflow/diagram/WFDiagram.js +278 -278
  100. package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.js +4 -4
  101. package/lib/components/forms/Login/Chooser.js +35 -35
  102. package/lib/components/forms/Login/Menu.js +22 -22
  103. package/lib/components/forms/Login/SelectBox.js +46 -46
  104. package/lib/components/forms/Login/TMLoginForm.js +14 -14
  105. package/lib/components/forms/Login/TextBox.js +57 -57
  106. package/lib/components/grids/TMBlogsPostUtils.js +5 -5
  107. package/lib/components/grids/TMRecentsManager.js +50 -50
  108. package/lib/components/grids/TMValidationItemsList.js +48 -48
  109. package/lib/components/layout/panelManager/TMPanelManagerContainer.js +12 -12
  110. package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +34 -34
  111. package/lib/components/query/TMQueryEditor.js +17 -17
  112. package/lib/components/query/TMQuerySummary.js +12 -12
  113. package/lib/components/settings/SettingsAppearance.js +0 -8
  114. package/lib/components/sidebar/TMCommandsPanel.js +10 -10
  115. package/lib/components/sidebar/TMHeader.js +307 -307
  116. package/lib/components/sidebar/TMSidebar.js +24 -24
  117. package/lib/components/sidebar/TMSidebarItem.js +21 -21
  118. package/lib/components/wizard/TMStepIndicator.js +102 -102
  119. package/lib/components/wizard/TMWizard.js +29 -29
  120. package/lib/helper/SDKUI_Globals.d.ts +0 -2
  121. package/lib/helper/SDKUI_Globals.js +1 -9
  122. package/lib/helper/TMIcons.js +1 -1
  123. package/lib/helper/TMToppyMessage.js +30 -30
  124. package/lib/helper/TMUtils.js +37 -37
  125. package/package.json +54 -54
@@ -8,67 +8,67 @@ import styled from 'styled-components';
8
8
  import { IconArrowLeft, IconClearButton, IconWindowMaximize, IconWindowMinimize, isPositiveNumber, SDKUI_Localizator } from '../../helper';
9
9
  import TMButton from './TMButton';
10
10
  import { Gutters } from '../../utils/theme';
11
- const StyledPanelContainer = styled.div `
12
- width: 100%;
13
- height: 100%;
14
- font-size: 1rem;
15
- box-shadow: 3px 3px 5px #D3D3D3BF;
16
- border-radius: 10px;
17
- opacity: 1;
18
- background: #FFFFFF;
19
- min-height: 0;
20
- overflow: hidden;
21
- position: ${({ $isMaximized }) => $isMaximized ? 'fixed' : 'relative'};
22
- top: ${({ $isMaximized }) => $isMaximized ? '50px' : 'auto'};
23
- left: ${({ $isMaximized }) => $isMaximized ? '50px' : 'auto'};
24
- width: ${({ $isMaximized }) => $isMaximized ? `calc(100vw - 50px - (${Gutters.getGutters()}px * 2))` : '100%'};
25
- height: ${({ $isMaximized }) => $isMaximized ? `calc(100vh - 50px - (${Gutters.getGutters()}px * 2))` : '100%'};
26
- z-index: ${({ $isMaximized }) => $isMaximized ? 2000 : 'auto'};
27
- margin: ${({ $isMaximized }) => $isMaximized ? `${Gutters.getGutters()}px` : '0'};
28
- /* transition: all 0.2s; */
11
+ const StyledPanelContainer = styled.div `
12
+ width: 100%;
13
+ height: 100%;
14
+ font-size: 1rem;
15
+ box-shadow: 3px 3px 5px #D3D3D3BF;
16
+ border-radius: 10px;
17
+ opacity: 1;
18
+ background: #FFFFFF;
19
+ min-height: 0;
20
+ overflow: hidden;
21
+ position: ${({ $isMaximized }) => $isMaximized ? 'fixed' : 'relative'};
22
+ top: ${({ $isMaximized }) => $isMaximized ? '50px' : 'auto'};
23
+ left: ${({ $isMaximized }) => $isMaximized ? '50px' : 'auto'};
24
+ width: ${({ $isMaximized }) => $isMaximized ? `calc(100vw - 50px - (${Gutters.getGutters()}px * 2))` : '100%'};
25
+ height: ${({ $isMaximized }) => $isMaximized ? `calc(100vh - 50px - (${Gutters.getGutters()}px * 2))` : '100%'};
26
+ z-index: ${({ $isMaximized }) => $isMaximized ? 2000 : 'auto'};
27
+ margin: ${({ $isMaximized }) => $isMaximized ? `${Gutters.getGutters()}px` : '0'};
28
+ /* transition: all 0.2s; */
29
29
  `;
30
- const StyledPanelHeader = styled.div `
31
- width:100% ;
32
- display: flex;
33
- flex-direction: row;
34
- align-items: center;
35
- justify-content: flex-start;
36
- padding: 4px 10px;
30
+ const StyledPanelHeader = styled.div `
31
+ width:100% ;
32
+ display: flex;
33
+ flex-direction: row;
34
+ align-items: center;
35
+ justify-content: flex-start;
36
+ padding: 4px 10px;
37
37
  background: ${({ $isActive, $backgroundColor }) => $isActive
38
38
  ? 'linear-gradient(270deg, #46B5A2 16%, #3BAABC 34%, #3BAABC 34%, #3681AD 54%, #3368A5 72%, #2F549D 88%, #304F99 100%)'
39
- : ($backgroundColor ?? '#F4F4F4')};
40
- box-shadow: 3px 3px 5px #D3D3D3BF;
41
- color: ${({ $isActive, $color }) => $isActive ? '#FFFFFF' : ($color ?? '#2559A5')};
42
- border-top-right-radius: 10px;
43
- border-top-left-radius: 10px;
44
- height: 40px;
45
- font-weight: 600;
46
- outline: none;
47
- &:focus {
48
- outline: none;
49
- }
50
- // Ensure all children inherit the header color
51
- &,
52
- * {
53
- color: ${({ $isActive, $color }) => $isActive ? '#FFFFFF' : ($color ?? '#2559A5')} !important;
54
- }
39
+ : ($backgroundColor ?? '#F4F4F4')};
40
+ box-shadow: 3px 3px 5px #D3D3D3BF;
41
+ color: ${({ $isActive, $color }) => $isActive ? '#FFFFFF' : ($color ?? '#2559A5')};
42
+ border-top-right-radius: 10px;
43
+ border-top-left-radius: 10px;
44
+ height: 40px;
45
+ font-weight: 600;
46
+ outline: none;
47
+ &:focus {
48
+ outline: none;
49
+ }
50
+ // Ensure all children inherit the header color
51
+ &,
52
+ * {
53
+ color: ${({ $isActive, $color }) => $isActive ? '#FFFFFF' : ($color ?? '#2559A5')} !important;
54
+ }
55
55
  `;
56
- const StyledPanelContent = styled.div `
57
- width: 100%;
58
- height: ${props => props.$height};
59
- min-height: 0;
60
- overflow: hidden;
61
- border-bottom-right-radius: 10px;
62
- border-bottom-left-radius: 10px;
63
- padding: ${props => props.$padding};
64
- display: flex;
65
- justify-content: space-between;
66
- position: relative;
67
- user-select: none;
68
- outline: none;
69
- &:focus {
70
- outline: none;
71
- }
56
+ const StyledPanelContent = styled.div `
57
+ width: 100%;
58
+ height: ${props => props.$height};
59
+ min-height: 0;
60
+ overflow: hidden;
61
+ border-bottom-right-radius: 10px;
62
+ border-bottom-left-radius: 10px;
63
+ padding: ${props => props.$padding};
64
+ display: flex;
65
+ justify-content: space-between;
66
+ position: relative;
67
+ user-select: none;
68
+ outline: none;
69
+ &:focus {
70
+ outline: none;
71
+ }
72
72
  `;
73
73
  const TMPanel = forwardRef(({ allowMaximize = true, color, backgroundColor, backgroundColorContainer, children, showHeader = true, title, totalItems, displayedItemsCount, toolbar, padding = '5px', isVisible = true, panelID = 'tmpanel', isActive, // Questa prop determinerà la modalità
74
74
  onActivate, onBack, onClose, onHeaderDoubleClick, onMaximize, onActiveChanged }, ref) => {
@@ -20,65 +20,65 @@ export var ButtonNames;
20
20
  ButtonNames["OK"] = "OK";
21
21
  ButtonNames["CANCEL"] = "Cancel";
22
22
  })(ButtonNames || (ButtonNames = {}));
23
- const StyledExeptionToolbar = styled.div `
24
- display: flex;
25
- flex-direction: row;
26
- justify-content: center;
27
- align-items: center;
28
- gap: 5px;
29
- padding: 5px;
30
- user-select: none;
31
- border-top: 1px solid #f3f3f3;
32
- /* background-color: ${TMColors.primary_container}; */
33
- background-color: white;
23
+ const StyledExeptionToolbar = styled.div `
24
+ display: flex;
25
+ flex-direction: row;
26
+ justify-content: center;
27
+ align-items: center;
28
+ gap: 5px;
29
+ padding: 5px;
30
+ user-select: none;
31
+ border-top: 1px solid #f3f3f3;
32
+ /* background-color: ${TMColors.primary_container}; */
33
+ background-color: white;
34
34
  `;
35
- const StyledMessageToolbar = styled.div `
36
- position: relative;
37
- display: flex;
38
- flex-direction: row;
39
- justify-content: flex-end;
40
- align-items: center;
41
- gap: clamp(2px, 1vw, 5px);
42
- padding: clamp(3px, 1vw, 5px);
43
- user-select: none;
44
- border-top: 1px solid #f3f3f3;
45
- background-color: #ffffff;
46
- z-index: 100;
47
- flex-wrap: wrap;
48
-
49
- @media (max-width: 200px) {
50
- flex-direction: column;
51
- gap: 2px;
52
- padding: 3px;
53
- justify-content: center;
54
- }
55
-
56
- @media (max-width: 150px) {
57
- padding: 2px;
58
- gap: 1px;
59
- }
35
+ const StyledMessageToolbar = styled.div `
36
+ position: relative;
37
+ display: flex;
38
+ flex-direction: row;
39
+ justify-content: flex-end;
40
+ align-items: center;
41
+ gap: clamp(2px, 1vw, 5px);
42
+ padding: clamp(3px, 1vw, 5px);
43
+ user-select: none;
44
+ border-top: 1px solid #f3f3f3;
45
+ background-color: #ffffff;
46
+ z-index: 100;
47
+ flex-wrap: wrap;
48
+
49
+ @media (max-width: 200px) {
50
+ flex-direction: column;
51
+ gap: 2px;
52
+ padding: 3px;
53
+ justify-content: center;
54
+ }
55
+
56
+ @media (max-width: 150px) {
57
+ padding: 2px;
58
+ gap: 1px;
59
+ }
60
60
  `;
61
- const TabContextContainer = styled.div `
62
- padding: 10px;
63
- height: 100%;
64
- width: 100%;
65
- border-radius: 5px;
66
- overflow: auto;
67
- user-select: none;
68
- position: relative;
61
+ const TabContextContainer = styled.div `
62
+ padding: 10px;
63
+ height: 100%;
64
+ width: 100%;
65
+ border-radius: 5px;
66
+ overflow: auto;
67
+ user-select: none;
68
+ position: relative;
69
69
  `;
70
- const StyledAppVersionText = styled.p `
71
- width: '200px';
72
- display: 'flex';
73
- flex-direction: row;
74
- justify-content: space-between;
75
- align-items: center;
76
- color: ${props => props.$color};
70
+ const StyledAppVersionText = styled.p `
71
+ width: '200px';
72
+ display: 'flex';
73
+ flex-direction: row;
74
+ justify-content: space-between;
75
+ align-items: center;
76
+ color: ${props => props.$color};
77
77
  `;
78
- const StyledCopyInclipBoardButtonContainer = styled.div `
79
- position: absolute;
80
- bottom: 10px;
81
- right: 10px;
78
+ const StyledCopyInclipBoardButtonContainer = styled.div `
79
+ position: absolute;
80
+ bottom: 10px;
81
+ right: 10px;
82
82
  `;
83
83
  const Message = ({ msg }) => {
84
84
  let wrapper = document.createElement('div');
@@ -89,68 +89,68 @@ const Message = ({ msg }) => {
89
89
  }, []);
90
90
  return (_jsx("div", { ref: containerRef }));
91
91
  };
92
- const ResponsiveMessageContainer = styled.div `
93
- display: flex;
94
- flex-direction: column;
95
- height: 100%;
96
- width: 100%;
97
- background-color: #ffffff;
92
+ const ResponsiveMessageContainer = styled.div `
93
+ display: flex;
94
+ flex-direction: column;
95
+ height: 100%;
96
+ width: 100%;
97
+ background-color: #ffffff;
98
98
  `;
99
- const ResponsiveMessageContent = styled.div `
100
- flex: 1;
101
- display: flex;
102
- flex-direction: column;
103
- align-items: center;
104
- justify-content: center;
105
- gap: clamp(8px, 2vw, 20px);
106
- padding: clamp(8px, 3vw, 25px) clamp(5px, 2vw, 30px);
107
- min-height: clamp(80px, 15vh, 120px);
108
-
109
- @media (min-width: 300px) {
110
- flex-direction: ${props => props.$isMobile ? 'column' : 'row'};
111
- }
112
-
113
- @media (max-width: 200px) {
114
- padding: 5px;
115
- gap: 5px;
116
- min-height: 60px;
117
- }
99
+ const ResponsiveMessageContent = styled.div `
100
+ flex: 1;
101
+ display: flex;
102
+ flex-direction: column;
103
+ align-items: center;
104
+ justify-content: center;
105
+ gap: clamp(8px, 2vw, 20px);
106
+ padding: clamp(8px, 3vw, 25px) clamp(5px, 2vw, 30px);
107
+ min-height: clamp(80px, 15vh, 120px);
108
+
109
+ @media (min-width: 300px) {
110
+ flex-direction: ${props => props.$isMobile ? 'column' : 'row'};
111
+ }
112
+
113
+ @media (max-width: 200px) {
114
+ padding: 5px;
115
+ gap: 5px;
116
+ min-height: 60px;
117
+ }
118
118
  `;
119
- const ResponsiveToppyImage = styled.img `
120
- width: clamp(25px, 8vw, 60px);
121
- height: clamp(31px, 10vw, 75px);
122
- flex-shrink: 0;
123
- transform: ${props => props.$isMobile ? 'none' : 'translateY(8px)'};
124
-
125
- @media (max-width: 200px) {
126
- width: 20px;
127
- height: 25px;
128
- transform: none;
129
- }
130
-
131
- @media (min-width: 300px) {
132
- transform: ${props => props.$isMobile ? 'none' : 'translateY(8px)'};
133
- }
119
+ const ResponsiveToppyImage = styled.img `
120
+ width: clamp(25px, 8vw, 60px);
121
+ height: clamp(31px, 10vw, 75px);
122
+ flex-shrink: 0;
123
+ transform: ${props => props.$isMobile ? 'none' : 'translateY(8px)'};
124
+
125
+ @media (max-width: 200px) {
126
+ width: 20px;
127
+ height: 25px;
128
+ transform: none;
129
+ }
130
+
131
+ @media (min-width: 300px) {
132
+ transform: ${props => props.$isMobile ? 'none' : 'translateY(8px)'};
133
+ }
134
134
  `;
135
- const ResponsiveMessageText = styled.div `
136
- flex: 1;
137
- text-align: center;
138
- font-size: clamp(12px, 2.5vw, 14px);
139
- line-height: clamp(1.2, 1.4, 1.4);
140
- color: #333;
141
- word-wrap: break-word;
142
- overflow-wrap: break-word;
143
- hyphens: auto;
144
- min-width: 0;
145
-
146
- @media (min-width: 300px) {
147
- text-align: ${props => props.$isMobile ? 'center' : 'left'};
148
- }
149
-
150
- @media (max-width: 150px) {
151
- font-size: 8px;
152
- line-height: 1.1;
153
- }
135
+ const ResponsiveMessageText = styled.div `
136
+ flex: 1;
137
+ text-align: center;
138
+ font-size: clamp(12px, 2.5vw, 14px);
139
+ line-height: clamp(1.2, 1.4, 1.4);
140
+ color: #333;
141
+ word-wrap: break-word;
142
+ overflow-wrap: break-word;
143
+ hyphens: auto;
144
+ min-width: 0;
145
+
146
+ @media (min-width: 300px) {
147
+ text-align: ${props => props.$isMobile ? 'center' : 'left'};
148
+ }
149
+
150
+ @media (max-width: 150px) {
151
+ font-size: 8px;
152
+ line-height: 1.1;
153
+ }
154
154
  `;
155
155
  // ResponsiveButton wrapper component to avoid circular dependency
156
156
  const ResponsiveButton = (props) => {
@@ -2,28 +2,28 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import styled from 'styled-components';
3
3
  import { getColor } from '../../helper';
4
4
  import { Colors } from '../../utils/theme';
5
- const StyledWrapper = styled.div `
6
- display: flex;
7
- flex-direction: row;
8
- justify-content: flex-end;
9
- align-items: center;
10
- width: fit-content;
5
+ const StyledWrapper = styled.div `
6
+ display: flex;
7
+ flex-direction: row;
8
+ justify-content: flex-end;
9
+ align-items: center;
10
+ width: fit-content;
11
11
  `;
12
- const StyledProgressBarContainer = styled.div `
13
- width: 200px;
14
- background-color: white;
15
- height: 12px;
16
- border-radius: 5px;
17
- border: 1px solid ${props => getColor(props.color)};
18
- overflow: hidden;
12
+ const StyledProgressBarContainer = styled.div `
13
+ width: 200px;
14
+ background-color: white;
15
+ height: 12px;
16
+ border-radius: 5px;
17
+ border: 1px solid ${props => getColor(props.color)};
18
+ overflow: hidden;
19
19
  `;
20
- const StyledProgressBar = styled.div.withConfig({ shouldForwardProp: prop => !['currentValue'].includes(prop) }) `
21
- width: ${props => `${200 * props.currentValue}px`};
22
- background: rgb(2,0,36);
23
- background: linear-gradient(270deg, ${Colors.primary} 0%, ${Colors.primary} 35%, ${Colors.secondary});
24
- height: 12px;
25
- border-radius: 5px;
26
- /* border: 1px solid ${props => getColor(props.color)}; */
20
+ const StyledProgressBar = styled.div.withConfig({ shouldForwardProp: prop => !['currentValue'].includes(prop) }) `
21
+ width: ${props => `${200 * props.currentValue}px`};
22
+ background: rgb(2,0,36);
23
+ background: linear-gradient(270deg, ${Colors.primary} 0%, ${Colors.primary} 35%, ${Colors.secondary});
24
+ height: 12px;
25
+ border-radius: 5px;
26
+ /* border: 1px solid ${props => getColor(props.color)}; */
27
27
  `;
28
28
  const TMProgressBar = ({ currentValue = 0, color = 'primary', elementStyle, onAbort }) => {
29
29
  // console.log(currentValue)
@@ -65,34 +65,34 @@ export const TMResizableMenu = forwardRef(({ isVisible, onClose, top, left, bott
65
65
  return createPortal(menuContent, portalRoot);
66
66
  });
67
67
  export default TMResizableMenu;
68
- const MenuContainer = styled.div `
69
- position: absolute;
70
- display: ${({ $display }) => $display};
71
- background-color: white;
72
- border: 1px solid #ccc;
73
- box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
74
- overflow: auto;
75
- max-width: ${({ $maxWidth }) => ($maxWidth ? `${$maxWidth}px` : 'none')};
76
- max-height: ${({ $maxHeight }) => ($maxHeight ? `${$maxHeight}px` : 'none')};
77
- border-radius: 6px;
78
- padding: ${({ $padding }) => ($padding !== undefined ? `${$padding}px` : '16px')};
79
- z-index: 1532;
80
- min-width: ${({ $minWidth }) => `${$minWidth ?? 350}px`};
81
- min-height: ${({ $minHeight }) => `${$minHeight ?? 500}px`};
68
+ const MenuContainer = styled.div `
69
+ position: absolute;
70
+ display: ${({ $display }) => $display};
71
+ background-color: white;
72
+ border: 1px solid #ccc;
73
+ box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
74
+ overflow: auto;
75
+ max-width: ${({ $maxWidth }) => ($maxWidth ? `${$maxWidth}px` : 'none')};
76
+ max-height: ${({ $maxHeight }) => ($maxHeight ? `${$maxHeight}px` : 'none')};
77
+ border-radius: 6px;
78
+ padding: ${({ $padding }) => ($padding !== undefined ? `${$padding}px` : '16px')};
79
+ z-index: 1532;
80
+ min-width: ${({ $minWidth }) => `${$minWidth ?? 350}px`};
81
+ min-height: ${({ $minHeight }) => `${$minHeight ?? 500}px`};
82
82
  `;
83
- const ResizeHandle = styled.div `
84
- position: absolute;
85
- width: 16px;
86
- height: 16px;
87
- right: 0;
88
- bottom: 0;
89
- cursor: se-resize;
90
- background: linear-gradient(135deg, transparent 40%, #ccc 40%, #ccc 60%, transparent 60%);
83
+ const ResizeHandle = styled.div `
84
+ position: absolute;
85
+ width: 16px;
86
+ height: 16px;
87
+ right: 0;
88
+ bottom: 0;
89
+ cursor: se-resize;
90
+ background: linear-gradient(135deg, transparent 40%, #ccc 40%, #ccc 60%, transparent 60%);
91
91
  `;
92
- const ResizeOverlay = styled.div `
93
- position: fixed;
94
- inset: 0;
95
- z-index: 1531;
96
- pointer-events: all;
97
- cursor: se-resize;
92
+ const ResizeOverlay = styled.div `
93
+ position: fixed;
94
+ inset: 0;
95
+ z-index: 1531;
96
+ pointer-events: all;
97
+ cursor: se-resize;
98
98
  `;
@@ -36,45 +36,45 @@ const TMRightSidebar = ({ items = [], onItemClick, selectedItem, showPanel = fal
36
36
  };
37
37
  export default TMRightSidebar;
38
38
  // Styled Components
39
- const SidebarContainer = styled.div `
40
- width: 30px;
41
- height: 100%;
42
- display: flex;
43
- flex-direction: column;
44
- align-items: center;
45
- background-color: #203e5a;
46
- transition: width 0.3s ease;
47
- border-bottom-right-radius: 10px;
39
+ const SidebarContainer = styled.div `
40
+ width: 30px;
41
+ height: 100%;
42
+ display: flex;
43
+ flex-direction: column;
44
+ align-items: center;
45
+ background-color: #203e5a;
46
+ transition: width 0.3s ease;
47
+ border-bottom-right-radius: 10px;
48
48
  `;
49
- const StyledMenuItem = styled.div `
50
- width: 100%;
51
- display: flex;
52
- align-items: center;
53
- padding: 8px 0;
54
- color: ${props => !props.$disabled ? (props.$isSelected ? props.$selectedColor ?? (TMColors.tertiary) : '#fff') : '#929292'};
55
- cursor: ${props => props.$disabled ? 'default' : 'pointer'};
56
- position: relative;
57
- justify-content: center;
58
- background-color: ${props => !props.$disabled ? (props.$isSelected ? '#2e2e2e' : 'transparent') : 'transparent'};
59
- transition: background-color 0.3s ease, color 0.3s ease;
60
-
61
- &:hover {
62
- background-color: ${props => !props.$disabled && (TMColors.primaryColor)};
63
- }
64
-
65
- span {
66
- position: absolute;
67
- right: 40px;
68
- white-space: nowrap;
69
- overflow: hidden;
70
- font-size: 14px;
71
- opacity: ${({ $isHovered }) => ($isHovered ? 1 : 0)};
72
- padding: 4px 8px;
73
- background-color: #222;
74
- border-radius: 4px;
75
- color: #fff;
76
- pointer-events: none;
77
- transition: opacity 0.1s ease, transform 0.1s ease;
78
- transform: ${({ $isHovered }) => ($isHovered ? 'translateX(0)' : 'translateX(20px)')};
79
- }
49
+ const StyledMenuItem = styled.div `
50
+ width: 100%;
51
+ display: flex;
52
+ align-items: center;
53
+ padding: 8px 0;
54
+ color: ${props => !props.$disabled ? (props.$isSelected ? props.$selectedColor ?? (TMColors.tertiary) : '#fff') : '#929292'};
55
+ cursor: ${props => props.$disabled ? 'default' : 'pointer'};
56
+ position: relative;
57
+ justify-content: center;
58
+ background-color: ${props => !props.$disabled ? (props.$isSelected ? '#2e2e2e' : 'transparent') : 'transparent'};
59
+ transition: background-color 0.3s ease, color 0.3s ease;
60
+
61
+ &:hover {
62
+ background-color: ${props => !props.$disabled && (TMColors.primaryColor)};
63
+ }
64
+
65
+ span {
66
+ position: absolute;
67
+ right: 40px;
68
+ white-space: nowrap;
69
+ overflow: hidden;
70
+ font-size: 14px;
71
+ opacity: ${({ $isHovered }) => ($isHovered ? 1 : 0)};
72
+ padding: 4px 8px;
73
+ background-color: #222;
74
+ border-radius: 4px;
75
+ color: #fff;
76
+ pointer-events: none;
77
+ transition: opacity 0.1s ease, transform 0.1s ease;
78
+ transform: ${({ $isHovered }) => ($isHovered ? 'translateX(0)' : 'translateX(20px)')};
79
+ }
80
80
  `;