@kolkrabbi/kol-component 0.338.0 → 0.338.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-component",
|
|
3
|
-
"version": "0.338.
|
|
3
|
+
"version": "0.338.1",
|
|
4
4
|
"description": "The core component library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"embla-carousel-react": "^8.6.0",
|
|
30
30
|
"pdfjs-dist": "^6.3.289",
|
|
31
31
|
"react-syntax-highlighter": "^16.1.1",
|
|
32
|
-
"@kolkrabbi/kol-markdown": "^0.2.0",
|
|
33
32
|
"@kolkrabbi/kol-search": "^0.3.0",
|
|
33
|
+
"@kolkrabbi/kol-markdown": "^0.2.0",
|
|
34
34
|
"@kolkrabbi/kol-growth": "^0.5.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
@@ -167,7 +167,8 @@ export default function useDragResize(ref, options = {}) {
|
|
|
167
167
|
* `grabProps`, so a consumer already spreading those gets the wake, the
|
|
168
168
|
* travel and the dwell with no change. */
|
|
169
169
|
const grabRef = useRef(null)
|
|
170
|
-
|
|
170
|
+
/* a top/bottom Rail's handle is a horizontal edge: near on y, pill travels on x (DragResizeBottomWake, 2026-11-04) */
|
|
171
|
+
useGrabEdge(grabRef, { axis: vertical ? 'x' : 'y' })
|
|
171
172
|
const drag = useRef(null) // { startX, startW, snapPx, maxPx, moved } during a drag
|
|
172
173
|
const defaultPx = useRef(null)
|
|
173
174
|
const collapsedPx = useRef(null)
|
|
@@ -331,7 +332,7 @@ export default function useDragResize(ref, options = {}) {
|
|
|
331
332
|
className: line ? 'kol-rail-grab kol-rail-grab--line' : 'kol-rail-grab',
|
|
332
333
|
...(line ? { onDoubleClick: toggleCollapsed } : {}),
|
|
333
334
|
role: 'separator',
|
|
334
|
-
'aria-orientation': 'vertical',
|
|
335
|
+
'aria-orientation': vertical ? 'horizontal' : 'vertical',
|
|
335
336
|
'aria-label': 'Resize navigation',
|
|
336
337
|
'aria-valuenow': Math.round(collapsed ? collapsedPx.current : (widthPx ?? defaultPx.current)) || undefined,
|
|
337
338
|
'aria-valuemin': collapsedPx.current == null ? undefined : Math.round(collapsedPx.current),
|