linear-react-components-ui 1.1.26-beta.2 → 1.1.26-beta.3
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 +1 -1
- package/lib/alerts/BaseAlert.js +1 -1
- package/lib/alerts/Message.js +1 -1
- package/lib/alerts/withAlert.js +1 -1
- package/lib/avatar/index.js +14 -14
- package/lib/badge/index.js +2 -2
- 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 +1 -1
- 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/index.js +1 -1
- package/lib/buttons/split_button/index.js +3 -3
- 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/index.js +2 -2
- package/lib/checkbox/index.js +4 -4
- package/lib/chunks/{index.yztgndLc.js → index.CjD97zna.js} +30 -30
- package/lib/chunks/{index.D5f6Ow9V.js → index.iA-fVKOP.js} +3 -3
- package/lib/chunks/jsx-runtime.gtoSnx-V.js +284 -0
- package/lib/chunks/{tabs.Cvj2MJH6.js → tabs.BP3DB7Gx.js} +35 -35
- package/lib/dialog/Alert.js +2 -2
- package/lib/dialog/Custom.js +6 -6
- package/lib/dialog/Error.js +2 -2
- package/lib/dialog/Information.js +2 -2
- package/lib/dialog/Question.js +2 -2
- package/lib/dialog/Warning.js +2 -2
- package/lib/dialog/base/Content.js +2 -2
- 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 +3 -3
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/wizard/index.js +3 -3
- package/lib/dialog/wizard/progressbar.js +2 -2
- package/lib/dialog/wizard/step.js +2 -2
- package/lib/dialog/wizard/useWizard.js +2 -2
- package/lib/drawer/Content.js +1 -1
- package/lib/drawer/Drawer.js +2 -2
- package/lib/drawer/Header.js +1 -1
- package/lib/drawer/helpers.js +2 -2
- package/lib/dropdown/withDropdown.js +2 -2
- package/lib/fieldset/index.js +2 -2
- package/lib/form/Field.js +1 -1
- package/lib/form/FieldArray.js +2 -2
- package/lib/form/FieldNumber.js +1 -1
- package/lib/form/FieldPeriod.js +2 -2
- package/lib/form/helpers.js +9 -9
- package/lib/form/index.js +3 -3
- package/lib/form/withFieldHOC.js +7 -7
- package/lib/form/withFormSecurity.js +12 -12
- package/lib/gridlayout/GridCol.js +2 -2
- package/lib/gridlayout/GridRow.js +2 -2
- package/lib/hint/helpers.js +1 -1
- package/lib/hint/index.js +2 -2
- package/lib/icons/index.js +2 -2
- package/lib/index.js +3 -3
- package/lib/inputs/base/InputTextBase.js +2 -2
- package/lib/inputs/base/Label.js +1 -1
- package/lib/inputs/color/index.js +2 -2
- package/lib/inputs/date/Dialog.js +2 -2
- package/lib/inputs/date/index.js +2 -2
- package/lib/inputs/errorMessage/index.js +2 -2
- package/lib/inputs/file/DefaultFile.js +2 -2
- package/lib/inputs/file/DragDropFile.js +2 -2
- package/lib/inputs/file/File.js +2 -2
- package/lib/inputs/file/FileButtonSettings.js +2 -2
- package/lib/inputs/inputHOC.js +2 -2
- package/lib/inputs/mask/BaseMask.js +1 -1
- package/lib/inputs/mask/Cnpj.js +1 -1
- package/lib/inputs/mask/Cpf.js +1 -1
- package/lib/inputs/mask/Phone.js +1 -1
- package/lib/inputs/mask/ZipCode.js +1 -1
- package/lib/inputs/multiSelect/ActionButtons.js +3 -3
- package/lib/inputs/multiSelect/Dropdown.js +1 -1
- package/lib/inputs/multiSelect/index.js +2 -2
- 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 +2 -2
- package/lib/inputs/period/Dialog.js +2 -2
- package/lib/inputs/period/PeriodList.js +1 -1
- package/lib/inputs/period/index.js +2 -2
- package/lib/inputs/search/index.js +2 -2
- package/lib/inputs/select/ActionButtons.js +1 -1
- package/lib/inputs/select/Dropdown.js +1 -1
- package/lib/inputs/select/index.js +2 -2
- package/lib/inputs/select/multiple/Selecteds.js +9 -9
- package/lib/inputs/select/multiple/index.js +1 -1
- package/lib/inputs/select/simple/index.js +1 -1
- package/lib/inputs/text/index.js +1 -1
- package/lib/inputs/textarea/index.js +1 -1
- package/lib/internals/withTooltip.js +7 -7
- package/lib/labelMessages/index.js +2 -2
- 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/index.js +1 -1
- package/lib/labels/label_container/index.js +1 -1
- package/lib/list/Header.js +1 -1
- package/lib/list/Item.js +3 -3
- package/lib/list/Separator.js +1 -1
- package/lib/list/helpers.js +2 -2
- package/lib/list/index.js +2 -2
- package/lib/menus/float/MenuItem.js +2 -2
- package/lib/menus/float/index.js +2 -2
- package/lib/menus/sidenav/ExpandMenu.js +1 -1
- package/lib/menus/sidenav/MenuLink.js +4 -4
- package/lib/menus/sidenav/NavMenuGroup.js +1 -1
- package/lib/menus/sidenav/NavMenuItem.js +1 -1
- package/lib/menus/sidenav/NavSubMenuItem.js +1 -1
- package/lib/menus/sidenav/helpers.js +4 -4
- 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 +2 -2
- package/lib/panel/Content.js +1 -1
- package/lib/panel/DangerPanel.js +1 -1
- package/lib/panel/Default.js +2 -2
- package/lib/panel/Header.js +2 -2
- 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/panel/helpers.js +4 -4
- package/lib/panel/index.js +1 -1
- package/lib/popover/PopoverText.js +1 -1
- package/lib/popover/PopoverTitle.js +1 -1
- package/lib/popover/index.js +2 -2
- package/lib/progress/Bar.js +1 -1
- package/lib/progress/index.js +2 -2
- package/lib/radio/index.js +2 -2
- package/lib/shortcuts/index.js +2 -2
- package/lib/skeleton/SkeletonContainer.js +1 -1
- package/lib/skeleton/index.js +2 -2
- package/lib/spinner/SpinnerLoading.js +1 -1
- package/lib/spinner/index.js +2 -2
- package/lib/split/Split.js +1 -1
- package/lib/split/SplitSide.js +1 -1
- package/lib/split/index.js +1 -1
- package/lib/table/Body.js +2 -2
- package/lib/table/Header.js +1 -1
- package/lib/table/HeaderColumn.js +1 -1
- 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 +5 -5
- package/lib/tabs/MenuTabs.js +5 -5
- package/lib/tabs/Panel.js +1 -1
- package/lib/tabs/context.js +30 -30
- package/lib/tabs/index.js +2 -2
- package/lib/tabs/tabHelpers.js +2 -2
- package/lib/textContent/index.js +2 -2
- package/lib/toolbar/ButtonBar.js +2 -2
- package/lib/toolbar/LabelBar.js +2 -2
- package/lib/toolbar/Separator.js +1 -1
- package/lib/toolbar/ToolBarGroup.js +1 -1
- package/lib/toolbar/index.js +2 -2
- package/lib/tooltip/index.js +2 -2
- package/lib/treetable/Body.js +2 -2
- package/lib/treetable/Header.js +2 -2
- package/lib/treetable/Row.js +16 -16
- package/lib/treetable/index.js +2 -2
- package/lib/treeview/Header.js +1 -1
- package/lib/treeview/Node.js +11 -11
- package/lib/treeview/index.js +2 -2
- package/lib/uitour/index.js +2 -2
- package/package.json +4 -4
- package/lib/chunks/index.CmrLK9Qe.js +0 -675
- package/lib/chunks/jsx-runtime.CYK1ROHF.js +0 -445
package/lib/alerts/BaseAlert.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState as o, useEffect as l } from "react";
|
|
2
2
|
import m from "react-dom";
|
|
3
|
-
const r = document.getElementsByTagName("body")[0], t = document.getElementById("alert"), d = ({ children: a }) => {
|
|
3
|
+
import '../assets/BaseAlert.css';const r = document.getElementsByTagName("body")[0], t = document.getElementById("alert"), d = ({ children: a }) => {
|
|
4
4
|
const [e] = o(document.createElement("div"));
|
|
5
5
|
return e.className = "messagecontainer", l(() => {
|
|
6
6
|
if (t === null) {
|
package/lib/alerts/Message.js
CHANGED
package/lib/alerts/withAlert.js
CHANGED
package/lib/avatar/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { j as s } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
|
|
2
2
|
import v, { useRef as j } from "react";
|
|
3
3
|
import b from "../icons/index.js";
|
|
4
4
|
import C from "../dropdown/withDropdown.js";
|
|
5
|
-
const R = ({
|
|
5
|
+
import '../assets/index10.css';const R = ({
|
|
6
6
|
className: t,
|
|
7
7
|
square: r,
|
|
8
|
-
disabled:
|
|
9
|
-
size:
|
|
10
|
-
}) => `avatar-component ${t}${
|
|
11
|
-
${r && "-square"} ${
|
|
8
|
+
disabled: e,
|
|
9
|
+
size: o = "default"
|
|
10
|
+
}) => `avatar-component ${t}${e && "-disabled"}
|
|
11
|
+
${r && "-square"} ${o && `-${o}`}`, y = (t, r) => r || (t ? /* @__PURE__ */ s.jsx(b, { name: t, size: 16 }) : null), A = (t) => {
|
|
12
12
|
const {
|
|
13
13
|
width: r,
|
|
14
|
-
height:
|
|
15
|
-
onClick:
|
|
14
|
+
height: e,
|
|
15
|
+
onClick: o,
|
|
16
16
|
color: $,
|
|
17
17
|
iconName: l,
|
|
18
18
|
icon: c,
|
|
@@ -22,8 +22,8 @@ const R = ({
|
|
|
22
22
|
targetRef: d,
|
|
23
23
|
label: g,
|
|
24
24
|
dropdown: i,
|
|
25
|
-
showDropdown:
|
|
26
|
-
getDropdownPopup:
|
|
25
|
+
showDropdown: m,
|
|
26
|
+
getDropdownPopup: u,
|
|
27
27
|
style: w,
|
|
28
28
|
id: x
|
|
29
29
|
} = t, f = j(null);
|
|
@@ -38,7 +38,7 @@ const R = ({
|
|
|
38
38
|
role: "button",
|
|
39
39
|
tabIndex: -1,
|
|
40
40
|
onClick: (a) => {
|
|
41
|
-
|
|
41
|
+
o && o(a), i && m && m();
|
|
42
42
|
},
|
|
43
43
|
ref: (a) => {
|
|
44
44
|
d && d(a), f.current = a;
|
|
@@ -46,7 +46,7 @@ const R = ({
|
|
|
46
46
|
className: `${R(t)} ${p}`,
|
|
47
47
|
style: {
|
|
48
48
|
width: `${r}`,
|
|
49
|
-
height: `${
|
|
49
|
+
height: `${e}`,
|
|
50
50
|
backgroundColor: `${$}`,
|
|
51
51
|
cursor: `${i ? "pointer" : "normal"}`,
|
|
52
52
|
...w
|
|
@@ -59,7 +59,7 @@ const R = ({
|
|
|
59
59
|
className: "imgavatar",
|
|
60
60
|
style: {
|
|
61
61
|
width: `${r}`,
|
|
62
|
-
height: `${
|
|
62
|
+
height: `${e}`
|
|
63
63
|
},
|
|
64
64
|
src: n,
|
|
65
65
|
alt: h
|
|
@@ -69,7 +69,7 @@ const R = ({
|
|
|
69
69
|
]
|
|
70
70
|
}
|
|
71
71
|
),
|
|
72
|
-
i &&
|
|
72
|
+
i && u && u(f.current)
|
|
73
73
|
] });
|
|
74
74
|
}, P = C(A);
|
|
75
75
|
export {
|
package/lib/badge/index.js
CHANGED
package/lib/buttons/AddButton.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as o } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as o } from "../chunks/jsx-runtime.gtoSnx-V.js";
|
|
2
2
|
import r from "./SuccessButton.js";
|
|
3
3
|
import s from "../icons/index.js";
|
|
4
4
|
const i = (t) => /* @__PURE__ */ o.jsx(r, { ...t, icon: /* @__PURE__ */ o.jsx(s, { name: "new_file", color: "white" }) });
|
package/lib/buttons/Button.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as t } from "../chunks/jsx-runtime.gtoSnx-V.js";
|
|
2
2
|
import { useState as g, useRef as X, useContext as Y, useEffect as Z, Fragment as w } from "react";
|
|
3
3
|
import ee from "lodash";
|
|
4
4
|
import c from "../icons/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as o } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as o } from "../chunks/jsx-runtime.gtoSnx-V.js";
|
|
2
2
|
import r from "./DangerButton.js";
|
|
3
3
|
import n from "../icons/index.js";
|
|
4
4
|
const a = ({ icon: i, ...t }) => /* @__PURE__ */ o.jsx(r, { ...t, icon: /* @__PURE__ */ o.jsx(n, { name: "bin", color: "white" }) });
|
package/lib/buttons/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { default as E } from "./AddButton.js";
|
|
|
13
13
|
import { default as R } from "./ActivateButton.js";
|
|
14
14
|
import { default as b } from "./InactivateButton.js";
|
|
15
15
|
import { default as j } from "./RestoreButton.js";
|
|
16
|
-
|
|
16
|
+
import '../assets/button.css';/* empty css */
|
|
17
17
|
export {
|
|
18
18
|
R as ActivateButton,
|
|
19
19
|
E as AddButton,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as t } from "../../chunks/jsx-runtime.
|
|
1
|
+
import { j as t } from "../../chunks/jsx-runtime.gtoSnx-V.js";
|
|
2
2
|
import m from "react";
|
|
3
3
|
import i from "../DefaultButton.js";
|
|
4
|
-
const
|
|
4
|
+
const f = (e) => {
|
|
5
5
|
const {
|
|
6
6
|
children: s,
|
|
7
7
|
customClass: o,
|
|
@@ -56,5 +56,5 @@ const g = (e) => {
|
|
|
56
56
|
] });
|
|
57
57
|
};
|
|
58
58
|
export {
|
|
59
|
-
|
|
59
|
+
f as default
|
|
60
60
|
};
|
package/lib/calendar/base/Day.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as a } from "../../chunks/jsx-runtime.
|
|
1
|
+
import { j as a } from "../../chunks/jsx-runtime.gtoSnx-V.js";
|
|
2
2
|
import { useContext as e } from "react";
|
|
3
3
|
import { CalendarContext as r, getDayContainerCssClass as m, getDayCssClass as n, dateIsEquals as i } from "./helpers.js";
|
|
4
4
|
import l from "../../buttons/Button.js";
|
|
5
5
|
import "../../icons/index.js";
|
|
6
|
-
|
|
6
|
+
import '../../assets/button.css';/* empty css */
|
|
7
7
|
import { v as C } from "../../chunks/v1.CDXKvGzE.js";
|
|
8
8
|
const h = ({ currentDate: o, day: t }) => {
|
|
9
9
|
const { handleDateChange: s } = e(r);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as s } from "../../chunks/jsx-runtime.
|
|
1
|
+
import { j as s } from "../../chunks/jsx-runtime.gtoSnx-V.js";
|
|
2
2
|
import d from "./Week.js";
|
|
3
3
|
import { getStartOfWeek as n, getStartOfMonth as f } from "./helpers.js";
|
|
4
4
|
const x = ({ monthRef: a, currentDate: r }) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as o } from "../../chunks/jsx-runtime.
|
|
1
|
+
import { j as o } from "../../chunks/jsx-runtime.gtoSnx-V.js";
|
|
2
2
|
import { useRef as x, useState as G, useEffect as g } from "react";
|
|
3
3
|
import O from "moment";
|
|
4
4
|
import P from "./Month.js";
|
|
5
5
|
import v from "../../buttons/Button.js";
|
|
6
6
|
import "../../icons/index.js";
|
|
7
|
-
|
|
7
|
+
import '../../assets/gridlayout.css';import '../../assets/button.css';import '../../assets/index11.css';/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
import U from "../../gridlayout/GridCol.js";
|
|
10
10
|
import { validDate as y, getCalendarCssClass as _, dayNames as B, CalendarContext as F } from "./helpers.js";
|
package/lib/checkbox/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../chunks/jsx-runtime.
|
|
1
|
+
import "../chunks/jsx-runtime.gtoSnx-V.js";
|
|
2
2
|
import "react";
|
|
3
|
-
|
|
3
|
+
import '../assets/radio.css';import '../assets/skeleton.css';import '../assets/toolbar.css';import '../assets/label.css';import '../assets/panel.css';import '../assets/noPermission.css';import '../assets/button.css';import '../assets/gridlayout.css';/* empty css */
|
|
4
4
|
import "../gridlayout/GridCol.js";
|
|
5
5
|
import "../permissionValidations.js";
|
|
6
|
-
import { C as D } from "../chunks/tabs.
|
|
6
|
+
import { C as D } from "../chunks/tabs.BP3DB7Gx.js";
|
|
7
7
|
import "../inputs/errorMessage/index.js";
|
|
8
8
|
import "../icons/index.js";
|
|
9
9
|
import "../buttons/DefaultButton.js";
|
|
@@ -24,7 +24,7 @@ import "../tabs/MenuTabs.js";
|
|
|
24
24
|
import "lodash";
|
|
25
25
|
import "../tabs/context.js";
|
|
26
26
|
import "../tabs/tabHelpers.js";
|
|
27
|
-
import "../chunks/index.
|
|
27
|
+
import "../chunks/index.CjD97zna.js";
|
|
28
28
|
import "../hint/index.js";
|
|
29
29
|
export {
|
|
30
30
|
D as default
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as n } from "./jsx-runtime.
|
|
2
|
-
import b, { useContext as N, createContext as $, useRef as U, useState as R, useLayoutEffect as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { r as
|
|
1
|
+
import { j as n } from "./jsx-runtime.gtoSnx-V.js";
|
|
2
|
+
import b, { useContext as N, createContext as $, useRef as U, useState as R, useLayoutEffect as Y, useEffect as k } from "react";
|
|
3
|
+
import G from "react-dom";
|
|
4
|
+
import J from "../dialog/base/Content.js";
|
|
5
|
+
import { r as Q, u as V } from "./v1.CDXKvGzE.js";
|
|
6
6
|
import A from "../icons/index.js";
|
|
7
|
-
import
|
|
7
|
+
import Z from "../buttons/button_container/index.js";
|
|
8
8
|
import "../buttons/DefaultButton.js";
|
|
9
|
-
|
|
10
|
-
import
|
|
9
|
+
import '../assets/button.css';/* empty css */
|
|
10
|
+
import _ from "../dialog/base/Footer.js";
|
|
11
11
|
import ee from "../spinner/index.js";
|
|
12
12
|
import te, { FormSecurityContext as ne } from "../form/withFormSecurity.js";
|
|
13
13
|
const oe = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), H = {
|
|
@@ -17,15 +17,15 @@ function re(e, l, c) {
|
|
|
17
17
|
if (H.randomUUID && !e)
|
|
18
18
|
return H.randomUUID();
|
|
19
19
|
e = e || {};
|
|
20
|
-
const s = e.random || (e.rng ||
|
|
21
|
-
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128,
|
|
20
|
+
const s = e.random || (e.rng || Q)();
|
|
21
|
+
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, V(s);
|
|
22
22
|
}
|
|
23
23
|
const se = (e) => ({
|
|
24
24
|
height: e.height,
|
|
25
25
|
maxHeight: "100%",
|
|
26
26
|
width: e.width,
|
|
27
27
|
textAlign: e.textAlign
|
|
28
|
-
}),
|
|
28
|
+
}), ie = (e) => /* @__PURE__ */ n.jsx(
|
|
29
29
|
"button",
|
|
30
30
|
{
|
|
31
31
|
id: "botao-fechar-modal-cabecalho",
|
|
@@ -33,7 +33,7 @@ const se = (e) => ({
|
|
|
33
33
|
onClick: e,
|
|
34
34
|
children: /* @__PURE__ */ n.jsx(A, { name: "cancel2" })
|
|
35
35
|
}
|
|
36
|
-
),
|
|
36
|
+
), ae = (e, l) => l || (e ? /* @__PURE__ */ n.jsx(A, { name: e, color: "#000" }) : null), le = ({
|
|
37
37
|
showCloseButton: e = !0,
|
|
38
38
|
handlerClose: l,
|
|
39
39
|
title: c,
|
|
@@ -53,10 +53,10 @@ const se = (e) => ({
|
|
|
53
53
|
ref: u == null ? void 0 : u.headerRef,
|
|
54
54
|
className: "dialog-header",
|
|
55
55
|
children: [
|
|
56
|
-
/* @__PURE__ */ n.jsx("div", { className: `${s !== null || d !== null ? "left" : ""}`, children:
|
|
56
|
+
/* @__PURE__ */ n.jsx("div", { className: `${s !== null || d !== null ? "left" : ""}`, children: ae(d, s) }),
|
|
57
57
|
/* @__PURE__ */ n.jsxs("div", { className: "right", children: [
|
|
58
58
|
/* @__PURE__ */ n.jsx("h5", { className: "modal-title", children: c }),
|
|
59
|
-
e &&
|
|
59
|
+
e && ie(C)
|
|
60
60
|
] })
|
|
61
61
|
]
|
|
62
62
|
}
|
|
@@ -91,7 +91,7 @@ const se = (e) => ({
|
|
|
91
91
|
}
|
|
92
92
|
) }),
|
|
93
93
|
/* @__PURE__ */ n.jsx(
|
|
94
|
-
|
|
94
|
+
J,
|
|
95
95
|
{
|
|
96
96
|
styleForContent: { ...e.styleForContent, ...v },
|
|
97
97
|
className: m,
|
|
@@ -99,7 +99,7 @@ const se = (e) => ({
|
|
|
99
99
|
}
|
|
100
100
|
),
|
|
101
101
|
p(),
|
|
102
|
-
l && e.buttons && /* @__PURE__ */ n.jsx(
|
|
102
|
+
l && e.buttons && /* @__PURE__ */ n.jsx(_, { children: /* @__PURE__ */ n.jsx(Z, { ...e, style: { ...v }, children: b.Children.toArray(e.buttons.map((t) => w && w.securityBeforeUnload && t && t.type && t.type.name === "CancelButton" ? b.cloneElement(t, { onClick: e.handlerClose }) : b.cloneElement(t))) }) })
|
|
103
103
|
]
|
|
104
104
|
}
|
|
105
105
|
) });
|
|
@@ -128,11 +128,11 @@ const se = (e) => ({
|
|
|
128
128
|
(o == null ? void 0 : o.key) === "Escape" && (o.stopPropagation(), D());
|
|
129
129
|
}, q = (o) => {
|
|
130
130
|
var g, x;
|
|
131
|
-
const r = !((g = B.current) != null && g.contains(o.relatedTarget)),
|
|
132
|
-
if (r && (
|
|
133
|
-
const
|
|
131
|
+
const r = !((g = B.current) != null && g.contains(o.relatedTarget)), i = (x = t.current) == null ? void 0 : x.querySelector("#modal-dialog-content"), a = i == null ? void 0 : i.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
132
|
+
if (r && (a != null && a.length)) {
|
|
133
|
+
const X = a[0];
|
|
134
134
|
setTimeout(() => {
|
|
135
|
-
|
|
135
|
+
X.focus();
|
|
136
136
|
}, 150);
|
|
137
137
|
}
|
|
138
138
|
}, z = ({
|
|
@@ -140,25 +140,25 @@ const se = (e) => ({
|
|
|
140
140
|
positionY: r
|
|
141
141
|
}) => {
|
|
142
142
|
if (t.current) {
|
|
143
|
-
const { width:
|
|
143
|
+
const { width: i, height: a } = t.current.getBoundingClientRect();
|
|
144
144
|
let g = o <= 0 ? 0 : o, x = r <= 0 ? 0 : r;
|
|
145
|
-
g +
|
|
145
|
+
g + i >= window.innerWidth && (g = window.innerWidth - i), x + a >= window.innerHeight && (x = window.innerHeight - a), t.current.style.transform = `translate(${g}px, ${x}px)`, t.current.style.transition = "none", t.current.style.left = "0", t.current.style.top = "0", t.current.style.position = "absolute";
|
|
146
146
|
}
|
|
147
147
|
}, M = (o) => {
|
|
148
148
|
if (t.current && j) {
|
|
149
|
-
const { left: r, top:
|
|
149
|
+
const { left: r, top: i } = t.current.getBoundingClientRect();
|
|
150
150
|
z({
|
|
151
151
|
positionX: o.movementX + r,
|
|
152
|
-
positionY: o.movementY +
|
|
152
|
+
positionY: o.movementY + i
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
}, O = (o) => {
|
|
156
|
-
var
|
|
157
|
-
const r = o.target,
|
|
158
|
-
t.current &&
|
|
156
|
+
var a;
|
|
157
|
+
const r = o.target, i = (a = p == null ? void 0 : p.current) == null ? void 0 : a.contains(r);
|
|
158
|
+
t.current && i && I(!0);
|
|
159
159
|
}, P = () => {
|
|
160
160
|
t.current && I(!1);
|
|
161
|
-
},
|
|
161
|
+
}, K = /* @__PURE__ */ n.jsxs(
|
|
162
162
|
"div",
|
|
163
163
|
{
|
|
164
164
|
id: c,
|
|
@@ -182,7 +182,7 @@ const se = (e) => ({
|
|
|
182
182
|
]
|
|
183
183
|
}
|
|
184
184
|
);
|
|
185
|
-
return
|
|
185
|
+
return Y(() => {
|
|
186
186
|
const { activeElement: o } = document, r = o;
|
|
187
187
|
return () => {
|
|
188
188
|
r == null || r.focus();
|
|
@@ -195,7 +195,7 @@ const se = (e) => ({
|
|
|
195
195
|
handleClose: D,
|
|
196
196
|
open: h,
|
|
197
197
|
onOpenChange: f || S
|
|
198
|
-
}, children:
|
|
198
|
+
}, children: G.createPortal(K, de) }) : null;
|
|
199
199
|
};
|
|
200
200
|
export {
|
|
201
201
|
ue as B,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime.
|
|
1
|
+
import { j as t } from "./jsx-runtime.gtoSnx-V.js";
|
|
2
2
|
import m, { useEffect as b } from "react";
|
|
3
3
|
import f from "lodash";
|
|
4
|
-
import { F as j } from "./index.
|
|
4
|
+
import { F as j } from "./index.CjD97zna.js";
|
|
5
5
|
import "../dialog/wizard/useWizard.js";
|
|
6
|
-
function W({
|
|
6
|
+
import '../assets/index29.css';function W({
|
|
7
7
|
customClass: s,
|
|
8
8
|
customStyle: e,
|
|
9
9
|
stepsTitle: a,
|