linear-react-components-ui 1.1.2-beta.8 → 1.1.2
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/.eslintcache +1 -0
- package/.gitlab-ci.yml +1 -0
- package/.vscode/settings.json +10 -1
- package/lib/@types/Align.d.ts +1 -1
- package/lib/@types/ButtonTypes.d.ts +1 -1
- package/lib/@types/ColorStyles.d.ts +1 -1
- package/lib/@types/DataCombo.d.ts +1 -1
- package/lib/@types/Icon.d.ts +1 -1
- package/lib/@types/LabelStyles.d.ts +1 -1
- package/lib/@types/Period.d.ts +1 -1
- package/lib/@types/PermissionAttr.d.ts +1 -1
- package/lib/@types/PointerEvents.d.ts +1 -1
- package/lib/@types/Position.d.ts +1 -1
- package/lib/@types/PositionAlert.d.ts +1 -1
- package/lib/@types/Size.d.ts +1 -1
- package/lib/@types/SizePixels.d.ts +2 -2
- package/lib/@types/StorageMock.d.ts +1 -1
- package/lib/alerts/types.d.ts +1 -1
- package/lib/assets/styles/checkbox.scss +37 -38
- package/lib/assets/styles/colors.scss +2 -0
- package/lib/assets/styles/commons.scss +1 -0
- package/lib/assets/styles/error.scss +9 -0
- package/lib/assets/styles/fieldset.scss +3 -0
- package/lib/assets/styles/gridlayout.scss +0 -2
- package/lib/assets/styles/hint.scss +21 -0
- package/lib/assets/styles/input.scss +7 -7
- package/lib/avatar/types.d.ts +1 -1
- package/lib/badge/types.d.ts +1 -1
- package/lib/buttons/types.d.ts +1 -1
- package/lib/calendar/types.d.ts +1 -1
- package/lib/checkbox/Label.js +13 -4
- package/lib/checkbox/index.js +14 -10
- package/lib/checkbox/types.d.ts +1 -1
- package/lib/dialog/Custom.js +4 -2
- package/lib/dialog/base/index.js +3 -2
- package/lib/dialog/form/index.js +3 -3
- package/lib/dialog/types.d.ts +1 -1
- package/lib/drawer/Drawer.js +1 -1
- package/lib/drawer/types.d.ts +1 -1
- package/lib/dropdown/types.d.ts +1 -1
- package/lib/fieldset/index.js +4 -2
- package/lib/fieldset/types.d.ts +3 -1
- package/lib/form/Field.d.ts +3 -1
- package/lib/form/FieldArray.d.ts +2 -0
- package/lib/form/FieldNumber.d.ts +2 -0
- package/lib/form/FieldPeriod.d.ts +2 -0
- package/lib/form/helpers.d.ts +2 -0
- package/lib/form/index.d.ts +2 -0
- package/lib/form/types.d.ts +3 -1
- package/lib/form/withFieldHOC.d.ts +2 -0
- package/lib/form/withFormSecurity.d.ts +2 -0
- package/lib/gridlayout/GridRow.js +10 -2
- package/lib/gridlayout/types.d.ts +2 -2
- package/lib/hint/helpers.d.ts +3 -0
- package/lib/hint/helpers.js +21 -0
- package/lib/hint/index.d.ts +2 -1
- package/lib/hint/index.js +9 -15
- package/lib/hint/types.d.ts +4 -1
- package/lib/icons/helper.d.ts +4 -0
- package/lib/icons/helper.js +4 -0
- package/lib/icons/types.d.ts +1 -1
- package/lib/inputs/base/InputTextBase.d.ts +2 -0
- package/lib/inputs/base/InputTextBase.js +51 -7
- package/lib/inputs/base/Label.d.ts +14 -0
- package/lib/inputs/base/Label.js +35 -0
- package/lib/inputs/base/helpers.d.ts +3 -2
- package/lib/inputs/base/helpers.js +1 -8
- package/lib/inputs/base/types.d.ts +14 -2
- package/lib/inputs/color/types.d.ts +1 -1
- package/lib/inputs/date/Dialog.d.ts +2 -0
- package/lib/inputs/date/Dropdown.d.ts +2 -0
- package/lib/inputs/date/helpers.d.ts +2 -0
- package/lib/inputs/date/index.d.ts +2 -0
- package/lib/inputs/date/index.js +2 -0
- package/lib/inputs/date/types.d.ts +4 -1
- package/lib/inputs/errorMessage/index.d.ts +17 -0
- package/lib/inputs/errorMessage/index.js +26 -0
- package/lib/inputs/file/DefaultFile.d.ts +2 -0
- package/lib/inputs/file/DefaultFile.js +4 -2
- package/lib/inputs/file/DragDropFile.d.ts +2 -0
- package/lib/inputs/file/DragDropFile.js +4 -2
- package/lib/inputs/file/File.d.ts +2 -0
- package/lib/inputs/file/FileButtonSettings.d.ts +2 -0
- package/lib/inputs/file/helpers.d.ts +2 -0
- package/lib/inputs/file/index.d.ts +2 -0
- package/lib/inputs/file/types.d.ts +3 -1
- package/lib/inputs/inputHOC.d.ts +3 -1
- package/lib/inputs/mask/BaseMask.d.ts +3 -0
- package/lib/inputs/mask/Cnpj.d.ts +3 -0
- package/lib/inputs/mask/Cpf.d.ts +3 -0
- package/lib/inputs/mask/Phone.d.ts +3 -0
- package/lib/inputs/mask/ZipCode.d.ts +3 -0
- package/lib/inputs/mask/helpers.d.ts +2 -1
- package/lib/inputs/mask/imaskHOC.d.ts +3 -1
- package/lib/inputs/mask/index.d.ts +3 -0
- package/lib/inputs/mask/types.d.ts +6 -2
- package/lib/inputs/multiSelect/ActionButtons.d.ts +2 -0
- package/lib/inputs/multiSelect/Dropdown.d.ts +2 -0
- package/lib/inputs/multiSelect/helper.d.ts +2 -0
- package/lib/inputs/multiSelect/index.d.ts +2 -0
- package/lib/inputs/multiSelect/index.js +2 -2
- package/lib/inputs/multiSelect/types.d.ts +3 -1
- package/lib/inputs/number/BaseNumber.d.ts +3 -1
- package/lib/inputs/number/Currency.d.ts +3 -1
- package/lib/inputs/number/Decimal.d.ts +3 -1
- package/lib/inputs/number/index.d.ts +3 -1
- package/lib/inputs/number/types.d.ts +4 -2
- package/lib/inputs/period/Dialog.d.ts +2 -0
- package/lib/inputs/period/Dropdown.d.ts +2 -0
- package/lib/inputs/period/PeriodList.d.ts +2 -0
- package/lib/inputs/period/helper.d.ts +2 -0
- package/lib/inputs/period/index.d.ts +2 -0
- package/lib/inputs/period/index.js +4 -1
- package/lib/inputs/period/types.d.ts +3 -1
- package/lib/inputs/search/index.d.ts +3 -1
- package/lib/inputs/select/ActionButtons.d.ts +3 -1
- package/lib/inputs/select/Dropdown.d.ts +3 -1
- package/lib/inputs/select/helper.d.ts +3 -1
- package/lib/inputs/select/index.d.ts +2 -0
- package/lib/inputs/select/multiple/Selecteds.d.ts +2 -0
- package/lib/inputs/select/multiple/index.d.ts +2 -0
- package/lib/inputs/select/multiple/index.js +9 -3
- package/lib/inputs/select/simple/index.d.ts +2 -0
- package/lib/inputs/select/simple/index.js +9 -3
- package/lib/inputs/select/types.d.ts +5 -3
- package/lib/inputs/text/types.d.ts +1 -1
- package/lib/inputs/textarea/index.d.ts +2 -0
- package/lib/inputs/textarea/types.d.ts +3 -1
- package/lib/inputs/types.d.ts +10 -3
- package/lib/internals/types.d.ts +1 -1
- package/lib/internals/withTooltip.js +7 -3
- package/lib/labelMessages/types.d.ts +1 -1
- package/lib/labels/types.d.ts +1 -1
- package/lib/list/types.d.ts +1 -1
- package/lib/menus/float/index.d.ts +10 -10
- package/lib/menus/float/types.d.ts +1 -1
- package/lib/menus/sidenav/index.js +3 -3
- package/lib/menus/sidenav/popup_menu_search/index.js +1 -1
- package/lib/menus/sidenav/types.d.ts +1 -1
- package/lib/panel/types.d.ts +1 -1
- package/lib/popover/types.d.ts +1 -1
- package/lib/progress/types.d.ts +1 -1
- package/lib/radio/types.d.ts +1 -1
- package/lib/shortcuts/types.d.ts +1 -1
- package/lib/skeleton/types.d.ts +1 -1
- package/lib/spinner/types.d.ts +1 -1
- package/lib/split/helpers.d.ts +1 -1
- package/lib/split/types.d.ts +1 -1
- package/lib/table/types.d.ts +1 -1
- package/lib/tabs/types.d.ts +1 -1
- package/lib/toolbar/types.d.ts +1 -1
- package/lib/tooltip/index.js +2 -2
- package/lib/tooltip/types.d.ts +1 -1
- package/lib/treetable/Row.d.ts +1 -1
- package/lib/treetable/helpers.d.ts +1 -1
- package/lib/treetable/index.d.ts +2 -2
- package/lib/treeview/Node.js +2 -2
- package/lib/treeview/types.d.ts +1 -1
- package/lib/{types.d-DvJcBS8L.d.ts → types.d-73cece43.d.ts} +1 -1
- package/lib/uitour/types.d.ts +1 -1
- package/package.json +8 -8
- package/.tool-versions +0 -1
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
9
|
-
var
|
|
9
|
+
var uuid = _interopRequireWildcard(require("uuid"));
|
|
10
10
|
var _Dropdown = _interopRequireDefault(require("../Dropdown"));
|
|
11
11
|
var _ActionButtons = _interopRequireDefault(require("../ActionButtons"));
|
|
12
12
|
var _Selecteds = _interopRequireDefault(require("./Selecteds"));
|
|
@@ -36,7 +36,7 @@ const MultipleSelect = props => {
|
|
|
36
36
|
const [insideComponent, setInsideComponent] = (0, _react.useState)(false);
|
|
37
37
|
const [onDenied, setOnDeniedSelect] = (0, _react.useState)();
|
|
38
38
|
const [valueFromProps, setValueFromProps] = (0, _react.useState)([]);
|
|
39
|
-
const componentId = "select-component".concat(
|
|
39
|
+
const componentId = "select-component".concat(uuid.v1());
|
|
40
40
|
const componentRef = (0, _react.useRef)(null);
|
|
41
41
|
const dropdownRef = (0, _react.useRef)(null);
|
|
42
42
|
const selectWrapper = (0, _react.useRef)();
|
|
@@ -201,7 +201,13 @@ const MultipleSelect = props => {
|
|
|
201
201
|
className: "select-component"
|
|
202
202
|
}, /*#__PURE__*/_react.default.createElement(_InputTextBase.default, _extends({}, props, {
|
|
203
203
|
inputRef: ref => {
|
|
204
|
-
if (props.inputRef)
|
|
204
|
+
if (props.inputRef) {
|
|
205
|
+
if (!_lodash.default.isFunction(props.inputRef)) {
|
|
206
|
+
props.inputRef.current = ref;
|
|
207
|
+
} else {
|
|
208
|
+
props.inputRef(ref);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
205
211
|
inputTextRef.current = ref;
|
|
206
212
|
},
|
|
207
213
|
autoComplete: "off",
|
|
@@ -5,6 +5,8 @@ import '../../../@types/PermissionAttr.js';
|
|
|
5
5
|
import '../../base/types.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '../../../@types/Period.js';
|
|
8
|
+
import '../../../internals/types.js';
|
|
9
|
+
import '../../../@types/Position.js';
|
|
8
10
|
|
|
9
11
|
declare const SimpleSelect: (props: ISimpleSelectProps) => JSX.Element;
|
|
10
12
|
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var
|
|
8
|
+
var uuid = _interopRequireWildcard(require("uuid"));
|
|
9
9
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
10
10
|
var _Dropdown = _interopRequireDefault(require("../Dropdown"));
|
|
11
11
|
var _ActionButtons = _interopRequireDefault(require("../ActionButtons"));
|
|
@@ -50,7 +50,7 @@ const SimpleSelect = props => {
|
|
|
50
50
|
const [onDenied, setOnDeniedSelect] = (0, _react.useState)();
|
|
51
51
|
const [isTyping, setIsTyping] = (0, _react.useState)(false);
|
|
52
52
|
const dropdownRef = (0, _react.useRef)(null);
|
|
53
|
-
const componentId = "select-component-".concat(name, "-").concat(
|
|
53
|
+
const componentId = "select-component-".concat(name, "-").concat(uuid.v1());
|
|
54
54
|
const componentRef = (0, _react.useRef)(null);
|
|
55
55
|
const selectWrapper = (0, _react.useRef)();
|
|
56
56
|
const gridElement = (0, _react.useRef)();
|
|
@@ -247,7 +247,13 @@ const SimpleSelect = props => {
|
|
|
247
247
|
className: "select-component"
|
|
248
248
|
}, /*#__PURE__*/_react.default.createElement(_InputTextBase.default, _extends({}, props, {
|
|
249
249
|
inputRef: ref => {
|
|
250
|
-
if (props.inputRef)
|
|
250
|
+
if (props.inputRef) {
|
|
251
|
+
if (!_lodash.default.isFunction(props.inputRef)) {
|
|
252
|
+
props.inputRef.current = ref;
|
|
253
|
+
} else {
|
|
254
|
+
props.inputRef(ref);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
251
257
|
inputTextRef.current = ref;
|
|
252
258
|
},
|
|
253
259
|
autoComplete: "off",
|
|
@@ -2,8 +2,10 @@ import { TextAlign } from '../../@types/Align.js';
|
|
|
2
2
|
import { DataCombo } from '../../@types/DataCombo.js';
|
|
3
3
|
import { PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
4
4
|
import { CustomInputEvent } from '../base/types.js';
|
|
5
|
-
import 'react';
|
|
5
|
+
import { MutableRefObject } from 'react';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
|
+
import '../../internals/types.js';
|
|
8
|
+
import '../../@types/Position.js';
|
|
7
9
|
|
|
8
10
|
type AllOptions = {
|
|
9
11
|
idValue?: number | null;
|
|
@@ -47,7 +49,7 @@ interface ISimpleSelectProps {
|
|
|
47
49
|
autoFocus?: boolean;
|
|
48
50
|
onFocus?: () => void;
|
|
49
51
|
allOptions?: AllOptions;
|
|
50
|
-
inputRef?: ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
|
|
52
|
+
inputRef?: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
|
|
51
53
|
}
|
|
52
54
|
interface ISelectFieldProps extends Omit<ISimpleSelectProps, 'idKey' | 'value' | 'descriptionKey'> {
|
|
53
55
|
multiple?: boolean;
|
|
@@ -107,4 +109,4 @@ interface GetMultipleFilteredParams extends GetFilteredParams {
|
|
|
107
109
|
inputText: number[] | string[];
|
|
108
110
|
}
|
|
109
111
|
|
|
110
|
-
export
|
|
112
|
+
export { AllOptions, DescriptionKey, GetFilteredParams, GetMultipleFilteredParams, GetSimpleFilteredParams, IMultipleSelectProps, ISelectFieldProps, ISelectedsMultipleProps, ISimpleSelectProps };
|
|
@@ -4,6 +4,8 @@ import 'react';
|
|
|
4
4
|
import '../../@types/Align.js';
|
|
5
5
|
import '../../@types/Period.js';
|
|
6
6
|
import '../../@types/PermissionAttr.js';
|
|
7
|
+
import '../../internals/types.js';
|
|
8
|
+
import '../../@types/Position.js';
|
|
7
9
|
|
|
8
10
|
declare const TextArea: (props: ITextAreaProps) => JSX.Element;
|
|
9
11
|
|
|
@@ -3,6 +3,8 @@ import 'react';
|
|
|
3
3
|
import '../../@types/Align.js';
|
|
4
4
|
import '../../@types/Period.js';
|
|
5
5
|
import '../../@types/PermissionAttr.js';
|
|
6
|
+
import '../../internals/types.js';
|
|
7
|
+
import '../../@types/Position.js';
|
|
6
8
|
|
|
7
9
|
interface ITextAreaProps extends IBaseProps {
|
|
8
10
|
rows?: number;
|
|
@@ -11,4 +13,4 @@ interface ITextAreaProps extends IBaseProps {
|
|
|
11
13
|
type?: string;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
|
-
export
|
|
16
|
+
export { ITextAreaProps };
|
package/lib/inputs/types.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ReactNode, MouseEvent, MutableRefObject, CSSProperties, KeyboardEvent, ReactElement } from 'react';
|
|
2
|
+
import IMask from 'imask';
|
|
2
3
|
import { PermissionAttr, OnDenied } from '../@types/PermissionAttr.js';
|
|
3
4
|
import { DataCombo } from '../@types/DataCombo.js';
|
|
4
5
|
import { IBaseProps, CustomInputEvent } from './base/types.js';
|
|
5
6
|
import { IDrawerProps } from '../drawer/types.js';
|
|
6
7
|
import { TextAlign } from '../@types/Align.js';
|
|
7
8
|
import '../@types/Period.js';
|
|
9
|
+
import '../internals/types.js';
|
|
8
10
|
import '../@types/Position.js';
|
|
9
11
|
import '../@types/Icon.js';
|
|
10
12
|
import '../icons/helper.js';
|
|
@@ -62,7 +64,7 @@ interface IMaskHOCProps {
|
|
|
62
64
|
inputRef?: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
|
|
63
65
|
placeholderChar?: string;
|
|
64
66
|
lazy?: boolean;
|
|
65
|
-
definitions?:
|
|
67
|
+
definitions?: IMask.AllMaskedOptions['definitions'];
|
|
66
68
|
groups?: object;
|
|
67
69
|
pattern?: string;
|
|
68
70
|
format?: () => void;
|
|
@@ -97,7 +99,7 @@ interface IMaskHOCProps {
|
|
|
97
99
|
rounded?: boolean;
|
|
98
100
|
errorMessages?: string[];
|
|
99
101
|
skeletonize?: boolean;
|
|
100
|
-
mask?:
|
|
102
|
+
mask?: IMask.AnyMask;
|
|
101
103
|
isDateField?: boolean;
|
|
102
104
|
autoCompleteMask?: 'left' | 'right';
|
|
103
105
|
}
|
|
@@ -149,5 +151,10 @@ interface IButtonsProps {
|
|
|
149
151
|
transparent: boolean;
|
|
150
152
|
disabled?: boolean;
|
|
151
153
|
}
|
|
154
|
+
interface ErrorProps {
|
|
155
|
+
customClass?: string;
|
|
156
|
+
style?: React.CSSProperties;
|
|
157
|
+
messages?: string | string[];
|
|
158
|
+
}
|
|
152
159
|
|
|
153
|
-
export
|
|
160
|
+
export { ErrorProps, IActionButtonsSelectProps, IAdvancedFilterProps, IButtonsProps, IDropdownProps, IDropdownSelectProps, IInputHOCProps, IMaskHOCProps, ISearchProps };
|
package/lib/internals/types.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ const withTooltip = WrappedComponent => {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
|
-
}, [errorMessage]);
|
|
78
|
+
}, [errorMessage, tooltip]);
|
|
79
79
|
(0, _react.useEffect)(() => {
|
|
80
80
|
if (targetElement.current && tooltipElement.current) {
|
|
81
81
|
const {
|
|
@@ -106,7 +106,11 @@ const withTooltip = WrappedComponent => {
|
|
|
106
106
|
break;
|
|
107
107
|
case 'left':
|
|
108
108
|
if (targetDimensions.left < tooltipClientWidth) {
|
|
109
|
-
|
|
109
|
+
if (window.innerWidth - targetDimensions.right < tooltipClientWidth) {
|
|
110
|
+
setStateTooltipPosition('bottom');
|
|
111
|
+
} else {
|
|
112
|
+
setStateTooltipPosition('right');
|
|
113
|
+
}
|
|
110
114
|
} else {
|
|
111
115
|
style += "; top: ".concat(targetVerticalCenter + window.scrollY - height / 2, "px");
|
|
112
116
|
style += "; left: ".concat(targetDimensions.left - tooltipClientWidth - 6, "px");
|
|
@@ -125,7 +129,7 @@ const withTooltip = WrappedComponent => {
|
|
|
125
129
|
}
|
|
126
130
|
setTooltipStyle(style);
|
|
127
131
|
}
|
|
128
|
-
}, [tooltipDimensions,
|
|
132
|
+
}, [tooltipDimensions, stateTooltipPosition]);
|
|
129
133
|
(0, _react.useEffect)(() => {
|
|
130
134
|
setStateTooltipPosition(tooltipPosition);
|
|
131
135
|
}, [window.scrollY, window.scrollX, window.innerWidth]);
|
package/lib/labels/types.d.ts
CHANGED
package/lib/list/types.d.ts
CHANGED
|
@@ -63,4 +63,4 @@ interface IListContext {
|
|
|
63
63
|
handleSelectItem: (itemId: string, onClick?: () => void) => void;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
export
|
|
66
|
+
export { IListContext, IListHeaderProps, IListItemProps, IListProps, ItemId, KeyboardEvent };
|
|
@@ -16,21 +16,21 @@ declare function SubMenuContainer({ title, customClass, handlerGoBack, skeletoni
|
|
|
16
16
|
}): JSX.Element;
|
|
17
17
|
declare namespace SubMenuContainer {
|
|
18
18
|
namespace propTypes {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
const children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
20
|
+
const handlerGoBack: PropTypes.Validator<(...args: any[]) => any>;
|
|
21
|
+
const title: PropTypes.Requireable<string>;
|
|
22
|
+
const customClass: PropTypes.Requireable<string>;
|
|
23
|
+
const skeletonize: PropTypes.Requireable<boolean>;
|
|
24
|
+
const skeletonQtty: PropTypes.Requireable<number>;
|
|
25
25
|
}
|
|
26
26
|
namespace defaultProps {
|
|
27
|
-
|
|
27
|
+
const title_1: undefined;
|
|
28
28
|
export { title_1 as title };
|
|
29
|
-
|
|
29
|
+
const customClass_1: undefined;
|
|
30
30
|
export { customClass_1 as customClass };
|
|
31
|
-
|
|
31
|
+
const skeletonize_1: boolean;
|
|
32
32
|
export { skeletonize_1 as skeletonize };
|
|
33
|
-
|
|
33
|
+
const skeletonQtty_1: number;
|
|
34
34
|
export { skeletonQtty_1 as skeletonQtty };
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "NavSubMenuItem", {
|
|
|
29
29
|
});
|
|
30
30
|
exports.default = void 0;
|
|
31
31
|
var _react = _interopRequireWildcard(require("react"));
|
|
32
|
-
var
|
|
32
|
+
var uuid = _interopRequireWildcard(require("uuid"));
|
|
33
33
|
var _NavMenuItem = _interopRequireDefault(require("./NavMenuItem"));
|
|
34
34
|
var _NavSubMenuItem = _interopRequireDefault(require("./NavSubMenuItem"));
|
|
35
35
|
var _NavMenuGroup = _interopRequireDefault(require("./NavMenuGroup"));
|
|
@@ -82,7 +82,7 @@ const SideNav = props => {
|
|
|
82
82
|
} = child;
|
|
83
83
|
if ((type === _NavMenuItem.default || type === _NavSubMenuItem.default) && !child.props.children) {
|
|
84
84
|
setMenuItemsContent(prevState => [...prevState, {
|
|
85
|
-
id: "".concat(child.props.title, "-").concat(
|
|
85
|
+
id: "".concat(child.props.title, "-").concat(uuid.v1()),
|
|
86
86
|
content: child.props.title,
|
|
87
87
|
url: child.props.url
|
|
88
88
|
}]);
|
|
@@ -127,7 +127,7 @@ const SideNav = props => {
|
|
|
127
127
|
}, [expanded]);
|
|
128
128
|
const returnMenuItems = () => menuItemsContent.filter(item => item.content !== '');
|
|
129
129
|
const getPopupMenuSearch = () => /*#__PURE__*/_react.default.createElement(_NavMenuGroup.default, {
|
|
130
|
-
key: "popup-menusearch-".concat(
|
|
130
|
+
key: "popup-menusearch-".concat(uuid.v1())
|
|
131
131
|
}, /*#__PURE__*/_react.default.createElement(_NavMenuItem.default, {
|
|
132
132
|
childrenIsSubMenu: false,
|
|
133
133
|
customClass: "-customsidenavitem",
|
|
@@ -81,4 +81,4 @@ interface ISideNavContext {
|
|
|
81
81
|
}
|
|
82
82
|
type ITargetDimensions = DOMRect;
|
|
83
83
|
|
|
84
|
-
export
|
|
84
|
+
export { IEmptyListProps, IExpandMenuProps, IMenuItemContent, IMenuLinkProps, INavMenuGroupProps, INavMenuItemProps, INavSubMenuItemProps, IPopupMenuSearchProps, ISideNavContext, ISideNavDimensions, ISideNavProps, ISubMenuContext, ITargetDimensions };
|
package/lib/panel/types.d.ts
CHANGED
|
@@ -44,4 +44,4 @@ interface IParameterFunction {
|
|
|
44
44
|
componentName: string;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export
|
|
47
|
+
export { AsyncFunc, ContextProps, Func, IPanelContentProps, IPanelHeaderProps, IPanelProps, IParameterFunction };
|
package/lib/popover/types.d.ts
CHANGED
package/lib/progress/types.d.ts
CHANGED
package/lib/radio/types.d.ts
CHANGED
package/lib/shortcuts/types.d.ts
CHANGED
package/lib/skeleton/types.d.ts
CHANGED
package/lib/spinner/types.d.ts
CHANGED
package/lib/split/helpers.d.ts
CHANGED
package/lib/split/types.d.ts
CHANGED
package/lib/table/types.d.ts
CHANGED
|
@@ -93,4 +93,4 @@ type TableElement = {
|
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
export
|
|
96
|
+
export { ITableBodyProps, ITableContext, ITableHeaderProps, ITableProps, ITableRowContext, ITableRowProps, TableElement };
|
package/lib/tabs/types.d.ts
CHANGED
|
@@ -94,4 +94,4 @@ interface PanelProps {
|
|
|
94
94
|
onEndReachedThreshold?: number;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
export
|
|
97
|
+
export { DropdownProps, ITabsPros, MenuProps, PanelProps, TabProps, TabsContextType, TabsProviderProps };
|
package/lib/toolbar/types.d.ts
CHANGED
package/lib/tooltip/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
9
|
-
var
|
|
9
|
+
var uuid = _interopRequireWildcard(require("uuid"));
|
|
10
10
|
require("../assets/styles/tooltip.scss");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
@@ -23,7 +23,7 @@ const Tooltip = _ref => {
|
|
|
23
23
|
} = _ref;
|
|
24
24
|
const tooltipComponent = (0, _react.useRef)(document.createElement('div'));
|
|
25
25
|
(0, _react.useEffect)(() => {
|
|
26
|
-
tooltipComponent.current.id = "tooltip-".concat(
|
|
26
|
+
tooltipComponent.current.id = "tooltip-".concat(uuid.v1());
|
|
27
27
|
tooltipComponent.current.className = "tooltip-component ".concat(className, " ");
|
|
28
28
|
tooltipComponent.current.dataset.testid = 'tooltip-component';
|
|
29
29
|
tooltipComponent.current.style.cssText = style;
|
package/lib/tooltip/types.d.ts
CHANGED
package/lib/treetable/Row.d.ts
CHANGED
package/lib/treetable/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ITreeTableProps } from '../types.d-
|
|
2
|
-
export { b as IRowElementsValidations, R as RowItem } from '../types.d-
|
|
1
|
+
import { a as ITreeTableProps } from '../types.d-73cece43.js';
|
|
2
|
+
export { b as IRowElementsValidations, R as RowItem } from '../types.d-73cece43.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../table/types.js';
|
|
5
5
|
|
package/lib/treeview/Node.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var
|
|
8
|
+
var uuid = _interopRequireWildcard(require("uuid"));
|
|
9
9
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
10
10
|
var _checkbox = _interopRequireDefault(require("../checkbox"));
|
|
11
11
|
var _icons = _interopRequireDefault(require("../icons"));
|
|
@@ -166,7 +166,7 @@ const TreeNode = props => {
|
|
|
166
166
|
} : {};
|
|
167
167
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
168
168
|
style: style,
|
|
169
|
-
key: "element-".concat(
|
|
169
|
+
key: "element-".concat(uuid.v1()),
|
|
170
170
|
className: "element"
|
|
171
171
|
}, element);
|
|
172
172
|
});
|
package/lib/treeview/types.d.ts
CHANGED
|
@@ -101,4 +101,4 @@ interface IDataMock {
|
|
|
101
101
|
itens: ItensMock[];
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
export
|
|
104
|
+
export { IDataMock, INodeElementsValidations, INodeValidationProps, ITreeHeaderProps, ITreeNodeProps, ITreeViewContext, ITreeviewProps, IValidator, NodeItem };
|
|
@@ -43,4 +43,4 @@ interface ITreeTableRow extends ITableRowProps {
|
|
|
43
43
|
rowLevel: number;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
export
|
|
46
|
+
export { ITreeTableRow as I, RowItem as R, ITreeTableProps as a, IRowElementsValidations as b };
|
package/lib/uitour/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linear-react-components-ui",
|
|
3
|
-
"version": "1.1.2
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Linear Sistemas ReactJs Components",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.cjs",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"lib": "babel src/lib/ -d lib/ --extensions \".js,.jsx,.ts,.tsx\" --ignore **/*.spec.tsx && babel src/lib/assets -d lib/assets --copy-files && npm run lib:types",
|
|
9
|
-
"lib:types": "
|
|
9
|
+
"lib:types": "tsup --dts-only --dts --external react",
|
|
10
10
|
"demo": "node scripts/start.js",
|
|
11
11
|
"demo:prod": "webpack --config ./config/webpack.config.js --mode production",
|
|
12
|
-
"check:js": "eslint ./src/** --ext=.jsx,.js,.tsx,.ts",
|
|
12
|
+
"check:js": "eslint ./src/** --ext=.jsx,.js,.tsx,.ts --cache",
|
|
13
13
|
"deploy:heroku": "npm run demo:prod && cd demo && git commit -am 'Deploy' && git push heroku master",
|
|
14
14
|
"deploy:vercel": "npm run demo:prod && vercel --prod demo",
|
|
15
15
|
"publish:npm": "npm run lib && npm publish",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@types/react-dom": "18.0.5",
|
|
45
45
|
"attach-dom-events": "1.0.0",
|
|
46
|
-
"browserslist": "4.
|
|
46
|
+
"browserslist": "4.23.0",
|
|
47
47
|
"history": "5.0.0",
|
|
48
48
|
"imask": "6.4.3",
|
|
49
49
|
"init": "0.1.2",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"react-router-dom": "6.21.3",
|
|
55
55
|
"react-syntax-highlighter": "15.5.0",
|
|
56
56
|
"semver": "7.5.4",
|
|
57
|
-
"uuid": "
|
|
57
|
+
"uuid": "9.0.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@babel/cli": "7.23.9",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@babel/preset-react": "7.18.6",
|
|
66
66
|
"@babel/preset-typescript": "7.23.3",
|
|
67
67
|
"@svgr/webpack": "8.1.0",
|
|
68
|
-
"@swc/core": "1.
|
|
68
|
+
"@swc/core": "1.4.13",
|
|
69
69
|
"@testing-library/jest-dom": "5.16.5",
|
|
70
70
|
"@testing-library/react": "14.1.2",
|
|
71
71
|
"@testing-library/user-event": "14.4.3",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"sass": "1.74.1",
|
|
109
109
|
"sass-loader": "14.1.0",
|
|
110
110
|
"style-loader": "3.3.4",
|
|
111
|
-
"tsup": "
|
|
112
|
-
"typescript": "
|
|
111
|
+
"tsup": "6.6.0",
|
|
112
|
+
"typescript": "4.9.5",
|
|
113
113
|
"webpack": "5.90.0",
|
|
114
114
|
"webpack-cli": "5.1.4",
|
|
115
115
|
"webpack-dev-server": "4.15.1",
|
package/.tool-versions
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
nodejs 10.16.0
|