@connectif/ui-components 2.4.3 → 3.0.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## [2.4.3] (2025-11-25)
3
+ ## [2.4.3] - 2025-11-25
4
4
 
5
5
  ### Performance Improvements
6
6
 
@@ -13,3 +13,42 @@
13
13
  - Added optional showTime prop in DateIntervalPicker component.
14
14
  - Added optional keepMounted prop in TabContent.
15
15
  - Added optional disableContentScroll prop in Tabs component.
16
+
17
+ ## [3.0.0] - 2025-12-11
18
+
19
+ ### Added
20
+
21
+ - `Tabs` now supports a `hideScrollButtons` and `hideLineTabs` prop.
22
+
23
+ ### Changed
24
+
25
+ - `Tabs` changes its styles to match the new design.
26
+ - `DateIntervalPicker` changes buttons styles.
27
+
28
+ ### Fixed
29
+
30
+ - Fixed an issue where reloading the `Tabs` component on a non-first tab caused an unwanted scroll effect.
31
+ - Fixed change interval when showTime is true.
32
+
33
+ ### Improvements
34
+
35
+ - Upgrade to Typescript 5.9
36
+ - Upgrade cspell to 6.0.0 (latest)
37
+
38
+ ### ⚠️ Breaking Changes
39
+
40
+ - `TabButton` no longer accepts the `disableUppercase` prop; Text always will be lowercase.
41
+
42
+ ## [3.0.1] - 2025-12-12
43
+
44
+ ### Added
45
+
46
+ - Added new formatter called `PhoneFormatter`.
47
+
48
+ ### Fixed
49
+
50
+ - Fixed bug with timezone in `DateIntervalPicker`
51
+
52
+ ### Improvements
53
+
54
+ - Added new changelog tab to storybook.
@@ -0,0 +1,16 @@
1
+ import { PhoneFormat } from '../../utils';
2
+ export type PhoneFormatterProps = {
3
+ /**
4
+ * Phone to format
5
+ */
6
+ phone: string;
7
+ /**
8
+ * Format to use
9
+ */
10
+ format?: PhoneFormat;
11
+ };
12
+ /**
13
+ * Component to format phone to the given format.
14
+ */
15
+ declare const PhoneFormatter: ({ phone, format }: PhoneFormatterProps) => import("react/jsx-runtime").JSX.Element;
16
+ export default PhoneFormatter;
@@ -8,3 +8,5 @@ export { default as PercentageFormatter } from './PercentageFormatter';
8
8
  export type { PercentageFormatterProps } from './PercentageFormatter';
9
9
  export { default as DateFormatter } from './DateFormatter';
10
10
  export type { DateFormatterProps } from './DateFormatter';
11
+ export { default as PhoneFormatter } from './PhoneFormatter';
12
+ export type { PhoneFormatterProps } from './PhoneFormatter';
@@ -14,17 +14,11 @@ export type TabButtonProps = React.PropsWithChildren<{
14
14
  * Right margin of the tab
15
15
  */
16
16
  marginRight?: number | string;
17
- /**
18
- * Whether the tab button text is in uppercase or not.
19
- * If true, text will not be transformed to uppercase.
20
- * @default false
21
- */
22
- disableUppercase?: boolean;
23
17
  dataTestId?: string;
24
18
  }>;
25
19
  /**
26
20
  * A TabButton is a button that can be used to switch between tabs.
27
21
  * It is usually used in a Tabs component.
28
22
  */
29
- declare const TabButton: ({ children, disabled, textAlign, marginRight, dataTestId, disableUppercase, ...rest }: TabButtonProps) => import("react/jsx-runtime").JSX.Element;
23
+ declare const TabButton: ({ children, disabled, textAlign, marginRight, dataTestId, ...rest }: TabButtonProps) => import("react/jsx-runtime").JSX.Element;
30
24
  export default TabButton;
@@ -42,6 +42,14 @@ export type TabsProps = {
42
42
  * Hide scroll in tab content
43
43
  */
44
44
  disableContentScroll?: boolean;
45
+ /**
46
+ * Hide scroll in tab buttons
47
+ */
48
+ hideScrollButtons?: boolean;
49
+ /**
50
+ * Hide grey line in tabs
51
+ */
52
+ hideLineTabs?: boolean;
45
53
  };
46
54
  /**
47
55
  * Define a Tabs container, with a fixed header and a transitions on change between tabs.
@@ -52,5 +60,5 @@ export type TabsProps = {
52
60
  * define a callback function to be called when the tab is clicked, so you can do something
53
61
  * with the current tab index.
54
62
  */
55
- declare const Tabs: ({ tabButtons, children, currentTabIndex, onChangeTab, variant, fullHeight, contained, scrollbarGutter, disableContentScroll }: TabsProps) => import("react/jsx-runtime").JSX.Element;
63
+ declare const Tabs: ({ tabButtons, children, currentTabIndex, onChangeTab, variant, fullHeight, contained, scrollbarGutter, disableContentScroll, hideScrollButtons, hideLineTabs }: TabsProps) => import("react/jsx-runtime").JSX.Element;
56
64
  export default Tabs;
@@ -1,8 +1,10 @@
1
1
  import { DateTimeFormat } from '../utils/DateUtils';
2
+ import { PhoneFormat } from '../utils';
2
3
  export declare const useFormatters: () => {
3
4
  formatCompactNumber: (value: number) => string;
4
5
  formatNumber: (value: number, fractionSize?: number | undefined) => string;
5
6
  formatPercentage: (value: number, fractionSize?: 0 | 1 | 2 | 3) => string;
6
7
  formatCurrency: (value: number, notation?: "compact") => string;
7
8
  formatDate: (date: Date, format?: DateTimeFormat) => string;
9
+ formatPhone: (phone: string, format?: PhoneFormat) => string;
8
10
  };