@srimandir/pitru-paksh-common 2.0.25 → 2.0.27
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/components/ConfinedBottomSheet/ConfinedBottomSheet.d.ts +20 -0
- package/dist/components/ConfinedBottomSheet/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/pitru-paksh-common.d.ts +1 -0
- package/dist/pitru-paksh-common.js +479 -468
- package/dist/pitru-paksh-common.umd.cjs +6 -6
- package/dist/style.css +1 -1
- package/package.json +3 -4
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BottomSheetProps } from '../../../../common/dist/common.js';
|
|
2
|
+
/**
|
|
3
|
+
* Drop-in replacement for `@srimandir/common`'s `BottomSheet`, scoped to this
|
|
4
|
+
* package only — does NOT modify the shared component.
|
|
5
|
+
*
|
|
6
|
+
* Host pages for this package's components lay their content out in a
|
|
7
|
+
* centered, phone-width `max-w-md` column even on wide desktop viewports,
|
|
8
|
+
* but `BottomSheet`'s own overlay is `position: fixed`, which always
|
|
9
|
+
* resolves against the real viewport — on desktop it would dim/cover the
|
|
10
|
+
* whole browser window instead of staying within that column.
|
|
11
|
+
*
|
|
12
|
+
* The wrapping box below establishes a CSS containing block (via
|
|
13
|
+
* `transform`) for fixed-position descendants, so `BottomSheet`'s overlay
|
|
14
|
+
* resolves against *this* box — itself `fixed inset-0`, capped at
|
|
15
|
+
* `max-w-md` and centered — instead of the viewport. Real mobile viewports
|
|
16
|
+
* narrower than `max-w-md` are unaffected, since the cap never binds there.
|
|
17
|
+
*
|
|
18
|
+
* Use this in place of `BottomSheet` for sheets rendered by this package.
|
|
19
|
+
*/
|
|
20
|
+
export declare function ConfinedBottomSheet(props: BottomSheetProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ConfinedBottomSheet } from './ConfinedBottomSheet';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { Button, buttonVariants } from './components/Button';
|
|
2
2
|
export type { ButtonProps } from './components/Button';
|
|
3
|
+
export { ConfinedBottomSheet } from './components/ConfinedBottomSheet';
|
|
3
4
|
export { TestimonialCard } from './components/TestimonialCard';
|
|
4
5
|
export type { TestimonialCardProps } from './components/TestimonialCard';
|
|
5
6
|
export { FAQSection } from './components/FAQSection';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { Button, buttonVariants } from './components/Button';
|
|
2
2
|
export type { ButtonProps } from './components/Button';
|
|
3
|
+
export { ConfinedBottomSheet } from './components/ConfinedBottomSheet';
|
|
3
4
|
export { TestimonialCard } from './components/TestimonialCard';
|
|
4
5
|
export type { TestimonialCardProps } from './components/TestimonialCard';
|
|
5
6
|
export { FAQSection } from './components/FAQSection';
|