kang-components 0.9.11 → 0.9.12
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/README.md +17 -0
- package/dist/bottom-sheet.d.ts +13 -3
- package/dist/bottom-sheet.d.ts.map +1 -1
- package/dist/bottom-sheet.js +12 -8
- package/dist/bottom-sheet.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -95,6 +95,23 @@ const Row = styled.button`
|
|
|
95
95
|
Per-row content (leading icon, label, destructive tint, ripple) is the
|
|
96
96
|
consumer's to layer on top of the row.
|
|
97
97
|
|
|
98
|
+
## `BottomSheet`
|
|
99
|
+
|
|
100
|
+
A draggable bottom sheet: an overlay plus a panel that slides up, closed by the
|
|
101
|
+
overlay, Escape, or a swipe down on the handle. It is a labelled modal dialog by
|
|
102
|
+
default (`aria-modal`, Tab trapped inside). Pass `modal={false}` when the page
|
|
103
|
+
behind must stay usable: no overlay element is rendered, so the page stays
|
|
104
|
+
visible, scrollable and tappable and a tap behind does not close the sheet;
|
|
105
|
+
`aria-modal` and the Tab trap are dropped. It is still a `role="dialog"` named by
|
|
106
|
+
`title`, takes focus on open and returns it on close, and Escape (with focus in
|
|
107
|
+
the panel) and the handle's drag still close it.
|
|
108
|
+
|
|
109
|
+
```tsx
|
|
110
|
+
<BottomSheet isOpen={open} onClose={close} title="Check-in" modal={false}>
|
|
111
|
+
…
|
|
112
|
+
</BottomSheet>
|
|
113
|
+
```
|
|
114
|
+
|
|
98
115
|
## Build
|
|
99
116
|
|
|
100
117
|
```bash
|
package/dist/bottom-sheet.d.ts
CHANGED
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
* (`src/views/bottom-sheet/BottomSheet.tsx`, imported as `LibraryBottomSheet`) is a
|
|
7
7
|
* pure import swap.
|
|
8
8
|
*
|
|
9
|
-
* Behavior: an overlay + a panel that slides up from the bottom
|
|
10
|
-
*
|
|
9
|
+
* Behavior: an overlay + a panel that slides up from the bottom (`modal={false}`
|
|
10
|
+
* drops the overlay, `aria-modal` and the Tab trap — see `BottomSheetProps.modal`).
|
|
11
|
+
* The handle area is draggable (rubber-band physics dragging up, velocity- or distance-based
|
|
11
12
|
* swipe-to-close dragging down). Clicking the overlay or swiping past the close
|
|
12
13
|
* threshold calls `onClose`. The component owns a `shouldRender` flag so it can
|
|
13
14
|
* play the slide-out animation before unmounting, and fires `onExitComplete` once
|
|
@@ -50,11 +51,20 @@ export interface BottomSheetProps {
|
|
|
50
51
|
closeThreshold?: number;
|
|
51
52
|
/** Fires after the close animation finishes (use for cleanup like clearing content) */
|
|
52
53
|
onExitComplete?: () => void;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the sheet is modal (default: true). `modal={false}` renders no
|
|
56
|
+
* overlay element at all — so the page behind stays visible, scrollable and
|
|
57
|
+
* tappable, and a tap behind does not close the sheet — omits `aria-modal`,
|
|
58
|
+
* and drops the Tab focus trap. It keeps `role="dialog"` + `aria-labelledby`,
|
|
59
|
+
* moving focus into the panel on open and back on close, Escape-to-close
|
|
60
|
+
* (with focus inside the panel), and the handle's drag-to-close.
|
|
61
|
+
*/
|
|
62
|
+
modal?: boolean;
|
|
53
63
|
}
|
|
54
64
|
/**
|
|
55
65
|
* Draggable bottom sheet modal with gesture support.
|
|
56
66
|
* Features rubber-band physics, velocity-based swipe detection, and smooth animations.
|
|
57
67
|
*/
|
|
58
|
-
export declare function BottomSheet({ isOpen, onClose, children, title, maxHeight, velocityThreshold, closeThreshold, onExitComplete, }: BottomSheetProps): ReactElement;
|
|
68
|
+
export declare function BottomSheet({ isOpen, onClose, children, title, maxHeight, velocityThreshold, closeThreshold, onExitComplete, modal, }: BottomSheetProps): ReactElement;
|
|
59
69
|
export default BottomSheet;
|
|
60
70
|
//# sourceMappingURL=bottom-sheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bottom-sheet.d.ts","sourceRoot":"","sources":["../src/bottom-sheet.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"bottom-sheet.d.ts","sourceRoot":"","sources":["../src/bottom-sheet.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EACN,KAAK,YAAY,EACjB,KAAK,SAAS,EAOd,MAAM,OAAO,CAAC;AAQf,MAAM,WAAW,gBAAgB;IAChC,gCAAgC;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,2CAA2C;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,yCAAyC;IACzC,QAAQ,EAAE,SAAS,CAAC;IACpB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uFAAuF;IACvF,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AA2ED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC3B,MAAM,EACN,OAAO,EACP,QAAQ,EACR,KAAsB,EACtB,SAAe,EACf,iBAAuB,EACvB,cAAqB,EACrB,cAAc,EACd,KAAY,GACZ,EAAE,gBAAgB,GAAG,YAAY,CAmNjC;AAED,eAAe,WAAW,CAAC"}
|
package/dist/bottom-sheet.js
CHANGED
|
@@ -7,8 +7,9 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
7
7
|
* (`src/views/bottom-sheet/BottomSheet.tsx`, imported as `LibraryBottomSheet`) is a
|
|
8
8
|
* pure import swap.
|
|
9
9
|
*
|
|
10
|
-
* Behavior: an overlay + a panel that slides up from the bottom
|
|
11
|
-
*
|
|
10
|
+
* Behavior: an overlay + a panel that slides up from the bottom (`modal={false}`
|
|
11
|
+
* drops the overlay, `aria-modal` and the Tab trap — see `BottomSheetProps.modal`).
|
|
12
|
+
* The handle area is draggable (rubber-band physics dragging up, velocity- or distance-based
|
|
12
13
|
* swipe-to-close dragging down). Clicking the overlay or swiping past the close
|
|
13
14
|
* threshold calls `onClose`. The component owns a `shouldRender` flag so it can
|
|
14
15
|
* play the slide-out animation before unmounting, and fires `onExitComplete` once
|
|
@@ -91,7 +92,7 @@ function getFocusable(root) {
|
|
|
91
92
|
* Draggable bottom sheet modal with gesture support.
|
|
92
93
|
* Features rubber-band physics, velocity-based swipe detection, and smooth animations.
|
|
93
94
|
*/
|
|
94
|
-
export function BottomSheet({ isOpen, onClose, children, title = 'Bottom Sheet', maxHeight = 300, velocityThreshold = 0.4, closeThreshold = 0.25, onExitComplete, }) {
|
|
95
|
+
export function BottomSheet({ isOpen, onClose, children, title = 'Bottom Sheet', maxHeight = 300, velocityThreshold = 0.4, closeThreshold = 0.25, onExitComplete, modal = true, }) {
|
|
95
96
|
const modalRef = useRef(null);
|
|
96
97
|
const [shouldRender, setShouldRender] = useState(isOpen);
|
|
97
98
|
// Mirror of shouldRender for the effect to read the latest value without
|
|
@@ -166,13 +167,16 @@ export function BottomSheet({ isOpen, onClose, children, title = 'Bottom Sheet',
|
|
|
166
167
|
previouslyFocused.current?.focus?.();
|
|
167
168
|
}, [isOpen]);
|
|
168
169
|
// Escape-to-close + a Tab focus trap so keyboard/AT users can't tab out of the
|
|
169
|
-
// modal sheet or get stuck behind it.
|
|
170
|
+
// modal sheet or get stuck behind it. A non-modal sheet keeps Escape but not
|
|
171
|
+
// the trap: the page behind it is meant to be reachable.
|
|
170
172
|
const handleKeyDown = useCallback((e) => {
|
|
171
173
|
if (e.key === 'Escape') {
|
|
172
174
|
e.stopPropagation();
|
|
173
175
|
handleClose();
|
|
174
176
|
return;
|
|
175
177
|
}
|
|
178
|
+
if (!modal)
|
|
179
|
+
return;
|
|
176
180
|
if (e.key !== 'Tab')
|
|
177
181
|
return;
|
|
178
182
|
const focusable = getFocusable(modalRef.current);
|
|
@@ -193,7 +197,7 @@ export function BottomSheet({ isOpen, onClose, children, title = 'Bottom Sheet',
|
|
|
193
197
|
e.preventDefault();
|
|
194
198
|
first.focus();
|
|
195
199
|
}
|
|
196
|
-
}, [handleClose]);
|
|
200
|
+
}, [handleClose, modal]);
|
|
197
201
|
// Drag handler
|
|
198
202
|
const bind = useDrag(({ active, movement: [, my], velocity: [, vy], direction: [, dy], cancel }) => {
|
|
199
203
|
// Prevent dragging up beyond the top
|
|
@@ -232,20 +236,20 @@ export function BottomSheet({ isOpen, onClose, children, title = 'Bottom Sheet',
|
|
|
232
236
|
if (!shouldRender) {
|
|
233
237
|
return _jsx(_Fragment, {});
|
|
234
238
|
}
|
|
235
|
-
return (_jsxs(_Fragment, { children: [_jsx(animated.div, { style: {
|
|
239
|
+
return (_jsxs(_Fragment, { children: [modal && (_jsx(animated.div, { style: {
|
|
236
240
|
position: 'fixed',
|
|
237
241
|
inset: 0,
|
|
238
242
|
zIndex: 49,
|
|
239
243
|
opacity: spring.opacity,
|
|
240
244
|
pointerEvents: isOpen ? 'auto' : 'none',
|
|
241
|
-
}, onClick: handleClose, children: _jsx(SheetOverlay, {}) }), _jsx(animated.div, { style: {
|
|
245
|
+
}, onClick: handleClose, children: _jsx(SheetOverlay, {}) })), _jsx(animated.div, { style: {
|
|
242
246
|
position: 'fixed',
|
|
243
247
|
bottom: 0,
|
|
244
248
|
left: 0,
|
|
245
249
|
right: 0,
|
|
246
250
|
zIndex: 50,
|
|
247
251
|
transform: spring.y.to((y) => `translateY(${y}px)`),
|
|
248
|
-
}, children: _jsxs(SheetContent, { ref: modalRef, role: "dialog", "aria-modal":
|
|
252
|
+
}, children: _jsxs(SheetContent, { ref: modalRef, role: "dialog", "aria-modal": modal ? 'true' : undefined, "aria-labelledby": titleId, tabIndex: -1, onKeyDown: handleKeyDown, children: [_jsx(VisuallyHidden, { id: titleId, children: title }), _jsx("div", { ...bind(), style: {
|
|
249
253
|
touchAction: 'none',
|
|
250
254
|
cursor: 'grab',
|
|
251
255
|
padding: '8px 0',
|
package/dist/bottom-sheet.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bottom-sheet.js","sourceRoot":"","sources":["../src/bottom-sheet.tsx"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"bottom-sheet.js","sourceRoot":"","sources":["../src/bottom-sheet.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAIN,MAAM,EACN,SAAS,EACT,WAAW,EACX,QAAQ,EACR,KAAK,GACL,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,4EAA4E;AAC5E,yEAAyE;AACzE,kDAAkD;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AA4C3C,MAAM,MAAM,GAAG,CAAC,KAAc,EAAqC,EAAE,CACnE,KAAoB,EAAE,MAAM,IAAI,EAAE,CAAC;AACrC,MAAM,OAAO,GAAG,CAAC,KAAc,EAAsC,EAAE,CACrE,KAAoB,EAAE,OAAO,IAAI,EAAE,CAAC;AACtC,MAAM,OAAO,GAAG,CAAC,KAAc,EAAsC,EAAE,CACrE,KAAoB,EAAE,OAAO,IAAI,EAAE,CAAC;AAEtC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;qBAGV,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,oBAAoB;CAC9E,CAAC;AAEF,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;yBACN,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,UAAU,I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,EAAE,CAAC,CAAC,EACZ,SAAS,EAAE,aAAa,aAExB,KAAC,cAAc,IAAC,EAAE,EAAE,OAAO,YAAG,KAAK,GAAkB,EACrD,iBACK,IAAI,EAAE,EACV,KAAK,EAAE;gCACN,WAAW,EAAE,MAAM;gCACnB,MAAM,EAAE,MAAM;gCACd,OAAO,EAAE,OAAO;6BAChB,YAED,KAAC,WAAW,KAAG,GACV,EACN,KAAC,SAAS,cAAE,QAAQ,GAAa,IACnB,GACD,IACb,CACH,CAAC;AACH,CAAC;AAED,eAAe,WAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kang-components",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.12",
|
|
4
4
|
"description": "Generic, domain-free React UI primitives (CSS-first press feedback, delayed-action hook, spring presets, cross-fading text, circle icon button).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|