linear-react-components-ui 1.1.26-beta.5 → 1.1.26-beta.6
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/AlertProvider.js +2 -2
- package/lib/alerts/BaseAlert.js +8 -8
- package/lib/alerts/Message.js +1 -1
- package/lib/alerts/withAlert.js +1 -1
- package/lib/assets/BaseAlert.css +1 -1
- package/lib/assets/Content.css +1 -1
- package/lib/assets/DefaultFile.css +1 -1
- package/lib/assets/Drawer.css +1 -1
- package/lib/assets/index11.css +1 -1
- package/lib/assets/index5.css +1 -1
- package/lib/avatar/index.js +1 -1
- package/lib/badge/index.js +1 -1
- package/lib/buttons/ActivateButton.js +1 -1
- package/lib/buttons/AddButton.js +1 -1
- package/lib/buttons/Button.js +1 -1
- package/lib/buttons/ButtonGroups.js +1 -1
- package/lib/buttons/CancelButton.js +1 -1
- package/lib/buttons/DangerButton.js +1 -1
- package/lib/buttons/DefaultButton.js +70 -71
- package/lib/buttons/DestroyButton.js +1 -1
- package/lib/buttons/EditButton.js +1 -1
- package/lib/buttons/InactivateButton.js +1 -1
- package/lib/buttons/InfoButton.js +1 -1
- package/lib/buttons/PrimaryButton.js +1 -1
- package/lib/buttons/RestoreButton.js +1 -1
- package/lib/buttons/SaveButton.js +1 -1
- package/lib/buttons/SuccessButton.js +1 -1
- package/lib/buttons/WarningButton.js +1 -1
- package/lib/buttons/button_container/index.js +1 -1
- package/lib/buttons/split_button/index.js +1 -1
- package/lib/calendar/DangerCalendar.js +1 -1
- package/lib/calendar/InfoCalendar.js +1 -1
- package/lib/calendar/PrimaryCalendar.js +1 -1
- package/lib/calendar/SuccessCalendar.js +1 -1
- package/lib/calendar/WarningCalendar.js +1 -1
- package/lib/calendar/base/Day.js +2 -2
- package/lib/calendar/base/Month.js +1 -1
- package/lib/calendar/base/Week.js +1 -1
- package/lib/calendar/base/helpers.js +1 -1
- package/lib/calendar/base/index.js +64 -66
- package/lib/checkbox/index.js +4 -4
- package/lib/chunks/index.CM1aLH2W.js +205 -0
- package/lib/chunks/{index.CBPsbBt0.js → index.Df3kt2LQ.js} +3 -3
- package/lib/chunks/{jsx-runtime.gtoSnx-V.js → jsx-runtime.C7wFtzyj.js} +2 -2
- package/lib/chunks/{lodash.C68pWaTB.js → lodash.CIAK_hAg.js} +433 -433
- package/lib/chunks/{moment.CwOqp704.js → moment.DMLRxgRE.js} +8 -8
- package/lib/chunks/{tabs.CM2We4tV.js → tabs.D0L_nVfP.js} +95 -96
- package/lib/chunks/v1.Ds1rkxUj.js +49 -0
- package/lib/dialog/Alert.js +1 -1
- package/lib/dialog/Custom.js +3 -3
- package/lib/dialog/Error.js +1 -1
- package/lib/dialog/Information.js +1 -1
- package/lib/dialog/Question.js +36 -39
- package/lib/dialog/Warning.js +1 -1
- package/lib/dialog/base/Content.js +1 -1
- package/lib/dialog/base/Footer.js +1 -1
- package/lib/dialog/base/Header.js +2 -2
- package/lib/dialog/base/index.js +2 -2
- package/lib/dialog/form/index.js +2 -2
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/wizard/index.js +4 -4
- package/lib/dialog/wizard/progressbar.js +87 -3
- package/lib/dialog/wizard/step.js +2 -2
- package/lib/drawer/Content.js +1 -1
- package/lib/drawer/Drawer.js +19 -19
- package/lib/drawer/Header.js +1 -1
- package/lib/dropdown/Popup.js +1 -1
- package/lib/dropdown/withDropdown.js +31 -31
- package/lib/fieldset/index.js +1 -1
- package/lib/form/Field.js +2 -2
- package/lib/form/FieldArray.js +2 -2
- package/lib/form/FieldNumber.js +27 -27
- package/lib/form/FieldPeriod.js +2 -2
- package/lib/form/helpers.js +1 -1
- package/lib/form/index.js +49 -49
- package/lib/form/withFieldHOC.js +1 -1
- package/lib/form/withFormSecurity.js +1 -1
- package/lib/gridlayout/GridCol.js +1 -1
- package/lib/gridlayout/GridRow.js +1 -1
- package/lib/hint/helpers.js +1 -1
- package/lib/hint/index.js +1 -1
- package/lib/icons/index.js +51 -54
- package/lib/index.js +2 -2
- package/lib/inputs/base/InputTextBase.js +112 -114
- package/lib/inputs/base/Label.js +1 -1
- package/lib/inputs/base/helpers.d.ts +3 -3
- package/lib/inputs/base/helpers.js +1 -1
- package/lib/inputs/color/index.js +2 -2
- package/lib/inputs/date/Dialog.js +2 -2
- package/lib/inputs/date/Dropdown.js +10 -14
- package/lib/inputs/date/helpers.js +1 -1
- package/lib/inputs/date/index.js +102 -114
- package/lib/inputs/errorMessage/index.js +1 -1
- package/lib/inputs/file/DefaultFile.js +43 -44
- package/lib/inputs/file/DragDropFile.js +91 -93
- package/lib/inputs/file/File.d.ts +1 -1
- package/lib/inputs/file/File.js +33 -34
- package/lib/inputs/file/FileButtonSettings.js +1 -1
- package/lib/inputs/inputHOC.js +1 -1
- package/lib/inputs/mask/BaseMask.js +8 -8
- package/lib/inputs/mask/Cnpj.js +2 -2
- package/lib/inputs/mask/Cpf.js +2 -2
- package/lib/inputs/mask/Phone.js +1 -1
- package/lib/inputs/mask/ZipCode.js +1 -1
- package/lib/inputs/mask/helpers.d.ts +33 -33
- package/lib/inputs/mask/helpers.js +1 -1
- package/lib/inputs/multiSelect/ActionButtons.js +2 -2
- package/lib/inputs/multiSelect/Dropdown.js +63 -64
- package/lib/inputs/multiSelect/helper.js +4 -7
- package/lib/inputs/multiSelect/index.js +45 -47
- package/lib/inputs/number/BaseNumber.js +1 -1
- package/lib/inputs/number/Currency.js +1 -1
- package/lib/inputs/number/Decimal.js +1 -1
- package/lib/inputs/number/index.js +10 -10
- package/lib/inputs/period/Dialog.js +2 -2
- package/lib/inputs/period/Dropdown.js +10 -15
- package/lib/inputs/period/PeriodList.js +1 -1
- package/lib/inputs/period/helper.js +1 -1
- package/lib/inputs/period/index.js +207 -223
- package/lib/inputs/search/index.js +29 -29
- package/lib/inputs/select/ActionButtons.js +1 -1
- package/lib/inputs/select/Dropdown.js +53 -53
- package/lib/inputs/select/helper.d.ts +1 -1
- package/lib/inputs/select/helper.js +39 -45
- package/lib/inputs/select/index.js +1 -1
- package/lib/inputs/select/multiple/Selecteds.js +1 -1
- package/lib/inputs/select/multiple/index.js +139 -143
- package/lib/inputs/select/simple/index.js +157 -164
- package/lib/inputs/text/index.js +1 -1
- package/lib/inputs/textarea/index.js +1 -1
- package/lib/internals/withTooltip.js +1 -1
- package/lib/labelMessages/index.js +1 -1
- package/lib/labels/DangerLabel.js +1 -1
- package/lib/labels/DefaultLabel.js +1 -1
- package/lib/labels/InfoLabel.js +1 -1
- package/lib/labels/PrimaryLabel.js +1 -1
- package/lib/labels/SuccessLabel.js +1 -1
- package/lib/labels/WarningLabel.js +1 -1
- package/lib/labels/label_container/index.js +1 -1
- package/lib/list/Header.js +1 -1
- package/lib/list/Item.js +2 -2
- package/lib/list/Separator.js +1 -1
- package/lib/list/index.js +2 -2
- package/lib/menus/float/MenuItem.js +18 -18
- package/lib/menus/float/SubMenuContainer.d.ts +10 -10
- package/lib/menus/float/index.js +2 -2
- package/lib/menus/sidenav/ExpandMenu.js +1 -1
- package/lib/menus/sidenav/MenuLink.js +1 -1
- package/lib/menus/sidenav/NavMenuGroup.js +1 -1
- package/lib/menus/sidenav/NavMenuItem.js +54 -56
- package/lib/menus/sidenav/NavSubMenuItem.js +1 -1
- package/lib/menus/sidenav/index.js +2 -2
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +1 -1
- package/lib/menus/sidenav/popup_menu_search/index.js +2 -2
- package/lib/noPermission/index.js +1 -1
- package/lib/panel/Content.js +30 -31
- package/lib/panel/DangerPanel.js +1 -1
- package/lib/panel/Default.js +1 -1
- package/lib/panel/Header.js +1 -1
- package/lib/panel/InfoPanel.js +1 -1
- package/lib/panel/PrimaryPanel.js +1 -1
- package/lib/panel/SuccessPanel.js +1 -1
- package/lib/panel/ToolBar.js +1 -1
- package/lib/panel/WarningPanel.js +1 -1
- package/lib/permissionValidations.js +11 -11
- package/lib/popover/PopoverText.js +1 -1
- package/lib/popover/PopoverTitle.js +1 -1
- package/lib/popover/index.js +1 -1
- package/lib/progress/Bar.js +1 -1
- package/lib/progress/index.js +1 -1
- package/lib/radio/index.js +1 -1
- package/lib/shortcuts/index.js +1 -1
- package/lib/skeleton/SkeletonContainer.js +1 -1
- package/lib/skeleton/index.js +1 -1
- package/lib/spinner/SpinnerLoading.js +1 -1
- package/lib/spinner/index.js +1 -1
- package/lib/split/Split.js +1 -1
- package/lib/split/SplitSide.js +1 -1
- package/lib/table/Body.js +25 -25
- package/lib/table/Header.js +28 -31
- package/lib/table/HeaderColumn.js +2 -2
- package/lib/table/Row.js +1 -1
- package/lib/table/RowColumn.js +1 -1
- package/lib/table/index.js +2 -2
- package/lib/tabs/DropdownTabs.js +4 -4
- package/lib/tabs/Menu.js +1 -1
- package/lib/tabs/MenuTabs.js +2 -2
- package/lib/tabs/Panel.js +29 -30
- package/lib/tabs/context.js +25 -29
- package/lib/tabs/index.js +2 -2
- package/lib/textContent/index.js +2 -2
- package/lib/toolbar/ButtonBar.js +1 -1
- package/lib/toolbar/LabelBar.js +1 -1
- package/lib/toolbar/Separator.js +1 -1
- package/lib/toolbar/ToolBarGroup.js +1 -1
- package/lib/toolbar/index.js +1 -1
- package/lib/tooltip/index.js +24 -24
- package/lib/treetable/Body.js +2 -2
- package/lib/treetable/Header.js +3 -3
- package/lib/treetable/Row.js +52 -52
- package/lib/treetable/helpers.d.ts +4 -5
- package/lib/treetable/index.js +1 -1
- package/lib/treeview/Header.js +1 -1
- package/lib/treeview/Node.js +4 -4
- package/lib/treeview/index.js +28 -28
- package/lib/uitour/index.js +32 -32
- package/package.json +24 -39
- package/lib/chunks/index.CjD97zna.js +0 -206
- package/lib/chunks/index.m4wxhMbx.js +0 -89
- package/lib/chunks/v1.CDXKvGzE.js +0 -41
- /package/lib/assets/{index29.css → progressbar.css} +0 -0
package/lib/icons/index.js
CHANGED
|
@@ -1,61 +1,58 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import '../assets/index2.css';const
|
|
6
|
-
name:
|
|
7
|
-
onClick:
|
|
8
|
-
svgStruct:
|
|
9
|
-
size:
|
|
10
|
-
style:
|
|
11
|
-
visible:
|
|
12
|
-
disabled:
|
|
13
|
-
customClass:
|
|
14
|
-
customClassForContainer:
|
|
15
|
-
colorStyle:
|
|
16
|
-
color:
|
|
17
|
-
viewBox:
|
|
18
|
-
pointerEvents:
|
|
19
|
-
targetRef:
|
|
20
|
-
tooltip:
|
|
1
|
+
import { j as i } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
+
import { useRef as b } from "react";
|
|
3
|
+
import E from "./helper.js";
|
|
4
|
+
import S from "../internals/withTooltip.js";
|
|
5
|
+
import '../assets/index2.css';const a = E, y = "rgb(193, 193, 193)", C = ({
|
|
6
|
+
name: t,
|
|
7
|
+
onClick: s,
|
|
8
|
+
svgStruct: r,
|
|
9
|
+
size: c = 16,
|
|
10
|
+
style: d = {},
|
|
11
|
+
visible: h = !0,
|
|
12
|
+
disabled: l = !1,
|
|
13
|
+
customClass: m = "",
|
|
14
|
+
customClassForContainer: u = "",
|
|
15
|
+
colorStyle: e = "default",
|
|
16
|
+
color: n,
|
|
17
|
+
viewBox: x,
|
|
18
|
+
pointerEvents: w = "none",
|
|
19
|
+
targetRef: f,
|
|
20
|
+
tooltip: g
|
|
21
21
|
}) => {
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if (r && i !== "default") throw new Error("Expected only one of the two properties: colorStyle or color");
|
|
47
|
-
if (!e && !o) throw new Error('One of the "name" and "svgStruct" props must be filled');
|
|
48
|
-
return m ? u ? /* @__PURE__ */ s.jsx(
|
|
22
|
+
const v = e !== "default" || !n ? void 0 : n, I = b(null), j = t ? a[t].viewbox : r?.viewbox, $ = () => t ? a[t].paths : r?.paths, p = () => /* @__PURE__ */ i.jsx(
|
|
23
|
+
"svg",
|
|
24
|
+
{
|
|
25
|
+
"data-testid": "icon",
|
|
26
|
+
"data-color-style": e,
|
|
27
|
+
onClick: () => {
|
|
28
|
+
s && !l && s();
|
|
29
|
+
},
|
|
30
|
+
ref: (o) => {
|
|
31
|
+
I.current = o;
|
|
32
|
+
},
|
|
33
|
+
width: `${c}px`,
|
|
34
|
+
height: `${c}px`,
|
|
35
|
+
fill: l ? y : v,
|
|
36
|
+
viewBox: x || j,
|
|
37
|
+
className: `icon-component ${m}`,
|
|
38
|
+
pointerEvents: w,
|
|
39
|
+
style: d,
|
|
40
|
+
children: $()?.map((o) => /* @__PURE__ */ i.jsx("path", { "data-testid": "icon-path", d: o }, o))
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
if (n && e !== "default") throw new Error("Expected only one of the two properties: colorStyle or color");
|
|
44
|
+
if (!t && !r) throw new Error('One of the "name" and "svgStruct" props must be filled');
|
|
45
|
+
return h ? g ? /* @__PURE__ */ i.jsx(
|
|
49
46
|
"div",
|
|
50
47
|
{
|
|
51
|
-
className: `icon-component-container ${
|
|
52
|
-
ref: (
|
|
53
|
-
|
|
48
|
+
className: `icon-component-container ${u}`,
|
|
49
|
+
ref: (o) => {
|
|
50
|
+
f && o && f(o);
|
|
54
51
|
},
|
|
55
|
-
children:
|
|
52
|
+
children: p()
|
|
56
53
|
}
|
|
57
|
-
) :
|
|
58
|
-
},
|
|
54
|
+
) : p() : null;
|
|
55
|
+
}, U = S(C);
|
|
59
56
|
export {
|
|
60
|
-
|
|
57
|
+
U as default
|
|
61
58
|
};
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as i } from "./panel/Default.js";
|
|
2
|
-
import "./chunks/jsx-runtime.
|
|
2
|
+
import "./chunks/jsx-runtime.C7wFtzyj.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { default as d } from "./icons/index.js";
|
|
5
5
|
import { default as x } from "./buttons/Button.js";
|
|
@@ -13,7 +13,7 @@ import { default as L } from "./labels/DefaultLabel.js";
|
|
|
13
13
|
import { default as c } from "./list/index.js";
|
|
14
14
|
import { default as D } from "./radio/index.js";
|
|
15
15
|
import { default as P } from "./tabs/index.js";
|
|
16
|
-
import { B as h } from "./chunks/index.
|
|
16
|
+
import { B as h } from "./chunks/index.CM1aLH2W.js";
|
|
17
17
|
export {
|
|
18
18
|
x as Button,
|
|
19
19
|
h as Dialog,
|
|
@@ -1,186 +1,184 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { _ as ye } from "../../chunks/lodash.
|
|
1
|
+
import { j as t } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
+
import { useRef as be, useState as ge, useEffect as k } from "react";
|
|
3
|
+
import { _ as ye } from "../../chunks/lodash.CIAK_hAg.js";
|
|
4
4
|
import ve from "../inputHOC.js";
|
|
5
5
|
import { getRightElements as Ce, getInputWrapperClass as Ie, getInputClass as je } from "./helpers.js";
|
|
6
6
|
import De from "../../internals/withTooltip.js";
|
|
7
|
-
import { actionsOnPermissionDenied as we, OPTIONS_ON_DENIED as
|
|
7
|
+
import { actionsOnPermissionDenied as we, OPTIONS_ON_DENIED as u } from "../../permissionValidations.js";
|
|
8
8
|
import Oe from "../../hint/index.js";
|
|
9
9
|
import { ErrorMessage as Fe } from "../errorMessage/index.js";
|
|
10
10
|
import A from "../../textContent/index.js";
|
|
11
11
|
import Ne from "../../popover/index.js";
|
|
12
|
-
import '../../assets/InputTextBase.css';const Re = (
|
|
12
|
+
import '../../assets/InputTextBase.css';const Re = (s) => {
|
|
13
13
|
const {
|
|
14
|
-
textAlign:
|
|
14
|
+
textAlign: f = "left",
|
|
15
15
|
value: z,
|
|
16
16
|
defaultValue: H,
|
|
17
|
-
type:
|
|
18
|
-
readOnly:
|
|
17
|
+
type: b = "text",
|
|
18
|
+
readOnly: m = !1,
|
|
19
19
|
placeHolder: _,
|
|
20
|
-
required:
|
|
21
|
-
leftElements:
|
|
20
|
+
required: g,
|
|
21
|
+
leftElements: y,
|
|
22
22
|
rightElements: q,
|
|
23
23
|
children: M,
|
|
24
24
|
customClass: U,
|
|
25
25
|
customClassForInputContent: V,
|
|
26
|
-
customClassForLabel:
|
|
26
|
+
customClassForLabel: v,
|
|
27
27
|
customClassForSideButtons: G,
|
|
28
|
-
inputRef:
|
|
28
|
+
inputRef: i,
|
|
29
29
|
inputBaseRef: J,
|
|
30
|
-
label:
|
|
31
|
-
labelUppercase:
|
|
32
|
-
hint:
|
|
33
|
-
hintPosition:
|
|
34
|
-
errorMessages:
|
|
30
|
+
label: l,
|
|
31
|
+
labelUppercase: C,
|
|
32
|
+
hint: r,
|
|
33
|
+
hintPosition: I = "below",
|
|
34
|
+
errorMessages: j,
|
|
35
35
|
visible: Q = !0,
|
|
36
36
|
permissionAttr: X,
|
|
37
37
|
onDeniedActions: Y,
|
|
38
|
-
handlerSetOnDenied:
|
|
39
|
-
targetRef:
|
|
40
|
-
skeletonize:
|
|
38
|
+
handlerSetOnDenied: D,
|
|
39
|
+
targetRef: w,
|
|
40
|
+
skeletonize: p = !1,
|
|
41
41
|
style: Z,
|
|
42
42
|
styleForInputContent: ee,
|
|
43
43
|
styleForWrapper: te,
|
|
44
44
|
styleForLabel: Pe,
|
|
45
|
-
styleForSideButtons:
|
|
46
|
-
disabled:
|
|
47
|
-
autoFocus:
|
|
45
|
+
styleForSideButtons: se,
|
|
46
|
+
disabled: O = !1,
|
|
47
|
+
autoFocus: ne,
|
|
48
48
|
maxLength: oe,
|
|
49
49
|
name: ie,
|
|
50
50
|
id: le,
|
|
51
51
|
multiple: re = !1,
|
|
52
52
|
accept: ae,
|
|
53
|
-
onChange:
|
|
54
|
-
onDragOver:
|
|
55
|
-
onDrop:
|
|
56
|
-
onDragLeave:
|
|
57
|
-
onClick:
|
|
53
|
+
onChange: F,
|
|
54
|
+
onDragOver: N,
|
|
55
|
+
onDrop: R,
|
|
56
|
+
onDragLeave: P,
|
|
57
|
+
onClick: B,
|
|
58
58
|
readOnlyClass: ce,
|
|
59
59
|
autoComplete: de = "on",
|
|
60
60
|
themePopover: ue = "light",
|
|
61
61
|
popoverAlign: fe = "left",
|
|
62
|
-
tabIndex:
|
|
63
|
-
} =
|
|
64
|
-
let
|
|
62
|
+
tabIndex: W
|
|
63
|
+
} = s;
|
|
64
|
+
let a;
|
|
65
65
|
const me = [
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
],
|
|
66
|
+
u.disabled,
|
|
67
|
+
u.unvisible,
|
|
68
|
+
u.readOnly,
|
|
69
|
+
u.hideContent
|
|
70
|
+
], o = be(null), c = Y || we(me, X), { hideContent: d, unvisible: pe } = c, [he, h] = ge(!1);
|
|
71
71
|
k(() => {
|
|
72
|
-
|
|
72
|
+
D && D(c);
|
|
73
73
|
}, []);
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
return
|
|
77
|
-
value:
|
|
74
|
+
const E = () => m ? -1 : W || 0, x = () => O || c.disabled, L = () => m || c.readOnly, T = () => {
|
|
75
|
+
const n = L() || x() || d;
|
|
76
|
+
return a = {
|
|
77
|
+
value: d ? "" : z,
|
|
78
78
|
defaultValue: H,
|
|
79
79
|
accept: ae,
|
|
80
|
-
type:
|
|
81
|
-
readOnly:
|
|
80
|
+
type: b,
|
|
81
|
+
readOnly: L(),
|
|
82
82
|
placeholder: _,
|
|
83
|
-
disabled:
|
|
84
|
-
autoFocus:
|
|
83
|
+
disabled: x() || d,
|
|
84
|
+
autoFocus: ne,
|
|
85
85
|
maxLength: oe,
|
|
86
86
|
name: ie,
|
|
87
87
|
id: le,
|
|
88
88
|
multiple: re,
|
|
89
|
-
className: je({ textAlign:
|
|
89
|
+
className: je({ textAlign: f, readOnly: m, readOnlyClass: ce }),
|
|
90
90
|
ref: (e) => {
|
|
91
|
-
|
|
91
|
+
i && (ye.isFunction(i) ? i(e) : i.current = e), w && w(e);
|
|
92
92
|
}
|
|
93
|
-
},
|
|
94
|
-
...
|
|
93
|
+
}, n || (a = {
|
|
94
|
+
...a,
|
|
95
95
|
onFocus: (e) => {
|
|
96
|
-
|
|
97
|
-
(o = t.onInputReceiveFocus) == null || o.call(t), t.onFocus && t.onFocus(e);
|
|
96
|
+
s.onInputReceiveFocus?.(), s.onFocus && s.onFocus(e);
|
|
98
97
|
},
|
|
99
98
|
onBlur: (e) => {
|
|
100
|
-
|
|
101
|
-
(o = t.onInputLostFocus) == null || o.call(t), t.onBlur && t.onBlur(e);
|
|
99
|
+
s.onInputLostFocus?.(), s.onBlur && s.onBlur(e);
|
|
102
100
|
},
|
|
103
101
|
onKeyDown: (e) => {
|
|
104
|
-
|
|
102
|
+
s.onKeyDown && s.onKeyDown(e);
|
|
105
103
|
},
|
|
106
104
|
onKeyPress: (e) => {
|
|
107
|
-
|
|
105
|
+
s.onKeyPress && s.onKeyPress(e);
|
|
108
106
|
},
|
|
109
107
|
onChange: (e) => {
|
|
110
|
-
|
|
108
|
+
F && F(e);
|
|
111
109
|
},
|
|
112
110
|
onDragOver: (e) => {
|
|
113
|
-
|
|
111
|
+
N && N(e);
|
|
114
112
|
},
|
|
115
113
|
onDrop: (e) => {
|
|
116
|
-
|
|
114
|
+
R && R(e);
|
|
117
115
|
},
|
|
118
116
|
onDragLeave: (e) => {
|
|
119
|
-
|
|
117
|
+
P && P(e);
|
|
120
118
|
},
|
|
121
119
|
onClick: (e) => {
|
|
122
|
-
|
|
120
|
+
B && B(e);
|
|
123
121
|
}
|
|
124
|
-
}),
|
|
125
|
-
},
|
|
126
|
-
const e =
|
|
127
|
-
e.offsetWidth < e.scrollWidth &&
|
|
122
|
+
}), a;
|
|
123
|
+
}, xe = (n) => {
|
|
124
|
+
const e = n.target;
|
|
125
|
+
e.offsetWidth < e.scrollWidth && h(!0);
|
|
128
126
|
};
|
|
129
127
|
if (k(() => {
|
|
130
|
-
const
|
|
131
|
-
const { target:
|
|
132
|
-
|
|
133
|
-
const K =
|
|
128
|
+
const n = new ResizeObserver(([e]) => {
|
|
129
|
+
const { target: S } = e;
|
|
130
|
+
h(($) => {
|
|
131
|
+
const K = S.clientWidth < S.scrollWidth;
|
|
134
132
|
return $ === K ? $ : K;
|
|
135
133
|
});
|
|
136
134
|
});
|
|
137
|
-
return
|
|
138
|
-
|
|
135
|
+
return o.current && n.observe(o.current), () => {
|
|
136
|
+
n && n.disconnect();
|
|
139
137
|
};
|
|
140
|
-
}, []),
|
|
141
|
-
const
|
|
142
|
-
|
|
138
|
+
}, []), o.current) {
|
|
139
|
+
const n = o.current;
|
|
140
|
+
n.offsetWidth < n.scrollWidth && !he && h(!0);
|
|
143
141
|
}
|
|
144
|
-
return !Q ||
|
|
142
|
+
return !Q || pe ? null : /* @__PURE__ */ t.jsxs(
|
|
145
143
|
"div",
|
|
146
144
|
{
|
|
147
145
|
style: Z,
|
|
148
|
-
className: `input-base-component ${
|
|
146
|
+
className: `input-base-component ${p ? "-skeletonized" : ""} ${U}`,
|
|
149
147
|
ref: J,
|
|
150
148
|
children: [
|
|
151
|
-
|
|
149
|
+
l && /* @__PURE__ */ t.jsxs(
|
|
152
150
|
"div",
|
|
153
151
|
{
|
|
154
152
|
className: "labelcontainer",
|
|
155
|
-
style: { textAlign:
|
|
153
|
+
style: { textAlign: f === "center" ? "left" : f },
|
|
156
154
|
children: [
|
|
157
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ t.jsx(
|
|
158
156
|
A,
|
|
159
157
|
{
|
|
160
|
-
labelRef:
|
|
161
|
-
required:
|
|
162
|
-
label:
|
|
163
|
-
onHoverLabel:
|
|
164
|
-
className:
|
|
165
|
-
labelUppercase:
|
|
166
|
-
tooltip:
|
|
158
|
+
labelRef: o,
|
|
159
|
+
required: g,
|
|
160
|
+
label: l,
|
|
161
|
+
onHoverLabel: xe,
|
|
162
|
+
className: v,
|
|
163
|
+
labelUppercase: C,
|
|
164
|
+
tooltip: l.toString(),
|
|
167
165
|
tooltipPosition: "top"
|
|
168
166
|
}
|
|
169
167
|
),
|
|
170
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ t.jsx(
|
|
171
169
|
"div",
|
|
172
170
|
{
|
|
173
171
|
className: "text-content",
|
|
174
172
|
style: { display: "flex" },
|
|
175
|
-
children: /* @__PURE__ */
|
|
173
|
+
children: /* @__PURE__ */ t.jsxs(
|
|
176
174
|
"div",
|
|
177
175
|
{
|
|
178
|
-
className: `label ${
|
|
176
|
+
className: `label ${v} ${C && " -uppercase"}`,
|
|
179
177
|
style: { alignSelf: "center" },
|
|
180
178
|
children: [
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
!!
|
|
179
|
+
l,
|
|
180
|
+
g && /* @__PURE__ */ t.jsx("span", { className: "-requiredlabel", children: "*" }),
|
|
181
|
+
!!r && I === "onLabelRight" && !p && /* @__PURE__ */ t.jsx(
|
|
184
182
|
Ne,
|
|
185
183
|
{
|
|
186
184
|
theme: ue,
|
|
@@ -188,7 +186,7 @@ import '../../assets/InputTextBase.css';const Re = (t) => {
|
|
|
188
186
|
customClass: "-hint",
|
|
189
187
|
iconColor: "#03bde2",
|
|
190
188
|
style: { margin: "0px 5px", height: "auto", width: 20 },
|
|
191
|
-
children:
|
|
189
|
+
children: r
|
|
192
190
|
}
|
|
193
191
|
)
|
|
194
192
|
]
|
|
@@ -196,70 +194,70 @@ import '../../assets/InputTextBase.css';const Re = (t) => {
|
|
|
196
194
|
)
|
|
197
195
|
}
|
|
198
196
|
),
|
|
199
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ t.jsx(A, {})
|
|
200
198
|
]
|
|
201
199
|
}
|
|
202
200
|
),
|
|
203
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ t.jsxs(
|
|
204
202
|
"div",
|
|
205
203
|
{
|
|
206
204
|
"data-testid": "testInputWrapper",
|
|
207
205
|
style: te,
|
|
208
206
|
className: Ie({
|
|
209
|
-
...
|
|
210
|
-
disabled:
|
|
207
|
+
...s,
|
|
208
|
+
disabled: x() || d
|
|
211
209
|
}),
|
|
212
210
|
children: [
|
|
213
|
-
|
|
211
|
+
y && /* @__PURE__ */ t.jsx(
|
|
214
212
|
"div",
|
|
215
213
|
{
|
|
216
|
-
style:
|
|
214
|
+
style: se,
|
|
217
215
|
className: `sidebuttons ${G}`,
|
|
218
|
-
children:
|
|
216
|
+
children: y
|
|
219
217
|
}
|
|
220
218
|
),
|
|
221
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ t.jsxs(
|
|
222
220
|
"div",
|
|
223
221
|
{
|
|
224
222
|
"data-testid": "testInputContent",
|
|
225
223
|
style: ee,
|
|
226
224
|
className: `inputcontent ${V}`,
|
|
227
225
|
children: [
|
|
228
|
-
|
|
226
|
+
b === "textarea" ? /* @__PURE__ */ t.jsx(
|
|
229
227
|
"textarea",
|
|
230
228
|
{
|
|
231
|
-
rows:
|
|
232
|
-
cols:
|
|
233
|
-
tabIndex:
|
|
234
|
-
...
|
|
229
|
+
rows: s.rows,
|
|
230
|
+
cols: s.cols,
|
|
231
|
+
tabIndex: E(),
|
|
232
|
+
...T()
|
|
235
233
|
}
|
|
236
|
-
) : /* @__PURE__ */
|
|
234
|
+
) : /* @__PURE__ */ t.jsx(
|
|
237
235
|
"input",
|
|
238
236
|
{
|
|
239
237
|
autoComplete: de,
|
|
240
|
-
tabIndex:
|
|
238
|
+
tabIndex: E(),
|
|
241
239
|
"data-testid": "teste-123",
|
|
242
|
-
...
|
|
240
|
+
...T()
|
|
243
241
|
}
|
|
244
242
|
),
|
|
245
243
|
M
|
|
246
244
|
]
|
|
247
245
|
}
|
|
248
246
|
),
|
|
249
|
-
Ce(
|
|
247
|
+
Ce(j || [], p, q)
|
|
250
248
|
]
|
|
251
249
|
}
|
|
252
250
|
),
|
|
253
|
-
/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */ t.jsx(
|
|
254
252
|
Oe,
|
|
255
253
|
{
|
|
256
|
-
disabled:
|
|
257
|
-
visible: !!
|
|
254
|
+
disabled: O,
|
|
255
|
+
visible: !!r && I === "below",
|
|
258
256
|
customClass: "hint",
|
|
259
|
-
description:
|
|
257
|
+
description: r
|
|
260
258
|
}
|
|
261
259
|
),
|
|
262
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ t.jsx(Fe, { messages: j })
|
|
263
261
|
]
|
|
264
262
|
}
|
|
265
263
|
);
|
package/lib/inputs/base/Label.js
CHANGED
|
@@ -2,9 +2,9 @@ import { JSX } from 'react';
|
|
|
2
2
|
import { IBaseProps } from './types';
|
|
3
3
|
import { TextAlign } from '../../../lib/@types/Align';
|
|
4
4
|
export declare const getInputClass: ({ textAlign, readOnly, readOnlyClass, }: {
|
|
5
|
-
textAlign?: TextAlign
|
|
6
|
-
readOnly?: boolean
|
|
7
|
-
readOnlyClass?: string
|
|
5
|
+
textAlign?: TextAlign;
|
|
6
|
+
readOnly?: boolean;
|
|
7
|
+
readOnlyClass?: string;
|
|
8
8
|
}) => string;
|
|
9
9
|
export declare const getInputWrapperClass: (props: IBaseProps) => string;
|
|
10
10
|
export declare const getRightElements: (errorMessages: string[], skeletonize: boolean, rightElements?: JSX.Element | JSX.Element[]) => JSX.Element[] | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as e } from "../../chunks/jsx-runtime.
|
|
1
|
+
import { j as e } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import { useState as k, useRef as x, useEffect as g } from "react";
|
|
3
|
-
import { _ as h } from "../../chunks/lodash.
|
|
3
|
+
import { _ as h } from "../../chunks/lodash.CIAK_hAg.js";
|
|
4
4
|
import j from "../text/index.js";
|
|
5
5
|
import v from "../../buttons/Button.js";
|
|
6
6
|
import "../../icons/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as a } from "../../chunks/jsx-runtime.
|
|
2
|
-
import { B as o } from "../../chunks/index.
|
|
1
|
+
import { j as a } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
+
import { B as o } from "../../chunks/index.CM1aLH2W.js";
|
|
3
3
|
const h = ({ handlerClose: e, children: t, dialogSize: s }) => /* @__PURE__ */ a.jsx(
|
|
4
4
|
o,
|
|
5
5
|
{
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import { useRef as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
const { containerRef:
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
}, []), d(() => {
|
|
12
|
-
t.current.style.width = String(n).concat("px"), t.current.style.top = String(e == null ? void 0 : e.bottom).concat("px");
|
|
13
|
-
}, [r]), m.createPortal(p, t.current);
|
|
1
|
+
import { useRef as a, useEffect as o } from "react";
|
|
2
|
+
import d from "react-dom";
|
|
3
|
+
const p = 24, m = 250, h = (n) => {
|
|
4
|
+
const { containerRef: r, showButtonOpen: i, dropdownRef: u, children: s, inputDimensions: e } = n, t = a(document.createElement("div")), c = e && e.width + (i ? p : 0) + 4 || m;
|
|
5
|
+
return o(() => (t.current.className = "datepicker-component", t.current.style.width = String(c).concat("px"), t.current.style.top = String(e?.bottom).concat("px"), r.current?.appendChild(t.current), u(t.current), () => {
|
|
6
|
+
r.current?.removeChild(t.current);
|
|
7
|
+
}), []), o(() => {
|
|
8
|
+
t.current.style.width = String(c).concat("px"), t.current.style.top = String(e?.bottom).concat("px");
|
|
9
|
+
}, [n]), d.createPortal(s, t.current);
|
|
14
10
|
};
|
|
15
11
|
export {
|
|
16
|
-
|
|
12
|
+
h as default
|
|
17
13
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as o } from "../../chunks/moment.
|
|
1
|
+
import { h as o } from "../../chunks/moment.DMLRxgRE.js";
|
|
2
2
|
const e = "DD/MM/YYYY", Y = "YYYY-MM-DD", s = (r) => {
|
|
3
3
|
let t = r;
|
|
4
4
|
return o(t, e, !0).isValid() && (t = o(t, e).format(e)), typeof t == "string" ? o(t, Y) : t;
|