@linzjs/lui 17.1.3 → 17.2.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 +7 -0
- package/dist/components/LuiSidePanel/LuiSidePanel.d.ts +6 -0
- package/dist/components/LuiSidePanel/LuiSidePanelHelper.d.ts +7 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +15 -1
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [17.2.0](https://github.com/linz/lui/compare/v17.1.3...v17.2.0) (2022-05-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **SidePanel:** New side panel ([#677](https://github.com/linz/lui/issues/677)) ([8010a5f](https://github.com/linz/lui/commit/8010a5fd9d708de7c17bf46fcbb4776a5f98631d))
|
|
7
|
+
|
|
1
8
|
## [17.1.3](https://github.com/linz/lui/compare/v17.1.2...v17.1.3) (2022-05-25)
|
|
2
9
|
|
|
3
10
|
|
package/dist/index.d.ts
CHANGED
|
@@ -53,3 +53,4 @@ export { LuiTooltip, ILuiTooltipProperties, } from './components/LuiTooltip/LuiT
|
|
|
53
53
|
export * from './hooks';
|
|
54
54
|
export { LuiBadge } from './components/LuiBadge/LuiBadge';
|
|
55
55
|
export { LuiShadow } from './components/LuiShadow/LuiShadow';
|
|
56
|
+
export { LuiSidePanel } from './components/LuiSidePanel/LuiSidePanel';
|
package/dist/index.js
CHANGED
|
@@ -60191,6 +60191,20 @@ function useClickedOutsideElement(refElement, handleClickOutside) {
|
|
|
60191
60191
|
|
|
60192
60192
|
var LuiBadge = function (props) { return (React__default["default"].createElement("p", { className: clsx('LuiBadge', props.size === 'sm' && 'LuiBadge--sm', props.size === 'lg' && 'LuiBadge--lg', props.backgroundFill && 'LuiBadge--fill', props.variation === 'warning' && 'LuiBadge--warning'), "aria-roledescription": props.ariaRoleDescription }, props.children)); };
|
|
60193
60193
|
|
|
60194
|
+
var LuiSidePanelContext = React__default["default"].createContext({ setProps: function () { return undefined; } });
|
|
60195
|
+
/* eslint-disable react/prop-types */
|
|
60196
|
+
var LuiSidePanel = function (_a) {
|
|
60197
|
+
var children = _a.children, onClose = _a.onClose, width = _a.width;
|
|
60198
|
+
var setProps = React__default["default"].useContext(LuiSidePanelContext).setProps;
|
|
60199
|
+
React__default["default"].useEffect(function () {
|
|
60200
|
+
setProps({ children: children, onClose: onClose, width: width });
|
|
60201
|
+
return function () {
|
|
60202
|
+
setProps(undefined);
|
|
60203
|
+
};
|
|
60204
|
+
}, [setProps, children, onClose, width]);
|
|
60205
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null);
|
|
60206
|
+
};
|
|
60207
|
+
|
|
60194
60208
|
exports.FIRM_KEY = FIRM_KEY;
|
|
60195
60209
|
exports.FIRM_NAME_KEY = FIRM_NAME_KEY;
|
|
60196
60210
|
exports.GLOBAL_CLIENT_REFERENCE_KEY = GLOBAL_CLIENT_REFERENCE_KEY;
|
|
@@ -60260,6 +60274,7 @@ exports.LuiSelectMenu = LuiSelectMenu;
|
|
|
60260
60274
|
exports.LuiSelectMenuItem = LuiSelectMenuItem;
|
|
60261
60275
|
exports.LuiSelectSubMenuItem = LuiSelectSubMenuItem;
|
|
60262
60276
|
exports.LuiShadow = LuiShadow;
|
|
60277
|
+
exports.LuiSidePanel = LuiSidePanel;
|
|
60263
60278
|
exports.LuiStaticMessage = LuiStaticMessage;
|
|
60264
60279
|
exports.LuiStatusSpinner = LuiStatusSpinner;
|
|
60265
60280
|
exports.LuiTab = LuiTab;
|