@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.
@@ -22,7 +22,9 @@ export declare function getDateInputFormatForLocale(locale: string): DateInputFo
22
22
  * If the supplied string date is invalid, the returned date will be invalid.
23
23
  */
24
24
  export declare function parseDateForLocale(dateString: string, locale: string, timezone: string): Date;
25
- export declare function getDatesFromDateInterval(interval: Exclude<DateInterval, 'custom'>, maxSelectableDays: number, timezone: string): {
25
+ export declare function getDatesFromDateInterval(interval: Exclude<DateInterval, 'custom'>, maxSelectableDays: number, timezone: string, options?: {
26
+ includeTime: boolean;
27
+ }): {
26
28
  startDate: Date;
27
29
  endDate: Date;
28
30
  };
@@ -42,7 +44,7 @@ export declare function areSameSimpleDate(...simpleDates: (SimpleDate | null)[])
42
44
  * Return a SimpleDate representing the supplied date in the supplied timezone
43
45
  */
44
46
  export declare function dateToSimpleDate(date: Date | null | undefined, timezone: string): SimpleDate | null;
45
- export declare function getDisplayEndDate(date: Date, timezone: string): Date;
47
+ export declare function getDisplayEndDate(date: Date, timezone: string, includeTime: boolean): Date;
46
48
  /**
47
49
  * Return a date applying a time
48
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": "2.4.3",
3
+ "version": "3.0.1",
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",
@@ -28,8 +28,6 @@
28
28
  "@mui/x-date-pickers": "^8.2.0",
29
29
  "@tinymce/tinymce-react": "^4.3.2",
30
30
  "@uiw/react-codemirror": "4.21.24",
31
- "cspell": "^6.0.0",
32
- "cspell-dict-es-es": "^1.1.2",
33
31
  "echarts": "^5.4.1",
34
32
  "echarts-for-react": "3.0.2",
35
33
  "html-format": "^1.1.7",
@@ -59,7 +57,6 @@
59
57
  "@babel/preset-typescript": "^7.27.1",
60
58
  "@connectif/eslint-config": "^4.0.1",
61
59
  "@storybook/addon-essentials": "8.6.14",
62
- "@storybook/addon-storysource": "8.6.14",
63
60
  "@storybook/addon-webpack5-compiler-babel": "^3.0.6",
64
61
  "@storybook/codemod": "8.6.14",
65
62
  "@storybook/manager-api": "8.6.14",
@@ -68,6 +65,7 @@
68
65
  "@storybook/react-webpack5": "8.6.14",
69
66
  "@storybook/test": "^8.6.14",
70
67
  "@storybook/theming": "8.6.14",
68
+ "@storybook/types": "8.6.14",
71
69
  "@testing-library/jest-dom": "5.16.4",
72
70
  "@testing-library/react": "14.3.1",
73
71
  "@testing-library/user-event": "14.2.0",
@@ -82,6 +80,8 @@
82
80
  "babel-loader": "^8.2.4",
83
81
  "better-npm-audit": "^3.7.3",
84
82
  "chokidar-cli": "^3.0.0",
83
+ "cspell": "^9.4.0",
84
+ "cspell-dict-es-es": "^1.1.2",
85
85
  "esbuild": "^0.25.3",
86
86
  "esbuild-css-modules-plugin": "^3.1.4",
87
87
  "esbuild-node-externals": "^1.18.0",
@@ -94,9 +94,10 @@
94
94
  "prettier": "^3.2.5",
95
95
  "storybook": "8.6.14",
96
96
  "storybook-react-context": "0.6.0",
97
+ "ts-dedent": "^2.2.0",
97
98
  "ts-essentials": "^9.3.0",
98
99
  "ts-jest": "^29.1.0",
99
- "typescript": "^5.4.5"
100
+ "typescript": "^5.9.3"
100
101
  },
101
102
  "peerDependencies": {
102
103
  "react": "^18.3.1",