@longline/aqua-ui 1.0.330 → 1.0.334
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/Types.d.ts +9 -1
- package/containers/Anchor/Anchor.d.ts +2 -1
- package/containers/Anchor/Anchor.js +1 -1
- package/containers/Dock/Dock.d.ts +2 -1
- package/containers/Dock/Dock.js +1 -1
- package/containers/Dock/Dockable.d.ts +2 -1
- package/containers/Dock/Dockable.js +1 -1
- package/containers/DragBar/DragBar.d.ts +2 -1
- package/containers/DragBar/DragBar.js +1 -1
- package/containers/Form/elements/BoxWrapper.js +1 -1
- package/containers/Form/elements/Hint.js +1 -1
- package/containers/Form/elements/SimpleWrapper.js +1 -1
- package/containers/GlassPane/GlassPane.d.ts +2 -1
- package/containers/GlassPane/GlassPane.js +1 -1
- package/containers/InfoBox/InfoBox.d.ts +2 -1
- package/containers/InfoBox/InfoBox.js +1 -1
- package/containers/InfoBox/elements/Content.d.ts +2 -1
- package/containers/InfoBox/elements/Content.js +1 -1
- package/containers/InfoBox/elements/Footer.d.ts +2 -1
- package/containers/InfoBox/elements/Footer.js +1 -1
- package/containers/InfoBox/elements/Header.d.ts +2 -1
- package/containers/InfoBox/elements/Header.js +1 -1
- package/containers/InfoBox/elements/Row.d.ts +4 -2
- package/containers/InfoBox/elements/Row.js +1 -1
- package/containers/List/List.d.ts +2 -1
- package/containers/List/List.js +1 -1
- package/containers/List/ListCell.d.ts +2 -1
- package/containers/List/ListCell.js +1 -1
- package/containers/List/ListRow.d.ts +2 -1
- package/containers/List/ListRow.js +1 -1
- package/containers/Message/Message.d.ts +2 -1
- package/containers/Message/Message.js +1 -1
- package/containers/Openable/Openable.d.ts +2 -1
- package/containers/Openable/Openable.js +2 -2
- package/containers/PublicRoute/Help.d.ts +2 -1
- package/containers/PublicRoute/Help.js +1 -1
- package/containers/PublicRoute/PublicRoute.d.ts +2 -1
- package/containers/PublicRoute/PublicRoute.js +1 -1
- package/containers/Tabs/Pane.d.ts +2 -1
- package/containers/Tabs/Pane.js +1 -1
- package/containers/Tabs/Tabs.d.ts +2 -1
- package/containers/Tabs/Tabs.js +1 -1
- package/controls/Chip/Chip.d.ts +2 -1
- package/controls/Chip/Chip.js +1 -1
- package/controls/CircularProgress/CircularProgress.d.ts +2 -1
- package/controls/CircularProgress/CircularProgress.js +1 -1
- package/controls/Dropzone/Dropzone.d.ts +2 -1
- package/controls/Dropzone/Dropzone.js +1 -1
- package/controls/Fab/Fab.d.ts +2 -1
- package/controls/Fab/Fab.js +1 -1
- package/controls/Ghost/Ghost.d.ts +2 -1
- package/controls/Ghost/Ghost.js +1 -1
- package/controls/Gradient/Gradient.d.ts +2 -2
- package/controls/Gradient/Gradient.js +1 -1
- package/controls/Histogram/Histogram.d.ts +2 -1
- package/controls/Histogram/Histogram.js +14 -14
- package/controls/Icon/Icon.d.ts +2 -2
- package/controls/Icon/Icon.js +1 -1
- package/controls/Key/Key.d.ts +2 -1
- package/controls/Key/Key.js +1 -1
- package/controls/LinearChart/LinearChart.d.ts +2 -1
- package/controls/LinearChart/LinearChart.js +1 -1
- package/controls/ListButton/ListButton.d.ts +2 -1
- package/controls/ListButton/ListButton.js +1 -1
- package/controls/ListView/ListView.d.ts +2 -1
- package/controls/ListView/ListView.js +1 -1
- package/controls/Mouse/Mouse.d.ts +2 -1
- package/controls/Mouse/Mouse.js +1 -1
- package/controls/PrimaryButton/PrimaryButton.d.ts +2 -1
- package/controls/PrimaryButton/PrimaryButton.js +1 -1
- package/controls/Progress/Progress.d.ts +2 -1
- package/controls/Progress/Progress.js +1 -1
- package/controls/SecondaryButton/SecondaryButton.d.ts +2 -1
- package/controls/SecondaryButton/SecondaryButton.js +1 -1
- package/controls/TabBar/Tab.d.ts +2 -1
- package/controls/TabBar/Tab.js +1 -1
- package/controls/TabBar/TabBar.d.ts +2 -1
- package/controls/TabBar/TabBar.js +1 -1
- package/controls/TertiaryButton/TertiaryButton.d.ts +2 -1
- package/controls/TertiaryButton/TertiaryButton.js +1 -1
- package/controls/ToggleButton/ToggleButton.d.ts +2 -1
- package/controls/ToggleButton/ToggleButton.js +1 -1
- package/controls/View/View.d.ts +2 -1
- package/controls/View/View.js +1 -1
- package/hooks/useSpeechAIRecorder/index.d.ts +1 -0
- package/hooks/useSpeechAIRecorder/index.js +1 -0
- package/hooks/useSpeechAIRecorder/stories/SpeechAIAudioInput.d.ts +6 -0
- package/hooks/{useAssemblyAIRecorder/stories/AssemblyAudioInput.js → useSpeechAIRecorder/stories/SpeechAIAudioInput.js} +4 -4
- package/hooks/useSpeechAIRecorder/useSpeechAIRecorder.d.ts +29 -0
- package/hooks/{useAssemblyAIRecorder/useAssemblyAIRecorder.js → useSpeechAIRecorder/useSpeechAIRecorder.js} +13 -11
- package/hooks/useTextAIStream/index.d.ts +1 -0
- package/hooks/useTextAIStream/index.js +1 -0
- package/hooks/{useOpenAIStream/stories/OpenAIStreamInput.d.ts → useTextAIStream/stories/TextAIStreamInput.d.ts} +3 -3
- package/hooks/{useOpenAIStream/stories/OpenAIStreamInput.js → useTextAIStream/stories/TextAIStreamInput.js} +6 -6
- package/hooks/useTextAIStream/useTextAIStream.d.ts +26 -0
- package/hooks/{useOpenAIStream/useOpenAIStream.js → useTextAIStream/useTextAIStream.js} +16 -4
- package/inputs/DateInput/DateInput.d.ts +2 -5
- package/inputs/Dropdown/Dropdown.d.ts +2 -5
- package/inputs/Editor/Editor.d.ts +10 -11
- package/inputs/Editor/Editor.js +1 -1
- package/inputs/Editor/buttons/{SpeechButton.d.ts → SpeechAIButton.d.ts} +2 -2
- package/inputs/Editor/buttons/{SpeechButton.js → SpeechAIButton.js} +5 -5
- package/inputs/Editor/buttons/TextAIButton.d.ts +28 -0
- package/inputs/Editor/buttons/{OpenAIButton.js → TextAIButton.js} +13 -14
- package/inputs/Editor/buttons/{OpenAIMenu.d.ts → TextAIMenu.d.ts} +2 -2
- package/inputs/Editor/buttons/{OpenAIMenu.js → TextAIMenu.js} +3 -3
- package/inputs/Editor/menu/MenuBar.d.ts +6 -6
- package/inputs/Editor/menu/MenuBar.js +7 -7
- package/inputs/Input/Input.d.ts +2 -5
- package/inputs/Input/InputWrapper.d.ts +2 -1
- package/inputs/Input/InputWrapper.js +1 -1
- package/inputs/MonthRange/MonthRange.d.ts +2 -5
- package/inputs/Selector/Selector.d.ts +2 -5
- package/inputs/Slider/Slider.d.ts +2 -5
- package/inputs/Textarea/Textarea.d.ts +2 -5
- package/map/Map/Map.d.ts +2 -1
- package/map/Map/Map.js +1 -1
- package/map/PositionsManager/PositionBox.d.ts +2 -1
- package/map/PositionsManager/PositionBox.js +1 -1
- package/map/controls/CompassButton/CompassButton.js +3 -3
- package/map/controls/FullscreenButton/FullscreenButton.js +1 -1
- package/map/controls/Geocoder/Geocoder.js +1 -1
- package/map/controls/MapLoader/MapLoader.js +1 -1
- package/map/controls/ScaleControl/ScaleControl.js +1 -1
- package/map/controls/ZoomInButton/ZoomInButton.js +1 -1
- package/map/controls/ZoomOutButton/ZoomOutButton.js +1 -1
- package/map/controls/base/MapButton/MapButton.d.ts +0 -4
- package/map/controls/base/MapButton/MapButton.js +2 -2
- package/map/controls/base/MapControl/MapControl.d.ts +2 -1
- package/map/controls/base/MapControl/MapControl.js +2 -2
- package/modules/Filter/Filter.d.ts +2 -1
- package/modules/Filter/Filter.js +1 -1
- package/modules/MainMenu/Item.d.ts +2 -1
- package/modules/MainMenu/Item.js +1 -1
- package/modules/MainMenu/MainMenu.d.ts +2 -1
- package/modules/MainMenu/MainMenu.js +1 -1
- package/modules/Root/Sidebar.js +1 -1
- package/package.json +4 -5
- package/services/Dialog/Dialog.d.ts +2 -1
- package/services/Dialog/Dialog.js +2 -2
- package/services/Dialog/DialogWindow.d.ts +2 -1
- package/services/Dialog/DialogWindow.js +1 -1
- package/hooks/useAssemblyAIRecorder/index.d.ts +0 -1
- package/hooks/useAssemblyAIRecorder/index.js +0 -1
- package/hooks/useAssemblyAIRecorder/stories/AssemblyAudioInput.d.ts +0 -6
- package/hooks/useAssemblyAIRecorder/useAssemblyAIRecorder.d.ts +0 -27
- package/hooks/useOpenAIRecorder/index.d.ts +0 -1
- package/hooks/useOpenAIRecorder/index.js +0 -1
- package/hooks/useOpenAIRecorder/old/AudioInputNoHook.d.ts +0 -8
- package/hooks/useOpenAIRecorder/old/AudioInputNoHook.js +0 -192
- package/hooks/useOpenAIRecorder/old/AudioInputStandardMedia.d.ts +0 -5
- package/hooks/useOpenAIRecorder/old/AudioInputStandardMedia.js +0 -170
- package/hooks/useOpenAIRecorder/stories/OpenAIAudioInput.d.ts +0 -8
- package/hooks/useOpenAIRecorder/stories/OpenAIAudioInput.js +0 -17
- package/hooks/useOpenAIRecorder/useOpenAIRecorder.d.ts +0 -22
- package/hooks/useOpenAIRecorder/useOpenAIRecorder.js +0 -223
- package/hooks/useOpenAIStream/index.d.ts +0 -1
- package/hooks/useOpenAIStream/index.js +0 -1
- package/hooks/useOpenAIStream/useOpenAIStream.d.ts +0 -14
- package/inputs/Editor/buttons/OpenAIButton.d.ts +0 -29
- /package/hooks/{useAssemblyAIRecorder → useSpeechAIRecorder}/SpeechManager.d.ts +0 -0
- /package/hooks/{useAssemblyAIRecorder → useSpeechAIRecorder}/SpeechManager.js +0 -0
package/Types.d.ts
CHANGED
|
@@ -7,4 +7,12 @@ interface IGradientStop {
|
|
|
7
7
|
pos: number;
|
|
8
8
|
color: string;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
interface ITestable {
|
|
11
|
+
/**
|
|
12
|
+
* Test ID for Playwright/testing. Forwarded to the root DOM element.
|
|
13
|
+
*/
|
|
14
|
+
'data-testid'?: string;
|
|
15
|
+
}
|
|
16
|
+
export type { Size };
|
|
17
|
+
export type { IGradientStop };
|
|
18
|
+
export type { ITestable };
|
|
@@ -101,7 +101,7 @@ var Anchor = function (props) {
|
|
|
101
101
|
React.useEffect(function () {
|
|
102
102
|
updatePosition();
|
|
103
103
|
}, [props.horizontal, props.vertical]);
|
|
104
|
-
return (React.createElement("div", { "data-testid": "Anchor", ref: anchorRef, style: {
|
|
104
|
+
return (React.createElement("div", { "data-testid": props['data-testid'] || "Anchor", ref: anchorRef, style: {
|
|
105
105
|
position: 'absolute',
|
|
106
106
|
left: (_a = props.left) !== null && _a !== void 0 ? _a : 'auto',
|
|
107
107
|
top: (_b = props.top) !== null && _b !== void 0 ? _b : 'auto',
|
package/containers/Dock/Dock.js
CHANGED
|
@@ -27,7 +27,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
27
|
import * as React from 'react';
|
|
28
28
|
import styled, { css } from 'styled-components';
|
|
29
29
|
var DockBase = function (props) {
|
|
30
|
-
return React.createElement("div", { "data-testid": "Dock", className: props.className, role: "presentation" }, props.children);
|
|
30
|
+
return React.createElement("div", { "data-testid": props['data-testid'] || "Dock", className: props.className, role: "presentation" }, props.children);
|
|
31
31
|
};
|
|
32
32
|
var DockStyled = styled(DockBase)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n // Position and size:\n position: absolute;\n left: 0;\n right: ", "px;\n top: ", "px;\n bottom: ", "px;\n box-sizing: border-box;\n // zIndex >= 2 will overlap Mapbox logo.\n z-index: 2;\n\n // Appearance:\n background-color: transparent;\n ", "\n pointer-events: none !important; /* Map will set pointer-events:all to its children. */\n\n // Content:\n display: flex;\n flex-direction: column;\n align-items: end;\n gap: ", "px;\n"], ["\n // Position and size:\n position: absolute;\n left: 0;\n right: ", "px;\n top: ", "px;\n bottom: ", "px;\n box-sizing: border-box;\n // zIndex >= 2 will overlap Mapbox logo.\n z-index: 2;\n\n // Appearance:\n background-color: transparent;\n ", "\n pointer-events: none !important; /* Map will set pointer-events:all to its children. */\n\n // Content:\n display: flex;\n flex-direction: column;\n align-items: end;\n gap: ", "px;\n"
|
|
33
33
|
/**
|
|
@@ -103,7 +103,7 @@ var DockableBase = function (props) {
|
|
|
103
103
|
style.left = "".concat(x + offsetX, "px");
|
|
104
104
|
style.top = "".concat(y + offsetY, "px");
|
|
105
105
|
}
|
|
106
|
-
return (React.createElement("div", { "data-testid": "Dockable", style: style, className: "".concat(props.className, " ").concat(offscreen ? 'offscreen' : ''), ref: containerRef }, props.children));
|
|
106
|
+
return (React.createElement("div", { "data-testid": props['data-testid'] || "Dockable", style: style, className: "".concat(props.className, " ").concat(offscreen ? 'offscreen' : ''), ref: containerRef }, props.children));
|
|
107
107
|
};
|
|
108
108
|
var DockableStyled = styled(DockableBase)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: white;\n z-index: ", ";\n ", "\n"], ["\n color: white;\n z-index: ", ";\n ", "\n"
|
|
109
109
|
/**
|
|
@@ -71,7 +71,7 @@ var DragBarBase = function (props) {
|
|
|
71
71
|
behavior: props.behavior
|
|
72
72
|
});
|
|
73
73
|
};
|
|
74
|
-
return (React.createElement("div", { "data-testid": "DragBar", className: props.className },
|
|
74
|
+
return (React.createElement("div", { "data-testid": props['data-testid'] || "DragBar", className: props.className },
|
|
75
75
|
props.navigation && React.createElement(NavButton, { onClick: function () { return handleNavigate(-props.navigationDelta); } },
|
|
76
76
|
React.createElement(Icon, { url: SVG.Icons.Chevron })),
|
|
77
77
|
React.createElement(Scroller, { onMouseDown: handleMouseDown, ref: scrollerRef },
|
|
@@ -29,7 +29,7 @@ var BoxWrapperBase = function (props) {
|
|
|
29
29
|
clickableChild.focus();
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
return (React.createElement("div", { "data-testid": "BoxWrapper", className: props.className, onClick: handleClick, ref: wrapper },
|
|
32
|
+
return (React.createElement("div", { "data-testid": "Field.BoxWrapper", className: props.className, onClick: handleClick, ref: wrapper },
|
|
33
33
|
props.ghost && React.createElement(Ghost, { style: { position: 'absolute', left: 0, top: 0, right: 0, bottom: 0, zIndex: 100 } }),
|
|
34
34
|
props.label,
|
|
35
35
|
React.createElement(Control, { "data-testid": "Control" }, props.children),
|
|
@@ -5,7 +5,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import styled from 'styled-components';
|
|
7
7
|
var HintBase = function (props) {
|
|
8
|
-
return React.createElement("div", { "data-testid": "Hint", tabIndex: -1, className: props.className }, props.children);
|
|
8
|
+
return React.createElement("div", { "data-testid": "Field.Hint", tabIndex: -1, className: props.className }, props.children);
|
|
9
9
|
};
|
|
10
10
|
var Hint = styled(HintBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font: ", ";\n color: ", ";\n user-select: none;\n // Hints don't wrap and are ellipsized:\n white-space: nowrap;\n overflow-x: hidden;\n text-overflow: ellipsis;\n"], ["\n font: ", ";\n color: ", ";\n user-select: none;\n // Hints don't wrap and are ellipsized:\n white-space: nowrap;\n overflow-x: hidden;\n text-overflow: ellipsis;\n"])), function (p) { return p.theme.font.bodySmall; }, function (p) { return p.error ? p.theme.colors.negative : p.theme.colors.font; });
|
|
11
11
|
export { Hint };
|
|
@@ -7,7 +7,7 @@ import styled, { css } from 'styled-components';
|
|
|
7
7
|
import { Label } from './Label';
|
|
8
8
|
import { Hint } from './Hint';
|
|
9
9
|
var SimpleWrapperBase = function (props) {
|
|
10
|
-
return React.createElement("div", { "data-testid": "SimpleWrapper", className: props.className },
|
|
10
|
+
return React.createElement("div", { "data-testid": "Field.SimpleWrapper", className: props.className },
|
|
11
11
|
props.label,
|
|
12
12
|
props.children,
|
|
13
13
|
props.hint);
|
|
@@ -42,7 +42,7 @@ var GlassPaneBase = React.memo(function (props) {
|
|
|
42
42
|
return function () { };
|
|
43
43
|
}
|
|
44
44
|
}, [props.animated]);
|
|
45
|
-
return (React.createElement("div", { "data-testid": "GlassPane", className: "".concat(props.className, " ").concat(mounted ? 'mounted' : '') }, props.children));
|
|
45
|
+
return (React.createElement("div", { "data-testid": props['data-testid'] || "GlassPane", className: "".concat(props.className, " ").concat(mounted ? 'mounted' : '') }, props.children));
|
|
46
46
|
});
|
|
47
47
|
var GRADIENT_0 = "rgb(255,255,255,0.6)";
|
|
48
48
|
var GRADIENT_1 = "rgb(255,255,255,0.3)";
|
|
@@ -33,7 +33,7 @@ import { InfoBoxRow } from './elements/Row';
|
|
|
33
33
|
* An `InfoBox` is a glass pane with an optional header and footer.
|
|
34
34
|
*/
|
|
35
35
|
var InfoBoxBase = function (props) {
|
|
36
|
-
return React.createElement("div", { "data-testid": "InfoBox", className: props.className, role: "region", "aria-label": "Information" },
|
|
36
|
+
return React.createElement("div", { "data-testid": props['data-testid'] || "InfoBox", className: props.className, role: "region", "aria-label": "Information" },
|
|
37
37
|
React.createElement(Content, { header: props.header, padded: props.padded, minHeight: props.minHeight, scroll: props.scroll }, props.children),
|
|
38
38
|
props.footer && React.createElement(Footer, null, props.footer));
|
|
39
39
|
};
|
|
@@ -19,7 +19,7 @@ import { OverlayScrollbarsComponent } from "overlayscrollbars-react";
|
|
|
19
19
|
import { GlassPane } from '../../GlassPane';
|
|
20
20
|
import { Header } from './Header';
|
|
21
21
|
var ContentBase = function (props) {
|
|
22
|
-
return React.createElement("div", { "data-testid": "InfoBox.Content", className: props.className },
|
|
22
|
+
return React.createElement("div", { "data-testid": props['data-testid'] || "InfoBox.Content", className: props.className },
|
|
23
23
|
React.createElement(GlassPane, { bordered: true },
|
|
24
24
|
props.header && React.createElement(Header, null, props.header),
|
|
25
25
|
React.createElement(PaneContent, null,
|
|
@@ -16,7 +16,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
16
16
|
import * as React from 'react';
|
|
17
17
|
import styled from "styled-components";
|
|
18
18
|
var FooterBase = function (props) {
|
|
19
|
-
return React.createElement("div", { "data-testid": "InfoBox.Footer", className: props.className }, props.children);
|
|
19
|
+
return React.createElement("div", { "data-testid": props['data-testid'] || "InfoBox.Footer", className: props.className }, props.children);
|
|
20
20
|
};
|
|
21
21
|
var FooterStyled = styled(FooterBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n // Position and size:\n position: relative;\n width: 100%;\n padding-top: 8px;\n padding-left: 16px;\n padding-right: 16px;\n box-sizing: border-box;\n \n // Appearance;\n color: ", ";\n font: ", ";\n\n // Content:\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 16px;\n\n // While InfoBox blocks all pointer events, contents inside\n // the footer must receive events:\n & > * {\n pointer-events: all;\n }\n"], ["\n // Position and size:\n position: relative;\n width: 100%;\n padding-top: 8px;\n padding-left: 16px;\n padding-right: 16px;\n box-sizing: border-box;\n \n // Appearance;\n color: ", ";\n font: ", ";\n\n // Content:\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 16px;\n\n // While InfoBox blocks all pointer events, contents inside\n // the footer must receive events:\n & > * {\n pointer-events: all;\n }\n"])), function (p) { return p.theme.colors.neutral[100]; }, function (p) { return p.theme.font.bodyMedium; });
|
|
22
22
|
var Footer = function (props) { return React.createElement(FooterStyled, __assign({}, props)); };
|
|
@@ -16,7 +16,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
16
16
|
import * as React from 'react';
|
|
17
17
|
import styled from "styled-components";
|
|
18
18
|
var HeaderBase = function (props) {
|
|
19
|
-
return React.createElement("div", { "data-testid": "InfoBox.Header", className: props.className }, props.children);
|
|
19
|
+
return React.createElement("div", { "data-testid": props['data-testid'] || "InfoBox.Header", className: props.className }, props.children);
|
|
20
20
|
};
|
|
21
21
|
var HeaderStyled = styled(HeaderBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n // Size:\n box-sizing: border-box;\n padding-left: 22px;\n padding-right: 22px;\n padding-top: 12px;\n padding-bottom: 12px;\n\n // Appearance:\n background: ", ";\n color: ", ";\n font: ", ";\n \n // Content:\n display: flex;\n flex-direction: column;\n gap: 3px;\n"], ["\n // Size:\n box-sizing: border-box;\n padding-left: 22px;\n padding-right: 22px;\n padding-top: 12px;\n padding-bottom: 12px;\n\n // Appearance:\n background: ", ";\n color: ", ";\n font: ", ";\n \n // Content:\n display: flex;\n flex-direction: column;\n gap: 3px;\n"])), function (p) { return p.theme.colors.primary[5]; }, function (p) { return p.theme.colors.neutral[100]; }, function (p) { return p.theme.font.headingMedium; });
|
|
22
22
|
var Header = function (props) { return React.createElement(HeaderStyled, __assign({}, props)); };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
import { ITestable } from '../../../Types';
|
|
3
|
+
interface IInfoBoxRowProps extends ITestable {
|
|
3
4
|
/** Name to show. */
|
|
4
5
|
name: React.ReactNode;
|
|
5
6
|
/** Value to show. */
|
|
@@ -11,4 +12,5 @@ interface IInfoBoxRowProps {
|
|
|
11
12
|
* An `InfoBoxRow` shows a name-value combination, in row format.
|
|
12
13
|
*/
|
|
13
14
|
declare const InfoBoxRow: (props: IInfoBoxRowProps) => React.JSX.Element;
|
|
14
|
-
export { InfoBoxRow
|
|
15
|
+
export { InfoBoxRow };
|
|
16
|
+
export type { IInfoBoxRowProps };
|
|
@@ -9,7 +9,7 @@ import { Ghost } from '../../../controls/Ghost';
|
|
|
9
9
|
* An `InfoBoxRow` shows a name-value combination, in row format.
|
|
10
10
|
*/
|
|
11
11
|
var InfoBoxRow = function (props) {
|
|
12
|
-
return React.createElement(Wrapper, { "data-testid": "InfoBox.Row" },
|
|
12
|
+
return React.createElement(Wrapper, { "data-testid": props['data-testid'] || "InfoBox.Row" },
|
|
13
13
|
props.ghost === true && React.createElement(Ghost, { style: { position: 'absolute', left: 0, top: '3px', right: 0, bottom: '3px' } }),
|
|
14
14
|
props.ghost !== true && React.createElement(React.Fragment, null,
|
|
15
15
|
React.createElement(Name, null, props.name),
|
package/containers/List/List.js
CHANGED
|
@@ -19,7 +19,7 @@ import { Input } from '../../inputs/Input';
|
|
|
19
19
|
* other code, using the ref, can scroll list items into view.
|
|
20
20
|
*/
|
|
21
21
|
var List = React.forwardRef(function (props, ref) {
|
|
22
|
-
return React.createElement(ListStyled, { "data-testid": "List", className: props.className, tabIndex: -1, "$count": React.Children.count(props.children), "$maxItems": props.maxItems, "$contract": props.contract, "$tall": props.tall },
|
|
22
|
+
return React.createElement(ListStyled, { "data-testid": props['data-testid'] || "List", className: props.className, tabIndex: -1, "$count": React.Children.count(props.children), "$maxItems": props.maxItems, "$contract": props.contract, "$tall": props.tall },
|
|
23
23
|
props.onSearch &&
|
|
24
24
|
React.createElement(SearchBox, { onClick: function (e) { return e.stopPropagation(); } },
|
|
25
25
|
React.createElement(Input, { icon: SVG.Icons.Search, placeholder: props.placeholder, clearable: true, value: props.search, transparent: true, fluid: true, type: "text", onChange: props.onSearch })),
|
|
@@ -16,7 +16,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
16
16
|
import * as React from 'react';
|
|
17
17
|
import styled, { css } from 'styled-components';
|
|
18
18
|
var ListCellBase = function (props) {
|
|
19
|
-
return React.createElement("div", { "data-testid": "ListCell", className: props.className }, props.children);
|
|
19
|
+
return React.createElement("div", { "data-testid": props['data-testid'] || "ListCell", className: props.className }, props.children);
|
|
20
20
|
};
|
|
21
21
|
var ListCellStyled = styled(ListCellBase)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", ";\n ", ";\n ", "\n\n // Content alignment:\n text-align: ", ";\n\n // Text is truncated with an ellipsis\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n ", ";\n ", ";\n ", "\n\n // Content alignment:\n text-align: ", ";\n\n // Text is truncated with an ellipsis\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (p) { return p.width && typeof p.width === 'string' && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["width: ", ";"], ["width: ", ";"])), p.width); }, function (p) { return p.width && typeof p.width !== 'string' && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["flex: ", ";"], ["flex: ", ";"])), p.width); }, function (p) { return !p.width && css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["flex: 1;"], ["flex: 1;"]))); }, function (p) { return p.align === 'right' ? 'right' : 'left'; });
|
|
22
22
|
var ListCell = function (props) { return React.createElement(ListCellStyled, __assign({}, props)); };
|
|
@@ -16,7 +16,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
16
16
|
import * as React from 'react';
|
|
17
17
|
import styled, { css } from 'styled-components';
|
|
18
18
|
var ListRowBase = function (props) {
|
|
19
|
-
return React.createElement("div", { "data-testid": "ListRow", className: props.className, onClick: props.disabled ? null : function (e) { return props.onClick(e); } }, props.children);
|
|
19
|
+
return React.createElement("div", { "data-testid": props['data-testid'] || "ListRow", className: props.className, onClick: props.disabled ? null : function (e) { return props.onClick(e); } }, props.children);
|
|
20
20
|
};
|
|
21
21
|
var ListRowStyled = styled(ListRowBase)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n padding-left: 16px;\n padding-right: 16px;\n min-height: 42px;\n user-select: none;\n outline: none;\n color: ", ";\n\n // Entire row is clickable:\n cursor: ", ";\n\n // Cells are flex-aligned:\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: center;\n gap: ", "px;\n\n // Background color on hover:\n ", "\n\n ", "\n"], ["\n padding-left: 16px;\n padding-right: 16px;\n min-height: 42px;\n user-select: none;\n outline: none;\n color: ", ";\n\n // Entire row is clickable:\n cursor: ", ";\n\n // Cells are flex-aligned:\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n align-items: center;\n gap: ", "px;\n\n // Background color on hover:\n ", "\n\n ", "\n"])), function (p) { return p.theme.colors.neutral[30]; }, function (p) { return (p.onClick && !p.disabled) ? 'pointer' : 'auto'; }, function (p) { return p.gap; }, function (p) { return !p.disabled && css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n &:hover {\n background-color: ", ";\n }\n\n // Background color on pressed:\n ", "\n\n ", "\n "], ["\n &:hover {\n background-color: ", ";\n }\n\n // Background color on pressed:\n ", "\n\n ", "\n "])), function (p) { return p.theme.colors.neutral[95]; }, p.onClick && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &:active {\n background-color: rgb(from ", " r g b / 65%) !important;\n color: ", ";\n }\n "], ["\n &:active {\n background-color: rgb(from ", " r g b / 65%) !important;\n color: ", ";\n }\n "])), function (p) { return p.theme.colors.primary[2]; }, function (p) { return p.theme.colors.neutral[100]; }), p.active && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: rgb(from ", " r g b / 45%) !important;\n color: ", ";\n "], ["\n background-color: rgb(from ", " r g b / 45%) !important;\n color: ", ";\n "])), function (p) { return p.theme.colors.primary[2]; }, function (p) { return p.theme.colors.neutral[100]; })); }, function (p) { return p.disabled && css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), function (p) { return p.theme.colors.neutral[50]; }); });
|
|
22
22
|
var ListRow = function (props) { return React.createElement(ListRowStyled, __assign({}, props)); };
|
|
@@ -19,7 +19,7 @@ import { NoData } from './NoData';
|
|
|
19
19
|
import { NoFilteredData } from './NoFilteredData';
|
|
20
20
|
import { Error } from './Error';
|
|
21
21
|
var MessageBase = function (props) {
|
|
22
|
-
return React.createElement("div", { "data-testid": "Message", className: props.className }, props.children);
|
|
22
|
+
return React.createElement("div", { "data-testid": props['data-testid'] || "Message", className: props.className }, props.children);
|
|
23
23
|
};
|
|
24
24
|
var MessageStyled = styled(MessageBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n // Position:\n margin: ", ";\n\n // Content:\n display: flex;\n flex-direction: column;\n justify-content: center;\n text-align: center;\n align-items: center;\n gap: 16px;\n\n // Appearance:\n color: ", ";\n user-select: none;\n padding: 16px 16px 16px 16px;\n border-radius: ", "px;\n background-color: ", "; \n line-height: 22px;\n"], ["\n // Position:\n margin: ", ";\n\n // Content:\n display: flex;\n flex-direction: column;\n justify-content: center;\n text-align: center;\n align-items: center;\n gap: 16px;\n\n // Appearance:\n color: ", ";\n user-select: none;\n padding: 16px 16px 16px 16px;\n border-radius: ", "px;\n background-color: ", "; \n line-height: 22px;\n"
|
|
25
25
|
/**
|
|
@@ -55,9 +55,9 @@ var Openable = function (_a) {
|
|
|
55
55
|
React.useEffect(function () {
|
|
56
56
|
update === null || update === void 0 ? void 0 : update();
|
|
57
57
|
}, [props.open]);
|
|
58
|
-
return (React.createElement("div", { "data-testid": "Openable", ref: toggleRef },
|
|
58
|
+
return (React.createElement("div", { "data-testid": props['data-testid'] || "Openable", ref: toggleRef },
|
|
59
59
|
props.toggle,
|
|
60
|
-
createPortal(React.createElement(Pane, __assign({ "$open": props.open, "$width": width, style: styles.popper }, attributes.popper, { ref: paneRef }), props.open && props.content), // If in fullscreen mode, Openable must portal into fullscreen element,
|
|
60
|
+
createPortal(React.createElement(Pane, __assign({ "data-testid": "Openable.Pane", "$open": props.open, "$width": width, style: styles.popper }, attributes.popper, { ref: paneRef }), props.open && props.content), // If in fullscreen mode, Openable must portal into fullscreen element,
|
|
61
61
|
// else content will be hidden.
|
|
62
62
|
(_b = document.fullscreenElement) !== null && _b !== void 0 ? _b : document.body)));
|
|
63
63
|
};
|
|
@@ -16,7 +16,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
16
16
|
import * as React from 'react';
|
|
17
17
|
import styled from 'styled-components';
|
|
18
18
|
var HelpBase = function (props) {
|
|
19
|
-
return (React.createElement("div", { "data-testid": "Help", className: props.className },
|
|
19
|
+
return (React.createElement("div", { "data-testid": props['data-testid'] || "PublicRoute.Help", className: props.className },
|
|
20
20
|
React.createElement(Body, null,
|
|
21
21
|
React.createElement(Content, null, props.children))));
|
|
22
22
|
};
|
|
@@ -22,7 +22,7 @@ import { SVG } from '../../svg';
|
|
|
22
22
|
import { ParticleGlobe } from '../../modules/ParticleGlobe/ParticleGlobe';
|
|
23
23
|
var PublicRouteBase = function (props) {
|
|
24
24
|
var _a = React.useState(false), showHelp = _a[0], setShowHelp = _a[1];
|
|
25
|
-
return (React.createElement("div", { "data-testid": "PublicRoute", className: props.className },
|
|
25
|
+
return (React.createElement("div", { "data-testid": props['data-testid'] || "PublicRoute", className: props.className },
|
|
26
26
|
React.createElement(ParticleGlobe, { landmass: 'day', globe: true, glow: 20, trails: 5, pointSize: 1.0, numParticles: 100000, brightness: 0.9, speedFactor: 750, minLifetime: 1000, maxLifetime: 1000, responsive: true }),
|
|
27
27
|
React.createElement(Content, null,
|
|
28
28
|
React.createElement(Help, { active: showHelp },
|
package/containers/Tabs/Pane.js
CHANGED
|
@@ -22,7 +22,7 @@ var PaneBase = function (props) {
|
|
|
22
22
|
// By default, all children are rendered (but hidden when
|
|
23
23
|
// not active). With nohiddenrender enabled, only the active
|
|
24
24
|
// tab is rendered.
|
|
25
|
-
return (React.createElement("div", { "data-testid": "Tabs.Pane", className: props.className }, shouldRender() ? props.children : null));
|
|
25
|
+
return (React.createElement("div", { "data-testid": props['data-testid'] || "Tabs.Pane", className: props.className }, shouldRender() ? props.children : null));
|
|
26
26
|
};
|
|
27
27
|
var PaneStyled = styled(PaneBase)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex-direction: column;\n display: ", ";\n height: 100%;\n padding-top: ", "px;\n font: ", ";\n"], ["\n position: relative;\n display: flex;\n flex-direction: column;\n display: ", ";\n height: 100%;\n padding-top: ", "px;\n font: ", ";\n"
|
|
28
28
|
/**
|
package/containers/Tabs/Tabs.js
CHANGED
|
@@ -65,7 +65,7 @@ var TabsBase = function (props) {
|
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
|
-
return (React.createElement("div", { "data-testid": "Tabs", className: props.className },
|
|
68
|
+
return (React.createElement("div", { "data-testid": props['data-testid'] || "Tabs", className: props.className },
|
|
69
69
|
React.createElement(TabBar, { active: index, onChange: tabClicked, tabWidth: props.tabWidth }, getTabs()),
|
|
70
70
|
React.createElement(Panes, null, getPanes())));
|
|
71
71
|
};
|
package/controls/Chip/Chip.d.ts
CHANGED
package/controls/Chip/Chip.js
CHANGED
|
@@ -38,7 +38,7 @@ var ChipBase = function (props) {
|
|
|
38
38
|
props.onClick(e);
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
return (React.createElement("div", { "data-testid": "Chip", className: props.className, tabIndex: 0, onKeyDown: handleKeyDown, "aria-disabled": props.disabled },
|
|
41
|
+
return (React.createElement("div", { "data-testid": props['data-testid'] || "Chip", className: props.className, tabIndex: 0, onKeyDown: handleKeyDown, "aria-disabled": props.disabled },
|
|
42
42
|
React.createElement("span", { className: "inner", tabIndex: -1 }, props.children),
|
|
43
43
|
React.createElement("button", { type: "button", onClick: props.onClick, "aria-label": "Remove chip", disabled: props.disabled, "aria-disabled": props.disabled },
|
|
44
44
|
React.createElement("svg", null,
|
|
@@ -32,7 +32,7 @@ var CircularProgressBase = function (props) {
|
|
|
32
32
|
var radius = (props.size - props.strokeWidth) / 2;
|
|
33
33
|
var circumference = 2 * Math.PI * radius;
|
|
34
34
|
var offset = circumference * (1 - value / 100);
|
|
35
|
-
return (React.createElement("div", { "data-testid": "CircularProgress", className: props.className, role: "progressbar", "aria-valuenow": value, "aria-valuemin": 0, "aria-valuemax": 100 },
|
|
35
|
+
return (React.createElement("div", { "data-testid": props['data-testid'] || "CircularProgress", className: props.className, role: "progressbar", "aria-valuenow": value, "aria-valuemin": 0, "aria-valuemax": 100 },
|
|
36
36
|
React.createElement("svg", { width: props.size, height: props.size },
|
|
37
37
|
React.createElement("circle", { cx: props.size / 2, cy: props.size / 2, r: radius, fill: "none", strokeDasharray: circumference, strokeDashoffset: offset, strokeLinecap: "round", transform: "rotate(-90 ".concat(props.size / 2, " ").concat(props.size / 2, ")") })),
|
|
38
38
|
React.createElement(Text, null,
|
|
@@ -53,7 +53,7 @@ var DropzoneBase = function (props) {
|
|
|
53
53
|
setHover(false);
|
|
54
54
|
props.onAddFiles(Array.from(e.dataTransfer.files));
|
|
55
55
|
};
|
|
56
|
-
return (React.createElement("button", { "data-testid": "Dropzone", type: "button", className: "".concat(props.className, " ").concat(hover ? 'hover' : ''), onClick: handleClick, onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop, onKeyDown: function (e) {
|
|
56
|
+
return (React.createElement("button", { "data-testid": props['data-testid'] || "Dropzone", type: "button", className: "".concat(props.className, " ").concat(hover ? 'hover' : ''), onClick: handleClick, onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop, onKeyDown: function (e) {
|
|
57
57
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
58
58
|
e.preventDefault();
|
|
59
59
|
handleClick();
|
package/controls/Fab/Fab.d.ts
CHANGED
package/controls/Fab/Fab.js
CHANGED
|
@@ -45,7 +45,7 @@ var FabBase = function (props) {
|
|
|
45
45
|
// Call user's click handler if provided:
|
|
46
46
|
(_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
47
47
|
};
|
|
48
|
-
return (React.createElement("button", { "data-testid": "Fab", type: "button", className: props.className, onClick: handleClick, onMouseDown: handleMouseDown, title: props.title, disabled: props.disabled, "aria-disabled": props.disabled },
|
|
48
|
+
return (React.createElement("button", { "data-testid": props['data-testid'] || "Fab", type: "button", className: props.className, onClick: handleClick, onMouseDown: handleMouseDown, title: props.title, disabled: props.disabled, "aria-disabled": props.disabled },
|
|
49
49
|
React.createElement(Icon, __assign({}, (typeof props.icon === 'string' ? { url: props.icon } : props.icon))),
|
|
50
50
|
props.children));
|
|
51
51
|
};
|
package/controls/Ghost/Ghost.js
CHANGED
|
@@ -16,7 +16,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
16
16
|
import * as React from 'react';
|
|
17
17
|
import styled, { keyframes } from 'styled-components';
|
|
18
18
|
var GhostBase = function (props) {
|
|
19
|
-
return React.createElement("div", { "data-testid": "Ghost", className: props.className, style: props.style },
|
|
19
|
+
return React.createElement("div", { "data-testid": props['data-testid'] || "Ghost", className: props.className, style: props.style },
|
|
20
20
|
React.createElement(Gradient1, null),
|
|
21
21
|
React.createElement(Gradient2, null));
|
|
22
22
|
};
|
|
@@ -32,7 +32,7 @@ var GradientBase = function (props) {
|
|
|
32
32
|
console.warn("Gradient: Missing or invalid 'gradientStops'");
|
|
33
33
|
return null;
|
|
34
34
|
}
|
|
35
|
-
return React.createElement("div", { "data-testid": "Gradient", className: props.className });
|
|
35
|
+
return React.createElement("div", { "data-testid": props['data-testid'] || "Gradient", className: props.className });
|
|
36
36
|
};
|
|
37
37
|
var generateGradient = function (stops) {
|
|
38
38
|
return "linear-gradient(to right, ".concat(stops.map(function (gs) { return "".concat(gs.color, " ").concat(gs.pos * 100, "%"); }).join(', '), ")");
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IHistogramAppearance } from './HistogramAppearance';
|
|
3
3
|
import { IHistogramBin } from './IHistogramBin';
|
|
4
|
+
import { ITestable } from '../../Types';
|
|
4
5
|
type TTickStyle = 'none' | 'tick' | 'value';
|
|
5
6
|
type TValueStyle = 'hide' | 'show' | 'hover';
|
|
6
|
-
interface IHistogramProps {
|
|
7
|
+
interface IHistogramProps extends ITestable {
|
|
7
8
|
/** @ignore */
|
|
8
9
|
className?: string;
|
|
9
10
|
/**
|