@connectif/ui-components 3.0.1 → 3.0.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.
package/CHANGELOG.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## [2.4.3] - 2025-11-25
4
4
 
5
- ### Performance Improvements
5
+ ### Added
6
6
 
7
7
  - Added changelog file in package.
8
8
  - Added optional centeredInScreen and paddingContent props to the SelectPopover component.
@@ -30,12 +30,12 @@
30
30
  - Fixed an issue where reloading the `Tabs` component on a non-first tab caused an unwanted scroll effect.
31
31
  - Fixed change interval when showTime is true.
32
32
 
33
- ### Improvements
33
+ ### Security
34
34
 
35
35
  - Upgrade to Typescript 5.9
36
36
  - Upgrade cspell to 6.0.0 (latest)
37
37
 
38
- ### ⚠️ Breaking Changes
38
+ ### Removed
39
39
 
40
40
  - `TabButton` no longer accepts the `disableUppercase` prop; Text always will be lowercase.
41
41
 
@@ -44,11 +44,24 @@
44
44
  ### Added
45
45
 
46
46
  - Added new formatter called `PhoneFormatter`.
47
+ - Added new changelog tab to storybook.
47
48
 
48
49
  ### Fixed
49
50
 
50
51
  - Fixed bug with timezone in `DateIntervalPicker`
51
52
 
52
- ### Improvements
53
+ ## [3.0.2] - 2025-12-16
53
54
 
54
- - Added new changelog tab to storybook.
55
+ ### Added
56
+
57
+ - Added new styles for `Tabs`.
58
+
59
+ ### Fixed
60
+
61
+ - Fixed bug with timezone in `DateIntervalPicker`
62
+
63
+ ## [3.0.3] - 2025-12-22
64
+
65
+ ### Added
66
+
67
+ - Added "minimizeIconId", "closeIconId" and "backIconId" props to MinimizableWindow component.
@@ -50,6 +50,10 @@ export type TabsProps = {
50
50
  * Hide grey line in tabs
51
51
  */
52
52
  hideLineTabs?: boolean;
53
+ /**
54
+ * Background for scroll buttons
55
+ */
56
+ backgroundScrollButtons?: string;
53
57
  };
54
58
  /**
55
59
  * Define a Tabs container, with a fixed header and a transitions on change between tabs.
@@ -60,5 +64,5 @@ export type TabsProps = {
60
64
  * define a callback function to be called when the tab is clicked, so you can do something
61
65
  * with the current tab index.
62
66
  */
63
- declare const Tabs: ({ tabButtons, children, currentTabIndex, onChangeTab, variant, fullHeight, contained, scrollbarGutter, disableContentScroll, hideScrollButtons, hideLineTabs }: TabsProps) => import("react/jsx-runtime").JSX.Element;
67
+ declare const Tabs: ({ tabButtons, children, currentTabIndex, onChangeTab, variant, fullHeight, contained, scrollbarGutter, disableContentScroll, hideScrollButtons, hideLineTabs, backgroundScrollButtons }: TabsProps) => import("react/jsx-runtime").JSX.Element;
64
68
  export default Tabs;
