@connectif/ui-components 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -5
- package/dist/components/tab/Tabs.d.ts +5 -1
- package/dist/index.js +34 -7
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## [2.4.3] - 2025-11-25
|
|
4
4
|
|
|
5
|
-
###
|
|
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
|
-
###
|
|
33
|
+
### Security
|
|
34
34
|
|
|
35
35
|
- Upgrade to Typescript 5.9
|
|
36
36
|
- Upgrade cspell to 6.0.0 (latest)
|
|
37
37
|
|
|
38
|
-
###
|
|
38
|
+
### Removed
|
|
39
39
|
|
|
40
40
|
- `TabButton` no longer accepts the `disableUppercase` prop; Text always will be lowercase.
|
|
41
41
|
|
|
@@ -44,11 +44,18 @@
|
|
|
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
|
-
|
|
53
|
+
## [3.0.2] - 2025-12-16
|
|
53
54
|
|
|
54
|
-
|
|
55
|
+
### Added
|
|
56
|
+
|
|
57
|
+
- Added new styles for `Tabs`.
|
|
58
|
+
|
|
59
|
+
### Fixed
|
|
60
|
+
|
|
61
|
+
- Fixed bug with timezone in `DateIntervalPicker`
|
|
@@ -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;
|
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 ?
|
|
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 = "
|
|
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: "
|
|
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
|
}
|