@qoretechnologies/reqore 0.78.5-pr.708.gbe112f0 → 0.78.5-pr.708.gd1c403a
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/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.js +79 -8
- package/dist/components/Breadcrumbs/index.js.map +1 -1
- package/dist/components/Breadcrumbs/item.d.ts +10 -0
- package/dist/components/Breadcrumbs/item.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/item.js +24 -3
- package/dist/components/Breadcrumbs/item.js.map +1 -1
- package/dist/components/Drawer/index.d.ts +172 -0
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.js +260 -14
- package/dist/components/Drawer/index.js.map +1 -1
- package/dist/components/EntityRow/index.d.ts +11 -0
- package/dist/components/EntityRow/index.d.ts.map +1 -1
- package/dist/components/EntityRow/index.js +25 -8
- package/dist/components/EntityRow/index.js.map +1 -1
- package/dist/components/FadeScroller/index.d.ts.map +1 -1
- package/dist/components/FadeScroller/index.js +47 -17
- package/dist/components/FadeScroller/index.js.map +1 -1
- package/dist/components/Modal/index.d.ts +12 -2
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Notifications/notification.d.ts +11 -1
- package/dist/components/Notifications/notification.d.ts.map +1 -1
- package/dist/components/Notifications/notification.js +96 -19
- package/dist/components/Notifications/notification.js.map +1 -1
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +22 -1
- package/dist/components/Panel/index.js.map +1 -1
- package/dist/components/RichTextEditor/index.d.ts.map +1 -1
- package/dist/components/RichTextEditor/index.js +26 -2
- package/dist/components/RichTextEditor/index.js.map +1 -1
- package/dist/components/RowActionsMenu/index.d.ts +53 -0
- package/dist/components/RowActionsMenu/index.d.ts.map +1 -0
- package/dist/components/RowActionsMenu/index.js +93 -0
- package/dist/components/RowActionsMenu/index.js.map +1 -0
- package/dist/components/SeverityRow/index.d.ts +12 -0
- package/dist/components/SeverityRow/index.d.ts.map +1 -1
- package/dist/components/SeverityRow/index.js +14 -8
- package/dist/components/SeverityRow/index.js.map +1 -1
- package/dist/components/Statistic/index.d.ts.map +1 -1
- package/dist/components/Statistic/index.js +1 -1
- package/dist/components/Statistic/index.js.map +1 -1
- package/dist/components/Table/helpers.d.ts +20 -0
- package/dist/components/Table/helpers.d.ts.map +1 -1
- package/dist/components/Table/helpers.js +53 -1
- package/dist/components/Table/helpers.js.map +1 -1
- package/dist/components/Table/index.d.ts +37 -2
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +101 -23
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/Table/row.d.ts +3 -1
- package/dist/components/Table/row.d.ts.map +1 -1
- package/dist/components/Table/row.js +25 -7
- package/dist/components/Table/row.js.map +1 -1
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/index.js +7 -4
- package/dist/components/Tag/index.js.map +1 -1
- package/dist/components/Textarea/index.d.ts.map +1 -1
- package/dist/components/Textarea/index.js +37 -1
- package/dist/components/Textarea/index.js.map +1 -1
- package/dist/components/Tier/group.d.ts +5 -4
- package/dist/components/Tier/group.d.ts.map +1 -1
- package/dist/components/Tier/group.js +43 -122
- package/dist/components/Tier/group.js.map +1 -1
- package/dist/constants/sizes.d.ts +5 -0
- package/dist/constants/sizes.d.ts.map +1 -1
- package/dist/constants/sizes.js +6 -1
- package/dist/constants/sizes.js.map +1 -1
- package/dist/containers/ReqoreProvider.d.ts.map +1 -1
- package/dist/containers/ReqoreProvider.js +6 -8
- package/dist/containers/ReqoreProvider.js.map +1 -1
- package/dist/helpers/gestures.d.ts +30 -0
- package/dist/helpers/gestures.d.ts.map +1 -0
- package/dist/helpers/gestures.js +36 -0
- package/dist/helpers/gestures.js.map +1 -0
- package/dist/hooks/useDragToScroll.d.ts +6 -3
- package/dist/hooks/useDragToScroll.d.ts.map +1 -1
- package/dist/hooks/useDragToScroll.js +6 -3
- package/dist/hooks/useDragToScroll.js.map +1 -1
- package/dist/hooks/usePointerDrag.d.ts +77 -0
- package/dist/hooks/usePointerDrag.d.ts.map +1 -0
- package/dist/hooks/usePointerDrag.js +202 -0
- package/dist/hooks/usePointerDrag.js.map +1 -0
- package/dist/hooks/useReqoreMedia.d.ts +24 -0
- package/dist/hooks/useReqoreMedia.d.ts.map +1 -0
- package/dist/hooks/useReqoreMedia.js +32 -0
- package/dist/hooks/useReqoreMedia.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vitest.config.ts +6 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.usePointerDrag = exports.DRAG_CONTROL_SELECTOR = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var gestures_1 = require("../helpers/gestures");
|
|
6
|
+
/**
|
|
7
|
+
* The controls a press belongs to rather than to the surface around them: a button (a close
|
|
8
|
+
* control, an action), a link, a field, and the control group actions sit in. For a `canStart`
|
|
9
|
+
* that leaves those alone, as the drawer's title bar and a notification do.
|
|
10
|
+
*/
|
|
11
|
+
exports.DRAG_CONTROL_SELECTOR = 'button, a, input, textarea, select, [role="button"], [contenteditable], .reqore-control-group';
|
|
12
|
+
/**
|
|
13
|
+
* A pointer drag — mouse, touch or pen — on one element: a press becomes a drag once it has
|
|
14
|
+
* moved past `slop` along the right axis, every move reports the distance from the press and
|
|
15
|
+
* the latest velocity, and the click a drag would end with is swallowed. The one gesture a
|
|
16
|
+
* sheet is pushed away with, a modal moved by, a tier stack swiped and a scroller pulled.
|
|
17
|
+
*
|
|
18
|
+
* The live gesture is tracked on the WINDOW, not on the element. A pull leaves a thin handle
|
|
19
|
+
* at once and the release can land anywhere, including outside the browser window; an element
|
|
20
|
+
* listening only to itself would never see that release and would stay stuck to the pointer.
|
|
21
|
+
* Pointer capture alone does not cover it, because capture is taken only once the drag engages
|
|
22
|
+
* and a fast pull is past the element before the first qualifying move. The listeners are
|
|
23
|
+
* bound per gesture, so an idle element adds no global listener, and the gesture also ends on
|
|
24
|
+
* a move with no button held (a release the page never saw) and when the window loses focus.
|
|
25
|
+
*
|
|
26
|
+
* The handlers never change identity; the options are read as they are when an event arrives.
|
|
27
|
+
*/
|
|
28
|
+
var usePointerDrag = function (options) {
|
|
29
|
+
var optionsRef = (0, react_1.useRef)(options);
|
|
30
|
+
optionsRef.current = options;
|
|
31
|
+
var gestureRef = (0, react_1.useRef)(null);
|
|
32
|
+
var suppressClickRef = (0, react_1.useRef)(false);
|
|
33
|
+
// Takes down the live gesture's window listeners; `null` while none is live.
|
|
34
|
+
var stopTrackingRef = (0, react_1.useRef)(null);
|
|
35
|
+
var _a = (0, react_1.useState)(false), dragging = _a[0], setDragging = _a[1];
|
|
36
|
+
var finish = (0, react_1.useCallback)(function (committed) {
|
|
37
|
+
var _a, _b, _c, _d, _e;
|
|
38
|
+
var gesture = gestureRef.current;
|
|
39
|
+
gestureRef.current = null;
|
|
40
|
+
(_a = stopTrackingRef.current) === null || _a === void 0 ? void 0 : _a.call(stopTrackingRef);
|
|
41
|
+
stopTrackingRef.current = null;
|
|
42
|
+
if (!(gesture === null || gesture === void 0 ? void 0 : gesture.dragging)) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
if ((_c = (_b = gesture.element).hasPointerCapture) === null || _c === void 0 ? void 0 : _c.call(_b, gesture.pointerId)) {
|
|
46
|
+
gesture.element.releasePointerCapture(gesture.pointerId);
|
|
47
|
+
}
|
|
48
|
+
// The click that ends a drag is not a click on whatever it ended over. A mouse's click
|
|
49
|
+
// follows its release at once; a touch drag produces none, so the flag is dropped on the
|
|
50
|
+
// next turn of the event loop rather than left armed for a later, unrelated click.
|
|
51
|
+
suppressClickRef.current = true;
|
|
52
|
+
setTimeout(function () {
|
|
53
|
+
suppressClickRef.current = false;
|
|
54
|
+
}, 0);
|
|
55
|
+
if (optionsRef.current.trackDragging !== false) {
|
|
56
|
+
setDragging(false);
|
|
57
|
+
}
|
|
58
|
+
(_e = (_d = optionsRef.current).onEnd) === null || _e === void 0 ? void 0 : _e.call(_d, {
|
|
59
|
+
dx: gesture.lastX - gesture.startX,
|
|
60
|
+
dy: gesture.lastY - gesture.startY,
|
|
61
|
+
vx: gesture.vx,
|
|
62
|
+
vy: gesture.vy,
|
|
63
|
+
}, committed);
|
|
64
|
+
}, []);
|
|
65
|
+
var track = (0, react_1.useCallback)(function () {
|
|
66
|
+
var onMove = function (event) {
|
|
67
|
+
var _a, _b, _c, _d;
|
|
68
|
+
var gesture = gestureRef.current;
|
|
69
|
+
if (!gesture || gesture.pointerId !== event.pointerId) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
// Nothing is held, so the button came up somewhere this page could never observe it —
|
|
73
|
+
// off the edge of the window, the usual way. `buttons` is what is pressed RIGHT NOW, so
|
|
74
|
+
// during a real drag it can only be non-zero.
|
|
75
|
+
if (event.buttons === 0) {
|
|
76
|
+
finish(false);
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
var dx = event.clientX - gesture.startX;
|
|
80
|
+
var dy = event.clientY - gesture.startY;
|
|
81
|
+
if (!gesture.dragging) {
|
|
82
|
+
var _e = optionsRef.current, _f = _e.axis, axis = _f === void 0 ? 'both' : _f, _g = _e.slop, slop = _g === void 0 ? gestures_1.SWIPE.slop : _g;
|
|
83
|
+
if (Math.abs(dx) < slop && Math.abs(dy) < slop) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
// Mostly along the other axis: whatever that axis belongs to takes the press.
|
|
87
|
+
if ((axis === 'x' && Math.abs(dy) >= Math.abs(dx)) ||
|
|
88
|
+
(axis === 'y' && Math.abs(dx) >= Math.abs(dy))) {
|
|
89
|
+
finish(false);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
gesture.dragging = true;
|
|
93
|
+
// Capture keeps the moves addressed to the element while the pointer is over others;
|
|
94
|
+
// the window listeners are what make the drag survive leaving it.
|
|
95
|
+
try {
|
|
96
|
+
gesture.element.setPointerCapture(event.pointerId);
|
|
97
|
+
}
|
|
98
|
+
catch (_h) {
|
|
99
|
+
// Capture is a nicety, not the mechanism.
|
|
100
|
+
}
|
|
101
|
+
if (optionsRef.current.trackDragging !== false) {
|
|
102
|
+
setDragging(true);
|
|
103
|
+
}
|
|
104
|
+
(_b = (_a = optionsRef.current).onStart) === null || _b === void 0 ? void 0 : _b.call(_a, gesture.element, event);
|
|
105
|
+
}
|
|
106
|
+
var elapsed = event.timeStamp - gesture.lastTime;
|
|
107
|
+
if (elapsed > 0) {
|
|
108
|
+
gesture.vx = (event.clientX - gesture.lastX) / elapsed;
|
|
109
|
+
gesture.vy = (event.clientY - gesture.lastY) / elapsed;
|
|
110
|
+
}
|
|
111
|
+
gesture.lastX = event.clientX;
|
|
112
|
+
gesture.lastY = event.clientY;
|
|
113
|
+
gesture.lastTime = event.timeStamp;
|
|
114
|
+
(_d = (_c = optionsRef.current).onMove) === null || _d === void 0 ? void 0 : _d.call(_c, { dx: dx, dy: dy, vx: gesture.vx, vy: gesture.vy }, event);
|
|
115
|
+
};
|
|
116
|
+
var onEnd = function (event) {
|
|
117
|
+
var gesture = gestureRef.current;
|
|
118
|
+
if ((gesture === null || gesture === void 0 ? void 0 : gesture.pointerId) !== event.pointerId) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
/* Only the capture THIS gesture took ends it. A finger's pointer is captured by the element
|
|
122
|
+
it lands on (implicit touch capture); taking the capture for the element that drags moves
|
|
123
|
+
it away from that one - a title, a label, a cell inside it - which then reports losing it,
|
|
124
|
+
and that is the drag starting, not ending. Ending there stopped a swipe after its first few
|
|
125
|
+
pixels whenever the finger landed on something inside the element (found on a table's
|
|
126
|
+
header with real touch events, #710). */
|
|
127
|
+
if (event.type === 'lostpointercapture' && event.target !== gesture.element) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
finish(event.type === 'pointerup');
|
|
131
|
+
};
|
|
132
|
+
// Alt-tabbing mid-drag: the release happens in another window.
|
|
133
|
+
var onBlur = function () { return finish(false); };
|
|
134
|
+
window.addEventListener('pointermove', onMove);
|
|
135
|
+
window.addEventListener('pointerup', onEnd);
|
|
136
|
+
window.addEventListener('pointercancel', onEnd);
|
|
137
|
+
window.addEventListener('lostpointercapture', onEnd);
|
|
138
|
+
window.addEventListener('blur', onBlur);
|
|
139
|
+
stopTrackingRef.current = function () {
|
|
140
|
+
window.removeEventListener('pointermove', onMove);
|
|
141
|
+
window.removeEventListener('pointerup', onEnd);
|
|
142
|
+
window.removeEventListener('pointercancel', onEnd);
|
|
143
|
+
window.removeEventListener('lostpointercapture', onEnd);
|
|
144
|
+
window.removeEventListener('blur', onBlur);
|
|
145
|
+
};
|
|
146
|
+
}, [finish]);
|
|
147
|
+
// A gesture live at unmount would otherwise leave its window listeners behind.
|
|
148
|
+
(0, react_1.useEffect)(function () { return function () {
|
|
149
|
+
var _a;
|
|
150
|
+
gestureRef.current = null;
|
|
151
|
+
(_a = stopTrackingRef.current) === null || _a === void 0 ? void 0 : _a.call(stopTrackingRef);
|
|
152
|
+
stopTrackingRef.current = null;
|
|
153
|
+
}; }, []);
|
|
154
|
+
var handlers = (0, react_1.useMemo)(function () { return ({
|
|
155
|
+
onPointerDown: function (event) {
|
|
156
|
+
// A fresh press ends a gesture whose release the page never saw, and makes its click
|
|
157
|
+
// moot — INCLUDING a press this handler goes on to decline: pressing a field must not
|
|
158
|
+
// inherit a swallow from a drag that ended somewhere the page did not see.
|
|
159
|
+
if (gestureRef.current) {
|
|
160
|
+
finish(false);
|
|
161
|
+
}
|
|
162
|
+
suppressClickRef.current = false;
|
|
163
|
+
var _a = optionsRef.current, _b = _a.enabled, enabled = _b === void 0 ? true : _b, canStart = _a.canStart;
|
|
164
|
+
if (!enabled ||
|
|
165
|
+
(event.pointerType === 'mouse' && event.button !== 0) ||
|
|
166
|
+
(canStart && !canStart(event))) {
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
gestureRef.current = {
|
|
170
|
+
pointerId: event.pointerId,
|
|
171
|
+
element: event.currentTarget,
|
|
172
|
+
startX: event.clientX,
|
|
173
|
+
startY: event.clientY,
|
|
174
|
+
lastX: event.clientX,
|
|
175
|
+
lastY: event.clientY,
|
|
176
|
+
lastTime: event.timeStamp,
|
|
177
|
+
vx: 0,
|
|
178
|
+
vy: 0,
|
|
179
|
+
dragging: false,
|
|
180
|
+
};
|
|
181
|
+
track();
|
|
182
|
+
},
|
|
183
|
+
onClickCapture: function (event) {
|
|
184
|
+
if (suppressClickRef.current) {
|
|
185
|
+
suppressClickRef.current = false;
|
|
186
|
+
event.preventDefault();
|
|
187
|
+
event.stopPropagation();
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
// A native drag beats pointer events to the punch on links and images; one that starts
|
|
191
|
+
// after the press became a drag is ours.
|
|
192
|
+
onDragStart: function (event) {
|
|
193
|
+
var _a;
|
|
194
|
+
if ((_a = gestureRef.current) === null || _a === void 0 ? void 0 : _a.dragging) {
|
|
195
|
+
event.preventDefault();
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
}); }, [finish, track]);
|
|
199
|
+
return { dragging: dragging, handlers: handlers };
|
|
200
|
+
};
|
|
201
|
+
exports.usePointerDrag = usePointerDrag;
|
|
202
|
+
//# sourceMappingURL=usePointerDrag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePointerDrag.js","sourceRoot":"","sources":["../../src/hooks/usePointerDrag.ts"],"names":[],"mappings":";;;AAAA,+BAA0E;AAC1E,gDAA4C;AAe5C;;;;GAIG;AACU,QAAA,qBAAqB,GAChC,+FAA+F,CAAC;AA6DlG;;;;;;;;;;;;;;;GAeG;AACI,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Aa;gBAC5B,MAAM,EAAE,KAAK,CAAC,OAAO;gBACrB,MAAM,EAAE,KAAK,CAAC,OAAO;gBACrB,KAAK,EAAE,KAAK,CAAC,OAAO;gBACpB,KAAK,EAAE,KAAK,CAAC,OAAO;gBACpB,QAAQ,EAAE,KAAK,CAAC,SAAS;gBACzB,EAAE,EAAE,CAAC;gBACL,EAAE,EAAE,CAAC;gBACL,QAAQ,EAAE,KAAK;aAChB,CAAC;YACF,KAAK,EAAE,CAAC;QACV,CAAC;QACD,cAAc,EAAE,UAAC,KAAK;YACpB,IAAI,gBAAgB,CAAC,OAAO,EAAE,CAAC;gBAC7B,gBAAgB,CAAC,OAAO,GAAG,KAAK,CAAC;gBACjC,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,KAAK,CAAC,eAAe,EAAE,CAAC;YAC1B,CAAC;QACH,CAAC;QACD,uFAAuF;QACvF,yCAAyC;QACzC,WAAW,EAAE,UAAC,KAAK;;YACjB,IAAI,MAAA,UAAU,CAAC,OAAO,0CAAE,QAAQ,EAAE,CAAC;gBACjC,KAAK,CAAC,cAAc,EAAE,CAAC;YACzB,CAAC;QACH,CAAC;KACF,CAAC,EAjDI,CAiDJ,EACF,CAAC,MAAM,EAAE,KAAK,CAAC,CAChB,CAAC;IAEF,OAAO,EAAE,QAAQ,UAAA,EAAE,QAAQ,UAAA,EAAE,CAAC;AAChC,CAAC,CAAC;AAzNW,QAAA,cAAc,kBAyNzB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether this environment can answer a media query at all. Decided ONCE at
|
|
3
|
+
* module load, on purpose: `useReqoreMedia` calls `useMedia` only when this is
|
|
4
|
+
* true, and a hook that appears in one render and not the next is a React
|
|
5
|
+
* error — a test that defines `window.matchMedia` after the module loaded
|
|
6
|
+
* (several do, to drive their own hooks) must not be able to flip it.
|
|
7
|
+
*
|
|
8
|
+
* jsdom has no `matchMedia`, so unit tests get fixed defaults. A real browser —
|
|
9
|
+
* the app, the Storybook dev server AND the browser-mode story runner — gets
|
|
10
|
+
* live queries, which is what makes a mobile story able to prove a breakpoint
|
|
11
|
+
* branch. The previous guard keyed on `NODE_ENV === 'test'`, which Vitest also
|
|
12
|
+
* sets for browser-mode stories, so every width-dependent behaviour in the
|
|
13
|
+
* library was unprovable by a story.
|
|
14
|
+
*/
|
|
15
|
+
export declare const CAN_QUERY_MEDIA: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* `useMedia` that degrades to `defaultState` where media queries cannot be
|
|
18
|
+
* evaluated (jsdom, SSR) instead of throwing. Reqore owns the breakpoints:
|
|
19
|
+
* this is for Reqore's own components — the provider's `isMobile` /
|
|
20
|
+
* `isTablet` / `isHoverCapable` and the drawer's sheet breakpoint — not a
|
|
21
|
+
* licence for a consumer to hand-roll a query of its own.
|
|
22
|
+
*/
|
|
23
|
+
export declare const useReqoreMedia: (query: string, defaultState?: boolean) => boolean;
|
|
24
|
+
//# sourceMappingURL=useReqoreMedia.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReqoreMedia.d.ts","sourceRoot":"","sources":["../../src/hooks/useReqoreMedia.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,SAC8C,CAAC;AAE3E;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,EAAE,sBAAoB,KAAG,OACL,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useReqoreMedia = exports.CAN_QUERY_MEDIA = void 0;
|
|
4
|
+
var react_use_1 = require("react-use");
|
|
5
|
+
/**
|
|
6
|
+
* Whether this environment can answer a media query at all. Decided ONCE at
|
|
7
|
+
* module load, on purpose: `useReqoreMedia` calls `useMedia` only when this is
|
|
8
|
+
* true, and a hook that appears in one render and not the next is a React
|
|
9
|
+
* error — a test that defines `window.matchMedia` after the module loaded
|
|
10
|
+
* (several do, to drive their own hooks) must not be able to flip it.
|
|
11
|
+
*
|
|
12
|
+
* jsdom has no `matchMedia`, so unit tests get fixed defaults. A real browser —
|
|
13
|
+
* the app, the Storybook dev server AND the browser-mode story runner — gets
|
|
14
|
+
* live queries, which is what makes a mobile story able to prove a breakpoint
|
|
15
|
+
* branch. The previous guard keyed on `NODE_ENV === 'test'`, which Vitest also
|
|
16
|
+
* sets for browser-mode stories, so every width-dependent behaviour in the
|
|
17
|
+
* library was unprovable by a story.
|
|
18
|
+
*/
|
|
19
|
+
exports.CAN_QUERY_MEDIA = typeof window !== 'undefined' && typeof window.matchMedia === 'function';
|
|
20
|
+
/**
|
|
21
|
+
* `useMedia` that degrades to `defaultState` where media queries cannot be
|
|
22
|
+
* evaluated (jsdom, SSR) instead of throwing. Reqore owns the breakpoints:
|
|
23
|
+
* this is for Reqore's own components — the provider's `isMobile` /
|
|
24
|
+
* `isTablet` / `isHoverCapable` and the drawer's sheet breakpoint — not a
|
|
25
|
+
* licence for a consumer to hand-roll a query of its own.
|
|
26
|
+
*/
|
|
27
|
+
var useReqoreMedia = function (query, defaultState) {
|
|
28
|
+
if (defaultState === void 0) { defaultState = false; }
|
|
29
|
+
return exports.CAN_QUERY_MEDIA ? (0, react_use_1.useMedia)(query, defaultState) : defaultState;
|
|
30
|
+
};
|
|
31
|
+
exports.useReqoreMedia = useReqoreMedia;
|
|
32
|
+
//# sourceMappingURL=useReqoreMedia.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReqoreMedia.js","sourceRoot":"","sources":["../../src/hooks/useReqoreMedia.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAErC;;;;;;;;;;;;;GAaG;AACU,QAAA,eAAe,GAC1B,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,MAAM,CAAC,UAAU,KAAK,UAAU,CAAC;AAE3E;;;;;;GAMG;AACI,IAAM,cAAc,GAAG,UAAC,KAAa,EAAE,YAAoB;IAApB,6BAAA,EAAA,oBAAoB;IAChE,OAAA,uBAAe,CAAC,CAAC,CAAC,IAAA,oBAAQ,EAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY;AAA9D,CAA8D,CAAC;AADpD,QAAA,cAAc,kBACsC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export * from './components/DatePicker';
|
|
|
24
24
|
export { ReqoreDescriptionList } from './components/DescriptionList';
|
|
25
25
|
export { ReqoreDrawer } from './components/Drawer';
|
|
26
26
|
export { DRAWER_MIN_SIZE, MODAL_MIN_HEIGHT, MODAL_MIN_WIDTH, } from './components/Drawer';
|
|
27
|
+
export { DRAWER_RESPONSIVE_LAYOUT_DEFAULTS, DRAWER_SHEET_BREAKPOINT, drawerSheetBreakpointPx, resolveDrawerResponsiveLayout, } from './components/Drawer';
|
|
28
|
+
export type { IReqoreDrawerResolvedResponsiveLayout, IReqoreDrawerResponsiveLayout, IReqoreDrawerResponsiveViewport, TReqoreDrawerResponsiveBreakpoint, } from './components/Drawer';
|
|
27
29
|
export { ReqoreBackdrop } from './components/Drawer/backdrop';
|
|
28
30
|
export { default as ReqoreDropdown } from './components/Dropdown';
|
|
29
31
|
export { default as ReqoreEntityRow } from './components/EntityRow';
|
|
@@ -42,6 +44,8 @@ export { default as ReqoreKeyboardShortcut, ReqoreKeyboardShortcut as ReqoreKeyb
|
|
|
42
44
|
export type { IReqoreKeyboardShortcutProps } from './components/KeyboardShortcut';
|
|
43
45
|
export { formatShortcut, formatShortcutCombo, isMacOS, shortcutHasModifier, } from './helpers/shortcuts';
|
|
44
46
|
export type { TReqoreKeyboardShortcut } from './helpers/shortcuts';
|
|
47
|
+
export { getSwipeStep, SWIPE } from './helpers/gestures';
|
|
48
|
+
export type { ISwipeThresholds } from './helpers/gestures';
|
|
45
49
|
export { ReqoreKeyValueTable } from './components/KeyValueTable';
|
|
46
50
|
export * from './components/Label';
|
|
47
51
|
export { default as ReqoreLayoutContent } from './components/Layout/content';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,YAAY,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EACL,2BAA2B,EAC3B,sBAAsB,EACtB,cAAc,EACd,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,kB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,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,KAAK,qBAAqB,GAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -17,9 +17,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
20
|
+
exports.ReqoreDropdownItem = exports.ReqoreDropdownDivider = exports.ReqoreEntityRow = exports.ReqoreDropdown = exports.ReqoreBackdrop = exports.resolveDrawerResponsiveLayout = exports.drawerSheetBreakpointPx = exports.DRAWER_SHEET_BREAKPOINT = exports.DRAWER_RESPONSIVE_LAYOUT_DEFAULTS = exports.MODAL_MIN_WIDTH = exports.MODAL_MIN_HEIGHT = exports.DRAWER_MIN_SIZE = exports.ReqoreDrawer = exports.ReqoreDescriptionList = exports.reqoreUnwrapEnvelope = exports.reqoreSetAtPath = exports.reqoreRenameKeyAtPath = exports.reqoreIsRecord = exports.reqoreIsEnvelope = exports.reqoreHasStructuredValue = exports.reqoreFormatScalar = exports.reqoreEnvelopeType = exports.reqoreDeleteAtPath = exports.reqoreCoerceValueToKind = exports.reqoreDataValueKind = exports.reqoreDataValueIntent = exports.ReqoreDataView = exports.ReqoreDataViewDefaultEnvelope = exports.ReqoreControlGroupItem = exports.ReqoreControlGroup = exports.ReqoreContent = exports.ReqoreCommentFeed = exports.ReqoreComment = exports.ReqoreColumn = exports.ReqoreColumns = exports.ReqoreCollection = exports.ReqoreCollapsibleContent = exports.reqoreCollapseTransition = exports.ReqoreCollapse = exports.REQORE_COLLAPSE_EASING = exports.REQORE_COLLAPSE_DURATION_MS = exports.ReqoreCheckbox = exports.ReqoreCallout = exports.ReqoreButtonRail = exports.ReqoreButton = exports.ReqoreBubbleGroup = exports.ReqoreBubble = exports.ReqoreBreadcrumbsItem = exports.ReqoreBreadcrumbs = exports.ReqoreAccordion = void 0;
|
|
21
|
+
exports.ReqoreProgress = exports.ReqorePopover = exports.ReqoreParagraph = exports.ReqoreP = exports.ReqorePanelSkeleton = exports.ReqorePanel = exports.ReqorePagination = exports.ReqoreNotification = exports.ReqoreNotificationsWrapper = exports.ReqoreNavbarItem = exports.ReqoreNavbarGroup = exports.ReqoreNavbarDivider = exports.ReqoreHeader = exports.ReqoreFooter = exports.ReqoreNavRail = exports.ReqoreMultiSelect = exports.ReqoreModal = exports.ReqoreMessage = exports.ReqoreMenuSection = exports.ReqoreMenuItem = exports.ReqoreMenuDivider = exports.ReqoreMenu = exports.ReqoreLink = exports.ReqoreLayoutContent = exports.ReqoreKeyValueTable = exports.SWIPE = exports.getSwipeStep = exports.shortcutHasModifier = exports.isMacOS = exports.formatShortcutCombo = exports.formatShortcut = exports.ReqoreKeyboardShortcutComponent = exports.ReqoreKeyboardShortcut = exports.ReqoreInput = exports.ReqoreIconPicker = exports.ReqoreIcon = exports.ReqoreHeading = exports.ReqoreH6 = exports.ReqoreH5 = exports.ReqoreH4 = exports.ReqoreH3 = exports.ReqoreH2 = exports.ReqoreH1 = exports.ReqoreModalsWrapper = exports.ReqoreFeatureCard = exports.ReqoreFadeScroller = exports.ReqoreErrorBoundary = exports.ReqoreEmptyState = exports.ReqoreTextEffect = exports.ReqoreEffect = void 0;
|
|
22
|
+
exports.REQORE_MARQUEE_OPT_OUT = exports.useReqoreProperty = exports.useReqore = exports.useReqorePaging = exports.useLatestZIndex = exports.useCloneThroughFragments = exports.ReqoreThemeContext = exports.ReqoreContext = exports.ReqoreUIProvider = exports.modalStore = exports.ReqoreNotifications = exports.ReqorePaginationContainer = exports.ReqoreIntents = exports.ReqoreSizes = exports.ReqoreFonts = exports.ReqoreColors = exports.ReqoreTree = exports.ReqoreTimeline = exports.ReqoreTimeAgo = exports.ReqoreTierGroup = exports.ReqoreTier = exports.ReqoreTextarea = exports.ReqoreTestimonial = exports.ReqoreTagGroup = exports.ReqoreTag = exports.DEFAULT_TABS_OVERFLOW_MENU_MAX_HEIGHT = exports.ReqoreTabsList = exports.ReqoreTabsListItem = exports.ReqoreTabsContent = exports.ReqoreTabs = exports.ReqoreTableValue = exports.ReqoreTableRow = exports.ReqoreTableHeaderCell = exports.ReqoreTableBodyCell = exports.ReqoreTable = exports.ReqoreStatistic = exports.ReqoreStackedBar = exports.ReqoreSpinner = exports.ReqoreSpan = exports.ReqoreVerticalSpacer = exports.ReqoreSpacer = exports.ReqoreHorizontalSpacer = exports.ReqoreSlider = exports.ReqoreSkeleton = exports.ReqoreSelect = exports.ReqoreRichTextEditor = exports.ReqoreSeverityRow = exports.ReqoreSegmentedControl = exports.ReqoreRating = exports.ReqoreRadioGroup = void 0;
|
|
23
|
+
exports.useReqoreTheme = exports.useMarqueeOnHover = void 0;
|
|
23
24
|
var Accordion_1 = require("./components/Accordion");
|
|
24
25
|
Object.defineProperty(exports, "ReqoreAccordion", { enumerable: true, get: function () { return Accordion_1.ReqoreAccordion; } });
|
|
25
26
|
var Breadcrumbs_1 = require("./components/Breadcrumbs");
|
|
@@ -87,6 +88,14 @@ var Drawer_2 = require("./components/Drawer");
|
|
|
87
88
|
Object.defineProperty(exports, "DRAWER_MIN_SIZE", { enumerable: true, get: function () { return Drawer_2.DRAWER_MIN_SIZE; } });
|
|
88
89
|
Object.defineProperty(exports, "MODAL_MIN_HEIGHT", { enumerable: true, get: function () { return Drawer_2.MODAL_MIN_HEIGHT; } });
|
|
89
90
|
Object.defineProperty(exports, "MODAL_MIN_WIDTH", { enumerable: true, get: function () { return Drawer_2.MODAL_MIN_WIDTH; } });
|
|
91
|
+
/* The sheet decision behind `responsiveLayout`, published so a consumer that
|
|
92
|
+
lays out AROUND a drawer (a docked bar, a page offset) can ask the same
|
|
93
|
+
question Reqore does instead of re-deriving the breakpoint locally. */
|
|
94
|
+
var Drawer_3 = require("./components/Drawer");
|
|
95
|
+
Object.defineProperty(exports, "DRAWER_RESPONSIVE_LAYOUT_DEFAULTS", { enumerable: true, get: function () { return Drawer_3.DRAWER_RESPONSIVE_LAYOUT_DEFAULTS; } });
|
|
96
|
+
Object.defineProperty(exports, "DRAWER_SHEET_BREAKPOINT", { enumerable: true, get: function () { return Drawer_3.DRAWER_SHEET_BREAKPOINT; } });
|
|
97
|
+
Object.defineProperty(exports, "drawerSheetBreakpointPx", { enumerable: true, get: function () { return Drawer_3.drawerSheetBreakpointPx; } });
|
|
98
|
+
Object.defineProperty(exports, "resolveDrawerResponsiveLayout", { enumerable: true, get: function () { return Drawer_3.resolveDrawerResponsiveLayout; } });
|
|
90
99
|
var backdrop_1 = require("./components/Drawer/backdrop");
|
|
91
100
|
Object.defineProperty(exports, "ReqoreBackdrop", { enumerable: true, get: function () { return backdrop_1.ReqoreBackdrop; } });
|
|
92
101
|
var Dropdown_1 = require("./components/Dropdown");
|
|
@@ -131,6 +140,11 @@ Object.defineProperty(exports, "formatShortcut", { enumerable: true, get: functi
|
|
|
131
140
|
Object.defineProperty(exports, "formatShortcutCombo", { enumerable: true, get: function () { return shortcuts_1.formatShortcutCombo; } });
|
|
132
141
|
Object.defineProperty(exports, "isMacOS", { enumerable: true, get: function () { return shortcuts_1.isMacOS; } });
|
|
133
142
|
Object.defineProperty(exports, "shortcutHasModifier", { enumerable: true, get: function () { return shortcuts_1.shortcutHasModifier; } });
|
|
143
|
+
/* The swipe judgement the library's own gestures share (a sheet pushed away, the tier stack),
|
|
144
|
+
so a consumer's gesture can feel the same under the finger. */
|
|
145
|
+
var gestures_1 = require("./helpers/gestures");
|
|
146
|
+
Object.defineProperty(exports, "getSwipeStep", { enumerable: true, get: function () { return gestures_1.getSwipeStep; } });
|
|
147
|
+
Object.defineProperty(exports, "SWIPE", { enumerable: true, get: function () { return gestures_1.SWIPE; } });
|
|
134
148
|
var KeyValueTable_1 = require("./components/KeyValueTable");
|
|
135
149
|
Object.defineProperty(exports, "ReqoreKeyValueTable", { enumerable: true, get: function () { return KeyValueTable_1.ReqoreKeyValueTable; } });
|
|
136
150
|
__exportStar(require("./components/Label"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAyD;AAAhD,4GAAA,eAAe,OAAA;AACxB,wDAAwE;AAA/D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D;AAAjD,wGAAA,eAAe,OAAA;AACxB,gDAAgE;AAAvD,wGAAA,OAAO,OAAiB;AACjC,kDAAkE;AAAzD,2HAAA,OAAO,OAAkB;AAClC,0CAA+C;AAAtC,kGAAA,UAAU,OAAA;AACnB,6CAA4D;AAAnD,sGAAA,MAAM,OAAgB;AAC/B,2CAA0E;AAAjE,oGAAA,sBAAsB,OAAe;AAC9C,2CAAgD;AAAvC,oGAAA,WAAW,OAAA;AACpB,2CAAkD;AAAzC,sGAAA,aAAa,OAAA;AACtB,8CAAgE;AAAvD,mHAAA,yBAAyB,OAAA;AAClC,8DAAyF;AAAhF,sIAAA,OAAO,OAAuB;AAAE,4GAAA,UAAU,OAAA;AACnD,sDAAsE;AAA7D,+HAAA,OAAO,OAAoB;AACpC,yDAAmE;AAA1D,+HAAA,OAAO,OAAiB;AACjC,uDAAuE;AAA9D,mIAAA,OAAO,OAAsB;AACtC,6EAA4E;AAAnE,oIAAA,wBAAwB,OAAA;AACjC,2DAAqE;AAA5D,mIAAA,OAAO,OAAmB;AACnC,+CAAoD;AAA3C,4GAAA,eAAe,OAAA;AACxB,+CAA8C;AAArC,sGAAA,SAAS,OAAA;AAClB,6DAA6D;AAApD,qHAAA,iBAAiB,OAAA;AAC1B,+DAImC;AAHjC,2HAAA,sBAAsB,OAAA;AACtB,sHAAA,iBAAiB,OAAA;AAGnB,6CAAkD;AAAzC,0GAAA,cAAc,OAAA"}
|
package/package.json
CHANGED
package/vitest.config.ts
CHANGED
|
@@ -35,6 +35,12 @@ export default mergeConfig(
|
|
|
35
35
|
],
|
|
36
36
|
test: {
|
|
37
37
|
name: 'storybook',
|
|
38
|
+
// One story file at a time. A touch story turns on Chrome's touch emulation through the DevTools
|
|
39
|
+
// protocol (`withTouchScreen`), and that emulation belongs to the whole page: a story file running
|
|
40
|
+
// beside it, in another frame, sees a coarse pointer and no hover. In #708's CI, Table's mouse-sized
|
|
41
|
+
// row menu measured 44px (the touch size) and the Marquee stories found no hover, while the EntityRow
|
|
42
|
+
// and SeverityRow touch stories ran at the same time.
|
|
43
|
+
fileParallelism: false,
|
|
38
44
|
browser: {
|
|
39
45
|
enabled: true,
|
|
40
46
|
// Vitest 4's @vitest/browser-playwright no longer applies
|