@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 +24 -3
- package/dist/components/formatter/PhoneFormatter.d.ts +16 -0
- package/dist/components/formatter/index.d.ts +2 -0
- package/dist/components/tab/Tabs.d.ts +5 -1
- package/dist/hooks/useFormatters.d.ts +2 -0
- package/dist/index.js +619 -514
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/DateUtils.d.ts +1 -1
- package/dist/utils/PhoneUtils.d.ts +2 -0
- package/package.json +3 -1
|
@@ -44,7 +44,7 @@ export declare function areSameSimpleDate(...simpleDates: (SimpleDate | null)[])
|
|
|
44
44
|
* Return a SimpleDate representing the supplied date in the supplied timezone
|
|
45
45
|
*/
|
|
46
46
|
export declare function dateToSimpleDate(date: Date | null | undefined, timezone: string): SimpleDate | null;
|
|
47
|
-
export declare function getDisplayEndDate(date: Date, timezone: string): Date;
|
|
47
|
+
export declare function getDisplayEndDate(date: Date, timezone: string, includeTime: boolean): Date;
|
|
48
48
|
/**
|
|
49
49
|
* Return a date applying a time
|
|
50
50
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type PhoneFormat = 'country' | 'phone' | 'all';
|
|
1
2
|
export declare const countryCodesFourDigits: Set<string>;
|
|
2
3
|
export declare const countryCodesThreeDigits: Set<string>;
|
|
3
4
|
export declare const countryCodesTwoDigits: Set<string>;
|
|
@@ -9,3 +10,4 @@ export declare const allCountries: {
|
|
|
9
10
|
export declare function getCountryCode(phone?: string): string;
|
|
10
11
|
export declare function getPhoneWithoutCountryCode(phone?: string, countryCode?: string): string;
|
|
11
12
|
export declare function isValidPhoneNumber(phone: string): boolean;
|
|
13
|
+
export declare function formatPhone(phone: string, format?: PhoneFormat): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@connectif/ui-components",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "A comprehensive UI component library for all Connectif projects.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"@storybook/react-webpack5": "8.6.14",
|
|
66
66
|
"@storybook/test": "^8.6.14",
|
|
67
67
|
"@storybook/theming": "8.6.14",
|
|
68
|
+
"@storybook/types": "8.6.14",
|
|
68
69
|
"@testing-library/jest-dom": "5.16.4",
|
|
69
70
|
"@testing-library/react": "14.3.1",
|
|
70
71
|
"@testing-library/user-event": "14.2.0",
|
|
@@ -93,6 +94,7 @@
|
|
|
93
94
|
"prettier": "^3.2.5",
|
|
94
95
|
"storybook": "8.6.14",
|
|
95
96
|
"storybook-react-context": "0.6.0",
|
|
97
|
+
"ts-dedent": "^2.2.0",
|
|
96
98
|
"ts-essentials": "^9.3.0",
|
|
97
99
|
"ts-jest": "^29.1.0",
|
|
98
100
|
"typescript": "^5.9.3"
|