@srimandir/common 2.30.6 → 2.30.8
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 +15 -15
- package/dist/common.js.map +1 -1
- package/dist/common.umd.cjs +1 -1
- package/dist/common.umd.cjs.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.d.ts +2 -4
- package/dist/components/BottomSheet/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
/** Which affordance triggered `onClose` — optional so existing `() => void` callers keep compiling unchanged. */
|
|
3
|
-
export type BottomSheetCloseReason = 'close_button' | 'backdrop' | 'escape';
|
|
4
2
|
export interface BottomSheetProps {
|
|
5
3
|
isOpen: boolean;
|
|
6
|
-
/** Called by the close button, backdrop tap and Escape
|
|
7
|
-
onClose: (
|
|
4
|
+
/** Called by the close button, backdrop tap and Escape. */
|
|
5
|
+
onClose: () => void;
|
|
8
6
|
/** Scrolling content. */
|
|
9
7
|
children: React.ReactNode;
|
|
10
8
|
/** Pinned above the scroll area. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { BottomSheet, type BottomSheetProps
|
|
1
|
+
export { BottomSheet, type BottomSheetProps } from './BottomSheet';
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* extracted from the product packages.
|
|
8
8
|
*/
|
|
9
9
|
export { BottomSheet } from './components/BottomSheet';
|
|
10
|
-
export type { BottomSheetProps
|
|
10
|
+
export type { BottomSheetProps } from './components/BottomSheet';
|
|
11
11
|
export { cn } from './utils/cn';
|
|
12
12
|
export { validatePhoneByCountryCode, getMaxLengthForCountry } from './utils/phoneValidation';
|
|
13
13
|
export { DEFAULT_COUNTRIES, getFlagEmoji } from './utils/countries';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@srimandir/common",
|
|
3
|
-
"version": "2.30.
|
|
3
|
+
"version": "2.30.8",
|
|
4
4
|
"description": "Generic, product-agnostic UI primitives (bottom sheet, buttons, modals) shared across the Srimandir packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"react"
|
|
55
55
|
],
|
|
56
56
|
"license": "MIT",
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "0891c813bde6a06b0c07482ff4e907430896d86b"
|
|
58
58
|
}
|