@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,36 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
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 { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as I, useId as R, useState as T } from "react";
|
|
3
|
+
import { FieldTemplate as $ } from "../../services/fieldTemplate.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
function M(i) {
|
|
6
|
+
const {
|
|
7
|
+
label: d,
|
|
8
|
+
size: h = "lg",
|
|
9
|
+
defaultChecked: u = !1,
|
|
10
|
+
checked: c = null,
|
|
11
|
+
value: t,
|
|
12
|
+
unCheckedValue: a = "",
|
|
13
|
+
name: n,
|
|
14
|
+
className: k = "",
|
|
15
|
+
onCheck: l,
|
|
16
|
+
id: m,
|
|
17
|
+
orientation: p = "horizontalReverse",
|
|
18
|
+
className: C = "",
|
|
19
|
+
showAsterisk: f,
|
|
20
|
+
errorMessage: b,
|
|
21
|
+
unShowFieldTemplate: N = !1,
|
|
22
|
+
...w
|
|
23
|
+
} = i, y = I(null), S = m || R(), [o, v] = T(u), e = typeof c == "boolean" ? c : o;
|
|
24
|
+
function r() {
|
|
25
|
+
v(!o), l && l(e ? a : t || "checked");
|
|
26
|
+
}
|
|
27
|
+
const F = `arkynSwitch ${e ? "checkedTrue" : "checkedFalse"} ${h} ${k}`;
|
|
28
|
+
return /* @__PURE__ */ s(
|
|
29
|
+
$,
|
|
30
|
+
{
|
|
31
|
+
name: n,
|
|
32
|
+
label: d,
|
|
33
|
+
showAsterisk: f,
|
|
34
|
+
className: C,
|
|
35
|
+
errorMessage: b,
|
|
36
|
+
unShowFieldTemplate: N,
|
|
37
|
+
orientation: p,
|
|
38
|
+
children: /* @__PURE__ */ s(
|
|
39
|
+
"button",
|
|
40
|
+
{
|
|
41
|
+
type: "button",
|
|
42
|
+
onClick: r,
|
|
43
|
+
className: F,
|
|
44
|
+
...w,
|
|
45
|
+
children: /* @__PURE__ */ s(
|
|
46
|
+
"input",
|
|
47
|
+
{
|
|
48
|
+
id: S,
|
|
49
|
+
type: "hidden",
|
|
50
|
+
name: n,
|
|
51
|
+
ref: y,
|
|
52
|
+
onClick: r,
|
|
53
|
+
value: e ? t || "checked" : a
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
);
|
|
34
60
|
}
|
|
35
|
-
|
|
36
|
-
|
|
61
|
+
export {
|
|
62
|
+
M as Switch
|
|
63
|
+
};
|
|
@@ -1,20 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import { useTab as f } from "../tabContext.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
function h(e) {
|
|
5
|
+
const {
|
|
6
|
+
children: i,
|
|
7
|
+
disabled: l = !1,
|
|
8
|
+
className: n = "",
|
|
9
|
+
onClick: a,
|
|
10
|
+
value: s,
|
|
11
|
+
...c
|
|
12
|
+
} = e, { disabled: o, currentTab: r, changeCurrentTab: b } = f(), t = o || l, d = `arkynTabButton ${t ? "isDisabled" : ""} ${r === s && s ? "isActive" : ""} ${n}`;
|
|
13
|
+
function u(m) {
|
|
14
|
+
b(s), a && a(m);
|
|
15
|
+
}
|
|
16
|
+
return /* @__PURE__ */ C(
|
|
17
|
+
"button",
|
|
18
|
+
{
|
|
19
|
+
onClick: u,
|
|
20
|
+
className: d.trim(),
|
|
21
|
+
...c,
|
|
22
|
+
disabled: t,
|
|
23
|
+
type: "button",
|
|
24
|
+
children: i
|
|
25
|
+
}
|
|
26
|
+
);
|
|
18
27
|
}
|
|
19
|
-
|
|
20
|
-
|
|
28
|
+
export {
|
|
29
|
+
h as TabButton
|
|
30
|
+
};
|
|
@@ -1,23 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as u } from "react";
|
|
3
|
+
import { TabProvider as d } from "../tabContext.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
function N(n) {
|
|
6
|
+
const {
|
|
7
|
+
children: t,
|
|
8
|
+
onChange: a,
|
|
9
|
+
defaultValue: s,
|
|
10
|
+
disabled: o = !1,
|
|
11
|
+
className: i,
|
|
12
|
+
...c
|
|
13
|
+
} = n, [m, l] = u(s || ""), b = `arkynTabContainer ${i || ""}`;
|
|
14
|
+
function f(r) {
|
|
15
|
+
l(r), a && a(r);
|
|
16
|
+
}
|
|
17
|
+
return /* @__PURE__ */ e(
|
|
18
|
+
d,
|
|
19
|
+
{
|
|
20
|
+
disabled: o,
|
|
21
|
+
currentTab: m,
|
|
22
|
+
changeCurrentTab: f,
|
|
23
|
+
children: /* @__PURE__ */ e("nav", { className: b.trim(), ...c, children: t })
|
|
24
|
+
}
|
|
25
|
+
);
|
|
21
26
|
}
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
export {
|
|
28
|
+
N as TabContainer
|
|
29
|
+
};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return t(r);
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as n, createContext as o } from "react";
|
|
3
|
+
const r = o({});
|
|
4
|
+
function c() {
|
|
5
|
+
return n(r);
|
|
7
6
|
}
|
|
8
7
|
function a(e) {
|
|
9
|
-
|
|
10
|
-
value: e,
|
|
11
|
-
children: e.children
|
|
12
|
-
});
|
|
8
|
+
return /* @__PURE__ */ t(r.Provider, { value: e, children: e.children });
|
|
13
9
|
}
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
export {
|
|
11
|
+
a as TabProvider,
|
|
12
|
+
c as useTab
|
|
13
|
+
};
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import { Children as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
children: /* @__PURE__ */ t("td", {
|
|
13
|
-
colSpan: 100,
|
|
14
|
-
children: /* @__PURE__ */ t("div", { children: r })
|
|
15
|
-
})
|
|
16
|
-
}) : a
|
|
17
|
-
});
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Children as d } from "react";
|
|
3
|
+
/* empty css */
|
|
4
|
+
function y(n) {
|
|
5
|
+
const {
|
|
6
|
+
emptyMessage: o = "Nenhum dado adicionado.",
|
|
7
|
+
className: r,
|
|
8
|
+
children: a,
|
|
9
|
+
...s
|
|
10
|
+
} = n, t = `arkynTableBody ${r}`, c = d.count(a) === 0;
|
|
11
|
+
return /* @__PURE__ */ e("tbody", { className: t.trim(), ...s, children: c ? /* @__PURE__ */ e("tr", { className: "arkynTableBodyEmptyLine", children: /* @__PURE__ */ e("td", { colSpan: 100, children: /* @__PURE__ */ e("div", { children: o }) }) }) : a });
|
|
18
12
|
}
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
export {
|
|
14
|
+
y as TableBody
|
|
15
|
+
};
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return /* @__PURE__ */ e("caption", {
|
|
7
|
-
className: `arkynTableCaption ${n}`.trim(),
|
|
8
|
-
...i,
|
|
9
|
-
children: /* @__PURE__ */ e("div", {
|
|
10
|
-
className: "arkynTableCaptionContent",
|
|
11
|
-
children: r
|
|
12
|
-
})
|
|
13
|
-
});
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
function c(e) {
|
|
4
|
+
const { className: n, children: s, ...t } = e, o = `arkynTableCaption ${n}`;
|
|
5
|
+
return /* @__PURE__ */ a("caption", { className: o.trim(), ...t, children: /* @__PURE__ */ a("div", { className: "arkynTableCaptionContent", children: s }) });
|
|
14
6
|
}
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
export {
|
|
8
|
+
c as TableCaption
|
|
9
|
+
};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return /* @__PURE__ */ e("div", {
|
|
7
|
-
className: `arkynTableContainer ${r}`.trim(),
|
|
8
|
-
...i,
|
|
9
|
-
children: /* @__PURE__ */ e("table", { children: n })
|
|
10
|
-
});
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
function o(e) {
|
|
4
|
+
const { children: r, className: s, ...n } = e, t = `arkynTableContainer ${s}`;
|
|
5
|
+
return /* @__PURE__ */ a("div", { className: t.trim(), ...n, children: /* @__PURE__ */ a("table", { children: r }) });
|
|
11
6
|
}
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
export {
|
|
8
|
+
o as TableContainer
|
|
9
|
+
};
|
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
children: [/* @__PURE__ */ e("tr", { className: "spacingRow" }), /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("th", {
|
|
10
|
-
colSpan: 100,
|
|
11
|
-
children: /* @__PURE__ */ e("div", {
|
|
12
|
-
className: "arkynTableFooterContent",
|
|
13
|
-
children: i
|
|
14
|
-
})
|
|
15
|
-
}) })]
|
|
16
|
-
});
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
function i(a) {
|
|
4
|
+
const { className: s, children: r, ...t } = a, o = `arkynTableFooter ${s}`;
|
|
5
|
+
return /* @__PURE__ */ n("tfoot", { className: o.trim(), ...t, children: [
|
|
6
|
+
/* @__PURE__ */ e("tr", { className: "spacingRow" }),
|
|
7
|
+
/* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("th", { colSpan: 100, children: /* @__PURE__ */ e("div", { className: "arkynTableFooterContent", children: r }) }) })
|
|
8
|
+
] });
|
|
17
9
|
}
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
export {
|
|
11
|
+
i as TableFooter
|
|
12
|
+
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
children: [/* @__PURE__ */ e("tr", { children: i }), /* @__PURE__ */ e("tr", { className: "spacingRow" })]
|
|
10
|
-
});
|
|
1
|
+
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
function o(e) {
|
|
4
|
+
const { className: s, children: r, ...t } = e, c = `arkynTableHeader ${s}`;
|
|
5
|
+
return /* @__PURE__ */ l("thead", { className: c.trim(), ...t, children: [
|
|
6
|
+
/* @__PURE__ */ a("tr", { children: r }),
|
|
7
|
+
/* @__PURE__ */ a("tr", { className: "spacingRow" })
|
|
8
|
+
] });
|
|
11
9
|
}
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
export {
|
|
11
|
+
o as TableHeader
|
|
12
|
+
};
|
|
@@ -1,52 +1,70 @@
|
|
|
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
|
-
|
|
1
|
+
import { jsxs as j, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as w, useRef as S, useId as V } from "react";
|
|
3
|
+
import { useForm as z } from "../../hooks/useForm.js";
|
|
4
|
+
import { FieldLabel as A } from "../fieldLabel/index.js";
|
|
5
|
+
import { FieldWrapper as L } from "../fieldWrapper/index.js";
|
|
6
|
+
import { FieldError as O } from "../fieldError/index.js";
|
|
7
|
+
/* empty css */
|
|
8
|
+
function X(F) {
|
|
9
|
+
const {
|
|
10
|
+
variant: h = "solid",
|
|
11
|
+
size: C = "md",
|
|
12
|
+
className: y,
|
|
13
|
+
errorMessage: x,
|
|
14
|
+
disabled: e = !1,
|
|
15
|
+
readOnly: c = !1,
|
|
16
|
+
label: n,
|
|
17
|
+
showAsterisk: T,
|
|
18
|
+
name: i,
|
|
19
|
+
onFocus: u,
|
|
20
|
+
onBlur: d,
|
|
21
|
+
title: $,
|
|
22
|
+
style: b,
|
|
23
|
+
value: f,
|
|
24
|
+
defaultValue: k,
|
|
25
|
+
placeholder: m,
|
|
26
|
+
id: v,
|
|
27
|
+
...N
|
|
28
|
+
} = F, { fieldErrors: o } = z(), [g, a] = w(!1), r = S(null), p = v || V(), l = x || (o == null ? void 0 : o[i]), B = `arkynTextarea ${h} ${C} ${e || c ? "opacityTrue" : "opacityFalse"} ${!!l ? "errorTrue" : "errorFalse"} ${g ? "focusedTrue" : "focusedFalse"}`;
|
|
29
|
+
function E() {
|
|
30
|
+
e || !(r != null && r.current) || (a(!0), r.current.focus());
|
|
31
|
+
}
|
|
32
|
+
function I(t) {
|
|
33
|
+
a(!0), u && u(t);
|
|
34
|
+
}
|
|
35
|
+
function M(t) {
|
|
36
|
+
a(!1), d && d(t);
|
|
37
|
+
}
|
|
38
|
+
return /* @__PURE__ */ j(L, { className: y, children: [
|
|
39
|
+
n && /* @__PURE__ */ s(A, { htmlFor: p, showAsterisk: T, children: n }),
|
|
40
|
+
/* @__PURE__ */ s(
|
|
41
|
+
"section",
|
|
42
|
+
{
|
|
43
|
+
title: $,
|
|
44
|
+
style: b,
|
|
45
|
+
onClick: E,
|
|
46
|
+
className: B,
|
|
47
|
+
children: /* @__PURE__ */ s(
|
|
48
|
+
"textarea",
|
|
49
|
+
{
|
|
50
|
+
id: p,
|
|
51
|
+
disabled: e,
|
|
52
|
+
readOnly: c,
|
|
53
|
+
ref: r,
|
|
54
|
+
name: i,
|
|
55
|
+
onFocus: I,
|
|
56
|
+
onBlur: M,
|
|
57
|
+
defaultValue: k || "",
|
|
58
|
+
placeholder: e && f || m,
|
|
59
|
+
value: e ? void 0 : f,
|
|
60
|
+
...N
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
l && /* @__PURE__ */ s(O, { children: l })
|
|
66
|
+
] });
|
|
50
67
|
}
|
|
51
|
-
|
|
52
|
-
|
|
68
|
+
export {
|
|
69
|
+
X as Textarea
|
|
70
|
+
};
|
|
@@ -1,35 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
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
|
-
|
|
1
|
+
import { jsxs as b, jsx as E } from "react/jsx-runtime";
|
|
2
|
+
import { useId as x, useRef as L, useState as N, useEffect as j } from "react";
|
|
3
|
+
/* empty css */
|
|
4
|
+
function z(f) {
|
|
5
|
+
const {
|
|
6
|
+
text: u,
|
|
7
|
+
size: p = "lg",
|
|
8
|
+
children: h,
|
|
9
|
+
orientation: e = "top",
|
|
10
|
+
className: g = "",
|
|
11
|
+
...w
|
|
12
|
+
} = f, i = x(), n = L(null), [v, l] = N(e);
|
|
13
|
+
j(() => {
|
|
14
|
+
const r = () => {
|
|
15
|
+
if (!n.current) return;
|
|
16
|
+
const m = document.getElementById(i);
|
|
17
|
+
m && (l(e), requestAnimationFrame(() => {
|
|
18
|
+
const o = m.getBoundingClientRect(), d = window.innerWidth, a = window.innerHeight;
|
|
19
|
+
let t = e;
|
|
20
|
+
e === "left" && o.left < 0 ? t = "right" : e === "right" && o.right > d ? t = "left" : e === "top" && o.top < 0 ? t = "bottom" : e === "bottom" && o.bottom > a && (t = "top"), t === "right" && o.right > d ? t = "left" : t === "left" && o.left < 0 ? t = "right" : t === "bottom" && o.bottom > a ? t = "top" : t === "top" && o.top < 0 && (t = "bottom"), l(t);
|
|
21
|
+
}));
|
|
22
|
+
}, s = n.current;
|
|
23
|
+
if (!s) return;
|
|
24
|
+
const c = () => {
|
|
25
|
+
setTimeout(r, 1);
|
|
26
|
+
};
|
|
27
|
+
return s.addEventListener("mouseenter", c), window.addEventListener("resize", r), () => {
|
|
28
|
+
s.removeEventListener("mouseenter", c), window.removeEventListener("resize", r);
|
|
29
|
+
};
|
|
30
|
+
}, [e, i]);
|
|
31
|
+
const T = `arkynTooltip ${p} ${v} ${g}`;
|
|
32
|
+
return /* @__PURE__ */ b("div", { className: T.trim(), ...w, ref: n, children: [
|
|
33
|
+
h,
|
|
34
|
+
/* @__PURE__ */ E(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
className: "arkynTooltipText",
|
|
38
|
+
id: i,
|
|
39
|
+
dangerouslySetInnerHTML: { __html: u }
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
] });
|
|
33
43
|
}
|
|
34
|
-
|
|
35
|
-
|
|
44
|
+
export {
|
|
45
|
+
z as Tooltip
|
|
46
|
+
};
|