@arkyn/components 3.0.1-beta.155 → 3.0.1-beta.156
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/dist/components/calendar/_viewService.d.ts +1 -1
- package/dist/components/fullCalendar/_viewService.d.ts +2 -2
- package/dist/hooks/useScopedParams.d.ts +1 -1
- package/dist/index.js +4683 -4347
- package/dist/modules/components/alert/alertContainer/index.js +20 -25
- package/dist/modules/components/alert/alertContent/index.js +8 -11
- package/dist/modules/components/alert/alertDescription/index.js +8 -11
- package/dist/modules/components/alert/alertIcon/index.js +19 -27
- package/dist/modules/components/alert/alertTitle/index.js +8 -11
- package/dist/modules/components/audioPlayer/index.js +75 -74
- package/dist/modules/components/audioUpload/hasFileContent/index.js +62 -54
- package/dist/modules/components/audioUpload/index.js +79 -71
- package/dist/modules/components/audioUpload/noFileContent/index.js +45 -35
- package/dist/modules/components/badge/index.js +22 -26
- package/dist/modules/components/button/index.js +32 -39
- package/dist/modules/components/calendar/_calendarProvider.js +63 -38
- package/dist/modules/components/calendar/_viewService.js +140 -132
- package/dist/modules/components/calendar/calendarContainer/index.js +7 -10
- package/dist/modules/components/calendar/calendarHeader/index.js +72 -51
- package/dist/modules/components/calendar/calendarTableBody/index.js +10 -12
- package/dist/modules/components/calendar/calendarTableContainer/index.js +7 -10
- package/dist/modules/components/calendar/calendarTableHeader/index.js +10 -13
- package/dist/modules/components/calendar/calendarTableTd/index.js +23 -20
- package/dist/modules/components/calendar/index.js +49 -31
- package/dist/modules/components/cardTab/cardTabButton/index.js +29 -19
- package/dist/modules/components/cardTab/cardTabContainer/index.js +28 -22
- package/dist/modules/components/cardTab/cardTabContext.js +11 -13
- package/dist/modules/components/checkbox/index.js +64 -37
- package/dist/modules/components/clientOnly.js +8 -8
- package/dist/modules/components/currencyInput/index.js +138 -110
- package/dist/modules/components/divider/index.js +11 -10
- package/dist/modules/components/drawer/drawerContainer/index.js +43 -40
- package/dist/modules/components/drawer/drawerContext.js +11 -13
- package/dist/modules/components/drawer/drawerHeader/index.js +27 -20
- package/dist/modules/components/facebookPixel/facebookPixel.client.js +18 -8
- package/dist/modules/components/facebookPixel/index.js +8 -8
- package/dist/modules/components/facebookPixel/pixel.js +52 -47
- package/dist/modules/components/fieldError/index.js +8 -12
- package/dist/modules/components/fieldLabel/index.js +12 -11
- package/dist/modules/components/fieldWrapper/index.js +13 -12
- package/dist/modules/components/fileUpload/hasFileContent/index.js +67 -59
- package/dist/modules/components/fileUpload/index.js +72 -65
- package/dist/modules/components/fileUpload/noFileContent/index.js +45 -35
- package/dist/modules/components/fullCalendar/_fullCalendarProvider.js +46 -33
- package/dist/modules/components/fullCalendar/_viewService.js +105 -100
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +7 -10
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +78 -70
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +33 -28
- package/dist/modules/components/fullCalendar/dayCalendar/index.js +9 -12
- package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js +7 -10
- package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js +70 -67
- package/dist/modules/components/fullCalendar/index.js +30 -30
- package/dist/modules/components/fullCalendar/monthlyCalendar/index.js +12 -9
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +36 -28
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +9 -11
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +9 -10
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +10 -13
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +36 -35
- package/dist/modules/components/fullCalendar/weekCalendar/index.js +11 -8
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +78 -70
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +20 -17
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +8 -9
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +19 -16
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +39 -34
- package/dist/modules/components/googleAnalytics/googleAnalytics.client.js +7 -7
- package/dist/modules/components/googleAnalytics/googleAnalytics.js +17 -17
- package/dist/modules/components/googleAnalytics/index.js +9 -9
- package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js +12 -10
- package/dist/modules/components/googleTagManager/googleTagManager.client.js +6 -6
- package/dist/modules/components/googleTagManager/googleTagManager.js +48 -44
- package/dist/modules/components/googleTagManager/index.js +27 -16
- package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js +8 -8
- package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js +20 -19
- package/dist/modules/components/iconButton/index.js +29 -31
- package/dist/modules/components/imageUpload/hasFileContent/index.js +63 -46
- package/dist/modules/components/imageUpload/index.js +82 -65
- package/dist/modules/components/imageUpload/noFileContent/index.js +45 -35
- package/dist/modules/components/input/index.js +120 -92
- package/dist/modules/components/mapView/index.js +31 -27
- package/dist/modules/components/mapView/mapView.client.js +51 -49
- package/dist/modules/components/maskedInput/index.js +112 -101
- package/dist/modules/components/modal/modalContainer/index.js +42 -49
- package/dist/modules/components/modal/modalContext.js +11 -13
- package/dist/modules/components/modal/modalFooter/index.js +7 -10
- package/dist/modules/components/modal/modalHeader/index.js +27 -20
- package/dist/modules/components/multiSelect/index.js +154 -115
- package/dist/modules/components/multiSelect/multiSelectChevron/index.js +21 -18
- package/dist/modules/components/multiSelect/multiSelectContainer/index.js +29 -13
- package/dist/modules/components/multiSelect/multiSelectContent/index.js +8 -11
- package/dist/modules/components/multiSelect/multiSelectMark/index.js +22 -19
- package/dist/modules/components/multiSelect/multiSelectOption/index.js +13 -17
- package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js +45 -35
- package/dist/modules/components/multiSelect/multiSelectOverlay/index.js +8 -11
- package/dist/modules/components/multiSelect/multiSelectSpinner/index.js +16 -13
- package/dist/modules/components/pagination/chevronButton/index.js +17 -17
- package/dist/modules/components/pagination/currentButton/index.js +7 -11
- package/dist/modules/components/pagination/index.js +83 -51
- package/dist/modules/components/pagination/pageButton/index.js +8 -12
- package/dist/modules/components/pagination/paginationService.js +48 -33
- package/dist/modules/components/pagination/spread/index.js +7 -10
- package/dist/modules/components/phoneInput/index.js +151 -103
- package/dist/modules/components/phoneInput/phoneInputContainer/index.js +19 -12
- package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js +8 -11
- package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js +15 -23
- package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js +43 -33
- package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js +21 -25
- package/dist/modules/components/phoneInput/phoneInputMask/index.js +62 -46
- package/dist/modules/components/popover/index.js +36 -37
- package/dist/modules/components/radio/radioBox/index.js +42 -24
- package/dist/modules/components/radio/radioContext.js +18 -20
- package/dist/modules/components/radio/radioGroup/index.js +64 -41
- package/dist/modules/components/richText/blockButton/index.js +23 -20
- package/dist/modules/components/richText/element/index.js +58 -72
- package/dist/modules/components/richText/index.js +135 -143
- package/dist/modules/components/richText/insertImage/index.js +105 -94
- package/dist/modules/components/richText/insertVideo/index.js +97 -85
- package/dist/modules/components/richText/leaf/index.js +6 -9
- package/dist/modules/components/richText/markButton/index.js +22 -19
- package/dist/modules/components/richText/toolbar/index.js +7 -10
- package/dist/modules/components/searchPlaces.js +66 -57
- package/dist/modules/components/select/index.js +144 -112
- package/dist/modules/components/select/selectChevron/index.js +21 -18
- package/dist/modules/components/select/selectContainer/index.js +29 -13
- package/dist/modules/components/select/selectContent/index.js +8 -11
- package/dist/modules/components/select/selectOption/index.js +13 -17
- package/dist/modules/components/select/selectOptionsContainer/index.js +45 -35
- package/dist/modules/components/select/selectOverlay/index.js +8 -11
- package/dist/modules/components/select/selectSpinner/index.js +9 -13
- package/dist/modules/components/slider/index.js +41 -34
- package/dist/modules/components/switch/index.js +62 -35
- package/dist/modules/components/tab/tabButton/index.js +29 -19
- package/dist/modules/components/tab/tabContainer/index.js +28 -22
- package/dist/modules/components/tab/tabContext.js +10 -12
- package/dist/modules/components/table/tableBody/index.js +14 -19
- package/dist/modules/components/table/tableCaption/index.js +8 -15
- package/dist/modules/components/table/tableContainer/index.js +8 -12
- package/dist/modules/components/table/tableFooter/index.js +11 -18
- package/dist/modules/components/table/tableHeader/index.js +11 -12
- package/dist/modules/components/textarea/index.js +69 -51
- package/dist/modules/components/tooltip/index.js +45 -34
- package/dist/modules/hooks/useAutomation.js +27 -35
- package/dist/modules/hooks/useDrawer.js +19 -17
- package/dist/modules/hooks/useForm.js +6 -6
- package/dist/modules/hooks/useHydrated.js +12 -7
- package/dist/modules/hooks/useModal.js +19 -17
- package/dist/modules/hooks/useScopedParams.js +17 -17
- package/dist/modules/hooks/useScrollLock.js +19 -19
- package/dist/modules/hooks/useSearchAutomation.js +14 -31
- package/dist/modules/hooks/useSlider.js +13 -13
- package/dist/modules/hooks/useToast.js +9 -8
- package/dist/modules/index.js +144 -72
- package/dist/modules/providers/drawerProvider.js +30 -35
- package/dist/modules/providers/formProvider.js +16 -11
- package/dist/modules/providers/modalProvider.js +33 -39
- package/dist/modules/providers/placesProvider.js +16 -16
- package/dist/modules/providers/toastProvider.js +51 -45
- package/dist/modules/services/extractTextFromNode.js +6 -6
- package/dist/modules/services/fieldTemplate.js +23 -22
- package/dist/modules/services/iconRenderer.js +7 -14
- package/dist/modules/services/isBlockActive.js +14 -12
- package/dist/modules/services/isMarkActive.js +6 -6
- package/dist/modules/services/maskCurrencyValues.js +12 -11
- package/dist/modules/services/toHtml.js +6 -6
- package/dist/modules/services/toRichTextValue.js +7 -7
- package/dist/modules/services/toggleBlock.js +19 -20
- package/dist/modules/services/toggleMark.js +7 -7
- package/dist/modules/style.css +1 -0
- package/dist/modules/templates/badResponses.js +13 -13
- package/dist/modules/templates/richTextTemplates.js +14 -17
- package/dist/modules/templates/successResponses.js +4 -9
- package/dist/modules/utils/phoneInputUtilities.js +28 -18
- package/dist/modules/utils/richTextUtilities.js +75 -88
- package/dist/services/fieldTemplate.d.ts +1 -1
- package/dist/services/fieldTemplate.d.ts.map +1 -1
- package/dist/style.css +1 -0
- package/package.json +65 -65
- package/dist/components.css +0 -2
- package/dist/modules/components.css +0 -2
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
function c(s) {
|
|
4
|
+
const {
|
|
5
|
+
showAsterisk: e = !1,
|
|
6
|
+
className: a = "",
|
|
7
|
+
...r
|
|
8
|
+
} = s, t = `arkynFieldLabel ${e ? "asteriskTrue" : "asteriskFalse"} ${a}`;
|
|
9
|
+
return /* @__PURE__ */ l("label", { className: t.trim(), ...r });
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
export {
|
|
12
|
+
c as FieldLabel
|
|
13
|
+
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
function l(e) {
|
|
4
|
+
const {
|
|
5
|
+
children: r,
|
|
6
|
+
className: a,
|
|
7
|
+
orientation: s = "vertical",
|
|
8
|
+
...t
|
|
9
|
+
} = e, i = `arkynFieldWrapper ${a} ${s}`;
|
|
10
|
+
return /* @__PURE__ */ n("section", { className: i.trim(), ...t, children: r });
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
export {
|
|
13
|
+
l as FieldWrapper
|
|
14
|
+
};
|
|
@@ -1,60 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { RefreshCw as F, FileImage as y, FileAudio as C, FileArchive as v, File as g } from "lucide-react";
|
|
3
|
+
import { Button as k } from "../../button/index.js";
|
|
4
|
+
import { Divider as b } from "../../divider/index.js";
|
|
5
|
+
import { IconButton as x } from "../../iconButton/index.js";
|
|
6
|
+
import { Tooltip as B } from "../../tooltip/index.js";
|
|
7
|
+
/* empty css */
|
|
8
|
+
function A(s) {
|
|
9
|
+
const {
|
|
10
|
+
disabled: n,
|
|
11
|
+
file: i,
|
|
12
|
+
isLoading: r,
|
|
13
|
+
acceptFile: p,
|
|
14
|
+
changeFileButtonText: m,
|
|
15
|
+
handleSelectFile: d,
|
|
16
|
+
reSendFile: a
|
|
17
|
+
} = s;
|
|
18
|
+
function u() {
|
|
19
|
+
if (n) return;
|
|
20
|
+
const t = document.createElement("input");
|
|
21
|
+
t.type = "file", t.accept = p, t.onchange = (h) => {
|
|
22
|
+
var c;
|
|
23
|
+
const l = (c = h.target.files) == null ? void 0 : c[0];
|
|
24
|
+
l && d(l);
|
|
25
|
+
}, t.click();
|
|
26
|
+
}
|
|
27
|
+
function f() {
|
|
28
|
+
return i.type.startsWith("image/") ? /* @__PURE__ */ e(y, {}) : i.type.startsWith("audio/") ? /* @__PURE__ */ e(C, {}) : i.type.startsWith("application/zip") ? /* @__PURE__ */ e(v, {}) : /* @__PURE__ */ e(g, {});
|
|
29
|
+
}
|
|
30
|
+
return /* @__PURE__ */ o("div", { className: "arkynFileUploadHasFileContent", children: [
|
|
31
|
+
/* @__PURE__ */ o("section", { className: "arkynFileUploadFileContainer", children: [
|
|
32
|
+
/* @__PURE__ */ e(f, {}),
|
|
33
|
+
/* @__PURE__ */ e("p", { children: i.name })
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ e(b, {}),
|
|
36
|
+
/* @__PURE__ */ o("div", { className: "arkynFileUploadButtonsContainer", children: [
|
|
37
|
+
!!a && /* @__PURE__ */ e(B, { orientation: "bottom", text: "Reenviar arquivo", children: /* @__PURE__ */ e(
|
|
38
|
+
x,
|
|
39
|
+
{
|
|
40
|
+
type: "button",
|
|
41
|
+
"aria-label": "resend file",
|
|
42
|
+
variant: "outline",
|
|
43
|
+
scheme: "danger",
|
|
44
|
+
size: "sm",
|
|
45
|
+
isLoading: r,
|
|
46
|
+
onClick: a,
|
|
47
|
+
icon: F,
|
|
48
|
+
disabled: n
|
|
49
|
+
}
|
|
50
|
+
) }),
|
|
51
|
+
/* @__PURE__ */ e(
|
|
52
|
+
k,
|
|
53
|
+
{
|
|
54
|
+
isLoading: r,
|
|
55
|
+
onClick: u,
|
|
56
|
+
variant: "outline",
|
|
57
|
+
size: "sm",
|
|
58
|
+
type: "button",
|
|
59
|
+
disabled: n,
|
|
60
|
+
children: m
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
] })
|
|
64
|
+
] });
|
|
58
65
|
}
|
|
59
|
-
|
|
60
|
-
|
|
66
|
+
export {
|
|
67
|
+
A as HasFileContent
|
|
68
|
+
};
|
|
@@ -1,66 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
1
|
+
import { jsxs as C, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as l } from "react";
|
|
3
|
+
import { useForm as k } from "../../hooks/useForm.js";
|
|
4
|
+
import { FieldError as A } from "../fieldError/index.js";
|
|
5
|
+
import { FieldLabel as B } from "../fieldLabel/index.js";
|
|
6
|
+
import { FieldWrapper as D } from "../fieldWrapper/index.js";
|
|
7
|
+
import { HasFileContent as O } from "./hasFileContent/index.js";
|
|
8
|
+
import { NoFileContent as $ } from "./noFileContent/index.js";
|
|
9
|
+
/* empty css */
|
|
10
|
+
function Y(E) {
|
|
11
|
+
const {
|
|
12
|
+
name: s,
|
|
13
|
+
label: m,
|
|
14
|
+
showAsterisk: x = !1,
|
|
15
|
+
action: y,
|
|
16
|
+
fileName: g = "file",
|
|
17
|
+
method: q = "POST",
|
|
18
|
+
acceptFile: d = "*",
|
|
19
|
+
fileResponseName: f = "url",
|
|
20
|
+
changeFileButtonText: S = "Alterar arquivo",
|
|
21
|
+
selectFileButtonText: b = "Selecionar arquivo",
|
|
22
|
+
dropFileText: w = "Ou arraste e solte o arquivo aqui",
|
|
23
|
+
onChange: u,
|
|
24
|
+
disabled: o = !1
|
|
25
|
+
} = E, { fieldErrors: n } = k(), T = n == null ? void 0 : n[s], [j, H] = l(""), [L, c] = l(""), [e, U] = l(null), [h, F] = l(!1);
|
|
26
|
+
async function v(i) {
|
|
27
|
+
if (o) return;
|
|
28
|
+
F(!0), U(i), c("");
|
|
29
|
+
const p = new FormData();
|
|
30
|
+
p.append(g, i), await fetch(y, { method: q, body: p }).then(async (a) => await a.json()).then((a) => {
|
|
31
|
+
a != null && a.error ? c(a.error) : H(a == null ? void 0 : a[f]), u && u(a == null ? void 0 : a[f]);
|
|
32
|
+
}).catch((a) => {
|
|
33
|
+
console.error(a), c("Erro ao enviar o arquivo");
|
|
34
|
+
}).finally(() => F(!1));
|
|
35
|
+
}
|
|
36
|
+
function N(i) {
|
|
37
|
+
o || v(i);
|
|
38
|
+
}
|
|
39
|
+
const t = T || L;
|
|
40
|
+
return /* @__PURE__ */ C(D, { children: [
|
|
41
|
+
m && /* @__PURE__ */ r(B, { showAsterisk: x, children: m }),
|
|
42
|
+
/* @__PURE__ */ C("div", { className: `arkynFileUpload ${t ? "hasError" : "noHasError"} ${e ? "hasFile" : "noHasFile"}`, children: [
|
|
43
|
+
/* @__PURE__ */ r("input", { type: "hidden", name: s, value: j || "" }),
|
|
44
|
+
!e && /* @__PURE__ */ r(
|
|
45
|
+
$,
|
|
46
|
+
{
|
|
47
|
+
disabled: o,
|
|
48
|
+
isLoading: h,
|
|
49
|
+
acceptFile: d,
|
|
50
|
+
dropFileText: w,
|
|
51
|
+
handleSelectFile: N,
|
|
52
|
+
selectFileButtonText: b
|
|
53
|
+
}
|
|
54
|
+
),
|
|
55
|
+
e && /* @__PURE__ */ r(
|
|
56
|
+
O,
|
|
57
|
+
{
|
|
58
|
+
disabled: o,
|
|
59
|
+
isLoading: h,
|
|
60
|
+
acceptFile: d,
|
|
61
|
+
file: e,
|
|
62
|
+
handleSelectFile: N,
|
|
63
|
+
changeFileButtonText: S,
|
|
64
|
+
reSendFile: t && e ? () => v(e) : void 0
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
] }),
|
|
68
|
+
t && /* @__PURE__ */ r(A, { children: t })
|
|
69
|
+
] });
|
|
64
70
|
}
|
|
65
|
-
|
|
66
|
-
|
|
71
|
+
export {
|
|
72
|
+
Y as FileUpload
|
|
73
|
+
};
|
|
@@ -1,36 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Button as h } from "../../button/index.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
function g(c) {
|
|
5
|
+
const {
|
|
6
|
+
dropFileText: a,
|
|
7
|
+
isLoading: s,
|
|
8
|
+
acceptFile: f,
|
|
9
|
+
handleSelectFile: i,
|
|
10
|
+
selectFileButtonText: p,
|
|
11
|
+
disabled: n
|
|
12
|
+
} = c;
|
|
13
|
+
function d(e) {
|
|
14
|
+
if (n) return;
|
|
15
|
+
e.preventDefault();
|
|
16
|
+
const t = e.dataTransfer.files[0];
|
|
17
|
+
t && i(t);
|
|
18
|
+
}
|
|
19
|
+
function u() {
|
|
20
|
+
if (n) return;
|
|
21
|
+
const e = document.createElement("input");
|
|
22
|
+
e.type = "file", e.accept = f, e.onchange = (t) => {
|
|
23
|
+
var l;
|
|
24
|
+
const o = (l = t.target.files) == null ? void 0 : l[0];
|
|
25
|
+
o && i(o);
|
|
26
|
+
}, e.click();
|
|
27
|
+
}
|
|
28
|
+
return /* @__PURE__ */ m("div", { onDrop: d, className: "arkynFileUploadNoFileContent", children: [
|
|
29
|
+
/* @__PURE__ */ r(
|
|
30
|
+
h,
|
|
31
|
+
{
|
|
32
|
+
isLoading: s,
|
|
33
|
+
onClick: u,
|
|
34
|
+
variant: "ghost",
|
|
35
|
+
size: "sm",
|
|
36
|
+
type: "button",
|
|
37
|
+
disabled: n,
|
|
38
|
+
children: p
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ r("p", { children: a })
|
|
42
|
+
] });
|
|
34
43
|
}
|
|
35
|
-
|
|
36
|
-
|
|
44
|
+
export {
|
|
45
|
+
g as NoFileContent
|
|
46
|
+
};
|
|
@@ -1,35 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return n(a);
|
|
1
|
+
import { jsx as M } from "react/jsx-runtime";
|
|
2
|
+
import { useState as f, createContext as h, useContext as m } from "react";
|
|
3
|
+
import { ViewService as y } from "./_viewService.js";
|
|
4
|
+
const a = h({});
|
|
5
|
+
function d() {
|
|
6
|
+
return m(a);
|
|
8
7
|
}
|
|
9
|
-
function s
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
8
|
+
function S(s) {
|
|
9
|
+
const {
|
|
10
|
+
blockedTimestamps: l,
|
|
11
|
+
children: u,
|
|
12
|
+
events: c,
|
|
13
|
+
defaultViewValue: v = /* @__PURE__ */ new Date(),
|
|
14
|
+
language: x = "pt-BR",
|
|
15
|
+
onChangeView: n,
|
|
16
|
+
onClickDate: w,
|
|
17
|
+
viewValue: p
|
|
18
|
+
} = s, e = new y(), o = e.listHours([8, 18]), [k, D] = f(v), t = p || k;
|
|
19
|
+
function i(r) {
|
|
20
|
+
n && n(r), D(r);
|
|
21
|
+
}
|
|
22
|
+
return /* @__PURE__ */ M(
|
|
23
|
+
a.Provider,
|
|
24
|
+
{
|
|
25
|
+
value: {
|
|
26
|
+
events: c,
|
|
27
|
+
blockedTimestamps: l,
|
|
28
|
+
viewDate: t,
|
|
29
|
+
listHours: o,
|
|
30
|
+
listWeek: e.listWeek(t, x),
|
|
31
|
+
listMonthlyMatrix: e.listMonthlyMatrix(t),
|
|
32
|
+
listWeeklyMatrix: e.listWeeklyMatrix(t, o),
|
|
33
|
+
nextMonth: () => e.nextMonth(t, i),
|
|
34
|
+
nextWeek: () => e.nextWeek(t, i),
|
|
35
|
+
nextDay: () => e.nextDay(t, i),
|
|
36
|
+
previousMonth: () => e.previousMonth(t, i),
|
|
37
|
+
previousWeek: () => e.previousWeek(t, i),
|
|
38
|
+
previousDay: () => e.previousDay(t, i),
|
|
39
|
+
onClickDate: w
|
|
40
|
+
},
|
|
41
|
+
children: u
|
|
42
|
+
}
|
|
43
|
+
);
|
|
33
44
|
}
|
|
34
|
-
|
|
35
|
-
|
|
45
|
+
export {
|
|
46
|
+
S as FullCalendarProvider,
|
|
47
|
+
d as useFullCalendar
|
|
48
|
+
};
|