@@ -41,6 +41,18 @@ export type MinimizableWindowProps = React.PropsWithChildren<{
41
41
  * To change icon sizes. Default S
42
42
  */
43
43
  iconSizes?: IconButtonProps['size'];
44
+ /**
45
+ * The icon ID for the minimize button.
46
+ */
47
+ minimizeIconId?: IconButtonProps['iconId'];
48
+ /**
49
+ * The icon ID for the close button.
50
+ */
51
+ closeIconId?: IconButtonProps['iconId'];
52
+ /**
53
+ * The icon ID for the back button.
54
+ */
55
+ backIconId?: IconButtonProps['iconId'];
44
56
  /**
45
57
  * Callback fired when the component requests to be minimized.
46
58
  */
@@ -95,6 +107,18 @@ declare const MinimizableWindow: React.ForwardRefExoticComponent<{
95
107
  * To change icon sizes. Default S
96
108
  */
97
109
  iconSizes?: IconButtonProps["size"];
110
+ /**
111
+ * The icon ID for the minimize button.
112
+ */
113
+ minimizeIconId?: IconButtonProps["iconId"];
114
+ /**
115
+ * The icon ID for the close button.
116
+ */
117
+ closeIconId?: IconButtonProps["iconId"];
118
+ /**
119
+ * The icon ID for the back button.
120
+ */
121
+ backIconId?: IconButtonProps["iconId"];
98
122
  /**
99
123
  * Callback fired when the component requests to be minimized.
100
124
  */
package/dist/index.js CHANGED
@@ -5326,7 +5326,9 @@ var tabsTheme = {
5326
5326
  styleOverrides: {
5327
5327
  root: {
5328
5328
  borderBottom: "none",
5329
- minHeight: "40px"
5329
+ minHeight: "40px",
5330
+ marginRight: "0px",
5331
+ position: "relative"
5330
5332
  },
5331
5333
  indicator: {
5332
5334
  bottom: "0",
@@ -5334,7 +5336,26 @@ var tabsTheme = {
5334
5336
  borderRadius: "8px"
5335
5337
  },
5336
5338
  scrollButtons: {
5337
- width: "24px"
5339
+ width: "24px",
5340
+ position: "absolute",
5341
+ top: 0,
5342
+ height: "100%",
5343
+ display: "flex",
5344
+ alignItems: "center",
5345
+ zIndex: 2,
5346
+ "&:not(.Mui-disabled)": {
5347
+ opacity: 1
5348
+ },
5349
+ "&:first-of-type": {
5350
+ left: 0,
5351
+ right: "auto",
5352
+ justifyContent: "start"
5353
+ },
5354
+ "&:last-of-type": {
5355
+ right: 0,
5356
+ left: "auto",
5357
+ justifyContent: "end"
5358
+ }
5338
5359
  }
5339
5360
  }
5340
5361
  };
@@ -19934,7 +19955,7 @@ var DateIntervalPickerPopover = ({
19934
19955
  });
19935
19956
  };
19936
19957
  const handleApply = () => {
19937
- const parseEndDate = (dateString) => showTime ? new Date(dateString) : tz4(parseDate(dateString), timezone).add(1, "day").toDate();
19958
+ const parseEndDate = (dateString) => !showTime ? tz4(parseDate(dateString), timezone).add(1, "day").toDate() : tz4(parseDate(dateString), timezone).toDate();
19938
19959
  onApply({
19939
19960
  interval: state.interval,
19940
19961
  startDate: applyTimeToDate(
@@ -25841,7 +25862,7 @@ var TabButton = ({
25841
25862
  children,
25842
25863
  disabled = false,
25843
25864
  textAlign = "center",
25844
- marginRight = "24px",
25865
+ marginRight = "0px",
25845
25866
  dataTestId,
25846
25867
  ...rest
25847
25868
  }) => /* @__PURE__ */ jsx149(
@@ -25855,7 +25876,6 @@ var TabButton = ({
25855
25876
  flexDirection: "column",
25856
25877
  alignItems: textAlign === "left" ? "start" : "center",
25857
25878
  width: textAlign === "center" ? "100%" : void 0,
25858
- marginRight: "24px",
25859
25879
  textTransform: "none",
25860
25880
  ...variants["body1-semibold"]
25861
25881
  },
@@ -25866,7 +25886,7 @@ var TabButton = ({
25866
25886
  minHeight: "36px",
25867
25887
  alignItems: "start",
25868
25888
  justifyContent: "center",
25869
- padding: "10px 0",
25889
+ padding: "8px 12px",
25870
25890
  marginRight,
25871
25891
  borderRadius: "8px",
25872
25892
  transition: "background 0.2s",
@@ -26029,7 +26049,8 @@ var Tabs = ({
26029
26049
  scrollbarGutter,
26030
26050
  disableContentScroll = false,
26031
26051
  hideScrollButtons = false,
26032
- hideLineTabs = false
26052
+ hideLineTabs = false,
26053
+ backgroundScrollButtons = Colors_exports.white
26033
26054
  }) => {
26034
26055
  const tabsRef = React84.useRef(null);
26035
26056
  const [value, setValue] = React84.useState(0);
@@ -26151,6 +26172,12 @@ var Tabs = ({
26151
26172
  sx: {
26152
26173
  "&.Mui-disabled": {
26153
26174
  display: contained ? "none" : void 0
26175
+ },
26176
+ "&:first-of-type": {
26177
+ background: `linear-gradient(to left, transparent 0%, transparent 5%, ${backgroundScrollButtons} 28%, ${backgroundScrollButtons} 100%);`
26178
+ },
26179
+ "&:last-of-type": {
26180
+ background: `linear-gradient(to right, transparent 0%, transparent 5%, ${backgroundScrollButtons} 28%, ${backgroundScrollButtons} 100%);`
26154
26181
  }
26155
26182
  }
26156
26183
  }
@@ -26834,6 +26861,9 @@ var MinimizableWindow = React88.forwardRef(function MinimizableWindow2({
26834
26861
  targetElement,
26835
26862
  contentHeight,
26836
26863
  iconSizes: iconSizes4 = "S",
26864
+ minimizeIconId = "minus",
26865
+ closeIconId = "close",
26866
+ backIconId = "arrow-left",
26837
26867
  onMinimize,
26838
26868
  onClose,
26839
26869
  onBack
@@ -26986,7 +27016,7 @@ var MinimizableWindow = React88.forwardRef(function MinimizableWindow2({
26986
27016
  IconButton_default,
26987
27017
  {
26988
27018
  size: iconSizes4,
26989
- iconId: "arrow-left",
27019
+ iconId: backIconId,
26990
27020
  onClick: onBack,
26991
27021
  sx: iconButtonsStyles
26992
27022
  }
@@ -27023,7 +27053,7 @@ var MinimizableWindow = React88.forwardRef(function MinimizableWindow2({
27023
27053
  IconButton_default,
27024
27054
  {
27025
27055
  size: iconSizes4,
27026
- iconId: "minus",
27056
+ iconId: minimizeIconId,
27027
27057
  onClick: () => {
27028
27058
  applyMinimizeTransition();
27029
27059
  setTimeout(() => {
@@ -27045,7 +27075,7 @@ var MinimizableWindow = React88.forwardRef(function MinimizableWindow2({
27045
27075
  IconButton_default,
27046
27076
  {
27047
27077
  size: iconSizes4,
27048
- iconId: "close",
27078
+ iconId: closeIconId,
27049
27079
  onClick: onCloseModal,
27050
27080
  sx: iconButtonsStyles
27051
27081
  }