@longline/aqua-ui 1.0.318 → 1.0.320

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.
@@ -42,7 +42,7 @@ var ListButtonBase = function (props) {
42
42
  blurToClose: false
43
43
  });
44
44
  var _b = usePopper(buttonRef.current, paneRef.current, {
45
- placement: 'top-start',
45
+ placement: props.placement,
46
46
  modifiers: [
47
47
  {
48
48
  name: 'offset',
@@ -0,0 +1 @@
1
+ export * from './ListButton';
@@ -0,0 +1 @@
1
+ export * from './ListButton';
@@ -25,6 +25,10 @@ interface IProps {
25
25
  * by the logo's viewbox width.
26
26
  */
27
27
  logoAspectRatio: number;
28
+ /**
29
+ * Optional additional header content.
30
+ */
31
+ header?: React.ReactNode;
28
32
  }
29
33
  declare const Public: (props: IProps) => React.JSX.Element;
30
34
  export { Public };
@@ -21,7 +21,7 @@ var Public = function (props) {
21
21
  });
22
22
  return (React.createElement(React.Fragment, null,
23
23
  React.createElement(Box, { ref: wrapperRef },
24
- React.createElement(Header, { logoUrl: props.logoUrl, logoAspectRatio: props.logoAspectRatio, onClick: props.hint ? function () { return setShowHint(!showHint); } : null }),
24
+ React.createElement(Header, { logoUrl: props.logoUrl, logoAspectRatio: props.logoAspectRatio, onClick: props.hint ? function () { return setShowHint(!showHint); } : null, children: props.header }),
25
25
  React.createElement(Body, { height: props.height },
26
26
  props.hint && React.createElement(Hint, { active: showHint }, props.hint),
27
27
  props.children)),
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  interface IProps {
3
3
  /** @ignore */
4
4
  className?: string;
5
+ children?: React.ReactNode;
5
6
  logoUrl: string;
6
7
  logoAspectRatio: number;
7
8
  /**
@@ -9,11 +9,14 @@ var HeaderBase = function (props) {
9
9
  return React.createElement("div", { className: props.className },
10
10
  React.createElement(Logo, { style: { aspectRatio: props.logoAspectRatio } },
11
11
  React.createElement("use", { xlinkHref: props.logoUrl })),
12
- props.onClick && React.createElement(Icon, { onClick: props.onClick },
13
- React.createElement("use", { xlinkHref: SVG.Icons.Info })));
12
+ React.createElement(Controls, null,
13
+ props.children,
14
+ props.onClick && React.createElement(Icon, { onClick: props.onClick },
15
+ React.createElement("use", { xlinkHref: SVG.Icons.Info }))));
14
16
  };
15
17
  var Logo = styled.svg(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n width: auto;\n display: block;\n"], ["\n height: 48px;\n width: auto;\n display: block;\n"])));
16
- var Icon = styled.svg(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 26px;\n height: 26px;\n fill: #fff;\n border: solid 1px #8A9BA8;\n padding: 5px;\n border-radius: 50%;\n box-sizing: border-box;\n cursor: pointer;\n transition: border-color ease-in-out 200ms, fill ease-in-out 200ms;\n &:hover {\n border: solid 1px #E9A759;\n fill: #E9A759;\n }\n"], ["\n width: 26px;\n height: 26px;\n fill: #fff;\n border: solid 1px #8A9BA8;\n padding: 5px;\n border-radius: 50%;\n box-sizing: border-box;\n cursor: pointer;\n transition: border-color ease-in-out 200ms, fill ease-in-out 200ms;\n &:hover {\n border: solid 1px #E9A759;\n fill: #E9A759;\n }\n"])));
17
- var Header = styled(HeaderBase)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background:#1C242A;\n height: 64px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-left: 16px;\n padding-right: 22px;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n"], ["\n background:#1C242A;\n height: 64px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-left: 16px;\n padding-right: 22px;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n"])), function (p) { return p.theme.radius.normal; }, function (p) { return p.theme.radius.normal; });
18
+ var Controls = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject([" \n display: flex;\n flex-direction: row;\n gap: 8px;\n align-items: center;\n"], [" \n display: flex;\n flex-direction: row;\n gap: 8px;\n align-items: center;\n"])));
19
+ var Icon = styled.svg(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 26px;\n height: 26px;\n fill: #fff;\n border: solid 1px #8A9BA8;\n padding: 5px;\n border-radius: 50%;\n box-sizing: border-box;\n cursor: pointer;\n transition: border-color ease-in-out 200ms, fill ease-in-out 200ms;\n &:hover {\n border: solid 1px #E9A759;\n fill: #E9A759;\n }\n"], ["\n width: 26px;\n height: 26px;\n fill: #fff;\n border: solid 1px #8A9BA8;\n padding: 5px;\n border-radius: 50%;\n box-sizing: border-box;\n cursor: pointer;\n transition: border-color ease-in-out 200ms, fill ease-in-out 200ms;\n &:hover {\n border: solid 1px #E9A759;\n fill: #E9A759;\n }\n"])));
20
+ var Header = styled(HeaderBase)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background:#1C242A;\n height: 64px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-left: 16px;\n padding-right: 22px;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n"], ["\n background:#1C242A;\n height: 64px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-left: 16px;\n padding-right: 22px;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n"])), function (p) { return p.theme.radius.normal; }, function (p) { return p.theme.radius.normal; });
18
21
  export { Header };
19
- var templateObject_1, templateObject_2, templateObject_3;
22
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longline/aqua-ui",
3
- "version": "1.0.318",
3
+ "version": "1.0.320",
4
4
  "description": "AquaUI",
5
5
  "author": "Alexander van Oostenrijk / Longline Environment",
6
6
  "license": "Commercial",