@srimandir/common 2.0.1 → 2.0.3
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 +234 -232
- 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 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -11,6 +11,8 @@ export interface BottomSheetProps {
|
|
|
11
11
|
footer?: React.ReactNode;
|
|
12
12
|
/** Round close button in the top-right corner. */
|
|
13
13
|
showCloseButton?: boolean;
|
|
14
|
+
/** Places the close button above the sheet's top edge instead of inside it. */
|
|
15
|
+
closeButtonOutside?: boolean;
|
|
14
16
|
/** Decorative drag handle at the top. Off by default. */
|
|
15
17
|
showDragHandle?: boolean;
|
|
16
18
|
closeOnBackdropClick?: boolean;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.
|
|
1
|
+
@charset "UTF-8";._overlay_vleed_3{position:fixed;inset:0;z-index:1100;display:flex;align-items:flex-end;justify-content:center;background:#0006;animation:_bottomSheetFadeIn_vleed_1 .2s ease-out}._sheet_vleed_14{position:relative;display:flex;flex-direction:column;width:100%;max-width:480px;max-height:92%;min-height:96px;background:#fff;border-radius:16px 16px 0 0;animation:_bottomSheetSlideUp_vleed_1 .28s cubic-bezier(.32,.72,0,1) both;-webkit-overflow-scrolling:touch;box-sizing:border-box}@keyframes _bottomSheetFadeIn_vleed_1{0%{opacity:0}to{opacity:1}}@keyframes _bottomSheetSlideUp_vleed_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@media(prefers-reduced-motion:reduce){._overlay_vleed_3,._sheet_vleed_14{animation:none}}._handle_vleed_66{flex-shrink:0;width:40px;height:4px;margin:8px auto 0;border-radius:999px;background:#d1d5db}._closeBtn_vleed_75{position:absolute;top:12px;right:12px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:#f3f4f6;color:#374151;cursor:pointer;z-index:2}._closeBtnOutside_vleed_94{top:-44px;right:12px}._header_vleed_100{flex-shrink:0}._body_vleed_25{flex:1;min-height:0;overflow-y:auto}._footer_vleed_112{flex-shrink:0;padding-bottom:env(safe-area-inset-bottom);background:#fff}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@srimandir/common",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
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": "84a61adacf1f6f1948e683cd1781c8fb5166a836"
|
|
58
58
|
}
|