@longline/aqua-ui 1.0.223 → 1.0.224

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.
@@ -58,5 +58,6 @@ interface IInfoBoxProps {
58
58
  declare const InfoBox: {
59
59
  ({ width, minHeight, padded, scroll, ...props }: IInfoBoxProps): React.JSX.Element;
60
60
  displayName: string;
61
+ Row: (props: import("./elements/Row").IInfoBoxRowProps) => React.JSX.Element;
61
62
  };
62
63
  export { InfoBox, IInfoBoxProps };
@@ -28,6 +28,7 @@ import * as React from 'react';
28
28
  import styled from 'styled-components';
29
29
  import { Content } from './elements/Content';
30
30
  import { Footer } from './elements/Footer';
31
+ import { InfoBoxRow } from './elements/Row';
31
32
  /**
32
33
  * An `InfoBox` is a glass pane with an optional header and footer.
33
34
  */
@@ -79,5 +80,6 @@ var InfoBox = function (_a) {
79
80
  return React.createElement(InfoBoxStyled, __assign({ width: width, minHeight: minHeight, padded: padded, scroll: scroll }, props));
80
81
  };
81
82
  InfoBox.displayName = "InfoBox";
83
+ InfoBox.Row = InfoBoxRow;
82
84
  export { InfoBox };
83
85
  var templateObject_1;
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ interface IInfoBoxRowProps {
3
+ /** Name to show. */
4
+ name: React.ReactNode;
5
+ /** Value to show. */
6
+ value: React.ReactNode;
7
+ }
8
+ /**
9
+ * An `InfoBoxRow` shows a name-value combination, in row format.
10
+ */
11
+ declare const InfoBoxRow: (props: IInfoBoxRowProps) => React.JSX.Element;
12
+ export { InfoBoxRow, IInfoBoxRowProps };
@@ -0,0 +1,19 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import * as React from 'react';
6
+ import styled from 'styled-components';
7
+ /**
8
+ * An `InfoBoxRow` shows a name-value combination, in row format.
9
+ */
10
+ var InfoBoxRow = function (props) {
11
+ return React.createElement(Wrapper, null,
12
+ React.createElement(Name, null, props.name),
13
+ React.createElement(Value, null, props.value));
14
+ };
15
+ var Name = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n white-space: nowrap;\n overflow-x: hidden;\n text-overflow: ellipsis;\n flex: 1;\n min-width: 65px;\n"], ["\n white-space: nowrap;\n overflow-x: hidden;\n text-overflow: ellipsis;\n flex: 1;\n min-width: 65px;\n"])));
16
+ var Value = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-weight: 700;\n text-align: right;\n white-space: nowrap;\n overflow-x: hidden;\n text-overflow: ellipsis; \n"], ["\n font-weight: 700;\n text-align: right;\n white-space: nowrap;\n overflow-x: hidden;\n text-overflow: ellipsis; \n"])));
17
+ var Wrapper = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n white-space: nowrap;\n gap: 16px;\n height: 28px;\n align-items: center;\n"], ["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n white-space: nowrap;\n gap: 16px;\n height: 28px;\n align-items: center;\n"])));
18
+ export { InfoBoxRow };
19
+ var templateObject_1, templateObject_2, templateObject_3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longline/aqua-ui",
3
- "version": "1.0.223",
3
+ "version": "1.0.224",
4
4
  "description": "AquaUI",
5
5
  "author": "Alexander van Oostenrijk / Longline Environment",
6
6
  "license": "Commercial",