@linzjs/lui 21.17.0 → 21.17.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 +7 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +1 -1
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [21.17.1](https://github.com/linz/lui/compare/v21.17.0...v21.17.1) (2024-01-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* enum exports ([a028ae0](https://github.com/linz/lui/commit/a028ae0801e7220970db9db79375f652d206dbb0))
|
|
7
|
+
|
|
1
8
|
# [21.17.0](https://github.com/linz/lui/compare/v21.16.0...v21.17.0) (2024-01-16)
|
|
2
9
|
|
|
3
10
|
|
package/dist/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export { LuiUpdatesSplashModal } from './components/LuiUpdateSplashModal/LuiUpda
|
|
|
38
38
|
export { LuiModal, LuiAlertModal, LuiAlertModalButtons, } from './components/LuiModal/LuiModal';
|
|
39
39
|
export { type ISearchInputProps, type ISearchGroupedResult, type ISearchResult, LuiSearchInput, } from './components/LuiSearchInput/LuiSearchInput';
|
|
40
40
|
export { type ISearchMenuOption, type ILuiSearchBoxProps, LuiSearchBox, } from './components/LuiSearchBox/LuiSearchBox';
|
|
41
|
-
export { type ILuiSplitButtonProps, type ILuiSplitButtonMenuItemProps,
|
|
41
|
+
export { type ILuiSplitButtonProps, type ILuiSplitButtonMenuItemProps, LuiSplitButtonPosition, LuiSplitButtonMenuItem, LuiSplitButton, } from './components/LuiSplitButton/LuiSplitButton';
|
|
42
42
|
export { LuiErrorPage } from './components/LuiErrorPage/LuiErrorPage';
|
|
43
43
|
export { LuiErrorIllustration, type LuiErrorIllustrationType, } from './components/LuiErrorPage/LuiErrorIllustration';
|
|
44
44
|
export * from './components/LuiLoadingSpinner/LuiLoadingSpinner';
|
|
@@ -60,7 +60,7 @@ export { CheckboxItemRenderer } from './components/LuiListBox/Renderers/Checkbox
|
|
|
60
60
|
export { LuiSideMenu, type ILuiSideMenuProps, } from './components/LuiSideMenu/LuiSideMenu';
|
|
61
61
|
export { LuiSideMenuItem, type ILuiSideMenuItemProps, type LuiMenuItemClickHandler, } from './components/LuiSideMenu/LuiSideMenuItem';
|
|
62
62
|
export { type ProgressBarProps, LuiProgressBar, } from './components/LuiProgressBar/LuiProgressBar';
|
|
63
|
-
export { LuiSideToolbar,
|
|
63
|
+
export { LuiSideToolbar, ToolbarDirection, } from './components/LuiSideToolbar/LuiSideToolbar';
|
|
64
64
|
export { ToolbarButton, type ToolbarButtonProps, } from './components/LuiSideToolbar/ToolbarButton';
|
|
65
65
|
export { ToolbarItem, type ToolbarItemProps, ToolbarItemSeparator, } from './components/LuiSideToolbar/ToolbarItem';
|
|
66
66
|
export { type Breakpoint, breakpoints, breakpointQuery, useMediaQuery, } from './components/common/UseMediaQuery';
|
package/dist/index.js
CHANGED
|
@@ -42430,21 +42430,21 @@ var renderSelectMenu = function (items, onClick) { return (React__default["defau
|
|
|
42430
42430
|
React__default["default"].createElement(LuiSelectMenuItem, { "data-testid": "select-box-".concat(item.value), value: item.value, onClick: onClick, noPadding: true }, item.title)));
|
|
42431
42431
|
}))); };
|
|
42432
42432
|
|
|
42433
|
-
|
|
42433
|
+
exports.LuiSplitButtonPosition = void 0;
|
|
42434
42434
|
(function (LuiSplitButtonPosition) {
|
|
42435
42435
|
LuiSplitButtonPosition["TOP"] = "Top";
|
|
42436
42436
|
LuiSplitButtonPosition["BOTTOM"] = "Bottom";
|
|
42437
|
-
})(LuiSplitButtonPosition || (LuiSplitButtonPosition = {}));
|
|
42437
|
+
})(exports.LuiSplitButtonPosition || (exports.LuiSplitButtonPosition = {}));
|
|
42438
42438
|
var getMenuPosition = function (position) {
|
|
42439
42439
|
switch (position) {
|
|
42440
|
-
case LuiSplitButtonPosition.BOTTOM:
|
|
42440
|
+
case exports.LuiSplitButtonPosition.BOTTOM:
|
|
42441
42441
|
return {
|
|
42442
42442
|
align: 'end',
|
|
42443
42443
|
position: 'anchor',
|
|
42444
42444
|
direction: 'bottom',
|
|
42445
42445
|
offsetY: 5
|
|
42446
42446
|
};
|
|
42447
|
-
case LuiSplitButtonPosition.TOP:
|
|
42447
|
+
case exports.LuiSplitButtonPosition.TOP:
|
|
42448
42448
|
default:
|
|
42449
42449
|
return {
|
|
42450
42450
|
align: 'end',
|
|
@@ -42455,7 +42455,7 @@ var getMenuPosition = function (position) {
|
|
|
42455
42455
|
}
|
|
42456
42456
|
};
|
|
42457
42457
|
var getIconClassName = function (position, isMenuOpen) {
|
|
42458
|
-
if (position === LuiSplitButtonPosition.TOP) {
|
|
42458
|
+
if (position === exports.LuiSplitButtonPosition.TOP) {
|
|
42459
42459
|
if (isMenuOpen) {
|
|
42460
42460
|
return 'lui-expand-icon material-icons-round lui-expand-icon-transform';
|
|
42461
42461
|
}
|
|
@@ -42478,7 +42478,7 @@ var LuiSplitButtonMenuItem = function (_a) {
|
|
|
42478
42478
|
};
|
|
42479
42479
|
var LuiSplitButton = function (_a) {
|
|
42480
42480
|
var _b;
|
|
42481
|
-
var _c = _a.position, position = _c === void 0 ? LuiSplitButtonPosition.TOP : _c, props = __rest(_a, ["position"]);
|
|
42481
|
+
var _c = _a.position, position = _c === void 0 ? exports.LuiSplitButtonPosition.TOP : _c, props = __rest(_a, ["position"]);
|
|
42482
42482
|
var _d = React.useState(false), isExpanded = _d[0], setIsExpanded = _d[1];
|
|
42483
42483
|
// Let the consumer set any LuiButtonProps they want but overwrite the ones we want to control
|
|
42484
42484
|
var buttonProps = __assign(__assign({}, props.buttonProps), {
|
|
@@ -58046,11 +58046,11 @@ var LuiProgressBar = function (_a) {
|
|
|
58046
58046
|
var css_248z$6 = "/**\n @deprecated\n */\n/**\n @deprecated\n */\n/**\n @deprecated\n */\n.Toolbar {\n position: absolute;\n align-items: center;\n align-self: center;\n background: #ffffff;\n border-radius: 5px;\n display: flex;\n flex-direction: column;\n height: fit-content;\n margin: 0 0.75rem;\n padding: 0;\n width: fit-content;\n z-index: 1000;\n box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.2509803922), 0px 0px 3px 0px rgba(0, 0, 0, 0.1490196078);\n}\n\n.Left {\n justify-self: start;\n}\n\n.Right {\n justify-self: end;\n}";
|
|
58047
58047
|
styleInject(css_248z$6);
|
|
58048
58048
|
|
|
58049
|
-
|
|
58049
|
+
exports.ToolbarDirection = void 0;
|
|
58050
58050
|
(function (ToolbarDirection) {
|
|
58051
58051
|
ToolbarDirection["LEFT"] = "Left";
|
|
58052
58052
|
ToolbarDirection["RIGHT"] = "Right";
|
|
58053
|
-
})(ToolbarDirection || (ToolbarDirection = {}));
|
|
58053
|
+
})(exports.ToolbarDirection || (exports.ToolbarDirection = {}));
|
|
58054
58054
|
function LuiSideToolbar(props) {
|
|
58055
58055
|
return (React__default["default"].createElement("div", { className: clsx(['Toolbar', 'app--shadow-sm', props.direction]), "data-testid": "toolbar" }, props.children));
|
|
58056
58056
|
}
|