linear-react-components-ui 1.0.10-beta.9 → 1.0.10-rc.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/.eslintrc.json +1 -0
- package/README.md +19 -12
- package/coverage/clover.xml +6 -0
- package/coverage/coverage-final.json +1 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +101 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov.info +0 -0
- 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 +9 -6
- package/lib/assets/styles/effects.scss +2 -2
- package/lib/assets/styles/radio.scss +52 -8
- package/lib/assets/styles/tooltip.scss +42 -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/DefaultButton.js +2 -1
- 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 +4 -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/Header.js +12 -1
- package/lib/dialog/base/index.d.ts +2 -0
- package/lib/dialog/base/index.js +78 -16
- package/lib/dialog/form/index.d.ts +6 -3
- package/lib/dialog/form/index.js +11 -4
- package/lib/dialog/index.d.ts +2 -0
- package/lib/dialog/types.d.ts +8 -3
- 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/dropdown/Popup.js +5 -0
- package/lib/form/FieldArray.js +2 -2
- package/lib/icons/helper.d.ts +4 -0
- package/lib/icons/helper.js +4 -0
- 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/date/helpers.d.ts +1 -1
- package/lib/inputs/date/helpers.js +3 -2
- package/lib/inputs/date/index.js +23 -9
- package/lib/inputs/date/types.d.ts +2 -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/mask/imaskHOC.js +1 -1
- package/lib/inputs/multiSelect/Dropdown.js +3 -3
- package/lib/inputs/multiSelect/index.js +10 -9
- package/lib/inputs/multiSelect/types.d.ts +4 -3
- 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 +30 -10
- package/lib/inputs/select/types.d.ts +1 -1
- package/lib/inputs/types.d.ts +2 -0
- package/lib/internals/types.d.ts +1 -0
- package/lib/internals/withTooltip.js +13 -6
- 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/radio/index.d.ts +2 -1
- package/lib/radio/index.js +3 -1
- package/lib/radio/types.d.ts +2 -0
- 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/tooltip/index.d.ts +1 -1
- package/lib/tooltip/index.js +5 -1
- package/lib/tooltip/types.d.ts +1 -0
- package/lib/treeview/index.js +1 -0
- package/lib/{types-90c43ae1.d.ts → types-c1e2d0c9.d.ts} +2 -1
- package/package.json +6 -3
- 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
|
@@ -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 SuccessButton: ({ customClass, ...rest }: IButtonProps) => 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 WarningButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
|
|
8
10
|
|
package/lib/buttons/index.d.ts
CHANGED
package/lib/buttons/types.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { ButtonHTMLAttributes, ReactNode, CSSProperties, ReactElement, MutableRe
|
|
|
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 IButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
7
9
|
label?: string;
|
|
@@ -10,7 +12,7 @@ interface IButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
10
12
|
disabled?: boolean;
|
|
11
13
|
content?: ReactNode;
|
|
12
14
|
size?: Size;
|
|
13
|
-
iconName?:
|
|
15
|
+
iconName?: IconNames;
|
|
14
16
|
customClass?: string;
|
|
15
17
|
iconAlign?: Position;
|
|
16
18
|
iconStyle?: CSSProperties;
|
|
@@ -40,6 +42,7 @@ interface IButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
40
42
|
dropdownAlign?: 'left' | 'right';
|
|
41
43
|
onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
42
44
|
closeDropdownOnClickOutside?: boolean;
|
|
45
|
+
errorMessage?: string;
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
export { IButtonProps };
|
package/lib/dialog/Alert.d.ts
CHANGED
package/lib/dialog/Custom.d.ts
CHANGED
package/lib/dialog/Custom.js
CHANGED
|
@@ -30,7 +30,7 @@ var Custom = function Custom(props) {
|
|
|
30
30
|
_props$height = props.height,
|
|
31
31
|
height = _props$height === void 0 ? 'auto' : _props$height,
|
|
32
32
|
_props$iconName = props.iconName,
|
|
33
|
-
iconName = _props$iconName === void 0 ?
|
|
33
|
+
iconName = _props$iconName === void 0 ? null : _props$iconName;
|
|
34
34
|
return /*#__PURE__*/_react.default.createElement(_base.default, _extends({
|
|
35
35
|
width: width,
|
|
36
36
|
height: height
|
package/lib/dialog/Error.d.ts
CHANGED
package/lib/dialog/Question.d.ts
CHANGED
package/lib/dialog/Warning.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { IHeaderProps } from '../types.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../../@types/Align.js';
|
|
4
|
+
import '../../@types/Icon.js';
|
|
5
|
+
import '../../icons/helper.js';
|
|
4
6
|
|
|
5
7
|
declare const Header: ({ showCloseButton, handlerClose, title, icon, titleIcon, }: IHeaderProps) => JSX.Element;
|
|
6
8
|
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.default = void 0;
|
|
7
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _icons = _interopRequireDefault(require("../../icons"));
|
|
10
|
+
var _form = require("../form");
|
|
9
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
10
14
|
var getCloseButton = function getCloseButton(handlerClose) {
|
|
11
15
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
12
16
|
className: "close-button",
|
|
@@ -34,7 +38,14 @@ var Header = function Header(_ref) {
|
|
|
34
38
|
title = _ref.title,
|
|
35
39
|
icon = _ref.icon,
|
|
36
40
|
titleIcon = _ref.titleIcon;
|
|
41
|
+
var _useContext = (0, _react.useContext)(_form.FormDialogContext),
|
|
42
|
+
headerRef = _useContext.headerRef;
|
|
37
43
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
44
|
+
role: "button",
|
|
45
|
+
tabIndex: -1,
|
|
46
|
+
onFocus: function onFocus() {},
|
|
47
|
+
onBlur: function onBlur() {},
|
|
48
|
+
ref: headerRef,
|
|
38
49
|
className: "dialog-header"
|
|
39
50
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
40
51
|
className: "".concat(icon !== null || titleIcon !== null ? 'left' : '')
|
package/lib/dialog/base/index.js
CHANGED
|
@@ -9,9 +9,16 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
10
10
|
var _style = _interopRequireDefault(require("./style"));
|
|
11
11
|
require("../../assets/styles/dialog.scss");
|
|
12
|
+
var _form = require("../form");
|
|
12
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
14
|
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
15
|
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; }
|
|
16
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
17
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
18
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
19
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
20
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
21
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
22
|
var body = document.getElementsByTagName('body')[0];
|
|
16
23
|
var BaseDialog = function BaseDialog(props) {
|
|
17
24
|
var _props$overlay = props.overlay,
|
|
@@ -22,22 +29,29 @@ var BaseDialog = function BaseDialog(props) {
|
|
|
22
29
|
wrapperClassName = props.wrapperClassName,
|
|
23
30
|
children = props.children,
|
|
24
31
|
zIndex = props.zIndex;
|
|
32
|
+
var _useContext = (0, _react.useContext)(_form.FormDialogContext),
|
|
33
|
+
headerRef = _useContext.headerRef;
|
|
34
|
+
var wrapperEl = (0, _react.useRef)(null);
|
|
35
|
+
var _useState = (0, _react.useState)(false),
|
|
36
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
37
|
+
isDragging = _useState2[0],
|
|
38
|
+
setIsDragging = _useState2[1];
|
|
25
39
|
var dialogEl = (0, _react.useRef)(document.createElement('div'));
|
|
26
40
|
dialogEl.current.className = 'dialog';
|
|
27
41
|
dialogEl.current.dataset.testid = 'dialog-component';
|
|
28
42
|
var modalContainerEl = (0, _react.useRef)(document.createElement('div'));
|
|
29
43
|
var overlayEl = (0, _react.useRef)(null);
|
|
30
|
-
var wrapperEl = (0, _react.useRef)(null);
|
|
31
44
|
if (overlay && overlayEl.current === null) {
|
|
32
45
|
overlayEl.current = document.createElement('div');
|
|
33
46
|
overlayEl.current.className = 'modal-overlay';
|
|
34
47
|
overlayEl.current.dataset.testid = 'modal-overlay';
|
|
48
|
+
overlayEl.current.style.zIndex = "".concat(99998 + document.body.getElementsByClassName('modal-overlay').length);
|
|
35
49
|
body.appendChild(overlayEl.current);
|
|
36
50
|
}
|
|
37
51
|
var handleClickOutside = function handleClickOutside(event) {
|
|
38
52
|
var target = event.target;
|
|
39
53
|
var dialogAlert = document.getElementsByClassName('dialog-alert-wrapper');
|
|
40
|
-
if (wrapperEl !== null && wrapperEl.current !== null && !wrapperEl.current.contains(target)) {
|
|
54
|
+
if (wrapperEl !== null && wrapperEl.current !== null && !isDragging && !wrapperEl.current.contains(target)) {
|
|
41
55
|
if (dialogAlert.length > 0 && dialogAlert[dialogAlert.length - 1].contains(target) || target.classList.contains('button-component')) return;
|
|
42
56
|
if (handlerClose) handlerClose();
|
|
43
57
|
}
|
|
@@ -48,8 +62,9 @@ var BaseDialog = function BaseDialog(props) {
|
|
|
48
62
|
}
|
|
49
63
|
};
|
|
50
64
|
var setModalContainer = function setModalContainer() {
|
|
65
|
+
var zIndexDynamicModalContainers = "".concat(99999 + document.body.getElementsByClassName('modalcontainer').length);
|
|
51
66
|
modalContainerEl.current.className = 'modalcontainer';
|
|
52
|
-
|
|
67
|
+
modalContainerEl.current.style.zIndex = zIndex || zIndexDynamicModalContainers;
|
|
53
68
|
body.appendChild(modalContainerEl.current);
|
|
54
69
|
modalContainerEl.current.appendChild(dialogEl.current);
|
|
55
70
|
};
|
|
@@ -58,30 +73,77 @@ var BaseDialog = function BaseDialog(props) {
|
|
|
58
73
|
document.body.removeChild(modalComponent[modalComponent.length - 1]);
|
|
59
74
|
};
|
|
60
75
|
var removeOverlay = function removeOverlay() {
|
|
61
|
-
var
|
|
76
|
+
var countModalOverlays = document.body.getElementsByClassName('modal-overlay').length;
|
|
77
|
+
var modalOverlay = document.getElementsByClassName('modal-overlay')[countModalOverlays - 1];
|
|
62
78
|
body.removeChild(modalOverlay);
|
|
63
79
|
};
|
|
80
|
+
var onDialogPositionChange = function onDialogPositionChange(_ref) {
|
|
81
|
+
var positionX = _ref.positionX,
|
|
82
|
+
positionY = _ref.positionY;
|
|
83
|
+
if (wrapperEl.current) {
|
|
84
|
+
var _wrapperEl$current$ge = wrapperEl.current.getBoundingClientRect(),
|
|
85
|
+
width = _wrapperEl$current$ge.width,
|
|
86
|
+
height = _wrapperEl$current$ge.height;
|
|
87
|
+
var x = positionX <= 0 ? 0 : positionX;
|
|
88
|
+
var y = positionY <= 0 ? 0 : positionY;
|
|
89
|
+
if (x + width >= window.innerWidth) x = window.innerWidth - width;
|
|
90
|
+
if (y + height >= window.innerHeight) y = window.innerHeight - height;
|
|
91
|
+
wrapperEl.current.style.transform = "translate(".concat(x, "px, ").concat(y, "px)");
|
|
92
|
+
wrapperEl.current.style.transition = 'none';
|
|
93
|
+
wrapperEl.current.style.left = '0';
|
|
94
|
+
wrapperEl.current.style.top = '0';
|
|
95
|
+
wrapperEl.current.style.position = 'absolute';
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
var onMouseMove = function onMouseMove(event) {
|
|
99
|
+
if (wrapperEl.current && isDragging) {
|
|
100
|
+
var _wrapperEl$current$ge2 = wrapperEl.current.getBoundingClientRect(),
|
|
101
|
+
left = _wrapperEl$current$ge2.left,
|
|
102
|
+
top = _wrapperEl$current$ge2.top;
|
|
103
|
+
onDialogPositionChange({
|
|
104
|
+
positionX: event.movementX + left,
|
|
105
|
+
positionY: event.movementY + top
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
var onMouseDown = function onMouseDown(event) {
|
|
110
|
+
var _headerRef$current;
|
|
111
|
+
var element = event.target;
|
|
112
|
+
var isHeader = headerRef === null || headerRef === void 0 ? void 0 : (_headerRef$current = headerRef.current) === null || _headerRef$current === void 0 ? void 0 : _headerRef$current.contains(element);
|
|
113
|
+
if (wrapperEl.current && isHeader) setIsDragging(true);
|
|
114
|
+
};
|
|
115
|
+
var onMouseUp = function onMouseUp() {
|
|
116
|
+
if (wrapperEl.current) setIsDragging(false);
|
|
117
|
+
};
|
|
118
|
+
var renderModal = function renderModal() {
|
|
119
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
120
|
+
className: wrapperClassName,
|
|
121
|
+
"data-testid": "dialog-wrapper",
|
|
122
|
+
style: (0, _style.default)(props),
|
|
123
|
+
ref: wrapperEl
|
|
124
|
+
}, children);
|
|
125
|
+
};
|
|
64
126
|
(0, _react.useEffect)(function () {
|
|
65
127
|
setModalContainer();
|
|
66
|
-
if (closeOnOutsideClick) document.addEventListener('click', handleClickOutside);
|
|
67
128
|
if (closeOnEsc) document.addEventListener('keyup', handleCloseOnEsc);
|
|
68
129
|
return function () {
|
|
69
130
|
removeModalContainer();
|
|
70
131
|
if (overlay) removeOverlay();
|
|
71
|
-
if (closeOnOutsideClick) document.removeEventListener('click', handleClickOutside);
|
|
72
132
|
if (closeOnEsc) document.removeEventListener('keyup', handleCloseOnEsc);
|
|
73
133
|
};
|
|
74
134
|
}, []);
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
135
|
+
(0, _react.useEffect)(function () {
|
|
136
|
+
document.addEventListener('mousedown', onMouseDown);
|
|
137
|
+
document.addEventListener('mouseup', onMouseUp);
|
|
138
|
+
if (closeOnOutsideClick) document.addEventListener('click', handleClickOutside);
|
|
139
|
+
if (isDragging) document.addEventListener('mousemove', onMouseMove);
|
|
140
|
+
return function () {
|
|
141
|
+
if (closeOnOutsideClick) document.removeEventListener('click', handleClickOutside);
|
|
142
|
+
document.removeEventListener('mousedown', onMouseDown);
|
|
143
|
+
document.removeEventListener('mouseup', onMouseUp);
|
|
144
|
+
document.removeEventListener('mousemove', onMouseMove);
|
|
145
|
+
};
|
|
146
|
+
}, [isDragging]);
|
|
85
147
|
return /*#__PURE__*/_reactDom.default.createPortal(renderModal(), dialogEl.current);
|
|
86
148
|
};
|
|
87
149
|
var _default = BaseDialog;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { IFormDialogContext, IFormProps } from '../types.js';
|
|
3
3
|
import '../../@types/Align.js';
|
|
4
|
+
import '../../@types/Icon.js';
|
|
5
|
+
import '../../icons/helper.js';
|
|
4
6
|
|
|
7
|
+
declare const FormDialogContext: React__default.Context<IFormDialogContext>;
|
|
5
8
|
declare const _default: (props: IFormProps) => JSX.Element;
|
|
6
9
|
|
|
7
|
-
export { _default as default };
|
|
10
|
+
export { FormDialogContext, _default as default };
|
package/lib/dialog/form/index.js
CHANGED
|
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.default = void 0;
|
|
7
|
+
exports.default = exports.FormDialogContext = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _uuid = _interopRequireDefault(require("uuid"));
|
|
10
10
|
var _base = _interopRequireDefault(require("../base"));
|
|
@@ -18,6 +18,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
18
18
|
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); }
|
|
19
19
|
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; }
|
|
20
20
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
|
+
var FormDialogContext = /*#__PURE__*/(0, _react.createContext)({});
|
|
22
|
+
exports.FormDialogContext = FormDialogContext;
|
|
21
23
|
var ModalForm = function ModalForm(props) {
|
|
22
24
|
var _props$showFooter = props.showFooter,
|
|
23
25
|
showFooter = _props$showFooter === void 0 ? true : _props$showFooter,
|
|
@@ -29,11 +31,12 @@ var ModalForm = function ModalForm(props) {
|
|
|
29
31
|
height = _props$height === void 0 ? '50%' : _props$height,
|
|
30
32
|
content = props.content,
|
|
31
33
|
children = props.children;
|
|
34
|
+
var headerRef = (0, _react.useRef)(null);
|
|
35
|
+
var context = (0, _react.useContext)(_withFormSecurity.FormSecurityContext);
|
|
32
36
|
var overlayStyle = isWaiting ? {
|
|
33
37
|
opacity: 0.4,
|
|
34
38
|
pointerEvent: 'none'
|
|
35
39
|
} : {};
|
|
36
|
-
var context = (0, _react.useContext)(_withFormSecurity.FormSecurityContext);
|
|
37
40
|
var getSpinner = function getSpinner() {
|
|
38
41
|
if (!isWaiting) return null;
|
|
39
42
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -45,7 +48,11 @@ var ModalForm = function ModalForm(props) {
|
|
|
45
48
|
delayTime: 0
|
|
46
49
|
}));
|
|
47
50
|
};
|
|
48
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
51
|
+
return /*#__PURE__*/_react.default.createElement(FormDialogContext.Provider, {
|
|
52
|
+
value: {
|
|
53
|
+
headerRef: headerRef
|
|
54
|
+
}
|
|
55
|
+
}, /*#__PURE__*/_react.default.createElement(_base.default, _extends({
|
|
49
56
|
width: width,
|
|
50
57
|
height: height
|
|
51
58
|
}, props, {
|
|
@@ -68,7 +75,7 @@ var ModalForm = function ModalForm(props) {
|
|
|
68
75
|
return /*#__PURE__*/_react.default.cloneElement(button, {
|
|
69
76
|
key: "button-".concat(_uuid.default.v1())
|
|
70
77
|
});
|
|
71
|
-
}))));
|
|
78
|
+
})))));
|
|
72
79
|
};
|
|
73
80
|
var _default = (0, _withFormSecurity.default)(ModalForm);
|
|
74
81
|
exports.default = _default;
|
package/lib/dialog/index.d.ts
CHANGED
package/lib/dialog/types.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ReactNode, CSSProperties, ReactElement } from 'react';
|
|
2
2
|
import { TextAlign } from '../@types/Align.js';
|
|
3
|
+
import { IconNames } from '../@types/Icon.js';
|
|
4
|
+
import '../icons/helper.js';
|
|
3
5
|
|
|
4
6
|
interface IContentProps {
|
|
5
7
|
children: ReactNode | ReactNode[];
|
|
@@ -13,7 +15,7 @@ interface IHeaderProps {
|
|
|
13
15
|
showCloseButton?: boolean;
|
|
14
16
|
title?: string;
|
|
15
17
|
icon?: JSX.Element;
|
|
16
|
-
titleIcon?:
|
|
18
|
+
titleIcon?: IconNames;
|
|
17
19
|
}
|
|
18
20
|
interface IBaseProps {
|
|
19
21
|
wrapperClassName: string;
|
|
@@ -64,7 +66,10 @@ interface ICustomProps {
|
|
|
64
66
|
text?: string;
|
|
65
67
|
height?: string;
|
|
66
68
|
width?: string;
|
|
67
|
-
iconName?:
|
|
69
|
+
iconName?: IconNames | null;
|
|
70
|
+
}
|
|
71
|
+
interface IFormDialogContext {
|
|
72
|
+
headerRef?: React.RefObject<HTMLDivElement>;
|
|
68
73
|
}
|
|
69
74
|
|
|
70
|
-
export { IBaseProps, ICommonDialogProps, IContentProps, ICustomProps, IFooterProps, IFormProps, IHeaderProps, IQuestionProps };
|
|
75
|
+
export { IBaseProps, ICommonDialogProps, IContentProps, ICustomProps, IFooterProps, IFormDialogContext, IFormProps, IHeaderProps, IQuestionProps };
|
package/lib/drawer/Content.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { IDrawerProps } from './types.js';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const Content: ({ children, style }: IDrawerProps) => JSX.Element;
|
|
7
9
|
|
package/lib/drawer/Drawer.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import React__default from 'react';
|
|
|
2
2
|
import { IDrawerProps } from './types.js';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const BaseDrawer: ({ position, customClass, children, style, customClassForContent, targetId, closeOnEsc, overlay, permissionAttr, skeletonize, handlerClose, customClassForDrawer, content, title, isWaiting, ...rest }: IDrawerProps) => React__default.ReactPortal;
|
|
7
9
|
|
package/lib/drawer/Header.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { IDrawerHeaderProps } from './types.js';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const Header: ({ showCloseButton, title, subTitle, icon, titleIcon, customClass, titleContent, subTitleContent, titleRightContent, }: IDrawerHeaderProps) => JSX.Element;
|
|
7
9
|
|
package/lib/drawer/helpers.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import React__default from 'react';
|
|
|
2
2
|
import { IDrawerContext } from './types.js';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const DrawerContext: React__default.Context<IDrawerContext>;
|
|
7
9
|
|
package/lib/drawer/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export { default as DrawerContent } from './Content.js';
|
|
|
4
4
|
import 'react';
|
|
5
5
|
import '../@types/PermissionAttr.js';
|
|
6
6
|
import '../@types/Position.js';
|
|
7
|
+
import '../@types/Icon.js';
|
|
8
|
+
import '../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const _default: (props: IDrawerProps) => JSX.Element;
|
|
9
11
|
|
package/lib/drawer/types.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React__default, { ReactNode, ReactElement } from 'react';
|
|
2
2
|
import { PermissionAttr } from '../@types/PermissionAttr.js';
|
|
3
3
|
import { Position } from '../@types/Position.js';
|
|
4
|
+
import { IconNames } from '../@types/Icon.js';
|
|
5
|
+
import '../icons/helper.js';
|
|
4
6
|
|
|
5
7
|
interface IDrawerProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
6
8
|
overlay?: boolean;
|
|
@@ -28,7 +30,7 @@ interface IDrawerHeaderProps extends React__default.HTMLAttributes<HTMLDivElemen
|
|
|
28
30
|
subTitle?: string;
|
|
29
31
|
subTitleContent?: ReactElement;
|
|
30
32
|
icon?: ReactElement;
|
|
31
|
-
titleIcon?:
|
|
33
|
+
titleIcon?: IconNames;
|
|
32
34
|
}
|
|
33
35
|
interface IDrawerContext {
|
|
34
36
|
handlerClose?: () => void;
|
package/lib/dropdown/Popup.js
CHANGED
|
@@ -53,6 +53,11 @@ var DropdownPopup = function DropdownPopup(_ref2) {
|
|
|
53
53
|
isFloatMenu: isFloatMenu,
|
|
54
54
|
minWidth: minWidth
|
|
55
55
|
});
|
|
56
|
+
if (popup && popup.current) {
|
|
57
|
+
var modalContainers = document.body.getElementsByClassName('modalcontainer');
|
|
58
|
+
var lastModalContainer = modalContainers[modalContainers.length - 1];
|
|
59
|
+
popup.current.style.zIndex = "".concat(modalContainers.length ? lastModalContainer.style.zIndex : 99999);
|
|
60
|
+
}
|
|
56
61
|
(0, _react.useEffect)(function () {
|
|
57
62
|
body.appendChild(popup.current);
|
|
58
63
|
return function () {
|
package/lib/form/FieldArray.js
CHANGED
|
@@ -21,9 +21,9 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
21
21
|
var getDefaultProps = function getDefaultProps(props) {
|
|
22
22
|
var _ref;
|
|
23
23
|
var _props$valuePropName = props.valuePropName,
|
|
24
|
-
valuePropName = _props$valuePropName === void 0 ? '' : _props$valuePropName,
|
|
24
|
+
valuePropName = _props$valuePropName === void 0 ? 'value' : _props$valuePropName,
|
|
25
25
|
_props$changePropName = props.changePropName,
|
|
26
|
-
changePropName = _props$changePropName === void 0 ? '' : _props$changePropName,
|
|
26
|
+
changePropName = _props$changePropName === void 0 ? 'onSelect' : _props$changePropName,
|
|
27
27
|
data = props.data,
|
|
28
28
|
name = props.name,
|
|
29
29
|
handlerFieldChange = props.handlerFieldChange,
|
package/lib/icons/helper.d.ts
CHANGED
package/lib/icons/helper.js
CHANGED
|
@@ -580,6 +580,10 @@ var _default = {
|
|
|
580
580
|
stackEmpty: {
|
|
581
581
|
viewbox: '0 0 16 16',
|
|
582
582
|
paths: ['M16 13v-12h-11v1.155l-2.619 0.368 0.17 1.211-2.551 0.732 3.308 11.535 10.189-2.921 0.558-0.079h1.945zM6 2h9v10h-9v-10zM5 3.070v9.93h2.543l-2.721 0.382-1.418-10.088 1.595-0.224zM3.929 14.879l-2.808-9.793 1.558-0.447 1.373 9.766 2.997-0.421-3.119 0.894z']
|
|
583
|
+
},
|
|
584
|
+
select2: {
|
|
585
|
+
viewbox: '0 0 16 16',
|
|
586
|
+
paths: ['M13.002 14.658v0l-2.16-4.329 4.278-0.74-10.119-7.589v12.649l3.158-2.978 2.16 4.329z', 'M1 10.5v-9c0-0.271 0.229-0.5 0.5-0.5h11c0.271 0 0.5 0.229 0.5 0.5v4l1 0.75v-4.75c0-0.825-0.675-1.5-1.5-1.5h-11c-0.825 0-1.5 0.675-1.5 1.5v9c0 0.825 0.675 1.5 1.5 1.5h1.5v-1h-1.5c-0.271 0-0.5-0.229-0.5-0.5z']
|
|
583
587
|
}
|
|
584
588
|
};
|
|
585
589
|
exports.default = _default;
|
package/lib/icons/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { IIconProps } from './types.js';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PointerEvents.js';
|
|
4
4
|
import '../@types/SizePixels.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import './helper.js';
|
|
5
7
|
|
|
6
8
|
declare const Icon: ({ name, onClick, svgStruct, size, style, visible, disabled, customClass, color, pointerEvents, }: IIconProps) => JSX.Element | null;
|
|
7
9
|
|
package/lib/icons/types.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { PointerEvents } from '../@types/PointerEvents.js';
|
|
3
3
|
import { SizePixels } from '../@types/SizePixels.js';
|
|
4
|
+
import { IconNames } from '../@types/Icon.js';
|
|
5
|
+
import './helper.js';
|
|
4
6
|
|
|
5
7
|
type ListIconType = {
|
|
6
8
|
[name: string]: {
|
|
@@ -16,7 +18,7 @@ interface IIconProps {
|
|
|
16
18
|
visible?: boolean;
|
|
17
19
|
disabled?: boolean;
|
|
18
20
|
pointerEvents?: PointerEvents;
|
|
19
|
-
name?:
|
|
21
|
+
name?: IconNames;
|
|
20
22
|
viewBox?: string;
|
|
21
23
|
svgStruct?: {
|
|
22
24
|
viewbox: string;
|
package/lib/index.d.ts
CHANGED
|
@@ -7,10 +7,12 @@ export { default as List } from './list/index.js';
|
|
|
7
7
|
export { default as Radio } from './radio/index.js';
|
|
8
8
|
export { default as Tab } from './tabs/index.js';
|
|
9
9
|
export { default as Dialog } from './dialog/base/index.js';
|
|
10
|
-
import './types-
|
|
10
|
+
import './types-c1e2d0c9.js';
|
|
11
11
|
import 'react';
|
|
12
12
|
import './@types/PermissionAttr.js';
|
|
13
13
|
import './internals/colorStyles.js';
|
|
14
|
+
import './@types/Icon.js';
|
|
15
|
+
import './icons/helper.js';
|
|
14
16
|
import './toolbar/ToolBarGroup.js';
|
|
15
17
|
import './toolbar/types.js';
|
|
16
18
|
import './@types/ButtonTypes.js';
|