@linzjs/lui 17.57.0 → 17.58.0

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,10 @@
1
+ # [17.58.0](https://github.com/linz/lui/compare/v17.57.0...v17.58.0) (2023-05-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * Add LUI Progress Bar ([#945](https://github.com/linz/lui/issues/945)) ([96c577f](https://github.com/linz/lui/commit/96c577feec47e6d31e33ea87310e4966621a6006))
7
+
1
8
  # [17.57.0](https://github.com/linz/lui/compare/v17.56.0...v17.57.0) (2023-05-17)
2
9
 
3
10
 
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import './LuiProgressBar.scss';
3
+ export declare type ProgressBarProps = {
4
+ value?: number;
5
+ max?: number;
6
+ error?: boolean;
7
+ barHeight?: string;
8
+ };
9
+ export declare const LuiProgressBar: ({ value, max, error, barHeight, }: ProgressBarProps) => JSX.Element;
package/dist/index.js CHANGED
@@ -60278,18 +60278,8 @@ var LuiSidePanelContainer = function (props) {
60278
60278
  top: top,
60279
60279
  width: children ? width !== null && width !== void 0 ? width : '50%' : '0%'
60280
60280
  }, className: clsx('luiSidePanel', classNames) },
60281
- children && (React__default["default"].createElement("button", { type: "button", "data-testid": "close", title: closeBtnTitleAttr, onClick: onClose, style: {
60282
- color: '#5e5e61',
60283
- position: 'absolute',
60284
- right: 15,
60285
- top: 14,
60286
- background: '#e2f3f7',
60287
- border: 'none',
60288
- display: 'flex',
60289
- cursor: 'pointer',
60290
- borderBottomLeftRadius: '5px'
60291
- } },
60292
- React__default["default"].createElement(LuiIcon, { alt: "Close", name: "ic_clear", size: "lg", status: "interactive" }))),
60281
+ children && (React__default["default"].createElement("button", { type: "button", className: "luiSidePanel-CloseBtn", "data-testid": "close", title: closeBtnTitleAttr, onClick: onClose },
60282
+ React__default["default"].createElement(LuiIcon, { alt: "Close", name: "ic_clear", className: "luiSidePanel-CloseIcon", size: "lg", status: "interactive" }))),
60293
60283
  children));
60294
60284
  };
60295
60285
  var LuiSidePanelProvider = function (_a) {
@@ -67932,7 +67922,7 @@ var LuiAccordicardStatic = function (props) {
67932
67922
  React__default["default"].createElement(LuiIcon, { className: clsx('LuiAccordicardStatic-chevron', isOpen ? 'LuiAccordicardStatic-chevron--isOpen' : null), name: 'ic_expand_more', alt: "expand", title: "Expand and collapse panel", size: "md" }))));
67933
67923
  };
67934
67924
 
67935
- var css_248z$5 = "/**\n @deprecated\n */\n/**\n @deprecated\n */\n/**\n @deprecated\n */\n.lui-accordion {\n padding: 8px;\n display: flex;\n box-shadow: 0px 2px 3px 0px #00000040, 0px 0px 3px 0px #00000026;\n}\n.lui-accordion .accordion-heading {\n padding: 4px;\n}\n.lui-accordion h4 {\n padding: 4px;\n}\n.lui-accordion > summary {\n display: flex;\n align-items: center;\n cursor: pointer;\n}\n.lui-accordion > summary h4 {\n margin-top: 0;\n display: inline-block;\n}";
67925
+ var css_248z$5 = "/**\n @deprecated\n */\n/**\n @deprecated\n */\n/**\n @deprecated\n */\n.lui-accordion {\n padding: 8px;\n display: flex;\n border-radius: 5px;\n box-shadow: 0px 2px 3px 0px #00000040, 0px 0px 3px 0px #00000026;\n}\n.lui-accordion .chevron {\n transition: all 0.3s ease-in-out;\n transform: rotate(0);\n}\n.lui-accordion .chevron--isOpen {\n transform: rotate(180deg);\n}\n.lui-accordion .accordion-heading {\n padding: 4px;\n}\n.lui-accordion h4 {\n padding: 4px;\n}\n.lui-accordion > summary {\n display: flex;\n align-items: center;\n cursor: pointer;\n}\n.lui-accordion > summary h4 {\n margin-top: 0;\n display: inline-block;\n}";
67936
67926
  styleInject(css_248z$5);
67937
67927
 
67938
67928
  var LuiAccordion = function (props) {
@@ -67948,7 +67938,7 @@ var LuiAccordion = function (props) {
67948
67938
  };
67949
67939
  return (React__default["default"].createElement("details", { style: style, className: clsx('lui-accordion', className), open: open },
67950
67940
  React__default["default"].createElement("summary", { onClick: toggle, "data-testid": "lui-accordion-summary-".concat(open) },
67951
- React__default["default"].createElement(LuiIcon, { color: iconColor, size: "md", name: open ? 'ic_keyboard_arrow_down' : 'ic_keyboard_arrow_right', alt: open ? 'Close' : 'Expand', "aria-label": open ? 'Expanded' : 'Closed' }),
67941
+ React__default["default"].createElement(LuiIcon, { color: iconColor, size: "md", name: "ic_expand_more", alt: open ? 'Close' : 'Expand', "aria-label": open ? 'Expanded' : 'Closed', className: clsx('chevron', open ? 'chevron--isOpen' : null) }),
67952
67942
  React__default["default"].isValidElement(heading) ? (heading) : (React__default["default"].createElement("h4", { className: "accordion-heading", "data-testid": "lui-accordion-heading-".concat(open) }, heading))),
67953
67943
  children));
67954
67944
  };