@srimandir/common 1.7.0 → 1.7.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/dist/common.js +1500 -1293
- package/dist/common.js.map +1 -1
- package/dist/common.umd.cjs +1 -14
- package/dist/common.umd.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/utils/phoneValidation.d.ts +6 -0
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -9,5 +9,6 @@
|
|
|
9
9
|
export { BottomSheet } from './components/BottomSheet';
|
|
10
10
|
export type { BottomSheetProps } from './components/BottomSheet';
|
|
11
11
|
export { cn } from './utils/cn';
|
|
12
|
+
export { validatePhoneByCountryCode, getMaxLengthForCountry } from './utils/phoneValidation';
|
|
12
13
|
export { createI18n } from './i18n';
|
|
13
14
|
export type { I18nContextValue } from './i18n';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Phone number is treated as optional — an empty string is always valid. */
|
|
2
|
+
export declare const validatePhoneByCountryCode: (phoneNumber: string, countryCode: string) => {
|
|
3
|
+
isValid: boolean;
|
|
4
|
+
error: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const getMaxLengthForCountry: (countryCode: string) => number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@srimandir/common",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Generic, product-agnostic UI primitives (bottom sheet, buttons, modals) shared across the Srimandir packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -53,5 +53,6 @@
|
|
|
53
53
|
"srimandir",
|
|
54
54
|
"react"
|
|
55
55
|
],
|
|
56
|
-
"license": "MIT"
|
|
56
|
+
"license": "MIT",
|
|
57
|
+
"gitHead": "220530f30f1d6376b4bd6a37e3b3801d74d67faa"
|
|
57
58
|
}
|