@connectif/ui-components 3.0.0 → 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
@@ -38,3 +38,17 @@
38
38
  ### ⚠️ Breaking Changes
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
+
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';
@@ -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
  };