@arkyn/components 3.0.1-beta.156 → 3.0.1-beta.157
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 +4347 -4683
- package/dist/modules/components/alert/alertContainer/index.js +25 -20
- package/dist/modules/components/alert/alertContent/index.js +11 -8
- package/dist/modules/components/alert/alertDescription/index.js +11 -8
- package/dist/modules/components/alert/alertIcon/index.js +27 -19
- package/dist/modules/components/alert/alertTitle/index.js +11 -8
- package/dist/modules/components/audioPlayer/index.js +74 -75
- package/dist/modules/components/audioUpload/hasFileContent/index.js +54 -62
- package/dist/modules/components/audioUpload/index.js +71 -79
- package/dist/modules/components/audioUpload/noFileContent/index.js +35 -45
- package/dist/modules/components/badge/index.js +26 -22
- package/dist/modules/components/button/index.js +39 -32
- package/dist/modules/components/calendar/_calendarProvider.js +38 -63
- package/dist/modules/components/calendar/_viewService.js +132 -140
- package/dist/modules/components/calendar/calendarContainer/index.js +10 -7
- package/dist/modules/components/calendar/calendarHeader/index.js +51 -72
- package/dist/modules/components/calendar/calendarTableBody/index.js +12 -10
- package/dist/modules/components/calendar/calendarTableContainer/index.js +10 -7
- package/dist/modules/components/calendar/calendarTableHeader/index.js +13 -10
- package/dist/modules/components/calendar/calendarTableTd/index.js +20 -23
- package/dist/modules/components/calendar/index.js +31 -49
- package/dist/modules/components/cardTab/cardTabButton/index.js +19 -29
- package/dist/modules/components/cardTab/cardTabContainer/index.js +22 -28
- package/dist/modules/components/cardTab/cardTabContext.js +13 -11
- package/dist/modules/components/checkbox/index.js +37 -64
- package/dist/modules/components/clientOnly.js +8 -8
- package/dist/modules/components/currencyInput/index.js +110 -138
- package/dist/modules/components/divider/index.js +10 -11
- package/dist/modules/components/drawer/drawerContainer/index.js +40 -43
- package/dist/modules/components/drawer/drawerContext.js +13 -11
- package/dist/modules/components/drawer/drawerHeader/index.js +20 -27
- package/dist/modules/components/facebookPixel/facebookPixel.client.js +8 -18
- package/dist/modules/components/facebookPixel/index.js +8 -8
- package/dist/modules/components/facebookPixel/pixel.js +47 -52
- package/dist/modules/components/fieldError/index.js +12 -8
- package/dist/modules/components/fieldLabel/index.js +11 -12
- package/dist/modules/components/fieldWrapper/index.js +12 -13
- package/dist/modules/components/fileUpload/hasFileContent/index.js +59 -67
- package/dist/modules/components/fileUpload/index.js +65 -72
- package/dist/modules/components/fileUpload/noFileContent/index.js +35 -45
- package/dist/modules/components/fullCalendar/_fullCalendarProvider.js +33 -46
- package/dist/modules/components/fullCalendar/_viewService.js +100 -105
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +10 -7
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +70 -78
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +28 -33
- package/dist/modules/components/fullCalendar/dayCalendar/index.js +12 -9
- package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js +10 -7
- package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js +67 -70
- package/dist/modules/components/fullCalendar/index.js +30 -30
- package/dist/modules/components/fullCalendar/monthlyCalendar/index.js +9 -12
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +28 -36
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +11 -9
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +10 -9
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +13 -10
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +35 -36
- package/dist/modules/components/fullCalendar/weekCalendar/index.js +8 -11
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +70 -78
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +17 -20
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +9 -8
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +16 -19
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +34 -39
- 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 +10 -12
- package/dist/modules/components/googleTagManager/googleTagManager.client.js +6 -6
- package/dist/modules/components/googleTagManager/googleTagManager.js +44 -48
- package/dist/modules/components/googleTagManager/index.js +16 -27
- package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js +8 -8
- package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js +19 -20
- package/dist/modules/components/iconButton/index.js +31 -29
- package/dist/modules/components/imageUpload/hasFileContent/index.js +46 -63
- package/dist/modules/components/imageUpload/index.js +65 -82
- package/dist/modules/components/imageUpload/noFileContent/index.js +35 -45
- package/dist/modules/components/input/index.js +92 -120
- package/dist/modules/components/mapView/index.js +27 -31
- package/dist/modules/components/mapView/mapView.client.js +49 -51
- package/dist/modules/components/maskedInput/index.js +101 -112
- package/dist/modules/components/modal/modalContainer/index.js +49 -42
- package/dist/modules/components/modal/modalContext.js +13 -11
- package/dist/modules/components/modal/modalFooter/index.js +10 -7
- package/dist/modules/components/modal/modalHeader/index.js +20 -27
- package/dist/modules/components/multiSelect/index.js +115 -154
- package/dist/modules/components/multiSelect/multiSelectChevron/index.js +18 -21
- package/dist/modules/components/multiSelect/multiSelectContainer/index.js +13 -29
- package/dist/modules/components/multiSelect/multiSelectContent/index.js +11 -8
- package/dist/modules/components/multiSelect/multiSelectMark/index.js +19 -22
- package/dist/modules/components/multiSelect/multiSelectOption/index.js +17 -13
- package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js +35 -45
- package/dist/modules/components/multiSelect/multiSelectOverlay/index.js +11 -8
- package/dist/modules/components/multiSelect/multiSelectSpinner/index.js +13 -16
- package/dist/modules/components/pagination/chevronButton/index.js +17 -17
- package/dist/modules/components/pagination/currentButton/index.js +11 -7
- package/dist/modules/components/pagination/index.js +51 -83
- package/dist/modules/components/pagination/pageButton/index.js +12 -8
- package/dist/modules/components/pagination/paginationService.js +33 -48
- package/dist/modules/components/pagination/spread/index.js +10 -7
- package/dist/modules/components/phoneInput/index.js +103 -151
- package/dist/modules/components/phoneInput/phoneInputContainer/index.js +12 -19
- package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js +11 -8
- package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js +23 -15
- package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js +33 -43
- package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js +25 -21
- package/dist/modules/components/phoneInput/phoneInputMask/index.js +46 -62
- package/dist/modules/components/popover/index.js +37 -36
- package/dist/modules/components/radio/radioBox/index.js +24 -42
- package/dist/modules/components/radio/radioContext.js +20 -18
- package/dist/modules/components/radio/radioGroup/index.js +41 -64
- package/dist/modules/components/richText/blockButton/index.js +20 -23
- package/dist/modules/components/richText/element/index.js +72 -58
- package/dist/modules/components/richText/index.js +143 -135
- package/dist/modules/components/richText/insertImage/index.js +94 -105
- package/dist/modules/components/richText/insertVideo/index.js +85 -97
- package/dist/modules/components/richText/leaf/index.js +9 -6
- package/dist/modules/components/richText/markButton/index.js +19 -22
- package/dist/modules/components/richText/toolbar/index.js +10 -7
- package/dist/modules/components/searchPlaces.js +57 -66
- package/dist/modules/components/select/index.js +112 -144
- package/dist/modules/components/select/selectChevron/index.js +18 -21
- package/dist/modules/components/select/selectContainer/index.js +13 -29
- package/dist/modules/components/select/selectContent/index.js +11 -8
- package/dist/modules/components/select/selectOption/index.js +17 -13
- package/dist/modules/components/select/selectOptionsContainer/index.js +35 -45
- package/dist/modules/components/select/selectOverlay/index.js +11 -8
- package/dist/modules/components/select/selectSpinner/index.js +13 -9
- package/dist/modules/components/slider/index.js +34 -41
- package/dist/modules/components/switch/index.js +35 -62
- package/dist/modules/components/tab/tabButton/index.js +19 -29
- package/dist/modules/components/tab/tabContainer/index.js +22 -28
- package/dist/modules/components/tab/tabContext.js +12 -10
- package/dist/modules/components/table/tableBody/index.js +19 -14
- package/dist/modules/components/table/tableCaption/index.js +15 -8
- package/dist/modules/components/table/tableContainer/index.js +12 -8
- package/dist/modules/components/table/tableFooter/index.js +18 -11
- package/dist/modules/components/table/tableHeader/index.js +12 -11
- package/dist/modules/components/textarea/index.js +51 -69
- package/dist/modules/components/tooltip/index.js +34 -45
- package/dist/modules/hooks/useAutomation.js +35 -27
- package/dist/modules/hooks/useDrawer.js +17 -19
- package/dist/modules/hooks/useForm.js +6 -6
- package/dist/modules/hooks/useHydrated.js +7 -12
- package/dist/modules/hooks/useModal.js +17 -19
- package/dist/modules/hooks/useScopedParams.js +17 -17
- package/dist/modules/hooks/useScrollLock.js +19 -19
- package/dist/modules/hooks/useSearchAutomation.js +31 -14
- package/dist/modules/hooks/useSlider.js +13 -13
- package/dist/modules/hooks/useToast.js +8 -9
- package/dist/modules/index.js +72 -144
- package/dist/modules/providers/drawerProvider.js +35 -30
- package/dist/modules/providers/formProvider.js +11 -16
- package/dist/modules/providers/modalProvider.js +39 -33
- package/dist/modules/providers/placesProvider.js +16 -16
- package/dist/modules/providers/toastProvider.js +45 -51
- package/dist/modules/services/extractTextFromNode.js +6 -6
- package/dist/modules/services/fieldTemplate.js +22 -23
- package/dist/modules/services/iconRenderer.js +14 -7
- package/dist/modules/services/isBlockActive.js +12 -14
- package/dist/modules/services/isMarkActive.js +6 -6
- package/dist/modules/services/maskCurrencyValues.js +11 -12
- package/dist/modules/services/toHtml.js +6 -6
- package/dist/modules/services/toRichTextValue.js +7 -7
- package/dist/modules/services/toggleBlock.js +20 -19
- package/dist/modules/services/toggleMark.js +7 -7
- package/dist/modules/style.css +2 -1
- package/dist/modules/templates/badResponses.js +13 -13
- package/dist/modules/templates/richTextTemplates.js +17 -14
- package/dist/modules/templates/successResponses.js +9 -4
- package/dist/modules/utils/phoneInputUtilities.js +18 -28
- package/dist/modules/utils/richTextUtilities.js +88 -75
- package/dist/services/fieldTemplate.d.ts +1 -1
- package/dist/services/fieldTemplate.d.ts.map +1 -1
- package/dist/style.css +2 -1
- package/package.json +3 -3
|
@@ -1,63 +1,36 @@
|
|
|
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
|
-
|
|
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
|
-
);
|
|
1
|
+
import { FieldTemplate as e } from "../../services/fieldTemplate.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { useId as t, useRef as n, useState as r } from "react";
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/switch/index.tsx
|
|
6
|
+
function a(a) {
|
|
7
|
+
let { label: o, size: s = "lg", defaultChecked: c = !1, checked: l = null, value: u, unCheckedValue: d = "", name: f, className: p = "", onCheck: m, id: h, orientation: g = "horizontalReverse", className: _ = "", showAsterisk: v, errorMessage: y, unShowFieldTemplate: b = !1, ...x } = a, S = n(null), C = h || t(), [w, T] = r(c), E = typeof l == "boolean" ? l : w;
|
|
8
|
+
function D() {
|
|
9
|
+
T(!w), m && m(E ? d : u || "checked");
|
|
10
|
+
}
|
|
11
|
+
return /* @__PURE__ */ i(e, {
|
|
12
|
+
name: f,
|
|
13
|
+
label: o,
|
|
14
|
+
showAsterisk: v,
|
|
15
|
+
className: _,
|
|
16
|
+
errorMessage: y,
|
|
17
|
+
unShowFieldTemplate: b,
|
|
18
|
+
orientation: g,
|
|
19
|
+
children: /* @__PURE__ */ i("button", {
|
|
20
|
+
type: "button",
|
|
21
|
+
onClick: D,
|
|
22
|
+
className: `arkynSwitch ${E ? "checkedTrue" : "checkedFalse"} ${s} ${p}`,
|
|
23
|
+
...x,
|
|
24
|
+
children: /* @__PURE__ */ i("input", {
|
|
25
|
+
id: C,
|
|
26
|
+
type: "hidden",
|
|
27
|
+
name: f,
|
|
28
|
+
ref: S,
|
|
29
|
+
onClick: D,
|
|
30
|
+
value: E ? u || "checked" : d
|
|
31
|
+
})
|
|
32
|
+
})
|
|
33
|
+
});
|
|
60
34
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { a as Switch };
|
|
@@ -1,30 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{
|
|
19
|
-
onClick: u,
|
|
20
|
-
className: d.trim(),
|
|
21
|
-
...c,
|
|
22
|
-
disabled: t,
|
|
23
|
-
type: "button",
|
|
24
|
-
children: i
|
|
25
|
-
}
|
|
26
|
-
);
|
|
1
|
+
import { useTab as e } from "../tabContext.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/tab/tabButton/index.tsx
|
|
5
|
+
function n(n) {
|
|
6
|
+
let { children: r, disabled: i = !1, className: a = "", onClick: o, value: s, ...c } = n, { disabled: l, currentTab: u, changeCurrentTab: d } = e(), f = l || i, p = `arkynTabButton ${f ? "isDisabled" : ""} ${u === s && s ? "isActive" : ""} ${a}`;
|
|
7
|
+
function m(e) {
|
|
8
|
+
d(s), o && o(e);
|
|
9
|
+
}
|
|
10
|
+
return /* @__PURE__ */ t("button", {
|
|
11
|
+
onClick: m,
|
|
12
|
+
className: p.trim(),
|
|
13
|
+
...c,
|
|
14
|
+
disabled: f,
|
|
15
|
+
type: "button",
|
|
16
|
+
children: r
|
|
17
|
+
});
|
|
27
18
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { n as TabButton };
|
|
@@ -1,29 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
currentTab: m,
|
|
22
|
-
changeCurrentTab: f,
|
|
23
|
-
children: /* @__PURE__ */ e("nav", { className: b.trim(), ...c, children: t })
|
|
24
|
-
}
|
|
25
|
-
);
|
|
1
|
+
import { TabProvider as e } from "../tabContext.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { useState as t } from "react";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/tab/tabContainer/index.tsx
|
|
6
|
+
function r(r) {
|
|
7
|
+
let { children: i, onChange: a, defaultValue: o, disabled: s = !1, className: c, ...l } = r, [u, d] = t(o || ""), f = `arkynTabContainer ${c || ""}`;
|
|
8
|
+
function p(e) {
|
|
9
|
+
d(e), a && a(e);
|
|
10
|
+
}
|
|
11
|
+
return /* @__PURE__ */ n(e, {
|
|
12
|
+
disabled: s,
|
|
13
|
+
currentTab: u,
|
|
14
|
+
changeCurrentTab: p,
|
|
15
|
+
children: /* @__PURE__ */ n("nav", {
|
|
16
|
+
className: f.trim(),
|
|
17
|
+
...l,
|
|
18
|
+
children: i
|
|
19
|
+
})
|
|
20
|
+
});
|
|
26
21
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { r as TabContainer };
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { createContext as e, useContext as t } from "react";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/tab/tabContext.tsx
|
|
4
|
+
var r = e({});
|
|
5
|
+
function i() {
|
|
6
|
+
return t(r);
|
|
6
7
|
}
|
|
7
8
|
function a(e) {
|
|
8
|
-
|
|
9
|
+
return /* @__PURE__ */ n(r.Provider, {
|
|
10
|
+
value: e,
|
|
11
|
+
children: e.children
|
|
12
|
+
});
|
|
9
13
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
c as useTab
|
|
13
|
-
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { a as TabProvider, i as useTab };
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
import { Children as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { Children as e } from "react";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/table/tableBody/index.tsx
|
|
5
|
+
function n(n) {
|
|
6
|
+
let { emptyMessage: r = "Nenhum dado adicionado.", className: i, children: a, ...o } = n, s = `arkynTableBody ${i}`, c = e.count(a) === 0;
|
|
7
|
+
return /* @__PURE__ */ t("tbody", {
|
|
8
|
+
className: s.trim(),
|
|
9
|
+
...o,
|
|
10
|
+
children: c ? /* @__PURE__ */ t("tr", {
|
|
11
|
+
className: "arkynTableBodyEmptyLine",
|
|
12
|
+
children: /* @__PURE__ */ t("td", {
|
|
13
|
+
colSpan: 100,
|
|
14
|
+
children: /* @__PURE__ */ t("div", { children: r })
|
|
15
|
+
})
|
|
16
|
+
}) : a
|
|
17
|
+
});
|
|
12
18
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { n as TableBody };
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/table/tableCaption/index.tsx
|
|
4
|
+
function t(t) {
|
|
5
|
+
let { className: n, children: r, ...i } = t;
|
|
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
|
+
});
|
|
6
14
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { t as TableCaption };
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/table/tableContainer/index.tsx
|
|
4
|
+
function t(t) {
|
|
5
|
+
let { children: n, className: r, ...i } = t;
|
|
6
|
+
return /* @__PURE__ */ e("div", {
|
|
7
|
+
className: `arkynTableContainer ${r}`.trim(),
|
|
8
|
+
...i,
|
|
9
|
+
children: /* @__PURE__ */ e("table", { children: n })
|
|
10
|
+
});
|
|
6
11
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as TableContainer };
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/table/tableFooter/index.tsx
|
|
4
|
+
function n(n) {
|
|
5
|
+
let { className: r, children: i, ...a } = n;
|
|
6
|
+
return /* @__PURE__ */ t("tfoot", {
|
|
7
|
+
className: `arkynTableFooter ${r}`.trim(),
|
|
8
|
+
...a,
|
|
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
|
+
});
|
|
9
17
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { n as TableFooter };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/table/tableHeader/index.tsx
|
|
4
|
+
function n(n) {
|
|
5
|
+
let { className: r, children: i, ...a } = n;
|
|
6
|
+
return /* @__PURE__ */ t("thead", {
|
|
7
|
+
className: `arkynTableHeader ${r}`.trim(),
|
|
8
|
+
...a,
|
|
9
|
+
children: [/* @__PURE__ */ e("tr", { children: i }), /* @__PURE__ */ e("tr", { className: "spacingRow" })]
|
|
10
|
+
});
|
|
9
11
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as TableHeader };
|
|
@@ -1,70 +1,52 @@
|
|
|
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
|
-
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
|
-
] });
|
|
1
|
+
import { useForm as e } from "../../hooks/useForm.js";
|
|
2
|
+
import { FieldError as t } from "../fieldError/index.js";
|
|
3
|
+
import { FieldLabel as n } from "../fieldLabel/index.js";
|
|
4
|
+
import { FieldWrapper as r } from "../fieldWrapper/index.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import { useId as i, useRef as a, useState as o } from "react";
|
|
7
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
+
//#region src/components/textarea/index.tsx
|
|
9
|
+
function l(l) {
|
|
10
|
+
let { variant: u = "solid", size: d = "md", className: f, errorMessage: p, disabled: m = !1, readOnly: h = !1, label: g, showAsterisk: _, name: v, onFocus: y, onBlur: b, title: x, style: S, value: C, defaultValue: w, placeholder: T, id: E, ...D } = l, { fieldErrors: O } = e(), [k, A] = o(!1), j = a(null), M = E || i(), N = p || O?.[v], P = `arkynTextarea ${u} ${d} ${m || h ? "opacityTrue" : "opacityFalse"} ${N ? "errorTrue" : "errorFalse"} ${k ? "focusedTrue" : "focusedFalse"}`;
|
|
11
|
+
function F() {
|
|
12
|
+
m || !j?.current || (A(!0), j.current.focus());
|
|
13
|
+
}
|
|
14
|
+
function I(e) {
|
|
15
|
+
A(!0), y && y(e);
|
|
16
|
+
}
|
|
17
|
+
function L(e) {
|
|
18
|
+
A(!1), b && b(e);
|
|
19
|
+
}
|
|
20
|
+
return /* @__PURE__ */ c(r, {
|
|
21
|
+
className: f,
|
|
22
|
+
children: [
|
|
23
|
+
g && /* @__PURE__ */ s(n, {
|
|
24
|
+
htmlFor: M,
|
|
25
|
+
showAsterisk: _,
|
|
26
|
+
children: g
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ s("section", {
|
|
29
|
+
title: x,
|
|
30
|
+
style: S,
|
|
31
|
+
onClick: F,
|
|
32
|
+
className: P,
|
|
33
|
+
children: /* @__PURE__ */ s("textarea", {
|
|
34
|
+
id: M,
|
|
35
|
+
disabled: m,
|
|
36
|
+
readOnly: h,
|
|
37
|
+
ref: j,
|
|
38
|
+
name: v,
|
|
39
|
+
onFocus: I,
|
|
40
|
+
onBlur: L,
|
|
41
|
+
defaultValue: w || "",
|
|
42
|
+
placeholder: m && C || T,
|
|
43
|
+
value: m ? void 0 : C,
|
|
44
|
+
...D
|
|
45
|
+
})
|
|
46
|
+
}),
|
|
47
|
+
N && /* @__PURE__ */ s(t, { children: N })
|
|
48
|
+
]
|
|
49
|
+
});
|
|
67
50
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
};
|
|
51
|
+
//#endregion
|
|
52
|
+
export { l as Textarea };
|
|
@@ -1,46 +1,35 @@
|
|
|
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
|
-
|
|
33
|
-
h,
|
|
34
|
-
/* @__PURE__ */ E(
|
|
35
|
-
"div",
|
|
36
|
-
{
|
|
37
|
-
className: "arkynTooltipText",
|
|
38
|
-
id: i,
|
|
39
|
-
dangerouslySetInnerHTML: { __html: u }
|
|
40
|
-
}
|
|
41
|
-
)
|
|
42
|
-
] });
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { useEffect as e, useId as t, useRef as n, useState as r } from "react";
|
|
3
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/tooltip/index.tsx
|
|
5
|
+
function o(o) {
|
|
6
|
+
let { text: s, size: c = "lg", children: l, orientation: u = "top", className: d = "", ...f } = o, p = t(), m = n(null), [h, g] = r(u);
|
|
7
|
+
return e(() => {
|
|
8
|
+
let e = () => {
|
|
9
|
+
if (!m.current) return;
|
|
10
|
+
let e = document.getElementById(p);
|
|
11
|
+
e && (g(u), requestAnimationFrame(() => {
|
|
12
|
+
let t = e.getBoundingClientRect(), n = window.innerWidth, r = window.innerHeight, i = u;
|
|
13
|
+
u === "left" && t.left < 0 ? i = "right" : u === "right" && t.right > n ? i = "left" : u === "top" && t.top < 0 ? i = "bottom" : u === "bottom" && t.bottom > r && (i = "top"), i === "right" && t.right > n ? i = "left" : i === "left" && t.left < 0 ? i = "right" : i === "bottom" && t.bottom > r ? i = "top" : i === "top" && t.top < 0 && (i = "bottom"), g(i);
|
|
14
|
+
}));
|
|
15
|
+
}, t = m.current;
|
|
16
|
+
if (!t) return;
|
|
17
|
+
let n = () => {
|
|
18
|
+
setTimeout(e, 1);
|
|
19
|
+
};
|
|
20
|
+
return t.addEventListener("mouseenter", n), window.addEventListener("resize", e), () => {
|
|
21
|
+
t.removeEventListener("mouseenter", n), window.removeEventListener("resize", e);
|
|
22
|
+
};
|
|
23
|
+
}, [u, p]), /* @__PURE__ */ a("div", {
|
|
24
|
+
className: `arkynTooltip ${c} ${h} ${d}`.trim(),
|
|
25
|
+
...f,
|
|
26
|
+
ref: m,
|
|
27
|
+
children: [l, /* @__PURE__ */ i("div", {
|
|
28
|
+
className: "arkynTooltipText",
|
|
29
|
+
id: p,
|
|
30
|
+
dangerouslySetInnerHTML: { __html: s }
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
43
33
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { o as Tooltip };
|