@linzjs/lui 21.8.1 → 21.9.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [21.9.1](https://github.com/linz/lui/compare/v21.9.0...v21.9.1) (2023-11-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * remove non supported prop being passed into Tippy ([#1030](https://github.com/linz/lui/issues/1030)) ([0ff1892](https://github.com/linz/lui/commit/0ff1892413e23829ef5d15a501b8b3340737d371))
7
+
8
+ # [21.9.0](https://github.com/linz/lui/compare/v21.8.1...v21.9.0) (2023-11-08)
9
+
10
+
11
+ ### Features
12
+
13
+ * **LuiFooter:** add optional footer help link ([#1043](https://github.com/linz/lui/issues/1043)) ([8a4c02c](https://github.com/linz/lui/commit/8a4c02ceb2b05c9a60effdaf9c4b0d65d8a5d66c))
14
+
1
15
  ## [21.8.1](https://github.com/linz/lui/compare/v21.8.0...v21.8.1) (2023-11-02)
2
16
 
3
17
 
@@ -4,6 +4,7 @@ interface FooterProps {
4
4
  footerText: string;
5
5
  contactNumber?: string;
6
6
  contactEmail?: string;
7
+ helpDocumentationUrl?: string;
7
8
  feedbackFormUrl?: string;
8
9
  }
9
10
  export declare const LuiFooter: React.FC<React.PropsWithChildren<FooterProps>>;
package/dist/index.js CHANGED
@@ -32239,6 +32239,8 @@ var LuiFooter = function (props) {
32239
32239
  React__default["default"].createElement("a", { href: 'tel:' + props.contactNumber }, props.contactNumber))),
32240
32240
  props.contactEmail && (React__default["default"].createElement("li", null,
32241
32241
  React__default["default"].createElement("a", { href: 'mailto:' + props.contactEmail }, "Email"))),
32242
+ props.helpDocumentationUrl && (React__default["default"].createElement("li", null,
32243
+ React__default["default"].createElement("a", { href: props.helpDocumentationUrl, rel: "noopener noreferrer", target: "_blank" }, "Need help?"))),
32242
32244
  props.feedbackFormUrl && (React__default["default"].createElement("li", null,
32243
32245
  React__default["default"].createElement("a", { href: props.feedbackFormUrl, rel: "noopener noreferrer", target: "_blank" }, "Give feedback")))))),
32244
32246
  React__default["default"].createElement("div", { className: "lui-row-divider-xs lui-row-divider-sm" }),
@@ -32258,7 +32260,7 @@ var LuiFooter = function (props) {
32258
32260
  React__default["default"].createElement("li", { className: 'lui-footer-inline-list-item' },
32259
32261
  React__default["default"].createElement("a", { href: "https://www.digital.govt.nz/home/about-digital-govt-nz/privacy/" }, "Privacy"))),
32260
32262
  React__default["default"].createElement("div", { className: "lui-row-divider-xs" },
32261
- React__default["default"].createElement("p", { className: "lui-small" }, "\u00A9 2020 Land Information New Zealand"))))));
32263
+ React__default["default"].createElement("p", { className: "lui-small" }, "\u00A9 2023 Land Information New Zealand"))))));
32262
32264
  };
32263
32265
 
32264
32266
  function _extends$1() {
@@ -46713,8 +46715,8 @@ var Tippy = index;
46713
46715
 
46714
46716
  var LuiTooltip = function (props) {
46715
46717
  var _a;
46716
- var children = props.children, _b = props.content, content = _b === void 0 ? props.message : _b, _c = props.theme, theme = _c === void 0 ? (_a = props.mode) !== null && _a !== void 0 ? _a : 'default' : _c, _d = props.offset, offset = _d === void 0 ? [0, 4] : _d, _e = props.arrow, arrow = _e === void 0 ? false : _e, plugins = props.plugins, rest = __rest(props, ["children", "content", "theme", "offset", "arrow", "plugins"]);
46717
- var tippyProps = __assign(__assign({}, rest), { content: content, theme: theme, offset: offset, arrow: arrow, plugins: __spreadArray(__spreadArray([], (plugins || []), true), [followCursor], false) });
46718
+ var children = props.children, message = props.message, _b = props.theme, theme = _b === void 0 ? (_a = props.mode) !== null && _a !== void 0 ? _a : 'default' : _b, _c = props.offset, offset = _c === void 0 ? [0, 4] : _c, _d = props.arrow, arrow = _d === void 0 ? false : _d, plugins = props.plugins, rest = __rest(props, ["children", "message", "theme", "offset", "arrow", "plugins"]);
46719
+ var tippyProps = __assign(__assign({}, rest), { content: message, theme: theme, offset: offset, arrow: arrow, plugins: __spreadArray(__spreadArray([], (plugins || []), true), [followCursor], false) });
46718
46720
  return React__default["default"].createElement(Tippy, __assign({}, tippyProps), children);
46719
46721
  };
46720
46722