linear-react-components-ui 1.0.10-beta.9 → 1.0.10-rc.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/lib/alerts/AlertContainer.d.ts +2 -0
- package/lib/alerts/AlertProvider.d.ts +2 -0
- package/lib/alerts/BaseAlert.d.ts +2 -0
- package/lib/alerts/Message.d.ts +2 -0
- package/lib/alerts/Message.js +1 -1
- package/lib/alerts/helpers.d.ts +2 -0
- package/lib/alerts/index.d.ts +2 -0
- package/lib/alerts/types.d.ts +3 -1
- package/lib/alerts/withAlert.d.ts +2 -0
- package/lib/assets/styles/dialog.scss +0 -2
- package/lib/buttons/ActivateButton.d.ts +2 -0
- package/lib/buttons/AddButton.d.ts +2 -0
- package/lib/buttons/Button.d.ts +2 -0
- package/lib/buttons/CancelButton.d.ts +2 -0
- package/lib/buttons/DangerButton.d.ts +2 -0
- package/lib/buttons/DefaultButton.d.ts +2 -0
- package/lib/buttons/DestroyButton.d.ts +2 -0
- package/lib/buttons/EditButton.d.ts +2 -0
- package/lib/buttons/InactivateButton.d.ts +2 -0
- package/lib/buttons/InfoButton.d.ts +2 -0
- package/lib/buttons/PrimaryButton.d.ts +2 -0
- package/lib/buttons/RestoreButton.d.ts +2 -0
- package/lib/buttons/SaveButton.d.ts +2 -0
- package/lib/buttons/SuccessButton.d.ts +2 -0
- package/lib/buttons/WarningButton.d.ts +2 -0
- package/lib/buttons/index.d.ts +2 -0
- package/lib/buttons/split_button/index.d.ts +2 -0
- package/lib/buttons/types.d.ts +3 -1
- package/lib/dialog/Alert.d.ts +2 -0
- package/lib/dialog/Custom.d.ts +2 -0
- package/lib/dialog/Custom.js +1 -1
- package/lib/dialog/Error.d.ts +2 -0
- package/lib/dialog/Information.d.ts +2 -0
- package/lib/dialog/Question.d.ts +2 -0
- package/lib/dialog/Warning.d.ts +2 -0
- package/lib/dialog/base/Content.d.ts +2 -0
- package/lib/dialog/base/Footer.d.ts +2 -0
- package/lib/dialog/base/Header.d.ts +2 -0
- package/lib/dialog/base/index.d.ts +2 -0
- package/lib/dialog/base/index.js +5 -2
- package/lib/dialog/form/index.d.ts +2 -0
- package/lib/dialog/index.d.ts +2 -0
- package/lib/dialog/types.d.ts +4 -2
- package/lib/drawer/Content.d.ts +2 -0
- package/lib/drawer/Drawer.d.ts +2 -0
- package/lib/drawer/Header.d.ts +2 -0
- package/lib/drawer/helpers.d.ts +2 -0
- package/lib/drawer/index.d.ts +2 -0
- package/lib/drawer/types.d.ts +3 -1
- package/lib/icons/index.d.ts +2 -0
- package/lib/icons/types.d.ts +3 -1
- package/lib/index.d.ts +3 -1
- package/lib/inputs/inputHOC.d.ts +2 -0
- package/lib/inputs/mask/helpers.d.ts +2 -0
- package/lib/inputs/mask/imaskHOC.d.ts +2 -0
- package/lib/inputs/number/BaseNumber.d.ts +2 -0
- package/lib/inputs/number/Currency.d.ts +2 -0
- package/lib/inputs/number/Decimal.d.ts +2 -0
- package/lib/inputs/number/index.d.ts +2 -0
- package/lib/inputs/number/types.d.ts +2 -0
- package/lib/inputs/search/index.d.ts +2 -0
- package/lib/inputs/select/ActionButtons.d.ts +2 -0
- package/lib/inputs/select/Dropdown.d.ts +2 -0
- package/lib/inputs/select/helper.d.ts +2 -0
- package/lib/inputs/select/simple/index.js +25 -9
- package/lib/inputs/types.d.ts +2 -0
- package/lib/labelMessages/index.d.ts +2 -0
- package/lib/labelMessages/index.js +3 -4
- package/lib/labelMessages/types.d.ts +3 -1
- package/lib/labels/DangerLabel.d.ts +2 -0
- package/lib/labels/DefaultLabel.d.ts +2 -0
- package/lib/labels/InfoLabel.d.ts +2 -0
- package/lib/labels/PrimaryLabel.d.ts +2 -0
- package/lib/labels/SuccessLabel.d.ts +2 -0
- package/lib/labels/WarningLabel.d.ts +2 -0
- package/lib/labels/index.d.ts +2 -0
- package/lib/labels/types.d.ts +3 -1
- package/lib/list/Header.d.ts +2 -0
- package/lib/list/Item.d.ts +2 -0
- package/lib/list/helpers.d.ts +2 -0
- package/lib/list/index.d.ts +2 -0
- package/lib/list/types.d.ts +4 -2
- package/lib/menus/float/MenuItem.d.ts +2 -0
- package/lib/menus/float/helpers.d.ts +2 -0
- package/lib/menus/float/index.d.ts +2 -0
- package/lib/menus/float/types.d.ts +3 -1
- package/lib/menus/index.d.ts +2 -0
- package/lib/menus/sidenav/ExpandMenu.d.ts +2 -0
- package/lib/menus/sidenav/MenuLink.d.ts +2 -0
- package/lib/menus/sidenav/NavMenuGroup.d.ts +2 -0
- package/lib/menus/sidenav/NavMenuItem.d.ts +2 -0
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +2 -0
- package/lib/menus/sidenav/helpers.d.ts +2 -0
- package/lib/menus/sidenav/index.d.ts +2 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +2 -0
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +2 -0
- package/lib/menus/sidenav/types.d.ts +4 -2
- package/lib/panel/Content.d.ts +3 -1
- package/lib/panel/DangerPanel.d.ts +3 -1
- package/lib/panel/Default.d.ts +3 -1
- package/lib/panel/Header.d.ts +3 -1
- package/lib/panel/Header.js +3 -4
- package/lib/panel/InfoPanel.d.ts +3 -1
- package/lib/panel/PrimaryPanel.d.ts +3 -1
- package/lib/panel/SuccessPanel.d.ts +3 -1
- package/lib/panel/ToolBar.d.ts +3 -1
- package/lib/panel/WarningPanel.d.ts +3 -1
- package/lib/panel/helpers.d.ts +3 -1
- package/lib/panel/index.d.ts +3 -1
- package/lib/panel/types.d.ts +3 -1
- package/lib/popover/PopoverText.d.ts +2 -0
- package/lib/popover/PopoverTitle.d.ts +2 -0
- package/lib/popover/index.d.ts +2 -0
- package/lib/popover/index.js +1 -2
- package/lib/popover/types.d.ts +3 -1
- package/lib/tabs/DropdownItems.d.ts +2 -0
- package/lib/tabs/Menu.d.ts +2 -0
- package/lib/tabs/MenuItems.d.ts +2 -0
- package/lib/tabs/Panel.d.ts +2 -0
- package/lib/tabs/index.d.ts +2 -0
- package/lib/tabs/tabHelpers.d.ts +2 -0
- package/lib/tabs/types.d.ts +3 -1
- package/lib/toolbar/ButtonBar.d.ts +2 -0
- package/lib/toolbar/LabelBar.d.ts +2 -0
- package/lib/toolbar/ToolBarGroup.d.ts +2 -0
- package/lib/toolbar/helpers.d.ts +2 -0
- package/lib/toolbar/index.d.ts +2 -0
- package/lib/toolbar/types.d.ts +4 -2
- package/lib/{types-90c43ae1.d.ts → types-c1e2d0c9.d.ts} +2 -1
- package/package.json +1 -1
- package/demo/06c001f4d19c06397d470bb43ff3fe49.png +0 -0
- package/demo/270084ef02ed3bddc3f735fd91ee3cae.png +0 -0
- package/demo/882f8e819d18f5f2dc08d23ebd28a7d5.png +0 -0
- package/demo/bundle.js +0 -2
- package/demo/bundle.js.LICENSE.txt +0 -65
- package/demo/cbc3b4bd6342c551db7afafe26dc458c.jpg +0 -0
- package/demo/edc9476523b940deab91951066981a31.png +0 -0
- package/demo/fb44e7c36db6d95bb85a745d4f060fb2.png +0 -0
- package/demo/fonts/Roboto-Black.woff +0 -0
- package/demo/fonts/Roboto-Black.woff2 +0 -0
- package/demo/fonts/Roboto-Bold.woff +0 -0
- package/demo/fonts/Roboto-Bold.woff2 +0 -0
- package/demo/fonts/Roboto-Light.woff +0 -0
- package/demo/fonts/Roboto-Light.woff2 +0 -0
- package/demo/fonts/Roboto-Medium.woff +0 -0
- package/demo/fonts/Roboto-Medium.woff2 +0 -0
- package/demo/fonts/Roboto-Regular.woff +0 -0
- package/demo/fonts/Roboto-Regular.woff2 +0 -0
- package/demo/fonts/Roboto-Thin.woff +0 -0
- package/demo/fonts/Roboto-Thin.woff2 +0 -0
- package/demo/fonts/TitilliumWeb-Black.woff +0 -0
- package/demo/fonts/TitilliumWeb-Black.woff2 +0 -0
- package/demo/fonts/TitilliumWeb-Bold.woff +0 -0
- package/demo/fonts/TitilliumWeb-Bold.woff2 +0 -0
- package/demo/fonts/TitilliumWeb-ExtraLight.woff +0 -0
- package/demo/fonts/TitilliumWeb-ExtraLight.woff2 +0 -0
- package/demo/fonts/TitilliumWeb-Light.woff +0 -0
- package/demo/fonts/TitilliumWeb-Light.woff2 +0 -0
- package/demo/fonts/TitilliumWeb-Regular.woff +0 -0
- package/demo/fonts/TitilliumWeb-Regular.woff2 +0 -0
- package/demo/fonts/TitilliumWeb-SemiBold.woff +0 -0
- package/demo/fonts/TitilliumWeb-SemiBold.woff2 +0 -0
- package/demo/index.html +0 -1
|
@@ -8,6 +8,8 @@ import '../types.js';
|
|
|
8
8
|
import '../../@types/DataCombo.js';
|
|
9
9
|
import '../../drawer/types.js';
|
|
10
10
|
import '../../@types/Position.js';
|
|
11
|
+
import '../../@types/Icon.js';
|
|
12
|
+
import '../../icons/helper.js';
|
|
11
13
|
|
|
12
14
|
declare const BaseNumber: (props: IBaseNumberProps) => JSX.Element;
|
|
13
15
|
|
|
@@ -8,6 +8,8 @@ import '../types.js';
|
|
|
8
8
|
import '../../@types/DataCombo.js';
|
|
9
9
|
import '../../drawer/types.js';
|
|
10
10
|
import '../../@types/Position.js';
|
|
11
|
+
import '../../@types/Icon.js';
|
|
12
|
+
import '../../icons/helper.js';
|
|
11
13
|
|
|
12
14
|
declare const CurrencyField: (props: ICurrencyProps) => JSX.Element;
|
|
13
15
|
|
|
@@ -8,6 +8,8 @@ import '../types.js';
|
|
|
8
8
|
import '../../@types/DataCombo.js';
|
|
9
9
|
import '../../drawer/types.js';
|
|
10
10
|
import '../../@types/Position.js';
|
|
11
|
+
import '../../@types/Icon.js';
|
|
12
|
+
import '../../icons/helper.js';
|
|
11
13
|
|
|
12
14
|
declare const DecimalField: (props: IBaseNumberProps) => JSX.Element;
|
|
13
15
|
|
|
@@ -10,6 +10,8 @@ import '../types.js';
|
|
|
10
10
|
import '../../@types/DataCombo.js';
|
|
11
11
|
import '../../drawer/types.js';
|
|
12
12
|
import '../../@types/Position.js';
|
|
13
|
+
import '../../@types/Icon.js';
|
|
14
|
+
import '../../icons/helper.js';
|
|
13
15
|
|
|
14
16
|
declare const NumberField: (props: INumberFieldProps) => JSX.Element;
|
|
15
17
|
|
|
@@ -7,6 +7,8 @@ import '../../@types/Period.js';
|
|
|
7
7
|
import '../../@types/DataCombo.js';
|
|
8
8
|
import '../../drawer/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
|
+
import '../../@types/Icon.js';
|
|
11
|
+
import '../../icons/helper.js';
|
|
10
12
|
|
|
11
13
|
interface INumberFieldProps extends IMaskHOCProps {
|
|
12
14
|
value?: string;
|
|
@@ -7,6 +7,8 @@ import '../../@types/Align.js';
|
|
|
7
7
|
import '../../@types/Period.js';
|
|
8
8
|
import '../../drawer/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
|
+
import '../../@types/Icon.js';
|
|
11
|
+
import '../../icons/helper.js';
|
|
10
12
|
|
|
11
13
|
declare const SearchField: (props: ISearchProps) => JSX.Element | null;
|
|
12
14
|
|
|
@@ -7,6 +7,8 @@ import '../../@types/Align.js';
|
|
|
7
7
|
import '../../@types/Period.js';
|
|
8
8
|
import '../../drawer/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
|
+
import '../../@types/Icon.js';
|
|
11
|
+
import '../../icons/helper.js';
|
|
10
12
|
|
|
11
13
|
declare const ActionButtons: (props: IActionButtonsSelectProps) => JSX.Element;
|
|
12
14
|
|
|
@@ -7,6 +7,8 @@ import '../../@types/Align.js';
|
|
|
7
7
|
import '../../@types/Period.js';
|
|
8
8
|
import '../../drawer/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
|
+
import '../../@types/Icon.js';
|
|
11
|
+
import '../../icons/helper.js';
|
|
10
12
|
|
|
11
13
|
declare const Dropdown: (props: IDropdownSelectProps) => JSX.Element;
|
|
12
14
|
|
|
@@ -8,6 +8,8 @@ import '../../@types/Align.js';
|
|
|
8
8
|
import '../../@types/Period.js';
|
|
9
9
|
import '../../drawer/types.js';
|
|
10
10
|
import '../../@types/Position.js';
|
|
11
|
+
import '../../@types/Icon.js';
|
|
12
|
+
import '../../icons/helper.js';
|
|
11
13
|
|
|
12
14
|
declare const contentClass: (props: IDropdownSelectProps) => string;
|
|
13
15
|
declare const getDropdownItemCssClass: (selected: boolean, disabled: boolean, striped: boolean) => string;
|
|
@@ -61,7 +61,7 @@ var SimpleSelect = function SimpleSelect(props) {
|
|
|
61
61
|
_useState2 = _slicedToArray(_useState, 2),
|
|
62
62
|
dataCombo = _useState2[0],
|
|
63
63
|
setDataCombo = _useState2[1];
|
|
64
|
-
var _useState3 = (0, _react.useState)(),
|
|
64
|
+
var _useState3 = (0, _react.useState)(null),
|
|
65
65
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
66
66
|
selected = _useState4[0],
|
|
67
67
|
setSelected = _useState4[1];
|
|
@@ -89,7 +89,7 @@ var SimpleSelect = function SimpleSelect(props) {
|
|
|
89
89
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
90
90
|
isTyping = _useState16[0],
|
|
91
91
|
setIsTyping = _useState16[1];
|
|
92
|
-
var _useState17 = (0, _react.useState)(
|
|
92
|
+
var _useState17 = (0, _react.useState)(null),
|
|
93
93
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
94
94
|
valueFromProps = _useState18[0],
|
|
95
95
|
setValueFromProps = _useState18[1];
|
|
@@ -98,6 +98,11 @@ var SimpleSelect = function SimpleSelect(props) {
|
|
|
98
98
|
var componentRef = (0, _react.useRef)(null);
|
|
99
99
|
var selectWrapper = (0, _react.useRef)();
|
|
100
100
|
var gridElement = (0, _react.useRef)();
|
|
101
|
+
var clearSelected = function clearSelected() {
|
|
102
|
+
setInputText('');
|
|
103
|
+
setSelected(null);
|
|
104
|
+
setDataCombo(dataSourceWithAllOptions);
|
|
105
|
+
};
|
|
101
106
|
var onScreenResize = function onScreenResize() {
|
|
102
107
|
if (selectWrapper.current) setDropdownWidth(selectWrapper.current.clientWidth);
|
|
103
108
|
};
|
|
@@ -129,7 +134,7 @@ var SimpleSelect = function SimpleSelect(props) {
|
|
|
129
134
|
}
|
|
130
135
|
};
|
|
131
136
|
var onFilter = function onFilter(valueFilter) {
|
|
132
|
-
var selectedFilter;
|
|
137
|
+
var selectedFilter = null;
|
|
133
138
|
if (remoteSearch) {
|
|
134
139
|
if (onSearch) onSearch(valueFilter);
|
|
135
140
|
} else {
|
|
@@ -138,13 +143,19 @@ var SimpleSelect = function SimpleSelect(props) {
|
|
|
138
143
|
descriptionKey: descriptionKey,
|
|
139
144
|
dataSource: dataSourceWithAllOptions
|
|
140
145
|
});
|
|
141
|
-
if (dataComboFilter && dataComboFilter.length > 0)
|
|
146
|
+
if (dataComboFilter && dataComboFilter.length > 0) {
|
|
147
|
+
selectedFilter = dataComboFilter[0];
|
|
148
|
+
}
|
|
142
149
|
setDataCombo(dataComboFilter);
|
|
143
150
|
}
|
|
144
|
-
onChange(selectedFilter);
|
|
145
151
|
setOpened(true);
|
|
146
152
|
setInputText(valueFilter);
|
|
147
153
|
setSelected(selectedFilter);
|
|
154
|
+
if (selectedFilter) {
|
|
155
|
+
if (descriptionKeyIsString && valueFilter === selectedFilter[descriptionKey] || !descriptionKeyIsString && valueFilter === descriptionKey(selectedFilter)) {
|
|
156
|
+
onChange(selectedFilter);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
148
159
|
};
|
|
149
160
|
var onSelect = function onSelect(selectedDropdown) {
|
|
150
161
|
if (selectedDropdown === undefined) return;
|
|
@@ -168,6 +179,11 @@ var SimpleSelect = function SimpleSelect(props) {
|
|
|
168
179
|
if (props.onBlur) {
|
|
169
180
|
var event = getSelectEvent(selected);
|
|
170
181
|
props.onBlur(event);
|
|
182
|
+
if (selected) {
|
|
183
|
+
if (descriptionKeyIsString && inputText !== selected[descriptionKey] || !descriptionKeyIsString && inputText !== descriptionKey(selected)) {
|
|
184
|
+
clearSelected();
|
|
185
|
+
}
|
|
186
|
+
}
|
|
171
187
|
}
|
|
172
188
|
if (!insideComponent) {
|
|
173
189
|
setOpened(false);
|
|
@@ -182,15 +198,15 @@ var SimpleSelect = function SimpleSelect(props) {
|
|
|
182
198
|
onSelect(selected);
|
|
183
199
|
} else if ([constants.keyCodes.ARROW_UP, constants.keyCodes.ARROW_DOWN].includes(e.keyCode)) {
|
|
184
200
|
if (!opened) setOpened(true);
|
|
185
|
-
var index =
|
|
201
|
+
var index = dataCombo.length > 0 ? dataCombo.findIndex(function (d) {
|
|
186
202
|
return selected && d[idKey] === selected[idKey];
|
|
187
203
|
}) : 0;
|
|
188
204
|
if (e.keyCode === constants.keyCodes.ARROW_DOWN) {
|
|
189
|
-
index =
|
|
205
|
+
index = dataCombo && index === dataCombo.length - 1 ? 0 : index + 1;
|
|
190
206
|
} else {
|
|
191
|
-
index =
|
|
207
|
+
index = dataCombo && index === 0 ? (dataCombo === null || dataCombo === void 0 ? void 0 : dataCombo.length) - 1 : index - 1;
|
|
192
208
|
}
|
|
193
|
-
setSelected(
|
|
209
|
+
setSelected(dataCombo[index]);
|
|
194
210
|
}
|
|
195
211
|
}
|
|
196
212
|
if (!isTyping) setIsTyping(true);
|
package/lib/inputs/types.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import { IDrawerProps } from '../drawer/types.js';
|
|
|
6
6
|
import { TextAlign } from '../@types/Align.js';
|
|
7
7
|
import '../@types/Period.js';
|
|
8
8
|
import '../@types/Position.js';
|
|
9
|
+
import '../@types/Icon.js';
|
|
10
|
+
import '../icons/helper.js';
|
|
9
11
|
|
|
10
12
|
type DescriptionKey = string | ((dataSelected: DataCombo) => string);
|
|
11
13
|
interface IAdvancedFilterProps extends Omit<IDrawerProps, 'content'> {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ILabelMessagesProps } from './types.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/LabelStyles.js';
|
|
4
|
+
import '../@types/Icon.js';
|
|
5
|
+
import '../icons/helper.js';
|
|
4
6
|
|
|
5
7
|
declare const LabelMessages: ({ style, icon, flat, iconName, handlerClosed, square, visible, children, customClass, type, showCloseButton }: ILabelMessagesProps) => JSX.Element | null;
|
|
6
8
|
|
|
@@ -24,8 +24,7 @@ var LabelMessages = function LabelMessages(_ref) {
|
|
|
24
24
|
icon = _ref$icon === void 0 ? null : _ref$icon,
|
|
25
25
|
_ref$flat = _ref.flat,
|
|
26
26
|
flat = _ref$flat === void 0 ? false : _ref$flat,
|
|
27
|
-
|
|
28
|
-
iconName = _ref$iconName === void 0 ? '' : _ref$iconName,
|
|
27
|
+
iconName = _ref.iconName,
|
|
29
28
|
handlerClosed = _ref.handlerClosed,
|
|
30
29
|
_ref$square = _ref.square,
|
|
31
30
|
square = _ref$square === void 0 ? true : _ref$square,
|
|
@@ -47,9 +46,9 @@ var LabelMessages = function LabelMessages(_ref) {
|
|
|
47
46
|
return "labelmessages-component -".concat(type, " ").concat(customClass, "\n ").concat(square && '-square', " ").concat(flat && '-flat');
|
|
48
47
|
};
|
|
49
48
|
var getIcon = function getIcon() {
|
|
50
|
-
if (icon
|
|
49
|
+
if (icon) {
|
|
51
50
|
return icon;
|
|
52
|
-
} else if (iconName
|
|
51
|
+
} else if (iconName) {
|
|
53
52
|
return /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
54
53
|
name: iconName,
|
|
55
54
|
size: 16,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { LabelStyles } from '../@types/LabelStyles.js';
|
|
3
|
+
import { IconNames } from '../@types/Icon.js';
|
|
4
|
+
import '../icons/helper.js';
|
|
3
5
|
|
|
4
6
|
interface ILabelMessagesProps {
|
|
5
7
|
style?: CSSProperties;
|
|
6
8
|
type?: LabelStyles;
|
|
7
|
-
iconName?:
|
|
9
|
+
iconName?: IconNames;
|
|
8
10
|
icon?: ReactNode | null;
|
|
9
11
|
children?: ReactNode;
|
|
10
12
|
customClass?: string;
|
|
@@ -3,6 +3,8 @@ import 'react';
|
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/Size.js';
|
|
6
|
+
import '../@types/Icon.js';
|
|
7
|
+
import '../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
declare const DangerLabel: ({ className, ...rest }: ILabelProps) => JSX.Element;
|
|
8
10
|
|
|
@@ -3,6 +3,8 @@ import 'react';
|
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/Size.js';
|
|
6
|
+
import '../@types/Icon.js';
|
|
7
|
+
import '../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
declare const PrimaryLabel: ({ className, ...rest }: ILabelProps) => JSX.Element;
|
|
8
10
|
|
|
@@ -3,6 +3,8 @@ import 'react';
|
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/Size.js';
|
|
6
|
+
import '../@types/Icon.js';
|
|
7
|
+
import '../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
declare const SuccessLabel: ({ className, ...rest }: ILabelProps) => JSX.Element;
|
|
8
10
|
|
|
@@ -3,6 +3,8 @@ import 'react';
|
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/Size.js';
|
|
6
|
+
import '../@types/Icon.js';
|
|
7
|
+
import '../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
declare const WarningLabel: ({ className, ...rest }: ILabelProps) => JSX.Element;
|
|
8
10
|
|
package/lib/labels/index.d.ts
CHANGED
package/lib/labels/types.d.ts
CHANGED
|
@@ -2,11 +2,13 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { PermissionAttr } from '../@types/PermissionAttr.js';
|
|
3
3
|
import { Position } from '../@types/Position.js';
|
|
4
4
|
import { Size } from '../@types/Size.js';
|
|
5
|
+
import { IconNames } from '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
interface ILabelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
9
|
customClass?: string;
|
|
8
10
|
size?: Size;
|
|
9
|
-
iconName?:
|
|
11
|
+
iconName?: IconNames;
|
|
10
12
|
iconAlign?: Position;
|
|
11
13
|
icon?: ReactElement;
|
|
12
14
|
targetRef?: (ref: HTMLDivElement | null) => void;
|
package/lib/list/Header.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { IListHeaderProps } from './types.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
|
+
import '../@types/Icon.js';
|
|
5
|
+
import '../icons/helper.js';
|
|
4
6
|
|
|
5
7
|
declare const Header: ({ title, children, style, customClass }: IListHeaderProps) => JSX.Element;
|
|
6
8
|
|
package/lib/list/Item.d.ts
CHANGED
package/lib/list/helpers.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { IListContext } from './types.js';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
|
+
import '../@types/Icon.js';
|
|
5
|
+
import '../icons/helper.js';
|
|
4
6
|
|
|
5
7
|
declare const ListContext: React__default.Context<IListContext>;
|
|
6
8
|
declare const LIST_ITEMS_TYPES: {
|
package/lib/list/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export { default as ListSeparator } from './Separator.js';
|
|
|
4
4
|
import { IListProps } from './types.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '../@types/PermissionAttr.js';
|
|
7
|
+
import '../@types/Icon.js';
|
|
8
|
+
import '../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const List: (props: IListProps) => JSX.Element;
|
|
9
11
|
|
package/lib/list/types.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ReactNode, ReactElement, CSSProperties, Ref } from 'react';
|
|
2
2
|
import { PermissionAttr } from '../@types/PermissionAttr.js';
|
|
3
|
+
import { IconNames } from '../@types/Icon.js';
|
|
4
|
+
import '../icons/helper.js';
|
|
3
5
|
|
|
4
6
|
type ItemId = string;
|
|
5
7
|
interface KeyboardEvent {
|
|
@@ -40,8 +42,8 @@ interface IListItemProps {
|
|
|
40
42
|
leftIcon?: ReactElement;
|
|
41
43
|
rightIcon?: ReactElement;
|
|
42
44
|
onClick?: (event?: React.MouseEvent<HTMLLIElement, MouseEvent> | KeyboardEvent, itemId?: string) => void;
|
|
43
|
-
leftIconName?:
|
|
44
|
-
rightIconName?:
|
|
45
|
+
leftIconName?: IconNames;
|
|
46
|
+
rightIconName?: IconNames;
|
|
45
47
|
customClass?: string;
|
|
46
48
|
url?: string;
|
|
47
49
|
visible?: boolean;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { IFloatMenuItemProps } from './types.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../../@types/SizePixels.js';
|
|
4
|
+
import '../../@types/Icon.js';
|
|
5
|
+
import '../../icons/helper.js';
|
|
4
6
|
|
|
5
7
|
declare const MenuItem: ({ title, url, iconName, iconColor, iconSize, dropdownMenu, onClick, }: IFloatMenuItemProps) => JSX.Element;
|
|
6
8
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { IFloatMenuContext } from './types.js';
|
|
3
3
|
import '../../@types/SizePixels.js';
|
|
4
|
+
import '../../@types/Icon.js';
|
|
5
|
+
import '../../icons/helper.js';
|
|
4
6
|
|
|
5
7
|
declare const FloatMenuContext: React__default.Context<IFloatMenuContext>;
|
|
6
8
|
|
|
@@ -3,6 +3,8 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { IFloatMenuProps } from './types.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '../../@types/SizePixels.js';
|
|
6
|
+
import '../../@types/Icon.js';
|
|
7
|
+
import '../../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
declare function SubMenuContainer({ title, customClass, handlerGoBack, skeletonize, skeletonQtty, children, }: {
|
|
8
10
|
title: any;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { SizePixels } from '../../@types/SizePixels.js';
|
|
3
|
+
import { IconNames } from '../../@types/Icon.js';
|
|
4
|
+
import '../../icons/helper.js';
|
|
3
5
|
|
|
4
6
|
interface IFloatMenuContext {
|
|
5
7
|
customClassMenuItem?: string;
|
|
@@ -17,7 +19,7 @@ interface IFloatMenuItemProps {
|
|
|
17
19
|
title?: string;
|
|
18
20
|
url?: string;
|
|
19
21
|
urlHref?: string;
|
|
20
|
-
iconName?:
|
|
22
|
+
iconName?: IconNames;
|
|
21
23
|
iconColor?: string;
|
|
22
24
|
iconSize?: SizePixels;
|
|
23
25
|
customClass?: string;
|
package/lib/menus/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
4
4
|
import '../../@types/Size.js';
|
|
5
5
|
import '../../internals/types.js';
|
|
6
6
|
import '../../@types/Position.js';
|
|
7
|
+
import '../../@types/Icon.js';
|
|
8
|
+
import '../../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const ExpandMenu: ({ onExpandMenu, expandMenuCustomClass, iconName }: IExpandMenuProps) => JSX.Element;
|
|
9
11
|
|
|
@@ -4,6 +4,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
4
4
|
import '../../@types/Size.js';
|
|
5
5
|
import '../../internals/types.js';
|
|
6
6
|
import '../../@types/Position.js';
|
|
7
|
+
import '../../@types/Icon.js';
|
|
8
|
+
import '../../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const _default: {
|
|
9
11
|
(props: IMenuLinkProps): JSX.Element;
|
|
@@ -4,6 +4,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
4
4
|
import '../../@types/Size.js';
|
|
5
5
|
import '../../internals/types.js';
|
|
6
6
|
import '../../@types/Position.js';
|
|
7
|
+
import '../../@types/Icon.js';
|
|
8
|
+
import '../../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const NavMenuGroup: ({ children, scrollable }: INavMenuGroupProps) => JSX.Element;
|
|
9
11
|
|
|
@@ -4,6 +4,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
4
4
|
import '../../@types/Size.js';
|
|
5
5
|
import '../../internals/types.js';
|
|
6
6
|
import '../../@types/Position.js';
|
|
7
|
+
import '../../@types/Icon.js';
|
|
8
|
+
import '../../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const _default: {
|
|
9
11
|
(props: INavMenuItemProps): JSX.Element;
|
|
@@ -4,6 +4,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
4
4
|
import '../../@types/Size.js';
|
|
5
5
|
import '../../internals/types.js';
|
|
6
6
|
import '../../@types/Position.js';
|
|
7
|
+
import '../../@types/Icon.js';
|
|
8
|
+
import '../../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const NavSubMenuItem: ({ title, url, permissionAttr }: INavSubMenuItemProps) => JSX.Element | null;
|
|
9
11
|
|
|
@@ -4,6 +4,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
4
4
|
import '../../@types/Size.js';
|
|
5
5
|
import '../../internals/types.js';
|
|
6
6
|
import '../../@types/Position.js';
|
|
7
|
+
import '../../@types/Icon.js';
|
|
8
|
+
import '../../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const getCssClassMenu: (isExpanded?: boolean, size?: string) => string;
|
|
9
11
|
declare const SubMenuContext: React__default.Context<ISubMenuContext>;
|
|
@@ -8,6 +8,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
8
8
|
import '../../@types/Size.js';
|
|
9
9
|
import '../../internals/types.js';
|
|
10
10
|
import '../../@types/Position.js';
|
|
11
|
+
import '../../@types/Icon.js';
|
|
12
|
+
import '../../icons/helper.js';
|
|
11
13
|
|
|
12
14
|
declare const SideNav: (props: ISideNavProps) => JSX.Element;
|
|
13
15
|
|
|
@@ -4,6 +4,8 @@ import '../../../@types/PermissionAttr.js';
|
|
|
4
4
|
import '../../../@types/Size.js';
|
|
5
5
|
import '../../../internals/types.js';
|
|
6
6
|
import '../../../@types/Position.js';
|
|
7
|
+
import '../../../@types/Icon.js';
|
|
8
|
+
import '../../../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const EmptyList: ({ info, visible, }: IEmptyListProps) => JSX.Element;
|
|
9
11
|
|
|
@@ -4,6 +4,8 @@ import '../../../@types/PermissionAttr.js';
|
|
|
4
4
|
import '../../../@types/Size.js';
|
|
5
5
|
import '../../../internals/types.js';
|
|
6
6
|
import '../../../@types/Position.js';
|
|
7
|
+
import '../../../@types/Icon.js';
|
|
8
|
+
import '../../../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const PopupMenuSearch: (props: IPopupMenuSearchProps) => React__default.ReactPortal;
|
|
9
11
|
|
|
@@ -2,7 +2,9 @@ import { ReactNode, ReactElement, Ref, CSSProperties } from 'react';
|
|
|
2
2
|
import { PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
3
3
|
import { Size } from '../../@types/Size.js';
|
|
4
4
|
import { WithTooltipProps } from '../../internals/types.js';
|
|
5
|
+
import { IconNames } from '../../@types/Icon.js';
|
|
5
6
|
import '../../@types/Position.js';
|
|
7
|
+
import '../../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
interface ISideNavProps {
|
|
8
10
|
children: ReactNode;
|
|
@@ -40,7 +42,7 @@ interface INavMenuGroupProps {
|
|
|
40
42
|
interface INavMenuItemProps extends WithTooltipProps {
|
|
41
43
|
children?: ReactNode;
|
|
42
44
|
title?: string;
|
|
43
|
-
iconName?:
|
|
45
|
+
iconName?: IconNames;
|
|
44
46
|
childrenIsSubMenu?: boolean;
|
|
45
47
|
url?: string;
|
|
46
48
|
customClass?: string;
|
|
@@ -58,7 +60,7 @@ interface INavSubMenuItemProps {
|
|
|
58
60
|
interface IExpandMenuProps {
|
|
59
61
|
expandMenuCustomClass?: string;
|
|
60
62
|
onExpandMenu?: () => void;
|
|
61
|
-
iconName?:
|
|
63
|
+
iconName?: IconNames;
|
|
62
64
|
}
|
|
63
65
|
interface IEmptyListProps {
|
|
64
66
|
info?: string;
|
package/lib/panel/Content.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { I as IPanelProps } from '../types-
|
|
1
|
+
import { I as IPanelProps } from '../types-c1e2d0c9.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const PanelContent: ({ customClass, children, style }: IPanelProps) => JSX.Element | null;
|
|
7
9
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { I as IPanelProps } from '../types-
|
|
1
|
+
import { I as IPanelProps } from '../types-c1e2d0c9.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const DangerPanel: (props: IPanelProps) => JSX.Element;
|
|
7
9
|
|
package/lib/panel/Default.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { I as IPanelProps } from '../types-
|
|
1
|
+
import { I as IPanelProps } from '../types-c1e2d0c9.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const DefaultPanel: ({ startOpened, toggleable, customClass, children, style, title, gridCols, onEndReached, onEndReachedThreshold, permissionAttr, colorStyle, }: IPanelProps) => JSX.Element | null;
|
|
7
9
|
|
package/lib/panel/Header.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { a as IPanelHeaderProps } from '../types-
|
|
1
|
+
import { a as IPanelHeaderProps } from '../types-c1e2d0c9.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const PanelHeader: (props: IPanelHeaderProps) => JSX.Element;
|
|
7
9
|
|
package/lib/panel/Header.js
CHANGED
|
@@ -13,9 +13,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
15
|
var getIcon = function getIcon(titleIcon, icon) {
|
|
16
|
-
if (icon
|
|
16
|
+
if (icon) {
|
|
17
17
|
return icon;
|
|
18
|
-
} else if (titleIcon
|
|
18
|
+
} else if (titleIcon) {
|
|
19
19
|
return /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
20
20
|
name: titleIcon,
|
|
21
21
|
color: "#000",
|
|
@@ -33,8 +33,7 @@ var getClassName = function getClassName(_ref) {
|
|
|
33
33
|
return className;
|
|
34
34
|
};
|
|
35
35
|
var PanelHeader = function PanelHeader(props) {
|
|
36
|
-
var
|
|
37
|
-
titleIcon = _props$titleIcon === void 0 ? '' : _props$titleIcon,
|
|
36
|
+
var titleIcon = props.titleIcon,
|
|
38
37
|
icon = props.icon,
|
|
39
38
|
title = props.title,
|
|
40
39
|
children = props.children,
|