@connectif/ui-components 3.0.0 → 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 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,11 +30,32 @@
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
+
42
+ ## [3.0.1] - 2025-12-12
43
+
44
+ ### Added
45
+
46
+ - Added new formatter called `PhoneFormatter`.
47
+ - Added new changelog tab to storybook.
48
+
49
+ ### Fixed
50
+
51
+ - Fixed bug with timezone in `DateIntervalPicker`
52
+
53
+ ## [3.0.2] - 2025-12-16
54
+
55
+ ### Added
56
+
57
+ - Added new styles for `Tabs`.
58
+
59
+ ### Fixed
60
+
61
+ - Fixed bug with timezone in `DateIntervalPicker`
@@ -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';
@@ -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;
@@ -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
  };