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
|
@@ -4,6 +4,8 @@ import '../@types/ButtonTypes.js';
|
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/Size.js';
|
|
6
6
|
import '../treeview/types.js';
|
|
7
|
+
import '../@types/Icon.js';
|
|
8
|
+
import '../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const ButtonBar: ({ size, icon, onClick, iconName, transparent, customClass, type, iconAlign, label, ...props }: IButtonBarProps) => JSX.Element;
|
|
9
11
|
|
|
@@ -4,6 +4,8 @@ import '../@types/ButtonTypes.js';
|
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/Size.js';
|
|
6
6
|
import '../treeview/types.js';
|
|
7
|
+
import '../@types/Icon.js';
|
|
8
|
+
import '../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const LabelBar: ({ size, icon, children, iconName, style, type, bordered, ...props }: ILabelBarProps) => JSX.Element;
|
|
9
11
|
|
|
@@ -4,6 +4,8 @@ import '../@types/ButtonTypes.js';
|
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/Size.js';
|
|
6
6
|
import '../treeview/types.js';
|
|
7
|
+
import '../@types/Icon.js';
|
|
8
|
+
import '../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const ToolBarGroup: ({ children, style }: IToolBarGroup) => JSX.Element;
|
|
9
11
|
|
package/lib/toolbar/helpers.d.ts
CHANGED
package/lib/toolbar/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ import '../@types/ButtonTypes.js';
|
|
|
8
8
|
import '../@types/Position.js';
|
|
9
9
|
import '../@types/Size.js';
|
|
10
10
|
import '../treeview/types.js';
|
|
11
|
+
import '../@types/Icon.js';
|
|
12
|
+
import '../icons/helper.js';
|
|
11
13
|
|
|
12
14
|
declare const ToolBar: ({ innerRef, children, style, size, customClass, ...props }: IToolbarProps) => JSX.Element;
|
|
13
15
|
|
package/lib/toolbar/types.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { ButtonTypes } from '../@types/ButtonTypes.js';
|
|
|
3
3
|
import { Position } from '../@types/Position.js';
|
|
4
4
|
import { Size } from '../@types/Size.js';
|
|
5
5
|
import { NodeItem } from '../treeview/types.js';
|
|
6
|
+
import { IconNames } from '../@types/Icon.js';
|
|
7
|
+
import '../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
interface IToolbarProps {
|
|
8
10
|
children?: ReactNode;
|
|
@@ -14,7 +16,7 @@ interface IToolbarProps {
|
|
|
14
16
|
}
|
|
15
17
|
interface IButtonBarProps {
|
|
16
18
|
label?: string;
|
|
17
|
-
iconName?:
|
|
19
|
+
iconName?: IconNames;
|
|
18
20
|
type?: ButtonTypes;
|
|
19
21
|
icon?: ReactElement;
|
|
20
22
|
onClick?: () => void;
|
|
@@ -27,7 +29,7 @@ interface IButtonBarProps {
|
|
|
27
29
|
onNodeElementClick?: (node: NodeItem) => void;
|
|
28
30
|
}
|
|
29
31
|
interface ILabelBarProps {
|
|
30
|
-
iconName?:
|
|
32
|
+
iconName?: IconNames;
|
|
31
33
|
bordered?: boolean;
|
|
32
34
|
icon?: ReactElement;
|
|
33
35
|
children?: ReactNode;
|
package/lib/tooltip/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { ITooltipProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
declare const Tooltip: ({ text, tooltipRef, style, tooltipDimensions, className, handlerSetDimensions, }: ITooltipProps) => React__default.ReactPortal;
|
|
4
|
+
declare const Tooltip: ({ text, textError, tooltipRef, style, tooltipDimensions, className, handlerSetDimensions, }: ITooltipProps) => React__default.ReactPortal;
|
|
5
5
|
|
|
6
6
|
export { Tooltip as default };
|
package/lib/tooltip/index.js
CHANGED
|
@@ -14,6 +14,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
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 Tooltip = function Tooltip(_ref) {
|
|
16
16
|
var text = _ref.text,
|
|
17
|
+
textError = _ref.textError,
|
|
17
18
|
tooltipRef = _ref.tooltipRef,
|
|
18
19
|
_ref$style = _ref.style,
|
|
19
20
|
style = _ref$style === void 0 ? '' : _ref$style,
|
|
@@ -53,10 +54,13 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
53
54
|
(0, _react.useEffect)(function () {
|
|
54
55
|
tooltipComponent.current.style.cssText = style;
|
|
55
56
|
}, [style]);
|
|
57
|
+
(0, _react.useEffect)(function () {
|
|
58
|
+
tooltipComponent.current.className = textError ? "tooltip-error tooltip-component ".concat(className) : "tooltip-component ".concat(className);
|
|
59
|
+
}, [textError]);
|
|
56
60
|
var getTooltipContent = function getTooltipContent() {
|
|
57
61
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
58
62
|
className: "tooltipcontent"
|
|
59
|
-
}, text);
|
|
63
|
+
}, textError || text);
|
|
60
64
|
};
|
|
61
65
|
return /*#__PURE__*/_reactDom.default.createPortal(getTooltipContent(), tooltipComponent.current);
|
|
62
66
|
};
|
package/lib/tooltip/types.d.ts
CHANGED
package/lib/treeview/index.js
CHANGED
|
@@ -338,6 +338,7 @@ var TreeView = function TreeView(props) {
|
|
|
338
338
|
setData(props.data);
|
|
339
339
|
} else if (!isSameSelectedIds) {
|
|
340
340
|
setCurrentSelectedIds(selectedIds);
|
|
341
|
+
onSelectedIdsChange === null || onSelectedIdsChange === void 0 ? void 0 : onSelectedIdsChange(selectedIds);
|
|
341
342
|
setPropSelectedIds(selectedIds);
|
|
342
343
|
}
|
|
343
344
|
}, [selectedIds.length, props.data]);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React__default, { ReactNode, ReactElement } from 'react';
|
|
2
2
|
import { PermissionAttr } from './@types/PermissionAttr.js';
|
|
3
3
|
import ColorStyles from './internals/colorStyles.js';
|
|
4
|
+
import { IconNames } from './@types/Icon.js';
|
|
4
5
|
|
|
5
6
|
declare function numberAroundZeroAndOne({ props, propName, componentName }: IParameterFunction): Error | null;
|
|
6
7
|
declare const PanelContext: React__default.Context<ContextProps>;
|
|
@@ -22,7 +23,7 @@ interface IPanelHeaderProps {
|
|
|
22
23
|
title?: string;
|
|
23
24
|
children?: ReactElement;
|
|
24
25
|
icon?: ReactElement;
|
|
25
|
-
titleIcon?:
|
|
26
|
+
titleIcon?: IconNames;
|
|
26
27
|
customClass?: string;
|
|
27
28
|
style?: object;
|
|
28
29
|
styleForTitle?: object;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linear-react-components-ui",
|
|
3
|
-
"version": "1.0.10-
|
|
3
|
+
"version": "1.0.10-rc.1",
|
|
4
4
|
"description": "Linear Sistemas ReactJs Components",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.cjs",
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
"lib:types": "tsup --dts-only --dts --external react",
|
|
10
10
|
"lib:watch": "babel src/lib -w -d lib/ ",
|
|
11
11
|
"demo": "node scripts/start.js",
|
|
12
|
-
"demo:prod": "webpack
|
|
12
|
+
"demo:prod": "webpack --config ./config/webpack.config.js --mode production",
|
|
13
13
|
"check:js": "./node_modules/.bin/eslint ./src/* --ext=.jsx,.js,.tsx,.ts",
|
|
14
14
|
"deploy:heroku": "npm run demo:prod && cd demo && git commit -am 'Deploy' && git push heroku master",
|
|
15
|
+
"deploy:vercel": "npm run demo:prod && vercel --prod demo",
|
|
15
16
|
"publish:npm": "npm run lib && npm publish",
|
|
16
17
|
"publish:npm:beta": "npm run lib && npm publish --tag beta",
|
|
17
18
|
"publish:npm:rc": "npm run lib && npm publish --tag rc",
|
|
@@ -40,6 +41,7 @@
|
|
|
40
41
|
"@swc/core": "^1.3.14",
|
|
41
42
|
"@testing-library/jest-dom": "^5.14.1",
|
|
42
43
|
"@testing-library/react": "^12.0.0",
|
|
44
|
+
"@testing-library/user-event": "^14.4.3",
|
|
43
45
|
"@types/lodash": "^4.14.182",
|
|
44
46
|
"@types/node": "^17.0.31",
|
|
45
47
|
"@types/react": "^18.0.24",
|
|
@@ -77,7 +79,8 @@
|
|
|
77
79
|
"react-transition-group": "^4.3.0",
|
|
78
80
|
"style-loader": "^0.23.1",
|
|
79
81
|
"tsup": "^6.4.0",
|
|
80
|
-
"typescript": "^4.6.4"
|
|
82
|
+
"typescript": "^4.6.4",
|
|
83
|
+
"webpack-cli": "^5.0.1"
|
|
81
84
|
},
|
|
82
85
|
"author": "Deivisson Bruno <deivisson.bruno@linearsistemas.com.br>",
|
|
83
86
|
"homepage": "",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|