@qoretechnologies/reqore 0.78.24 → 0.78.25-pr.715.g25b6c3d
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/Accordion/index.d.ts.map +1 -1
- package/dist/components/Accordion/index.js +28 -19
- package/dist/components/Accordion/index.js.map +1 -1
- package/dist/components/Bubble/index.d.ts.map +1 -1
- package/dist/components/Bubble/index.js +3 -2
- package/dist/components/Bubble/index.js.map +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +58 -21
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Callout/index.d.ts.map +1 -1
- package/dist/components/Callout/index.js +25 -12
- package/dist/components/Callout/index.js.map +1 -1
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +42 -19
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/CollapsibleContent/index.d.ts +12 -0
- package/dist/components/CollapsibleContent/index.d.ts.map +1 -1
- package/dist/components/CollapsibleContent/index.js +37 -16
- package/dist/components/CollapsibleContent/index.js.map +1 -1
- package/dist/components/Collection/index.d.ts +8 -1
- package/dist/components/Collection/index.d.ts.map +1 -1
- package/dist/components/Collection/index.js +34 -21
- package/dist/components/Collection/index.js.map +1 -1
- package/dist/components/Collection/item.js +1 -1
- package/dist/components/Collection/item.js.map +1 -1
- package/dist/components/DataView/index.d.ts +11 -0
- package/dist/components/DataView/index.d.ts.map +1 -1
- package/dist/components/DataView/index.js +40 -22
- package/dist/components/DataView/index.js.map +1 -1
- package/dist/components/DatePicker/index.d.ts +6 -1
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +12 -10
- package/dist/components/DatePicker/index.js.map +1 -1
- package/dist/components/DescriptionList/index.d.ts +7 -0
- package/dist/components/DescriptionList/index.d.ts.map +1 -1
- package/dist/components/DescriptionList/index.js +6 -2
- package/dist/components/DescriptionList/index.js.map +1 -1
- package/dist/components/Drawer/backdrop.d.ts.map +1 -1
- package/dist/components/Drawer/backdrop.js +3 -1
- package/dist/components/Drawer/backdrop.js.map +1 -1
- package/dist/components/Drawer/index.d.ts +17 -0
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.js +70 -15
- package/dist/components/Drawer/index.js.map +1 -1
- package/dist/components/Dropdown/index.d.ts +11 -0
- package/dist/components/Dropdown/index.d.ts.map +1 -1
- package/dist/components/Dropdown/index.js +10 -3
- package/dist/components/Dropdown/index.js.map +1 -1
- package/dist/components/Dropdown/item.js +1 -1
- package/dist/components/Dropdown/item.js.map +1 -1
- package/dist/components/Dropdown/list.d.ts +9 -2
- package/dist/components/Dropdown/list.d.ts.map +1 -1
- package/dist/components/Dropdown/list.js +29 -13
- package/dist/components/Dropdown/list.js.map +1 -1
- package/dist/components/Effect/index.d.ts +6 -0
- package/dist/components/Effect/index.d.ts.map +1 -1
- package/dist/components/Effect/index.js +26 -21
- package/dist/components/Effect/index.js.map +1 -1
- package/dist/components/EntityRow/index.d.ts.map +1 -1
- package/dist/components/EntityRow/index.js +2 -2
- package/dist/components/EntityRow/index.js.map +1 -1
- package/dist/components/FeatureCard/index.d.ts.map +1 -1
- package/dist/components/FeatureCard/index.js +10 -5
- package/dist/components/FeatureCard/index.js.map +1 -1
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +11 -3
- package/dist/components/Header/index.js.map +1 -1
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/index.js +10 -5
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js +6 -5
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/InternalPopover/index.d.ts.map +1 -1
- package/dist/components/InternalPopover/index.js +69 -9
- package/dist/components/InternalPopover/index.js.map +1 -1
- package/dist/components/KeyboardShortcut/index.d.ts.map +1 -1
- package/dist/components/KeyboardShortcut/index.js +3 -2
- package/dist/components/KeyboardShortcut/index.js.map +1 -1
- package/dist/components/Layout/index.d.ts.map +1 -1
- package/dist/components/Layout/index.js +6 -2
- package/dist/components/Layout/index.js.map +1 -1
- package/dist/components/Link/index.d.ts.map +1 -1
- package/dist/components/Link/index.js +10 -5
- package/dist/components/Link/index.js.map +1 -1
- package/dist/components/MarkdownBlock/index.d.ts +38 -0
- package/dist/components/MarkdownBlock/index.d.ts.map +1 -0
- package/dist/components/MarkdownBlock/index.js +88 -0
- package/dist/components/MarkdownBlock/index.js.map +1 -0
- package/dist/components/Menu/divider.d.ts.map +1 -1
- package/dist/components/Menu/divider.js +4 -1
- package/dist/components/Menu/divider.js.map +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Menu/index.js.map +1 -1
- package/dist/components/Message/index.d.ts.map +1 -1
- package/dist/components/Message/index.js +9 -1
- package/dist/components/Message/index.js.map +1 -1
- package/dist/components/Modal/index.d.ts +24 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.js +5 -34
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/NavRail/index.d.ts.map +1 -1
- package/dist/components/NavRail/index.js +5 -3
- package/dist/components/NavRail/index.js.map +1 -1
- package/dist/components/Notifications/notification.d.ts.map +1 -1
- package/dist/components/Notifications/notification.js +3 -2
- package/dist/components/Notifications/notification.js.map +1 -1
- package/dist/components/Notifications/styles.d.ts +2 -0
- package/dist/components/Notifications/styles.d.ts.map +1 -1
- package/dist/components/Notifications/styles.js +65 -24
- package/dist/components/Notifications/styles.js.map +1 -1
- package/dist/components/Panel/TitleAndBadges.d.ts +31 -0
- package/dist/components/Panel/TitleAndBadges.d.ts.map +1 -0
- package/dist/components/Panel/TitleAndBadges.js +81 -0
- package/dist/components/Panel/TitleAndBadges.js.map +1 -0
- package/dist/components/Panel/index.d.ts +37 -0
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +249 -96
- package/dist/components/Panel/index.js.map +1 -1
- package/dist/components/Paragraph/index.d.ts.map +1 -1
- package/dist/components/Paragraph/index.js +3 -3
- package/dist/components/Paragraph/index.js.map +1 -1
- package/dist/components/Progress/index.d.ts.map +1 -1
- package/dist/components/Progress/index.js +11 -4
- package/dist/components/Progress/index.js.map +1 -1
- package/dist/components/Rating/index.d.ts.map +1 -1
- package/dist/components/Rating/index.js +1 -1
- package/dist/components/Rating/index.js.map +1 -1
- package/dist/components/SegmentedControl/index.d.ts +24 -1
- package/dist/components/SegmentedControl/index.d.ts.map +1 -1
- package/dist/components/SegmentedControl/index.js +136 -59
- package/dist/components/SegmentedControl/index.js.map +1 -1
- package/dist/components/Select/valuePreview.js +5 -2
- package/dist/components/Select/valuePreview.js.map +1 -1
- package/dist/components/SeverityRow/index.d.ts +12 -4
- package/dist/components/SeverityRow/index.d.ts.map +1 -1
- package/dist/components/SeverityRow/index.js +37 -15
- package/dist/components/SeverityRow/index.js.map +1 -1
- package/dist/components/Spacer/index.js +1 -1
- package/dist/components/Spacer/index.js.map +1 -1
- package/dist/components/Span/index.d.ts.map +1 -1
- package/dist/components/Span/index.js +3 -3
- package/dist/components/Span/index.js.map +1 -1
- package/dist/components/StackedBar/index.d.ts.map +1 -1
- package/dist/components/StackedBar/index.js +8 -2
- package/dist/components/StackedBar/index.js.map +1 -1
- package/dist/components/Statistic/index.d.ts +16 -1
- package/dist/components/Statistic/index.d.ts.map +1 -1
- package/dist/components/Statistic/index.js +7 -5
- package/dist/components/Statistic/index.js.map +1 -1
- package/dist/components/StatisticGroup/index.d.ts +68 -0
- package/dist/components/StatisticGroup/index.d.ts.map +1 -0
- package/dist/components/StatisticGroup/index.js +123 -0
- package/dist/components/StatisticGroup/index.js.map +1 -0
- package/dist/components/Table/body.d.ts.map +1 -1
- package/dist/components/Table/body.js +36 -4
- package/dist/components/Table/body.js.map +1 -1
- package/dist/components/Table/cell.d.ts.map +1 -1
- package/dist/components/Table/cell.js +42 -22
- package/dist/components/Table/cell.js.map +1 -1
- package/dist/components/Table/controls.d.ts +70 -0
- package/dist/components/Table/controls.d.ts.map +1 -0
- package/dist/components/Table/controls.js +137 -0
- package/dist/components/Table/controls.js.map +1 -0
- package/dist/components/Table/header.d.ts +10 -1
- package/dist/components/Table/header.d.ts.map +1 -1
- package/dist/components/Table/header.js +5 -5
- package/dist/components/Table/header.js.map +1 -1
- package/dist/components/Table/headerCell.d.ts +10 -1
- package/dist/components/Table/headerCell.d.ts.map +1 -1
- package/dist/components/Table/headerCell.js +37 -24
- package/dist/components/Table/headerCell.js.map +1 -1
- package/dist/components/Table/helpers.d.ts +36 -3
- package/dist/components/Table/helpers.d.ts.map +1 -1
- package/dist/components/Table/helpers.js +79 -8
- package/dist/components/Table/helpers.js.map +1 -1
- package/dist/components/Table/index.d.ts +67 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +116 -83
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/Table/row.d.ts +5 -1
- package/dist/components/Table/row.d.ts.map +1 -1
- package/dist/components/Table/row.js +30 -7
- package/dist/components/Table/row.js.map +1 -1
- package/dist/components/Tabs/index.d.ts +5 -0
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tabs/index.js.map +1 -1
- package/dist/components/Tabs/item.d.ts.map +1 -1
- package/dist/components/Tabs/item.js +8 -3
- package/dist/components/Tabs/item.js.map +1 -1
- package/dist/components/Tabs/list.d.ts +7 -2
- package/dist/components/Tabs/list.d.ts.map +1 -1
- package/dist/components/Tabs/list.js +28 -16
- package/dist/components/Tabs/list.js.map +1 -1
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/index.js +8 -7
- package/dist/components/Tag/index.js.map +1 -1
- package/dist/components/Testimonial/index.d.ts.map +1 -1
- package/dist/components/Testimonial/index.js +10 -5
- package/dist/components/Testimonial/index.js.map +1 -1
- package/dist/components/Textarea/index.d.ts.map +1 -1
- package/dist/components/Textarea/index.js +6 -5
- package/dist/components/Textarea/index.js.map +1 -1
- package/dist/components/Tier/index.d.ts +7 -1
- package/dist/components/Tier/index.d.ts.map +1 -1
- package/dist/components/Tier/index.js +10 -9
- package/dist/components/Tier/index.js.map +1 -1
- package/dist/components/Timeline/index.d.ts.map +1 -1
- package/dist/components/Timeline/index.js +4 -3
- package/dist/components/Timeline/index.js.map +1 -1
- package/dist/components/Tree/index.d.ts +18 -1
- package/dist/components/Tree/index.d.ts.map +1 -1
- package/dist/components/Tree/index.js +36 -25
- package/dist/components/Tree/index.js.map +1 -1
- package/dist/components/Tree/modal.d.ts.map +1 -1
- package/dist/components/Tree/modal.js +8 -4
- package/dist/components/Tree/modal.js.map +1 -1
- package/dist/constants/sizes.d.ts +26 -0
- package/dist/constants/sizes.d.ts.map +1 -1
- package/dist/constants/sizes.js +33 -1
- package/dist/constants/sizes.js.map +1 -1
- package/dist/constants/theme.d.ts +128 -0
- package/dist/constants/theme.d.ts.map +1 -1
- package/dist/constants/theme.js.map +1 -1
- package/dist/containers/ReqoreProvider.d.ts +23 -0
- package/dist/containers/ReqoreProvider.d.ts.map +1 -1
- package/dist/containers/ReqoreProvider.js +52 -12
- package/dist/containers/ReqoreProvider.js.map +1 -1
- package/dist/containers/UIProvider.d.ts +4 -1
- package/dist/containers/UIProvider.d.ts.map +1 -1
- package/dist/containers/UIProvider.js +6 -2
- package/dist/containers/UIProvider.js.map +1 -1
- package/dist/context/ReqoreContext.d.ts +16 -0
- package/dist/context/ReqoreContext.d.ts.map +1 -1
- package/dist/context/ReqoreContext.js +3 -0
- package/dist/context/ReqoreContext.js.map +1 -1
- package/dist/helpers/colors.d.ts +18 -1
- package/dist/helpers/colors.d.ts.map +1 -1
- package/dist/helpers/colors.js +34 -3
- package/dist/helpers/colors.js.map +1 -1
- package/dist/helpers/typeScale.d.ts +30 -0
- package/dist/helpers/typeScale.d.ts.map +1 -0
- package/dist/helpers/typeScale.js +34 -0
- package/dist/helpers/typeScale.js.map +1 -0
- package/dist/helpers/utils.d.ts +5 -1
- package/dist/helpers/utils.d.ts.map +1 -1
- package/dist/helpers/utils.js +5 -2
- package/dist/helpers/utils.js.map +1 -1
- package/dist/hooks/useColorDataByType.d.ts +6 -0
- package/dist/hooks/useColorDataByType.d.ts.map +1 -0
- package/dist/hooks/useColorDataByType.js +11 -0
- package/dist/hooks/useColorDataByType.js.map +1 -0
- package/dist/hooks/useFocusTrap.d.ts +12 -0
- package/dist/hooks/useFocusTrap.d.ts.map +1 -1
- package/dist/hooks/useFocusTrap.js +50 -7
- package/dist/hooks/useFocusTrap.js.map +1 -1
- package/dist/hooks/useReqoreEscClose.d.ts +20 -0
- package/dist/hooks/useReqoreEscClose.d.ts.map +1 -0
- package/dist/hooks/useReqoreEscClose.js +44 -0
- package/dist/hooks/useReqoreEscClose.js.map +1 -0
- package/dist/hooks/useUppercaseLabels.d.ts +8 -0
- package/dist/hooks/useUppercaseLabels.d.ts.map +1 -0
- package/dist/hooks/useUppercaseLabels.js +13 -0
- package/dist/hooks/useUppercaseLabels.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -3
- package/dist/index.js.map +1 -1
- package/docs/docs/guides/theming.mdx +15 -0
- package/package.json +1 -1
- package/tests.json +0 -1
|
@@ -16,6 +16,19 @@ var FOCUSABLE_SELECTOR = [
|
|
|
16
16
|
'video[controls]',
|
|
17
17
|
'details > summary:first-of-type',
|
|
18
18
|
].join(',');
|
|
19
|
+
/**
|
|
20
|
+
* The element a trap gives focus to when it opens: the one its content marks with
|
|
21
|
+
* `data-reqore-initial-focus` (a confirmation's Cancel, ahead of the x in its title bar: a dialog
|
|
22
|
+
* that asks opens on its least destructive answer), else the first focusable one.
|
|
23
|
+
*/
|
|
24
|
+
var initialOf = function (focusable) { var _a; return (_a = focusable.find(function (element) { return element.hasAttribute('data-reqore-initial-focus'); })) !== null && _a !== void 0 ? _a : focusable[0]; };
|
|
25
|
+
/**
|
|
26
|
+
* The traps that hold Tab, innermost last. Only the last one answers a Tab: two active traps
|
|
27
|
+
* fought, the outer pulling focus to its first element and the inner pulling it back (a
|
|
28
|
+
* confirmation over a drawer with a backdrop). When the inner one ends, the one under it answers
|
|
29
|
+
* again.
|
|
30
|
+
*/
|
|
31
|
+
var trapStack = [];
|
|
19
32
|
/**
|
|
20
33
|
* Hook that traps focus within a container element.
|
|
21
34
|
* When active, Tab/Shift+Tab cycles through focusable elements inside the container.
|
|
@@ -26,7 +39,9 @@ var FOCUSABLE_SELECTOR = [
|
|
|
26
39
|
*/
|
|
27
40
|
function useFocusTrap(containerRef, options) {
|
|
28
41
|
if (options === void 0) { options = {}; }
|
|
29
|
-
var _a = options.active, active = _a === void 0 ? true : _a, _b = options.restoreFocus, restoreFocus = _b === void 0 ? true : _b, _c = options.autoFocus, autoFocus = _c === void 0 ? true : _c;
|
|
42
|
+
var _a = options.active, active = _a === void 0 ? true : _a, _b = options.restoreFocus, restoreFocus = _b === void 0 ? true : _b, _c = options.autoFocus, autoFocus = _c === void 0 ? true : _c, _d = options.trap, trap = _d === void 0 ? true : _d, _e = options.initialFocus, initialFocus = _e === void 0 ? 'first' : _e;
|
|
43
|
+
// This trap's place in the stack.
|
|
44
|
+
var trapId = (0, react_1.useRef)(Symbol('focus-trap')).current;
|
|
30
45
|
// Store the element that was focused before the trap was activated
|
|
31
46
|
var previouslyFocusedRef = (0, react_1.useRef)(null);
|
|
32
47
|
// The tab stops within the container, in document order
|
|
@@ -51,6 +66,9 @@ function useFocusTrap(containerRef, options) {
|
|
|
51
66
|
var handleKeyDown = (0, react_1.useCallback)(function (event) {
|
|
52
67
|
if (event.key !== 'Tab' || !containerRef.current)
|
|
53
68
|
return;
|
|
69
|
+
// Only the innermost trap holds Tab.
|
|
70
|
+
if (trapStack[trapStack.length - 1] !== trapId)
|
|
71
|
+
return;
|
|
54
72
|
var focusableElements = getFocusableElements();
|
|
55
73
|
if (focusableElements.length === 0)
|
|
56
74
|
return;
|
|
@@ -107,10 +125,17 @@ function useFocusTrap(containerRef, options) {
|
|
|
107
125
|
var activeElement = document.activeElement;
|
|
108
126
|
var focusAlreadyInside = activeElement && containerRef.current.contains(activeElement);
|
|
109
127
|
// Only auto-focus if focus is not already inside the container
|
|
110
|
-
if (!focusAlreadyInside) {
|
|
128
|
+
if (!focusAlreadyInside && initialFocus === 'container') {
|
|
129
|
+
// A dialog that is not modal takes focus as a whole: its box, not its first control.
|
|
130
|
+
var box = containerRef.current;
|
|
131
|
+
box.setAttribute('tabindex', '-1');
|
|
132
|
+
box.style.outline = 'none';
|
|
133
|
+
box.focus({ preventScroll: true });
|
|
134
|
+
}
|
|
135
|
+
else if (!focusAlreadyInside) {
|
|
111
136
|
var focusableElements = getFocusableElements();
|
|
112
137
|
if (focusableElements.length > 0) {
|
|
113
|
-
focusableElements
|
|
138
|
+
initialOf(focusableElements).focus();
|
|
114
139
|
}
|
|
115
140
|
else {
|
|
116
141
|
// If no focusable elements, focus the container itself...
|
|
@@ -129,7 +154,8 @@ function useFocusTrap(containerRef, options) {
|
|
|
129
154
|
awaitContent = undefined;
|
|
130
155
|
return;
|
|
131
156
|
}
|
|
132
|
-
var
|
|
157
|
+
var focusable = getFocusableElements();
|
|
158
|
+
var first = focusable.length ? initialOf(focusable) : undefined;
|
|
133
159
|
if (first) {
|
|
134
160
|
awaitContent === null || awaitContent === void 0 ? void 0 : awaitContent.disconnect();
|
|
135
161
|
awaitContent = undefined;
|
|
@@ -147,10 +173,17 @@ function useFocusTrap(containerRef, options) {
|
|
|
147
173
|
}
|
|
148
174
|
});
|
|
149
175
|
}
|
|
150
|
-
// Add the keydown listener
|
|
151
|
-
|
|
176
|
+
// Add the keydown listener, and take the top of the stack, when this trap holds Tab
|
|
177
|
+
if (trap) {
|
|
178
|
+
trapStack.push(trapId);
|
|
179
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
180
|
+
}
|
|
152
181
|
return function () {
|
|
153
182
|
document.removeEventListener('keydown', handleKeyDown);
|
|
183
|
+
var place = trapStack.indexOf(trapId);
|
|
184
|
+
if (place !== -1) {
|
|
185
|
+
trapStack.splice(place, 1);
|
|
186
|
+
}
|
|
154
187
|
// A trap that ends before its first frame does not pull focus into a container it no longer traps
|
|
155
188
|
if (autoFocusFrame !== undefined) {
|
|
156
189
|
cancelAnimationFrame(autoFocusFrame);
|
|
@@ -178,7 +211,17 @@ function useFocusTrap(containerRef, options) {
|
|
|
178
211
|
});
|
|
179
212
|
}
|
|
180
213
|
};
|
|
181
|
-
}, [
|
|
214
|
+
}, [
|
|
215
|
+
active,
|
|
216
|
+
autoFocus,
|
|
217
|
+
restoreFocus,
|
|
218
|
+
trap,
|
|
219
|
+
initialFocus,
|
|
220
|
+
trapId,
|
|
221
|
+
containerRef,
|
|
222
|
+
getFocusableElements,
|
|
223
|
+
handleKeyDown,
|
|
224
|
+
]);
|
|
182
225
|
}
|
|
183
226
|
exports.default = useFocusTrap;
|
|
184
227
|
//# sourceMappingURL=useFocusTrap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFocusTrap.js","sourceRoot":"","sources":["../../src/hooks/useFocusTrap.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"useFocusTrap.js","sourceRoot":"","sources":["../../src/hooks/useFocusTrap.ts"],"names":[],"mappings":";;AA8DA,oCA4MC;AA1QD,+BAAkE;AAElE,sCAAsC;AACtC,IAAM,kBAAkB,GAAG;IACzB,SAAS;IACT,YAAY;IACZ,4CAA4C;IAC5C,wBAAwB;IACxB,0BAA0B;IAC1B,wBAAwB;IACxB,iCAAiC;IACjC,mBAAmB;IACnB,iBAAiB;IACjB,iBAAiB;IACjB,iCAAiC;CAClC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ;;;;GAIG;AACH,IAAM,SAAS,GAAG,UAAC,SAAwB,YACzC,OAAA,MAAA,SAAS,CAAC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,YAAY,CAAC,2BAA2B,CAAC,EAAjD,CAAiD,CAAC,mCAAI,SAAS,CAA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AAC;YACvD,oBAAoB,CAAC,OAAO,GAAG,IAAI,CAAC;YACpC,IAAI,YAAY,IAAI,iBAAiB,EAAE,CAAC;gBACtC,sEAAsE;gBACtE,qBAAqB,CAAC;oBACpB,IAAI,CAAC,iBAAiB,CAAC,WAAW;wBAAE,OAAO;oBAC3C,+FAA+F;oBAC/F,6FAA6F;oBAC7F,IAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC;oBAC7C,IAAM,WAAW,GACf,CAAC,aAAa;wBACd,aAAa,KAAK,QAAQ,CAAC,IAAI;wBAC/B,CAAC,CAAC,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,CAAC,aAAa,CAAC,CAAA,CAAC;oBACvC,IAAI,WAAW,EAAE,CAAC;wBAChB,iBAAiB,CAAC,KAAK,EAAE,CAAC;oBAC5B,CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EAAE;QACD,MAAM;QACN,SAAS;QACT,YAAY;QACZ,IAAI;QACJ,YAAY;QACZ,MAAM;QACN,YAAY;QACZ,oBAAoB;QACpB,aAAa;KACd,CAAC,CAAC;AACL,CAAC;AAED,kBAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IReqoreConfirmationModal } from '../containers/ReqoreProvider';
|
|
2
|
+
export interface IUseReqoreEscCloseOptions {
|
|
3
|
+
/** The dialog is open: it joins the Escape stack, and leaves it when it closes. */
|
|
4
|
+
isOpen?: boolean;
|
|
5
|
+
/** What closing it does. Without it the dialog cannot be closed by Escape. */
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** The dialog's own say; unset, the app's `closeModalsOnEscPress`. */
|
|
9
|
+
closeOnEscPress?: boolean;
|
|
10
|
+
/** Asked first, as the close button asks. */
|
|
11
|
+
confirmOnClose?: boolean | IReqoreConfirmationModal;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Escape closes the dialog in front, and only it: every open dialog (a drawer, a modal, the
|
|
15
|
+
* confirmation over them) joins the provider's Escape stack, and an Escape asks the stack, so the
|
|
16
|
+
* one on top closes - after its confirmation, when it asks for one - and the ones under it stay.
|
|
17
|
+
* A drawer declared `closeOnEscPress` and never read it: only a modal closed on Escape.
|
|
18
|
+
*/
|
|
19
|
+
export declare const useReqoreEscClose: ({ isOpen, onClose, disabled, closeOnEscPress, confirmOnClose, }: IUseReqoreEscCloseOptions) => void;
|
|
20
|
+
//# sourceMappingURL=useReqoreEscClose.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReqoreEscClose.d.ts","sourceRoot":"","sources":["../../src/hooks/useReqoreEscClose.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAG7E,MAAM,WAAW,yBAAyB;IACxC,mFAAmF;IACnF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sEAAsE;IACtE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,6CAA6C;IAC7C,cAAc,CAAC,EAAE,OAAO,GAAG,wBAAwB,CAAC;CACrD;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,iEAM/B,yBAAyB,KAAG,IAsC9B,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useReqoreEscClose = void 0;
|
|
4
|
+
var nanoid_1 = require("nanoid");
|
|
5
|
+
var react_1 = require("react");
|
|
6
|
+
var useReqoreContext_1 = require("./useReqoreContext");
|
|
7
|
+
/**
|
|
8
|
+
* Escape closes the dialog in front, and only it: every open dialog (a drawer, a modal, the
|
|
9
|
+
* confirmation over them) joins the provider's Escape stack, and an Escape asks the stack, so the
|
|
10
|
+
* one on top closes - after its confirmation, when it asks for one - and the ones under it stay.
|
|
11
|
+
* A drawer declared `closeOnEscPress` and never read it: only a modal closed on Escape.
|
|
12
|
+
*/
|
|
13
|
+
var useReqoreEscClose = function (_a) {
|
|
14
|
+
var isOpen = _a.isOpen, onClose = _a.onClose, disabled = _a.disabled, closeOnEscPress = _a.closeOnEscPress, confirmOnClose = _a.confirmOnClose;
|
|
15
|
+
var id = (0, react_1.useMemo)(function () { return (0, nanoid_1.nanoid)(); }, []);
|
|
16
|
+
var escClosableModals = (0, useReqoreContext_1.useReqoreProperty)('escClosableModals');
|
|
17
|
+
var closeModalsOnEscPress = (0, useReqoreContext_1.useReqoreProperty)('closeModalsOnEscPress');
|
|
18
|
+
var add = (0, useReqoreContext_1.useReqoreProperty)('addEscClosableModal');
|
|
19
|
+
var remove = (0, useReqoreContext_1.useReqoreProperty)('removeEscClosableModal');
|
|
20
|
+
var isEscClosable = !!isOpen && !!onClose && !disabled && (closeOnEscPress !== null && closeOnEscPress !== void 0 ? closeOnEscPress : closeModalsOnEscPress);
|
|
21
|
+
var handleKeyDown = (0, react_1.useCallback)(function (event) {
|
|
22
|
+
if (event.key === 'Escape') {
|
|
23
|
+
remove === null || remove === void 0 ? void 0 : remove(id, onClose, confirmOnClose);
|
|
24
|
+
}
|
|
25
|
+
}, [id, onClose, remove, confirmOnClose]);
|
|
26
|
+
(0, react_1.useEffect)(function () {
|
|
27
|
+
if (isEscClosable) {
|
|
28
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
29
|
+
}
|
|
30
|
+
return function () {
|
|
31
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
32
|
+
};
|
|
33
|
+
}, [escClosableModals, isEscClosable, handleKeyDown]);
|
|
34
|
+
(0, react_1.useEffect)(function () {
|
|
35
|
+
if (isOpen) {
|
|
36
|
+
add === null || add === void 0 ? void 0 : add(id);
|
|
37
|
+
}
|
|
38
|
+
return function () {
|
|
39
|
+
remove === null || remove === void 0 ? void 0 : remove(id);
|
|
40
|
+
};
|
|
41
|
+
}, [id, isOpen]);
|
|
42
|
+
};
|
|
43
|
+
exports.useReqoreEscClose = useReqoreEscClose;
|
|
44
|
+
//# sourceMappingURL=useReqoreEscClose.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReqoreEscClose.js","sourceRoot":"","sources":["../../src/hooks/useReqoreEscClose.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAChC,+BAAwD;AAExD,uDAAuD;AAcvD;;;;;GAKG;AACI,IAAM,iBAAiB,GAAG,UAAC,EAMN;QAL1B,MAAM,YAAA,EACN,OAAO,aAAA,EACP,QAAQ,cAAA,EACR,eAAe,qBAAA,EACf,cAAc,oBAAA;IAEd,IAAM,EAAE,GAAG,IAAA,eAAO,EAAC,cAAM,OAAA,IAAA,eAAM,GAAE,EAAR,CAAQ,EAAE,EAAE,CAAC,CAAC;IACvC,IAAM,iBAAiB,GAAG,IAAA,oCAAiB,EAAC,mBAAmB,CAAC,CAAC;IACjE,IAAM,qBAAqB,GAAG,IAAA,oCAAiB,EAAC,uBAAuB,CAAC,CAAC;IACzE,IAAM,GAAG,GAAG,IAAA,oCAAiB,EAAC,qBAAqB,CAAC,CAAC;IACrD,IAAM,MAAM,GAAG,IAAA,oCAAiB,EAAC,wBAAwB,CAAC,CAAC;IAE3D,IAAM,aAAa,GACjB,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,OAAO,IAAI,CAAC,QAAQ,IAAI,CAAC,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,qBAAqB,CAAC,CAAC;IAEnF,IAAM,aAAa,GAAG,IAAA,mBAAW,EAC/B,UAAC,KAAoB;QACnB,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ,EAAE,CAAC;YAC3B,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,EAAE,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;QACxC,CAAC;IACH,CAAC,EACD,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,CACtC,CAAC;IAEF,IAAA,iBAAS,EAAC;QACR,IAAI,aAAa,EAAE,CAAC;YAClB,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QACtD,CAAC;QAED,OAAO;YACL,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QACzD,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,iBAAiB,EAAE,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC;IAEtD,IAAA,iBAAS,EAAC;QACR,IAAI,MAAM,EAAE,CAAC;YACX,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAG,EAAE,CAAC,CAAC;QACZ,CAAC;QAED,OAAO;YACL,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,EAAE,CAAC,CAAC;QACf,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;AACnB,CAAC,CAAC;AA5CW,QAAA,iBAAiB,qBA4C5B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the small labels Reqore names things with — a statistic's label, a menu heading,
|
|
3
|
+
* a collection's group header, a switch's on / off text, a progress target, a data view's
|
|
4
|
+
* type tag, a spacer's label — are tracked uppercase. `theme.uppercaseLabels`, decided once
|
|
5
|
+
* for the whole app; `true` unless the theme says `false`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useUppercaseLabels: () => boolean;
|
|
8
|
+
//# sourceMappingURL=useUppercaseLabels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUppercaseLabels.d.ts","sourceRoot":"","sources":["../../src/hooks/useUppercaseLabels.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,QAAO,OACiB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useUppercaseLabels = void 0;
|
|
4
|
+
var useReqoreContext_1 = require("./useReqoreContext");
|
|
5
|
+
/**
|
|
6
|
+
* Whether the small labels Reqore names things with — a statistic's label, a menu heading,
|
|
7
|
+
* a collection's group header, a switch's on / off text, a progress target, a data view's
|
|
8
|
+
* type tag, a spacer's label — are tracked uppercase. `theme.uppercaseLabels`, decided once
|
|
9
|
+
* for the whole app; `true` unless the theme says `false`.
|
|
10
|
+
*/
|
|
11
|
+
var useUppercaseLabels = function () { var _a; return ((_a = (0, useReqoreContext_1.useReqoreProperty)('theme')) === null || _a === void 0 ? void 0 : _a.uppercaseLabels) !== false; };
|
|
12
|
+
exports.useUppercaseLabels = useUppercaseLabels;
|
|
13
|
+
//# sourceMappingURL=useUppercaseLabels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUppercaseLabels.js","sourceRoot":"","sources":["../../src/hooks/useUppercaseLabels.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AAEvD;;;;;GAKG;AACI,IAAM,kBAAkB,GAAG,sBAChC,OAAA,CAAA,MAAA,IAAA,oCAAiB,EAAC,OAAO,CAAC,0CAAE,eAAe,MAAK,KAAK,CAAA,EAAA,CAAC;AAD3C,QAAA,kBAAkB,sBACyB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export { ReqoreEmptyState } from './components/EmptyState';
|
|
|
35
35
|
export { ReqoreErrorBoundary } from './components/ErrorBoundary';
|
|
36
36
|
export { ReqoreFadeScroller } from './components/FadeScroller';
|
|
37
37
|
export { ReqoreFeatureCard } from './components/FeatureCard';
|
|
38
|
+
export { ReqoreMarkdownBlock } from './components/MarkdownBlock';
|
|
39
|
+
export type { IReqoreMarkdownBlockProps } from './components/MarkdownBlock';
|
|
38
40
|
export { ReqoreModalsWrapper } from './components/GlobalModalsWrapper';
|
|
39
41
|
export { ReqoreH1, ReqoreH2, ReqoreH3, ReqoreH4, ReqoreH5, ReqoreH6, ReqoreHeading, } from './components/Header';
|
|
40
42
|
export { default as ReqoreIcon } from './components/Icon';
|
|
@@ -93,12 +95,17 @@ export { ReqoreSpan } from './components/Span';
|
|
|
93
95
|
export { ReqoreSpinner } from './components/Spinner';
|
|
94
96
|
export { default as ReqoreStackedBar } from './components/StackedBar';
|
|
95
97
|
export { default as ReqoreStatistic } from './components/Statistic';
|
|
98
|
+
export { ReqoreStatisticGroup, STATISTIC_GROUP_MAX } from './components/StatisticGroup';
|
|
99
|
+
export type { IReqoreStatisticGroupItem, IReqoreStatisticGroupProps, } from './components/StatisticGroup';
|
|
96
100
|
export { default as ReqoreTable } from './components/Table';
|
|
97
101
|
export type { TReqoreTableCellAction } from './components/Table';
|
|
98
102
|
export { ReqoreTableBodyCell } from './components/Table/cell';
|
|
99
103
|
export { ReqoreTableHeaderCell } from './components/Table/headerCell';
|
|
100
104
|
export { default as ReqoreTableRow } from './components/Table/row';
|
|
101
105
|
export { ReqoreTableValue } from './components/Table/value';
|
|
106
|
+
export { getTableColumnsPickerItems } from './components/Table/helpers';
|
|
107
|
+
export { useReqoreTableControls } from './components/Table/controls';
|
|
108
|
+
export type { IReqoreTableControls, IUseReqoreTableControlsOptions, } from './components/Table/controls';
|
|
102
109
|
export { default as ReqoreTabs } from './components/Tabs';
|
|
103
110
|
export { default as ReqoreTabsContent } from './components/Tabs/content';
|
|
104
111
|
export { default as ReqoreTabsListItem } from './components/Tabs/item';
|
|
@@ -117,8 +124,11 @@ export { Colors as ReqoreColors } from './constants/colors';
|
|
|
117
124
|
export { FONT_FAMILY_SHORTHANDS as ReqoreFonts } from './constants/fonts';
|
|
118
125
|
export { ReqoreSizes } from './constants/sizes';
|
|
119
126
|
export { ReqoreIntents } from './constants/theme';
|
|
127
|
+
export type { IReqoreTypeScale } from './constants/theme';
|
|
128
|
+
export { getControlTextSize, getHeadingSize, getTagTextSize, getTextSize, } from './helpers/typeScale';
|
|
120
129
|
export { ReqorePaginationContainer } from './containers/Paging';
|
|
121
130
|
export { default as ReqoreNotifications, modalStore } from './containers/ReqoreProvider';
|
|
131
|
+
export type { IReqoreConfirmationDefaults, IReqoreConfirmationModal, } from './containers/ReqoreProvider';
|
|
122
132
|
export { default as ReqoreUIProvider } from './containers/UIProvider';
|
|
123
133
|
export { default as ReqoreContext } from './context/ReqoreContext';
|
|
124
134
|
export { default as ReqoreThemeContext } from './context/ThemeContext';
|
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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Default) || function (mod) {
|
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
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.REQORE_DATA_VIEW_DEFAULT_LABELS = 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.
|
|
22
|
-
exports.
|
|
23
|
-
exports.useReqoreTheme = exports.useMarqueeOnHover = 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 = void 0;
|
|
21
|
+
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.randomUuid = exports.copyText = exports.ClipboardUnavailableError = exports.watchHoverGate = exports.useHoverGate = exports.isHoveringPointer = exports.createHoverGate = exports.scheduleOnTimer = exports.toLanguageTag = exports.resolveLocale = exports.POSIX_LOCALE = 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.ReqoreMarkdownBlock = exports.ReqoreFeatureCard = exports.ReqoreFadeScroller = exports.ReqoreErrorBoundary = exports.ReqoreEmptyState = exports.ReqoreTextEffect = exports.ReqoreEffect = exports.ReqoreDropdownItem = void 0;
|
|
22
|
+
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.useReqoreTableControls = exports.getTableColumnsPickerItems = exports.ReqoreTableValue = exports.ReqoreTableRow = exports.ReqoreTableHeaderCell = exports.ReqoreTableBodyCell = exports.ReqoreTable = exports.STATISTIC_GROUP_MAX = exports.ReqoreStatisticGroup = 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 = 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 = void 0;
|
|
23
|
+
exports.useReqoreTheme = exports.useMarqueeOnHover = 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.getTextSize = exports.getTagTextSize = exports.getHeadingSize = exports.getControlTextSize = exports.ReqoreIntents = exports.ReqoreSizes = exports.ReqoreFonts = exports.ReqoreColors = exports.ReqoreTree = void 0;
|
|
24
24
|
var Accordion_1 = require("./components/Accordion");
|
|
25
25
|
Object.defineProperty(exports, "ReqoreAccordion", { enumerable: true, get: function () { return Accordion_1.ReqoreAccordion; } });
|
|
26
26
|
var Breadcrumbs_1 = require("./components/Breadcrumbs");
|
|
@@ -117,6 +117,8 @@ var FadeScroller_1 = require("./components/FadeScroller");
|
|
|
117
117
|
Object.defineProperty(exports, "ReqoreFadeScroller", { enumerable: true, get: function () { return FadeScroller_1.ReqoreFadeScroller; } });
|
|
118
118
|
var FeatureCard_1 = require("./components/FeatureCard");
|
|
119
119
|
Object.defineProperty(exports, "ReqoreFeatureCard", { enumerable: true, get: function () { return FeatureCard_1.ReqoreFeatureCard; } });
|
|
120
|
+
var MarkdownBlock_1 = require("./components/MarkdownBlock");
|
|
121
|
+
Object.defineProperty(exports, "ReqoreMarkdownBlock", { enumerable: true, get: function () { return MarkdownBlock_1.ReqoreMarkdownBlock; } });
|
|
120
122
|
var GlobalModalsWrapper_1 = require("./components/GlobalModalsWrapper");
|
|
121
123
|
Object.defineProperty(exports, "ReqoreModalsWrapper", { enumerable: true, get: function () { return GlobalModalsWrapper_1.ReqoreModalsWrapper; } });
|
|
122
124
|
var Header_1 = require("./components/Header");
|
|
@@ -239,6 +241,9 @@ var StackedBar_1 = require("./components/StackedBar");
|
|
|
239
241
|
Object.defineProperty(exports, "ReqoreStackedBar", { enumerable: true, get: function () { return __importDefault(StackedBar_1).default; } });
|
|
240
242
|
var Statistic_1 = require("./components/Statistic");
|
|
241
243
|
Object.defineProperty(exports, "ReqoreStatistic", { enumerable: true, get: function () { return __importDefault(Statistic_1).default; } });
|
|
244
|
+
var StatisticGroup_1 = require("./components/StatisticGroup");
|
|
245
|
+
Object.defineProperty(exports, "ReqoreStatisticGroup", { enumerable: true, get: function () { return StatisticGroup_1.ReqoreStatisticGroup; } });
|
|
246
|
+
Object.defineProperty(exports, "STATISTIC_GROUP_MAX", { enumerable: true, get: function () { return StatisticGroup_1.STATISTIC_GROUP_MAX; } });
|
|
242
247
|
var Table_1 = require("./components/Table");
|
|
243
248
|
Object.defineProperty(exports, "ReqoreTable", { enumerable: true, get: function () { return __importDefault(Table_1).default; } });
|
|
244
249
|
var cell_1 = require("./components/Table/cell");
|
|
@@ -249,6 +254,12 @@ var row_1 = require("./components/Table/row");
|
|
|
249
254
|
Object.defineProperty(exports, "ReqoreTableRow", { enumerable: true, get: function () { return __importDefault(row_1).default; } });
|
|
250
255
|
var value_1 = require("./components/Table/value");
|
|
251
256
|
Object.defineProperty(exports, "ReqoreTableValue", { enumerable: true, get: function () { return value_1.ReqoreTableValue; } });
|
|
257
|
+
// The column picker's entries, for a page that draws its own toolbar beside the table.
|
|
258
|
+
var helpers_1 = require("./components/Table/helpers");
|
|
259
|
+
Object.defineProperty(exports, "getTableColumnsPickerItems", { enumerable: true, get: function () { return helpers_1.getTableColumnsPickerItems; } });
|
|
260
|
+
// The column picker and the export, for a page that keeps them in its own toolbar's "⋯".
|
|
261
|
+
var controls_1 = require("./components/Table/controls");
|
|
262
|
+
Object.defineProperty(exports, "useReqoreTableControls", { enumerable: true, get: function () { return controls_1.useReqoreTableControls; } });
|
|
252
263
|
/* The geometric guard for tables — what a consumer's own tests assert so that
|
|
253
264
|
"a row's box contains its content" keeps holding in THEIR tables too — is
|
|
254
265
|
NOT here. It is published as `@qoretechnologies/reqore/testing`, because
|
|
@@ -292,6 +303,13 @@ var sizes_1 = require("./constants/sizes");
|
|
|
292
303
|
Object.defineProperty(exports, "ReqoreSizes", { enumerable: true, get: function () { return sizes_1.ReqoreSizes; } });
|
|
293
304
|
var theme_1 = require("./constants/theme");
|
|
294
305
|
Object.defineProperty(exports, "ReqoreIntents", { enumerable: true, get: function () { return theme_1.ReqoreIntents; } });
|
|
306
|
+
/* The px a size renders its text at, as the theme's `typeScale` decides it — for a consumer's own
|
|
307
|
+
element that has to sit at the same size as the Reqore text beside it. */
|
|
308
|
+
var typeScale_1 = require("./helpers/typeScale");
|
|
309
|
+
Object.defineProperty(exports, "getControlTextSize", { enumerable: true, get: function () { return typeScale_1.getControlTextSize; } });
|
|
310
|
+
Object.defineProperty(exports, "getHeadingSize", { enumerable: true, get: function () { return typeScale_1.getHeadingSize; } });
|
|
311
|
+
Object.defineProperty(exports, "getTagTextSize", { enumerable: true, get: function () { return typeScale_1.getTagTextSize; } });
|
|
312
|
+
Object.defineProperty(exports, "getTextSize", { enumerable: true, get: function () { return typeScale_1.getTextSize; } });
|
|
295
313
|
var Paging_2 = require("./containers/Paging");
|
|
296
314
|
Object.defineProperty(exports, "ReqorePaginationContainer", { enumerable: true, get: function () { return Paging_2.ReqorePaginationContainer; } });
|
|
297
315
|
var ReqoreProvider_1 = require("./containers/ReqoreProvider");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAyD;AAAhD,4GAAA,eAAe,OAAA;AACxB,wDAAwE;AAA/D,iIAAA,OAAO,OAAqB;AACrC,sDAAiF;AAAxE,8HAAA,OAAO,OAAyB;AACzC,8CAAsE;AAA7D,sGAAA,YAAY,OAAA;AAAE,2GAAA,iBAAiB,OAAA;AACxC,8CAA8D;AAArD,uHAAA,OAAO,OAAgB;AAChC,sDAA2D;AAAlD,8GAAA,gBAAgB,OAAA;AAEzB,gDAAqD;AAA5C,wGAAA,aAAa,OAAA;AACtB,kDAAkE;AAAzD,2HAAA,OAAO,OAAkB;AAClC,kDAK+B;AAJ7B,uHAAA,2BAA2B,OAAA;AAC3B,kHAAA,sBAAsB,OAAA;AACtB,0GAAA,cAAc,OAAA;AACd,oHAAA,wBAAwB,OAAA;AAG1B,sEAA2E;AAAlE,8HAAA,wBAAwB,OAAA;AACjC,sDAA2D;AAAlD,8GAAA,gBAAgB,OAAA;AACzB,gDAAqD;AAA5C,wGAAA,aAAa,OAAA;AACtB,sDAA2D;AAAlD,sGAAA,YAAY,OAAA;AACrB,gDAAqD;AAA5C,wGAAA,aAAa,OAAA;AACtB,wDAA6D;AAApD,gHAAA,iBAAiB,OAAA;AAC1B,gDAAgE;AAAvD,yHAAA,OAAO,OAAiB;AACjC,0DAA0E;AAAjE,mIAAA,OAAO,OAAsB;AACtC,uDAAmF;AAA1E,+HAAA,OAAO,OAA0B;AAO1C,kDAgB+B;AAf7B,yHAAA,gBAAgB,OAAiC;AACjD,2HAAA,+BAA+B,OAAA;AAC/B,0GAAA,cAAc,OAAA;AACd,iHAAA,qBAAqB,OAAA;AACrB,+GAA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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"}
|
|
@@ -74,6 +74,21 @@ const theme = {
|
|
|
74
74
|
};
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
+
### Type Scale
|
|
78
|
+
|
|
79
|
+
`typeScale` sets the app's text sizes and line height once, in the theme, instead of on every component. `text` is the px per size for running text (paragraphs, spans, links, table cells, panel and callout text, and `effect.textSize` given as a size name — which is how table headers are sized, one size below the table's), `control` is for buttons, inputs, tabs, checkboxes and the like, and `tag` is for tags, badges and keyboard keys. Each table names only the sizes it changes; the rest keep Reqore's own scale. `lineHeight` is a unitless line height for running text, set on the layout wrapper and the portal that popovers, modals and drawers render into. Without `typeScale`, nothing changes. Buttons, inputs, tags and table rows keep their heights and centre their text at any scale. `getTextSize(theme, size)`, `getControlTextSize(theme, size)` and `getTagTextSize(theme, size)` return what a size resolves to, for an element of your own that sits beside Reqore text.
|
|
80
|
+
|
|
81
|
+
```tsx
|
|
82
|
+
const theme = {
|
|
83
|
+
typeScale: {
|
|
84
|
+
text: { tiny: 12, small: 13, normal: 14 },
|
|
85
|
+
control: { small: 12, normal: 13 },
|
|
86
|
+
tag: { tiny: 11, small: 12 },
|
|
87
|
+
lineHeight: 1.45,
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
```
|
|
91
|
+
|
|
77
92
|
## Using Intents
|
|
78
93
|
|
|
79
94
|
Most components support the `intent` prop for semantic coloring:
|
package/package.json
CHANGED