@arkyn/components 3.0.1-beta.156 → 3.0.1-beta.158
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 +4 -4
- package/styles.d.ts +2 -0
|
@@ -1,155 +1,116 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
{
|
|
115
|
-
isFocused: i,
|
|
116
|
-
isSearchable: H,
|
|
117
|
-
search: I,
|
|
118
|
-
onSearch: _,
|
|
119
|
-
children: [
|
|
120
|
-
k.map(({ label: e, value: r }) => /* @__PURE__ */ t(
|
|
121
|
-
ae,
|
|
122
|
-
{
|
|
123
|
-
label: e,
|
|
124
|
-
value: r,
|
|
125
|
-
size: c,
|
|
126
|
-
handleChangeValue: y,
|
|
127
|
-
optionHasSelected: L
|
|
128
|
-
},
|
|
129
|
-
r
|
|
130
|
-
)),
|
|
131
|
-
k.length <= 0 && /* @__PURE__ */ t("p", { children: R })
|
|
132
|
-
]
|
|
133
|
-
}
|
|
134
|
-
),
|
|
135
|
-
/* @__PURE__ */ t(
|
|
136
|
-
oe,
|
|
137
|
-
{
|
|
138
|
-
disabled: a,
|
|
139
|
-
isFocused: i,
|
|
140
|
-
readOnly: p,
|
|
141
|
-
iconSize: f,
|
|
142
|
-
isLoading: l
|
|
143
|
-
}
|
|
144
|
-
),
|
|
145
|
-
/* @__PURE__ */ t(de, { iconSize: f, isLoading: l }),
|
|
146
|
-
/* @__PURE__ */ t(ue, { handleBlur: N, isFocused: i })
|
|
147
|
-
]
|
|
148
|
-
}
|
|
149
|
-
)
|
|
150
|
-
}
|
|
151
|
-
);
|
|
1
|
+
import { useForm as e } from "../../hooks/useForm.js";
|
|
2
|
+
import { IconRenderer as t } from "../../services/iconRenderer.js";
|
|
3
|
+
import { FieldTemplate as n } from "../../services/fieldTemplate.js";
|
|
4
|
+
import { MultiSelectChevron as r } from "./multiSelectChevron/index.js";
|
|
5
|
+
import { MultiSelectContainer as i } from "./multiSelectContainer/index.js";
|
|
6
|
+
import { MultiSelectContent as ee } from "./multiSelectContent/index.js";
|
|
7
|
+
import { MultiSelectMark as te } from "./multiSelectMark/index.js";
|
|
8
|
+
import { MultiSelectOption as a } from "./multiSelectOption/index.js";
|
|
9
|
+
import { MultiSelectOptionsContainer as o } from "./multiSelectOptionsContainer/index.js";
|
|
10
|
+
import { MultiSelectOverlay as s } from "./multiSelectOverlay/index.js";
|
|
11
|
+
import { MultiSelectSpinner as c } from "./multiSelectSpinner/index.js";
|
|
12
|
+
import { useId as l, useRef as u, useState as d } from "react";
|
|
13
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
14
|
+
//#region src/components/multiSelect/index.tsx
|
|
15
|
+
function m(m) {
|
|
16
|
+
let { name: h, options: g, className: _ = "", placeholder: v = "Selecione...", closeOnSelect: y = !1, defaultValue: b = [], errorMessage: ne, isLoading: x = !1, readOnly: S = !1, isSearchable: re = !1, id: ie, label: ae, optionMaxHeight: oe, showAsterisk: se, leftIcon: C, onSearch: w, onChange: T, onBlur: E, notFoundText: D = "Sem opções disponíveis", onFocus: O, disabled: k = !1, prefix: A, size: j = "md", value: M, variant: N = "solid", unShowFieldTemplate: P = !1, orientation: F = "vertical" } = m, { fieldErrors: I } = e(), L = u(null), R = ie || l(), z = ne || I?.[h], B = !!z, V = k || x || S, H = {
|
|
17
|
+
md: 20,
|
|
18
|
+
lg: 20
|
|
19
|
+
}[j], [U, W] = d(""), [G, K] = d(!1), [q, J] = d(b), Y = M || q;
|
|
20
|
+
function X(e) {
|
|
21
|
+
return Y.includes(e);
|
|
22
|
+
}
|
|
23
|
+
function ce(e) {
|
|
24
|
+
return g.find((t) => t.value === e)?.label || "";
|
|
25
|
+
}
|
|
26
|
+
function le() {
|
|
27
|
+
V || !L?.current || G || (K(!0), L.current.focus(), O && O());
|
|
28
|
+
}
|
|
29
|
+
function Z() {
|
|
30
|
+
K(!1), E && L.current && L.current.blur();
|
|
31
|
+
}
|
|
32
|
+
function ue(e) {
|
|
33
|
+
W(e), w && w(e);
|
|
34
|
+
}
|
|
35
|
+
function Q(e) {
|
|
36
|
+
X(e) ? (J(q.filter((t) => t !== e)), T && T(q.filter((t) => t !== e))) : (J([...q, e]), T && T([...q, e])), y && Z();
|
|
37
|
+
}
|
|
38
|
+
let $ = g.filter((e) => !!(m.onSearch || !m.isSearchable || e.label.toLowerCase().includes(U.toLowerCase())));
|
|
39
|
+
return /* @__PURE__ */ f(n, {
|
|
40
|
+
name: h,
|
|
41
|
+
label: ae,
|
|
42
|
+
showAsterisk: se,
|
|
43
|
+
className: _,
|
|
44
|
+
errorMessage: z,
|
|
45
|
+
unShowFieldTemplate: P,
|
|
46
|
+
orientation: F,
|
|
47
|
+
children: /* @__PURE__ */ p(i, {
|
|
48
|
+
handleContainerFocus: le,
|
|
49
|
+
disabled: V,
|
|
50
|
+
isError: B,
|
|
51
|
+
isFocused: G,
|
|
52
|
+
isLoading: x,
|
|
53
|
+
readOnly: S,
|
|
54
|
+
size: j,
|
|
55
|
+
variant: N,
|
|
56
|
+
prefixExists: !!A,
|
|
57
|
+
id: R,
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ f("input", {
|
|
60
|
+
ref: L,
|
|
61
|
+
name: h,
|
|
62
|
+
value: JSON.stringify(Y),
|
|
63
|
+
type: "hidden"
|
|
64
|
+
}),
|
|
65
|
+
/* @__PURE__ */ f(t, {
|
|
66
|
+
iconSize: H,
|
|
67
|
+
icon: A,
|
|
68
|
+
className: "prefix"
|
|
69
|
+
}),
|
|
70
|
+
C && /* @__PURE__ */ f(C, {
|
|
71
|
+
size: H,
|
|
72
|
+
strokeWidth: 2.5
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ p(ee, {
|
|
75
|
+
size: j,
|
|
76
|
+
children: [Y.map((e) => /* @__PURE__ */ f(te, {
|
|
77
|
+
label: ce(e),
|
|
78
|
+
value: e,
|
|
79
|
+
handleChangeValue: Q,
|
|
80
|
+
disabled: V
|
|
81
|
+
}, e)), Y.length <= 0 && /* @__PURE__ */ f("p", { children: v })]
|
|
82
|
+
}),
|
|
83
|
+
/* @__PURE__ */ p(o, {
|
|
84
|
+
isFocused: G,
|
|
85
|
+
isSearchable: re,
|
|
86
|
+
search: U,
|
|
87
|
+
onSearch: ue,
|
|
88
|
+
children: [$.map(({ label: e, value: t }) => /* @__PURE__ */ f(a, {
|
|
89
|
+
label: e,
|
|
90
|
+
value: t,
|
|
91
|
+
size: j,
|
|
92
|
+
handleChangeValue: Q,
|
|
93
|
+
optionHasSelected: X
|
|
94
|
+
}, t)), $.length <= 0 && /* @__PURE__ */ f("p", { children: D })]
|
|
95
|
+
}),
|
|
96
|
+
/* @__PURE__ */ f(r, {
|
|
97
|
+
disabled: V,
|
|
98
|
+
isFocused: G,
|
|
99
|
+
readOnly: S,
|
|
100
|
+
iconSize: H,
|
|
101
|
+
isLoading: x
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ f(c, {
|
|
104
|
+
iconSize: H,
|
|
105
|
+
isLoading: x
|
|
106
|
+
}),
|
|
107
|
+
/* @__PURE__ */ f(s, {
|
|
108
|
+
handleBlur: Z,
|
|
109
|
+
isFocused: G
|
|
110
|
+
})
|
|
111
|
+
]
|
|
112
|
+
})
|
|
113
|
+
});
|
|
152
114
|
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
};
|
|
115
|
+
//#endregion
|
|
116
|
+
export { m as MultiSelect };
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
);
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { Fragment as e, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { ChevronDown as n } from "lucide-react";
|
|
4
|
+
//#region src/components/multiSelect/multiSelectChevron/index.tsx
|
|
5
|
+
function r(r) {
|
|
6
|
+
let { iconSize: i, isLoading: a, disabled: o, readOnly: s, isFocused: c } = r;
|
|
7
|
+
return a ? /* @__PURE__ */ t(e, {}) : /* @__PURE__ */ t(n, {
|
|
8
|
+
className: `arkynMultiSelectChevron ${o || s ? "notAnimate" : ""} ${c ? "focused" : ""}`,
|
|
9
|
+
strokeWidth: 2.5,
|
|
10
|
+
style: {
|
|
11
|
+
minWidth: i,
|
|
12
|
+
minHeight: i,
|
|
13
|
+
maxWidth: i,
|
|
14
|
+
maxHeight: i
|
|
15
|
+
}
|
|
16
|
+
});
|
|
19
17
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { r as MultiSelectChevron };
|
|
@@ -1,30 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
readOnly: a,
|
|
13
|
-
variant: d,
|
|
14
|
-
size: l,
|
|
15
|
-
id: f,
|
|
16
|
-
prefixExists: u
|
|
17
|
-
} = e;
|
|
18
|
-
return /* @__PURE__ */ p(
|
|
19
|
-
"section",
|
|
20
|
-
{
|
|
21
|
-
id: f,
|
|
22
|
-
className: `arkynMultiSelectContainer ${u ? "hasPrefix" : ""} ${d} ${l} ${i || a || t ? "opacity" : ""} ${s ? "errored" : ""} ${n ? "focused" : ""} ${c}`,
|
|
23
|
-
onClick: o,
|
|
24
|
-
children: r
|
|
25
|
-
}
|
|
26
|
-
);
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/multiSelect/multiSelectContainer/index.tsx
|
|
4
|
+
function t(t) {
|
|
5
|
+
let { children: n, handleContainerFocus: r, disabled: i, isError: a, isLoading: o, isFocused: s, className: c, readOnly: l, variant: u, size: d, id: f, prefixExists: p } = t;
|
|
6
|
+
return /* @__PURE__ */ e("section", {
|
|
7
|
+
id: f,
|
|
8
|
+
className: `arkynMultiSelectContainer ${p ? "hasPrefix" : ""} ${u} ${d} ${i || l || o ? "opacity" : ""} ${a ? "errored" : ""} ${s ? "focused" : ""} ${c}`,
|
|
9
|
+
onClick: r,
|
|
10
|
+
children: n
|
|
11
|
+
});
|
|
27
12
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { t as MultiSelectContainer };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/multiSelect/multiSelectContent/index.tsx
|
|
4
|
+
function t(t) {
|
|
5
|
+
let { children: n, size: r } = t;
|
|
6
|
+
return /* @__PURE__ */ e("div", {
|
|
7
|
+
className: `arkynMultiSelectContent ${r}`,
|
|
8
|
+
children: n
|
|
9
|
+
});
|
|
6
10
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as MultiSelectContent };
|
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
)
|
|
19
|
-
] });
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
3
|
+
import { X as n } from "lucide-react";
|
|
4
|
+
//#region src/components/multiSelect/multiSelectMark/index.tsx
|
|
5
|
+
function r(r) {
|
|
6
|
+
let { label: i, value: a, disabled: o, handleChangeValue: s } = r;
|
|
7
|
+
return /* @__PURE__ */ t("div", {
|
|
8
|
+
className: "arkynMultiSelectMark",
|
|
9
|
+
children: [i, /* @__PURE__ */ e("button", {
|
|
10
|
+
disabled: o,
|
|
11
|
+
type: "button",
|
|
12
|
+
onClick: (e) => {
|
|
13
|
+
e.stopPropagation(), s(a);
|
|
14
|
+
},
|
|
15
|
+
children: /* @__PURE__ */ e(n, {})
|
|
16
|
+
})]
|
|
17
|
+
});
|
|
20
18
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { r as MultiSelectMark };
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
3
|
+
import { Check as n } from "lucide-react";
|
|
4
|
+
//#region src/components/multiSelect/multiSelectOption/index.tsx
|
|
5
|
+
function r(r) {
|
|
6
|
+
let { label: i, optionHasSelected: a, handleChangeValue: o, value: s, size: c } = r;
|
|
7
|
+
return /* @__PURE__ */ t("div", {
|
|
8
|
+
onClick: () => o(s),
|
|
9
|
+
className: `arkynMultiSelectOption ${c} ${a(s) ? "active" : ""}`,
|
|
10
|
+
children: [
|
|
11
|
+
i,
|
|
12
|
+
" ",
|
|
13
|
+
/* @__PURE__ */ e(n, {})
|
|
14
|
+
]
|
|
15
|
+
});
|
|
11
16
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { r as MultiSelectOption };
|
|
@@ -1,46 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
-
leftIcon: C,
|
|
35
|
-
value: m,
|
|
36
|
-
onChange: h
|
|
37
|
-
}
|
|
38
|
-
),
|
|
39
|
-
u
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
) : /* @__PURE__ */ a(g, {});
|
|
1
|
+
import { useScrollLock as e } from "../../../hooks/useScrollLock.js";
|
|
2
|
+
import { Input as t } from "../../input/index.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { useEffect as n, useRef as r, useState as i } from "react";
|
|
5
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import { Search as c } from "lucide-react";
|
|
7
|
+
//#region src/components/multiSelect/multiSelectOptionsContainer/index.tsx
|
|
8
|
+
function l(l) {
|
|
9
|
+
let { children: u, isFocused: d, isSearchable: f, search: p, onSearch: m } = l, h = r(null), [g, _] = i("bottom");
|
|
10
|
+
e(d), n(() => {
|
|
11
|
+
d && (() => {
|
|
12
|
+
if (!h.current) return;
|
|
13
|
+
let e = h.current.parentElement;
|
|
14
|
+
if (!e) return;
|
|
15
|
+
let t = e.getBoundingClientRect();
|
|
16
|
+
window.innerHeight - t.bottom < 300 && t.top > 300 ? _("top") : _("bottom");
|
|
17
|
+
})();
|
|
18
|
+
}, [d]);
|
|
19
|
+
function v(e) {
|
|
20
|
+
f && m(e.target.value);
|
|
21
|
+
}
|
|
22
|
+
return d ? /* @__PURE__ */ s("div", {
|
|
23
|
+
ref: h,
|
|
24
|
+
className: `arkynMultiSelectOptionsContainer ${g}`,
|
|
25
|
+
children: [f && /* @__PURE__ */ o(t, {
|
|
26
|
+
type: "search",
|
|
27
|
+
name: "search-select",
|
|
28
|
+
variant: "underline",
|
|
29
|
+
leftIcon: c,
|
|
30
|
+
value: p,
|
|
31
|
+
onChange: v
|
|
32
|
+
}), u]
|
|
33
|
+
}) : /* @__PURE__ */ o(a, {});
|
|
43
34
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { l as MultiSelectOptionsContainer };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { Fragment as e, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/multiSelect/multiSelectOverlay/index.tsx
|
|
4
|
+
function n(n) {
|
|
5
|
+
let { isFocused: r, handleBlur: i } = n;
|
|
6
|
+
return r ? /* @__PURE__ */ t("aside", {
|
|
7
|
+
className: "arkynMultiSelectOverlay",
|
|
8
|
+
onClick: i
|
|
9
|
+
}) : /* @__PURE__ */ t(e, {});
|
|
6
10
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as MultiSelectOverlay };
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
) : /* @__PURE__ */ r(n, {});
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { Fragment as e, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { Loader2 as n } from "lucide-react";
|
|
4
|
+
//#region src/components/multiSelect/multiSelectSpinner/index.tsx
|
|
5
|
+
function r(r) {
|
|
6
|
+
let { iconSize: i, isLoading: a } = r;
|
|
7
|
+
return a ? /* @__PURE__ */ t(n, {
|
|
8
|
+
className: "arkynMultiSelectSpinner",
|
|
9
|
+
size: i,
|
|
10
|
+
strokeWidth: 2.5
|
|
11
|
+
}) : /* @__PURE__ */ t(e, {});
|
|
14
12
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { r as MultiSelectSpinner };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { ChevronLeft as t, ChevronRight as n } from "lucide-react";
|
|
4
|
+
//#region src/components/pagination/chevronButton/index.tsx
|
|
5
|
+
function r(r) {
|
|
6
|
+
let { orientation: i, handlePageChange: a, disabled: o } = r;
|
|
7
|
+
return /* @__PURE__ */ e("button", {
|
|
8
|
+
className: "arkynChevronPageButton",
|
|
9
|
+
disabled: o,
|
|
10
|
+
onClick: a,
|
|
11
|
+
children: {
|
|
12
|
+
left: /* @__PURE__ */ e(t, {}),
|
|
13
|
+
right: /* @__PURE__ */ e(n, {})
|
|
14
|
+
}[i]
|
|
15
|
+
});
|
|
15
16
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { r as ChevronButton };
|