@arkyn/components 3.0.1-beta.154 → 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/index.js +4694 -75
- package/dist/modules/components/alert/alertContainer/index.js +22 -0
- package/dist/modules/components/alert/alertContent/index.js +9 -0
- package/dist/modules/components/alert/alertDescription/index.js +9 -0
- package/dist/modules/components/alert/alertIcon/index.js +20 -0
- package/dist/modules/components/alert/alertTitle/index.js +9 -0
- package/dist/modules/components/audioPlayer/index.js +76 -0
- package/dist/modules/components/audioUpload/hasFileContent/index.js +63 -0
- package/dist/modules/components/audioUpload/index.js +80 -0
- package/dist/modules/components/audioUpload/noFileContent/index.js +46 -0
- package/dist/modules/components/badge/index.js +23 -0
- package/dist/modules/components/button/index.js +33 -0
- package/dist/modules/components/calendar/_calendarProvider.js +65 -0
- package/dist/modules/components/calendar/_viewService.js +141 -0
- package/dist/modules/components/calendar/calendarContainer/index.js +8 -0
- package/dist/modules/components/calendar/calendarHeader/index.js +73 -0
- package/dist/modules/components/calendar/calendarTableBody/index.js +11 -0
- package/dist/modules/components/calendar/calendarTableContainer/index.js +8 -0
- package/dist/modules/components/calendar/calendarTableHeader/index.js +11 -0
- package/dist/modules/components/calendar/calendarTableTd/index.js +24 -0
- package/dist/modules/components/calendar/index.js +50 -0
- package/dist/modules/components/cardTab/cardTabButton/index.js +30 -0
- package/dist/modules/components/cardTab/cardTabContainer/index.js +29 -0
- package/dist/modules/components/cardTab/cardTabContext.js +13 -0
- package/dist/modules/components/checkbox/index.js +65 -0
- package/dist/modules/components/clientOnly.js +9 -0
- package/dist/modules/components/currencyInput/index.js +140 -0
- package/dist/modules/components/divider/index.js +13 -0
- package/dist/modules/components/drawer/drawerContainer/index.js +44 -0
- package/dist/modules/components/drawer/drawerContext.js +13 -0
- package/dist/modules/components/drawer/drawerHeader/index.js +28 -0
- package/dist/modules/components/facebookPixel/facebookPixel.client.js +19 -0
- package/dist/modules/components/facebookPixel/index.js +9 -0
- package/dist/modules/components/facebookPixel/pixel.js +53 -0
- package/dist/modules/components/fieldError/index.js +9 -0
- package/dist/modules/components/fieldLabel/index.js +13 -0
- package/dist/modules/components/fieldWrapper/index.js +14 -0
- package/dist/modules/components/fileUpload/hasFileContent/index.js +68 -0
- package/dist/modules/components/fileUpload/index.js +73 -0
- package/dist/modules/components/fileUpload/noFileContent/index.js +46 -0
- package/dist/modules/components/fullCalendar/_fullCalendarProvider.js +48 -0
- package/dist/modules/components/fullCalendar/_viewService.js +106 -0
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +8 -0
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +79 -0
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +34 -0
- package/dist/modules/components/fullCalendar/dayCalendar/index.js +11 -0
- package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js +8 -0
- package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js +72 -0
- package/dist/modules/components/fullCalendar/index.js +31 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/index.js +13 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +37 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +11 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +10 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +11 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +37 -0
- package/dist/modules/components/fullCalendar/weekCalendar/index.js +13 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +79 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +21 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +10 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +20 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +40 -0
- package/dist/modules/components/googleAnalytics/googleAnalytics.client.js +8 -0
- package/dist/modules/components/googleAnalytics/googleAnalytics.js +18 -0
- package/dist/modules/components/googleAnalytics/index.js +10 -0
- package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js +16 -0
- package/dist/modules/components/googleTagManager/googleTagManager.client.js +8 -0
- package/dist/modules/components/googleTagManager/googleTagManager.js +49 -0
- package/dist/modules/components/googleTagManager/index.js +28 -0
- package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js +9 -0
- package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js +24 -0
- package/dist/modules/components/iconButton/index.js +30 -0
- package/dist/modules/components/imageUpload/hasFileContent/index.js +64 -0
- package/dist/modules/components/imageUpload/index.js +83 -0
- package/dist/modules/components/imageUpload/noFileContent/index.js +46 -0
- package/dist/modules/components/input/index.js +121 -0
- package/dist/modules/components/mapView/index.js +33 -0
- package/dist/modules/components/mapView/mapView.client.js +52 -0
- package/dist/modules/components/maskedInput/index.js +113 -0
- package/dist/modules/components/modal/modalContainer/index.js +43 -0
- package/dist/modules/components/modal/modalContext.js +13 -0
- package/dist/modules/components/modal/modalFooter/index.js +9 -0
- package/dist/modules/components/modal/modalHeader/index.js +28 -0
- package/dist/modules/components/multiSelect/index.js +155 -0
- package/dist/modules/components/multiSelect/multiSelectChevron/index.js +22 -0
- package/dist/modules/components/multiSelect/multiSelectContainer/index.js +30 -0
- package/dist/modules/components/multiSelect/multiSelectContent/index.js +9 -0
- package/dist/modules/components/multiSelect/multiSelectMark/index.js +23 -0
- package/dist/modules/components/multiSelect/multiSelectOption/index.js +14 -0
- package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js +46 -0
- package/dist/modules/components/multiSelect/multiSelectOverlay/index.js +9 -0
- package/dist/modules/components/multiSelect/multiSelectSpinner/index.js +17 -0
- package/dist/modules/components/pagination/chevronButton/index.js +18 -0
- package/dist/modules/components/pagination/currentButton/index.js +8 -0
- package/dist/modules/components/pagination/index.js +84 -0
- package/dist/modules/components/pagination/pageButton/index.js +9 -0
- package/dist/modules/components/pagination/paginationService.js +49 -0
- package/dist/modules/components/pagination/spread/index.js +9 -0
- package/dist/modules/components/phoneInput/index.js +152 -0
- package/dist/modules/components/phoneInput/phoneInputContainer/index.js +20 -0
- package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js +9 -0
- package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js +16 -0
- package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js +44 -0
- package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js +22 -0
- package/dist/modules/components/phoneInput/phoneInputMask/index.js +62 -0
- package/dist/modules/components/popover/index.js +37 -0
- package/dist/modules/components/radio/radioBox/index.js +43 -0
- package/dist/modules/components/radio/radioContext.js +20 -0
- package/dist/modules/components/radio/radioGroup/index.js +65 -0
- package/dist/modules/components/richText/blockButton/index.js +24 -0
- package/dist/modules/components/richText/element/index.js +59 -0
- package/dist/modules/components/richText/index.js +136 -0
- package/dist/modules/components/richText/insertImage/index.js +106 -0
- package/dist/modules/components/richText/insertVideo/index.js +98 -0
- package/dist/modules/components/richText/leaf/index.js +7 -0
- package/dist/modules/components/richText/markButton/index.js +23 -0
- package/dist/modules/components/richText/toolbar/index.js +8 -0
- package/dist/modules/components/searchPlaces.js +67 -0
- package/dist/modules/components/select/index.js +145 -0
- package/dist/modules/components/select/selectChevron/index.js +22 -0
- package/dist/modules/components/select/selectContainer/index.js +30 -0
- package/dist/modules/components/select/selectContent/index.js +9 -0
- package/dist/modules/components/select/selectOption/index.js +14 -0
- package/dist/modules/components/select/selectOptionsContainer/index.js +46 -0
- package/dist/modules/components/select/selectOverlay/index.js +9 -0
- package/dist/modules/components/select/selectSpinner/index.js +10 -0
- package/dist/modules/components/slider/index.js +42 -0
- package/dist/modules/components/switch/index.js +63 -0
- package/dist/modules/components/tab/tabButton/index.js +30 -0
- package/dist/modules/components/tab/tabContainer/index.js +29 -0
- package/dist/modules/components/tab/tabContext.js +13 -0
- package/dist/modules/components/table/tableBody/index.js +15 -0
- package/dist/modules/components/table/tableCaption/index.js +9 -0
- package/dist/modules/components/table/tableContainer/index.js +9 -0
- package/dist/modules/components/table/tableFooter/index.js +12 -0
- package/dist/modules/components/table/tableHeader/index.js +12 -0
- package/dist/modules/components/textarea/index.js +70 -0
- package/dist/modules/components/tooltip/index.js +46 -0
- package/dist/modules/hooks/useAutomation.js +28 -0
- package/dist/modules/hooks/useDrawer.js +20 -0
- package/dist/modules/hooks/useForm.js +8 -0
- package/dist/modules/hooks/useHydrated.js +15 -0
- package/dist/modules/hooks/useModal.js +20 -0
- package/dist/modules/hooks/useScopedParams.js +18 -0
- package/dist/modules/hooks/useScrollLock.js +21 -0
- package/dist/modules/hooks/useSearchAutomation.js +15 -0
- package/dist/modules/hooks/useSlider.js +14 -0
- package/dist/modules/hooks/useToast.js +11 -0
- package/dist/modules/index.js +144 -0
- package/dist/modules/providers/drawerProvider.js +31 -0
- package/dist/modules/providers/formProvider.js +18 -0
- package/dist/modules/providers/modalProvider.js +34 -0
- package/dist/modules/providers/placesProvider.js +18 -0
- package/dist/modules/providers/toastProvider.js +52 -0
- package/dist/modules/services/extractTextFromNode.js +7 -0
- package/dist/modules/services/fieldTemplate.js +24 -0
- package/dist/modules/services/iconRenderer.js +8 -0
- package/dist/modules/services/isBlockActive.js +15 -0
- package/dist/modules/services/isMarkActive.js +8 -0
- package/dist/modules/services/maskCurrencyValues.js +14 -0
- package/dist/modules/services/toHtml.js +7 -0
- package/dist/modules/services/toRichTextValue.js +9 -0
- package/dist/modules/services/toggleBlock.js +20 -0
- package/dist/modules/services/toggleMark.js +8 -0
- package/dist/modules/style.css +1 -0
- package/dist/modules/templates/badResponses.js +14 -0
- package/dist/modules/templates/richTextTemplates.js +14 -0
- package/dist/modules/templates/successResponses.js +4 -0
- package/dist/modules/utils/phoneInputUtilities.js +32 -0
- package/dist/modules/utils/richTextUtilities.js +77 -0
- package/package.json +208 -208
- package/dist/components/alert/alertContainer/index.js +0 -71
- package/dist/components/alert/alertContent/index.js +0 -26
- package/dist/components/alert/alertDescription/index.js +0 -25
- package/dist/components/alert/alertIcon/index.js +0 -43
- package/dist/components/alert/alertTitle/index.js +0 -27
- package/dist/components/audioPlayer/index.js +0 -112
- package/dist/components/audioUpload/hasFileContent/index.js +0 -26
- package/dist/components/audioUpload/index.js +0 -95
- package/dist/components/audioUpload/noFileContent/index.js +0 -29
- package/dist/components/badge/index.js +0 -41
- package/dist/components/button/index.js +0 -51
- package/dist/components/calendar/_calendarProvider.js +0 -58
- package/dist/components/calendar/_viewService.js +0 -179
- package/dist/components/calendar/calendarContainer/index.js +0 -6
- package/dist/components/calendar/calendarHeader/index.js +0 -13
- package/dist/components/calendar/calendarTableBody/index.js +0 -9
- package/dist/components/calendar/calendarTableContainer/index.js +0 -6
- package/dist/components/calendar/calendarTableHeader/index.js +0 -9
- package/dist/components/calendar/calendarTableTd/index.js +0 -15
- package/dist/components/calendar/index.js +0 -54
- package/dist/components/cardTab/cardTabButton/index.js +0 -40
- package/dist/components/cardTab/cardTabContainer/index.js +0 -42
- package/dist/components/cardTab/cardTabContext.js +0 -10
- package/dist/components/checkbox/index.js +0 -71
- package/dist/components/clientOnly.js +0 -31
- package/dist/components/currencyInput/index.js +0 -126
- package/dist/components/divider/index.js +0 -28
- package/dist/components/drawer/drawerContainer/index.js +0 -38
- package/dist/components/drawer/drawerContext.js +0 -10
- package/dist/components/drawer/drawerHeader/index.js +0 -33
- package/dist/components/facebookPixel/facebookPixel.client.js +0 -23
- package/dist/components/facebookPixel/index.js +0 -45
- package/dist/components/facebookPixel/pixel.js +0 -111
- package/dist/components/fieldError/index.js +0 -26
- package/dist/components/fieldLabel/index.js +0 -23
- package/dist/components/fieldWrapper/index.js +0 -27
- package/dist/components/fileUpload/hasFileContent/index.js +0 -34
- package/dist/components/fileUpload/index.js +0 -89
- package/dist/components/fileUpload/noFileContent/index.js +0 -29
- package/dist/components/fullCalendar/_fullCalendarProvider.js +0 -36
- package/dist/components/fullCalendar/_viewService.js +0 -144
- package/dist/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +0 -6
- package/dist/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +0 -105
- package/dist/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +0 -24
- package/dist/components/fullCalendar/dayCalendar/index.js +0 -9
- package/dist/components/fullCalendar/fullCalendarContainer/index.js +0 -6
- package/dist/components/fullCalendar/fullCalendarHeader/index.js +0 -37
- package/dist/components/fullCalendar/index.js +0 -52
- package/dist/components/fullCalendar/monthlyCalendar/index.js +0 -8
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +0 -29
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +0 -9
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +0 -6
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +0 -9
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +0 -30
- package/dist/components/fullCalendar/weekCalendar/index.js +0 -8
- package/dist/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +0 -102
- package/dist/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +0 -11
- package/dist/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +0 -6
- package/dist/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +0 -10
- package/dist/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +0 -25
- package/dist/components/googleAnalytics/googleAnalytics.client.js +0 -8
- package/dist/components/googleAnalytics/googleAnalytics.js +0 -23
- package/dist/components/googleAnalytics/index.js +0 -31
- package/dist/components/googleAnalytics/snippets/generateGAElements.js +0 -16
- package/dist/components/googleTagManager/googleTagManager.client.js +0 -8
- package/dist/components/googleTagManager/googleTagManager.js +0 -52
- package/dist/components/googleTagManager/index.js +0 -47
- package/dist/components/googleTagManager/snippets/appendToDataLayer.js +0 -7
- package/dist/components/googleTagManager/snippets/generateGTMElements.js +0 -25
- package/dist/components/iconButton/index.js +0 -38
- package/dist/components/imageUpload/hasFileContent/index.js +0 -24
- package/dist/components/imageUpload/index.js +0 -101
- package/dist/components/imageUpload/noFileContent/index.js +0 -29
- package/dist/components/input/index.js +0 -94
- package/dist/components/mapView/index.js +0 -53
- package/dist/components/mapView/mapView.client.js +0 -51
- package/dist/components/maskedInput/index.js +0 -108
- package/dist/components/modal/modalContainer/index.js +0 -40
- package/dist/components/modal/modalContext.js +0 -10
- package/dist/components/modal/modalFooter/index.js +0 -32
- package/dist/components/modal/modalHeader/index.js +0 -34
- package/dist/components/multiSelect/index.js +0 -135
- package/dist/components/multiSelect/multiSelectChevron/index.js +0 -18
- package/dist/components/multiSelect/multiSelectContainer/index.js +0 -11
- package/dist/components/multiSelect/multiSelectContent/index.js +0 -8
- package/dist/components/multiSelect/multiSelectMark/index.js +0 -11
- package/dist/components/multiSelect/multiSelectOption/index.js +0 -10
- package/dist/components/multiSelect/multiSelectOptionsContainer/index.js +0 -44
- package/dist/components/multiSelect/multiSelectOverlay/index.js +0 -9
- package/dist/components/multiSelect/multiSelectSpinner/index.js +0 -10
- package/dist/components/pagination/chevronButton/index.js +0 -9
- package/dist/components/pagination/currentButton/index.js +0 -6
- package/dist/components/pagination/index.js +0 -46
- package/dist/components/pagination/pageButton/index.js +0 -7
- package/dist/components/pagination/paginationService.js +0 -62
- package/dist/components/pagination/spread/index.js +0 -7
- package/dist/components/phoneInput/index.js +0 -127
- package/dist/components/phoneInput/phoneInputContainer/index.js +0 -11
- package/dist/components/phoneInput/phoneInputCountriesOverlay/index.js +0 -9
- package/dist/components/phoneInput/phoneInputCountryOption/index.js +0 -10
- package/dist/components/phoneInput/phoneInputCountryOptionsContainer/index.js +0 -40
- package/dist/components/phoneInput/phoneInputCountrySelector/index.js +0 -9
- package/dist/components/phoneInput/phoneInputMask/index.js +0 -37
- package/dist/components/popover/index.js +0 -62
- package/dist/components/radio/radioBox/index.js +0 -48
- package/dist/components/radio/radioContext.js +0 -11
- package/dist/components/radio/radioGroup/index.js +0 -58
- package/dist/components/richText/blockButton/index.js +0 -18
- package/dist/components/richText/element/index.js +0 -26
- package/dist/components/richText/index.js +0 -136
- package/dist/components/richText/insertImage/index.js +0 -33
- package/dist/components/richText/insertVideo/index.js +0 -51
- package/dist/components/richText/leaf/index.js +0 -13
- package/dist/components/richText/markButton/index.js +0 -16
- package/dist/components/richText/toolbar/index.js +0 -6
- package/dist/components/searchPlaces.js +0 -99
- package/dist/components/select/index.js +0 -134
- package/dist/components/select/selectChevron/index.js +0 -18
- package/dist/components/select/selectContainer/index.js +0 -11
- package/dist/components/select/selectContent/index.js +0 -8
- package/dist/components/select/selectOption/index.js +0 -10
- package/dist/components/select/selectOptionsContainer/index.js +0 -44
- package/dist/components/select/selectOverlay/index.js +0 -9
- package/dist/components/select/selectSpinner/index.js +0 -10
- package/dist/components/slider/index.js +0 -79
- package/dist/components/switch/index.js +0 -66
- package/dist/components/tab/tabButton/index.js +0 -40
- package/dist/components/tab/tabContainer/index.js +0 -42
- package/dist/components/tab/tabContext.js +0 -10
- package/dist/components/table/tableBody/index.js +0 -34
- package/dist/components/table/tableCaption/index.js +0 -24
- package/dist/components/table/tableContainer/index.js +0 -37
- package/dist/components/table/tableFooter/index.js +0 -23
- package/dist/components/table/tableHeader/index.js +0 -25
- package/dist/components/textarea/index.js +0 -80
- package/dist/components/tooltip/index.js +0 -96
- package/dist/hooks/useAutomation.js +0 -74
- package/dist/hooks/useDrawer.js +0 -20
- package/dist/hooks/useForm.js +0 -35
- package/dist/hooks/useHydrated.js +0 -26
- package/dist/hooks/useModal.js +0 -20
- package/dist/hooks/useScopedParams.js +0 -55
- package/dist/hooks/useScrollLock.js +0 -46
- package/dist/hooks/useSearchAutomation.js +0 -64
- package/dist/hooks/useSlider.js +0 -35
- package/dist/hooks/useToast.js +0 -28
- package/dist/providers/drawerProvider.js +0 -54
- package/dist/providers/formProvider.js +0 -34
- package/dist/providers/modalProvider.js +0 -58
- package/dist/providers/placesProvider.js +0 -40
- package/dist/providers/toastProvider.js +0 -62
- package/dist/services/extractTextFromNode.js +0 -5
- package/dist/services/fieldTemplate.js +0 -11
- package/dist/services/iconRenderer.js +0 -13
- package/dist/services/isBlockActive.js +0 -14
- package/dist/services/isMarkActive.js +0 -6
- package/dist/services/maskCurrencyValues.js +0 -23
- package/dist/services/toHtml.js +0 -22
- package/dist/services/toRichTextValue.js +0 -34
- package/dist/services/toggleBlock.js +0 -32
- package/dist/services/toggleMark.js +0 -10
- package/dist/templates/badResponses.js +0 -12
- package/dist/templates/richTextTemplates.js +0 -12
- package/dist/templates/successResponses.js +0 -2
- package/dist/types/richTextTypes.js +0 -1
- package/dist/utils/phoneInputUtilities.js +0 -37
- package/dist/utils/richTextUtilities.js +0 -89
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { jsx as e, jsxs as Q } from "react/jsx-runtime";
|
|
2
|
+
import { Loader2 as N } from "lucide-react";
|
|
3
|
+
import { useState as U, useRef as V, useId as W } from "react";
|
|
4
|
+
import { useForm as X } from "../../hooks/useForm.js";
|
|
5
|
+
import { FieldTemplate as Y } from "../../services/fieldTemplate.js";
|
|
6
|
+
import { IconRenderer as i } from "../../services/iconRenderer.js";
|
|
7
|
+
/* empty css */
|
|
8
|
+
function ue($) {
|
|
9
|
+
const {
|
|
10
|
+
name: t,
|
|
11
|
+
disabled: d,
|
|
12
|
+
title: C,
|
|
13
|
+
style: k,
|
|
14
|
+
variant: v = "solid",
|
|
15
|
+
label: z,
|
|
16
|
+
className: P = "",
|
|
17
|
+
prefix: f,
|
|
18
|
+
suffix: u,
|
|
19
|
+
isLoading: s = !1,
|
|
20
|
+
leftIcon: B,
|
|
21
|
+
readOnly: p,
|
|
22
|
+
onFocus: m,
|
|
23
|
+
onBlur: h,
|
|
24
|
+
unShowFieldTemplate: L = !1,
|
|
25
|
+
errorMessage: M,
|
|
26
|
+
showAsterisk: j,
|
|
27
|
+
rightIcon: x,
|
|
28
|
+
type: y = "text",
|
|
29
|
+
size: S = "md",
|
|
30
|
+
id: O,
|
|
31
|
+
value: g,
|
|
32
|
+
placeholder: w,
|
|
33
|
+
orientation: R,
|
|
34
|
+
...b
|
|
35
|
+
} = $, { fieldErrors: c } = X(), [T, a] = U(!1), o = V(null), A = O || W(), F = M || (c == null ? void 0 : c[t]), D = !!F, r = d || s, n = { md: 20, lg: 20 }[S], I = x ? "right" : "left", E = I === "left" && s, q = I === "right" && s;
|
|
36
|
+
function G() {
|
|
37
|
+
r || !(o != null && o.current) || (a(!0), o.current.focus());
|
|
38
|
+
}
|
|
39
|
+
function H(l) {
|
|
40
|
+
a(!0), m && m(l);
|
|
41
|
+
}
|
|
42
|
+
function J(l) {
|
|
43
|
+
a(!1), h && h(l);
|
|
44
|
+
}
|
|
45
|
+
if (y === "hidden")
|
|
46
|
+
return /* @__PURE__ */ e(
|
|
47
|
+
"input",
|
|
48
|
+
{
|
|
49
|
+
style: { display: "none" },
|
|
50
|
+
readOnly: !0,
|
|
51
|
+
type: "text",
|
|
52
|
+
ref: o,
|
|
53
|
+
...b
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
const K = `arkynInput ${f ? "hasPrefix" : ""} ${d ? "disabled" : ""} ${u ? "hasSuffix" : ""} ${v} ${S} ${r || p || s ? "opacity" : ""} ${D ? "errored" : ""} ${T ? "focused" : ""}`;
|
|
57
|
+
return /* @__PURE__ */ e(
|
|
58
|
+
Y,
|
|
59
|
+
{
|
|
60
|
+
name: t,
|
|
61
|
+
label: z,
|
|
62
|
+
showAsterisk: j,
|
|
63
|
+
className: P,
|
|
64
|
+
errorMessage: F,
|
|
65
|
+
unShowFieldTemplate: L,
|
|
66
|
+
orientation: R,
|
|
67
|
+
children: /* @__PURE__ */ Q(
|
|
68
|
+
"section",
|
|
69
|
+
{
|
|
70
|
+
title: C,
|
|
71
|
+
style: k,
|
|
72
|
+
onClick: G,
|
|
73
|
+
className: K,
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ e(i, { iconSize: n, icon: f, className: "prefix" }),
|
|
76
|
+
/* @__PURE__ */ e(
|
|
77
|
+
i,
|
|
78
|
+
{
|
|
79
|
+
show: E,
|
|
80
|
+
iconSize: n,
|
|
81
|
+
className: "spinner",
|
|
82
|
+
icon: N
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
/* @__PURE__ */ e(i, { show: !s, icon: B, iconSize: n }),
|
|
86
|
+
/* @__PURE__ */ e(
|
|
87
|
+
"input",
|
|
88
|
+
{
|
|
89
|
+
disabled: r,
|
|
90
|
+
readOnly: p,
|
|
91
|
+
ref: o,
|
|
92
|
+
onFocus: H,
|
|
93
|
+
onBlur: J,
|
|
94
|
+
type: y,
|
|
95
|
+
id: A,
|
|
96
|
+
name: t,
|
|
97
|
+
placeholder: r && g || w,
|
|
98
|
+
value: r ? void 0 : g,
|
|
99
|
+
...b
|
|
100
|
+
}
|
|
101
|
+
),
|
|
102
|
+
/* @__PURE__ */ e(i, { show: !s, icon: x, iconSize: n }),
|
|
103
|
+
/* @__PURE__ */ e(
|
|
104
|
+
i,
|
|
105
|
+
{
|
|
106
|
+
show: q,
|
|
107
|
+
iconSize: n,
|
|
108
|
+
className: "spinner",
|
|
109
|
+
icon: N
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
/* @__PURE__ */ e(i, { iconSize: n, icon: u, className: "suffix" })
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
)
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
export {
|
|
120
|
+
ue as Input
|
|
121
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { MapPinned as p } from "lucide-react";
|
|
3
|
+
import { ClientMapView as s } from "./mapView.client.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { ClientOnly as l } from "../clientOnly.js";
|
|
6
|
+
function t({ className: e }) {
|
|
7
|
+
return /* @__PURE__ */ r("div", { className: "arkynMapViewPinnedEmpty " + e, children: /* @__PURE__ */ r(p, {}) });
|
|
8
|
+
}
|
|
9
|
+
function h(e) {
|
|
10
|
+
const {
|
|
11
|
+
coordinates: n,
|
|
12
|
+
zoom: f = 18,
|
|
13
|
+
accessToken: a,
|
|
14
|
+
className: o,
|
|
15
|
+
onMarkerClick: c,
|
|
16
|
+
...m
|
|
17
|
+
} = e;
|
|
18
|
+
if (!n) return /* @__PURE__ */ r(t, { className: o });
|
|
19
|
+
const i = Array.isArray(n) ? n : [n];
|
|
20
|
+
return i.length === 0 ? /* @__PURE__ */ r(t, { className: o }) : /* @__PURE__ */ r(l, { fallback: /* @__PURE__ */ r(t, { className: o }), children: () => /* @__PURE__ */ r(
|
|
21
|
+
s,
|
|
22
|
+
{
|
|
23
|
+
accessToken: a,
|
|
24
|
+
coordinates: i,
|
|
25
|
+
center: i[0],
|
|
26
|
+
onMarkerClick: c,
|
|
27
|
+
...m
|
|
28
|
+
}
|
|
29
|
+
) });
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
h as MapView
|
|
33
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
+
import n from "mapbox-gl";
|
|
3
|
+
import { createRoot as y } from "react-dom/client";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { useRef as g, useEffect as R } from "react";
|
|
6
|
+
function B({
|
|
7
|
+
center: r,
|
|
8
|
+
coordinates: c,
|
|
9
|
+
onMarkerClick: p,
|
|
10
|
+
accessToken: d,
|
|
11
|
+
...h
|
|
12
|
+
}) {
|
|
13
|
+
const t = g(null), a = g(null), s = r || c[0];
|
|
14
|
+
return R(() => (n.accessToken = d, t.current = new n.Map({
|
|
15
|
+
container: a.current,
|
|
16
|
+
style: "mapbox://styles/mapbox/light-v11",
|
|
17
|
+
center: [s.lng, s.lat],
|
|
18
|
+
zoom: 13,
|
|
19
|
+
language: "pt-BR"
|
|
20
|
+
}), c.forEach((e) => {
|
|
21
|
+
const { lat: m, lng: i, popUp: l } = e, o = document.createElement("img");
|
|
22
|
+
o.className = "arkynMarker", o.src = "https://i.postimg.cc/mgKggjk7/Pin.png";
|
|
23
|
+
const u = new n.Marker(o).setLngLat([i, m]).addTo(t.current);
|
|
24
|
+
if (l) {
|
|
25
|
+
const f = document.createElement("div");
|
|
26
|
+
y(f).render(l);
|
|
27
|
+
const k = new n.Popup({
|
|
28
|
+
offset: 25,
|
|
29
|
+
closeButton: !1,
|
|
30
|
+
className: "arkynMapViewPopup"
|
|
31
|
+
}).setDOMContent(f);
|
|
32
|
+
u.setPopup(k);
|
|
33
|
+
}
|
|
34
|
+
o.addEventListener("click", () => {
|
|
35
|
+
p && p(e), t.current.flyTo({ center: [i, m], zoom: 15, duration: 1200 }), u.togglePopup();
|
|
36
|
+
});
|
|
37
|
+
}), () => {
|
|
38
|
+
var e;
|
|
39
|
+
(e = t.current) == null || e.remove();
|
|
40
|
+
}), []), /* @__PURE__ */ x(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
id: "map-container",
|
|
44
|
+
ref: a,
|
|
45
|
+
style: { height: "100%", width: "100%", borderRadius: "8px" },
|
|
46
|
+
...h
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
B as ClientMapView
|
|
52
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { jsxs as $, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { InputMask as U } from "@react-input/mask";
|
|
3
|
+
import { Loader2 as M } from "lucide-react";
|
|
4
|
+
import { useState as X, useRef as Y, useId as Z, forwardRef as _ } from "react";
|
|
5
|
+
import { useForm as ee } from "../../hooks/useForm.js";
|
|
6
|
+
import { IconRenderer as r } from "../../services/iconRenderer.js";
|
|
7
|
+
import { FieldError as oe } from "../fieldError/index.js";
|
|
8
|
+
import { FieldLabel as se } from "../fieldLabel/index.js";
|
|
9
|
+
import { FieldWrapper as re } from "../fieldWrapper/index.js";
|
|
10
|
+
/* empty css */
|
|
11
|
+
const ne = _((a, t) => /* @__PURE__ */ e("input", { ref: t, ...a }));
|
|
12
|
+
function Se(a) {
|
|
13
|
+
const {
|
|
14
|
+
name: t,
|
|
15
|
+
disabled: b,
|
|
16
|
+
title: y,
|
|
17
|
+
style: v,
|
|
18
|
+
variant: z = "solid",
|
|
19
|
+
separate: B,
|
|
20
|
+
mask: L,
|
|
21
|
+
showMask: P,
|
|
22
|
+
replacement: C,
|
|
23
|
+
label: d,
|
|
24
|
+
className: R = "",
|
|
25
|
+
prefix: m,
|
|
26
|
+
suffix: p,
|
|
27
|
+
isLoading: o = !1,
|
|
28
|
+
leftIcon: j,
|
|
29
|
+
readOnly: h,
|
|
30
|
+
onFocus: x,
|
|
31
|
+
onBlur: g,
|
|
32
|
+
errorMessage: E,
|
|
33
|
+
defaultValue: V,
|
|
34
|
+
showAsterisk: A,
|
|
35
|
+
rightIcon: w,
|
|
36
|
+
size: F = "md",
|
|
37
|
+
id: D,
|
|
38
|
+
value: I,
|
|
39
|
+
placeholder: S,
|
|
40
|
+
...O
|
|
41
|
+
} = a, { fieldErrors: c } = ee(), [W, l] = X(!1), n = Y(null), k = D || Z(), f = E || (c == null ? void 0 : c[t]), q = !!f, i = b || o, s = { md: 20, lg: 20 }[F], N = w ? "right" : "left", G = N === "left" && o, H = N === "right" && o;
|
|
42
|
+
function J() {
|
|
43
|
+
i || !(n != null && n.current) || (l(!0), n.current.focus());
|
|
44
|
+
}
|
|
45
|
+
function K(u) {
|
|
46
|
+
l(!0), x && x(u);
|
|
47
|
+
}
|
|
48
|
+
function Q(u) {
|
|
49
|
+
l(!1), g && g(u);
|
|
50
|
+
}
|
|
51
|
+
const T = `arkynMaskedInput ${m ? "hasPrefix" : ""} ${p ? "hasSuffix" : ""} ${z} ${F} ${i || h || o ? "opacity" : ""} ${q ? "errored" : ""} ${W ? "focused" : ""}`;
|
|
52
|
+
return /* @__PURE__ */ $(re, { className: R, children: [
|
|
53
|
+
d && /* @__PURE__ */ e(se, { showAsterisk: A, htmlFor: k, children: d }),
|
|
54
|
+
/* @__PURE__ */ $(
|
|
55
|
+
"section",
|
|
56
|
+
{
|
|
57
|
+
title: y,
|
|
58
|
+
style: v,
|
|
59
|
+
onClick: J,
|
|
60
|
+
className: T,
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ e(r, { iconSize: s, icon: m, className: "prefix" }),
|
|
63
|
+
/* @__PURE__ */ e(
|
|
64
|
+
r,
|
|
65
|
+
{
|
|
66
|
+
show: G,
|
|
67
|
+
iconSize: s,
|
|
68
|
+
className: "spinner",
|
|
69
|
+
icon: M
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ e(r, { show: !o, icon: j, iconSize: s }),
|
|
73
|
+
/* @__PURE__ */ e(
|
|
74
|
+
U,
|
|
75
|
+
{
|
|
76
|
+
component: ne,
|
|
77
|
+
mask: L,
|
|
78
|
+
replacement: C,
|
|
79
|
+
separate: B,
|
|
80
|
+
showMask: P,
|
|
81
|
+
ref: n,
|
|
82
|
+
onFocus: K,
|
|
83
|
+
onBlur: Q,
|
|
84
|
+
disabled: i,
|
|
85
|
+
readOnly: h,
|
|
86
|
+
id: k,
|
|
87
|
+
name: t,
|
|
88
|
+
defaultValue: V || void 0,
|
|
89
|
+
placeholder: i && I || S,
|
|
90
|
+
value: i ? void 0 : I,
|
|
91
|
+
...O
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
/* @__PURE__ */ e(r, { show: !o, icon: w, iconSize: s }),
|
|
95
|
+
/* @__PURE__ */ e(
|
|
96
|
+
r,
|
|
97
|
+
{
|
|
98
|
+
show: H,
|
|
99
|
+
iconSize: s,
|
|
100
|
+
className: "spinner",
|
|
101
|
+
icon: M
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ e(r, { iconSize: s, icon: p, className: "suffix" })
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
f && /* @__PURE__ */ e(oe, { children: f })
|
|
109
|
+
] });
|
|
110
|
+
}
|
|
111
|
+
export {
|
|
112
|
+
Se as MaskedInput
|
|
113
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as i, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { AnimatePresence as m, motion as s } from "framer-motion";
|
|
3
|
+
import { useScrollLock as d } from "../../../hooks/useScrollLock.js";
|
|
4
|
+
import { ModalProvider as p } from "../modalContext.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
function N(t) {
|
|
7
|
+
const {
|
|
8
|
+
isVisible: a,
|
|
9
|
+
makeInvisible: e,
|
|
10
|
+
children: o,
|
|
11
|
+
className: n = "",
|
|
12
|
+
...r
|
|
13
|
+
} = t;
|
|
14
|
+
d(a);
|
|
15
|
+
const l = `arkynModalContainer ${a ? "visibleTrue" : "visibleFalse"} ${n}`;
|
|
16
|
+
return /* @__PURE__ */ i(p, { makeInvisible: e, children: /* @__PURE__ */ i(m, { children: a && /* @__PURE__ */ c("aside", { className: l.trim(), ...r, children: [
|
|
17
|
+
/* @__PURE__ */ i(
|
|
18
|
+
s.div,
|
|
19
|
+
{
|
|
20
|
+
className: "arkynModalContainerOverlay",
|
|
21
|
+
transition: { duration: 0.15, ease: "easeOut" },
|
|
22
|
+
initial: { opacity: 0 },
|
|
23
|
+
animate: { opacity: 1 },
|
|
24
|
+
exit: { opacity: 0 },
|
|
25
|
+
onClick: e
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ i(
|
|
29
|
+
s.div,
|
|
30
|
+
{
|
|
31
|
+
className: "arkynModalContainerContent",
|
|
32
|
+
transition: { duration: 0.15, ease: "easeOut" },
|
|
33
|
+
initial: { opacity: 0, scale: 0.75 },
|
|
34
|
+
animate: { opacity: 1, scale: 1 },
|
|
35
|
+
exit: { opacity: 0, scale: 0 },
|
|
36
|
+
children: o
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
] }) }) });
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
N as ModalContainer
|
|
43
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as t, createContext as n } from "react";
|
|
3
|
+
const o = n({});
|
|
4
|
+
function d(e) {
|
|
5
|
+
return /* @__PURE__ */ r(o.Provider, { value: { makeInvisible: e.makeInvisible }, children: e.children });
|
|
6
|
+
}
|
|
7
|
+
function l() {
|
|
8
|
+
return t(o);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
d as ModalProvider,
|
|
12
|
+
l as useModal
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
function l(o) {
|
|
4
|
+
const { alignment: t = "right", className: a, ...r } = o, s = `arkynModalFooter ${t} ${a}`;
|
|
5
|
+
return /* @__PURE__ */ e("footer", { className: s.trim(), ...r });
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
l as ModalFooter
|
|
9
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { X as i } from "lucide-react";
|
|
3
|
+
import { useModal as c } from "../modalContext.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
function h(o) {
|
|
6
|
+
const {
|
|
7
|
+
showCloseButton: a = !0,
|
|
8
|
+
className: s,
|
|
9
|
+
children: t,
|
|
10
|
+
...r
|
|
11
|
+
} = o, { makeInvisible: l } = c(), n = `arkynModalHeader ${s}`;
|
|
12
|
+
return /* @__PURE__ */ m("header", { className: n.trim(), ...r, children: [
|
|
13
|
+
t,
|
|
14
|
+
a && /* @__PURE__ */ e(
|
|
15
|
+
"button",
|
|
16
|
+
{
|
|
17
|
+
type: "button",
|
|
18
|
+
onClick: l,
|
|
19
|
+
"aria-label": "Close modal button",
|
|
20
|
+
className: "arkynModalHeaderCloseButton",
|
|
21
|
+
children: /* @__PURE__ */ e(i, { size: 24 })
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
] });
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
h as ModalHeader
|
|
28
|
+
};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { jsx as t, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as ee, useId as te, useState as b } from "react";
|
|
3
|
+
import { useForm as re } from "../../hooks/useForm.js";
|
|
4
|
+
import { FieldTemplate as ne } from "../../services/fieldTemplate.js";
|
|
5
|
+
import { IconRenderer as ie } from "../../services/iconRenderer.js";
|
|
6
|
+
import { MultiSelectChevron as oe } from "./multiSelectChevron/index.js";
|
|
7
|
+
import { MultiSelectContainer as le } from "./multiSelectContainer/index.js";
|
|
8
|
+
import { MultiSelectContent as se } from "./multiSelectContent/index.js";
|
|
9
|
+
import { MultiSelectMark as ce } from "./multiSelectMark/index.js";
|
|
10
|
+
import { MultiSelectOption as ae } from "./multiSelectOption/index.js";
|
|
11
|
+
import { MultiSelectOptionsContainer as fe } from "./multiSelectOptionsContainer/index.js";
|
|
12
|
+
import { MultiSelectOverlay as ue } from "./multiSelectOverlay/index.js";
|
|
13
|
+
import { MultiSelectSpinner as de } from "./multiSelectSpinner/index.js";
|
|
14
|
+
function Ne(d) {
|
|
15
|
+
const {
|
|
16
|
+
name: m,
|
|
17
|
+
options: M,
|
|
18
|
+
className: v = "",
|
|
19
|
+
placeholder: T = "Selecione...",
|
|
20
|
+
closeOnSelect: j = !1,
|
|
21
|
+
defaultValue: B = [],
|
|
22
|
+
errorMessage: E,
|
|
23
|
+
isLoading: l = !1,
|
|
24
|
+
readOnly: p = !1,
|
|
25
|
+
isSearchable: H = !1,
|
|
26
|
+
id: V,
|
|
27
|
+
label: A,
|
|
28
|
+
optionMaxHeight: me,
|
|
29
|
+
showAsterisk: D,
|
|
30
|
+
leftIcon: g,
|
|
31
|
+
onSearch: O,
|
|
32
|
+
onChange: s,
|
|
33
|
+
onBlur: J,
|
|
34
|
+
notFoundText: R = "Sem opções disponíveis",
|
|
35
|
+
onFocus: C,
|
|
36
|
+
disabled: W = !1,
|
|
37
|
+
prefix: x,
|
|
38
|
+
size: c = "md",
|
|
39
|
+
value: q,
|
|
40
|
+
variant: G = "solid",
|
|
41
|
+
unShowFieldTemplate: K = !1,
|
|
42
|
+
orientation: P = "vertical"
|
|
43
|
+
} = d, { fieldErrors: h } = re(), n = ee(null), Q = V || te(), F = E || (h == null ? void 0 : h[m]), U = !!F, a = W || l || p, f = { md: 20, lg: 20 }[c], [I, X] = b(""), [i, w] = b(!1), [o, z] = b(B), u = q || o;
|
|
44
|
+
function L(e) {
|
|
45
|
+
return u.includes(e);
|
|
46
|
+
}
|
|
47
|
+
function Y(e) {
|
|
48
|
+
const r = M.find(($) => $.value === e);
|
|
49
|
+
return (r == null ? void 0 : r.label) || "";
|
|
50
|
+
}
|
|
51
|
+
function Z() {
|
|
52
|
+
a || !(n != null && n.current) || i || (w(!0), n.current.focus(), C && C());
|
|
53
|
+
}
|
|
54
|
+
function N() {
|
|
55
|
+
w(!1), J && n.current && n.current.blur();
|
|
56
|
+
}
|
|
57
|
+
function _(e) {
|
|
58
|
+
X(e), O && O(e);
|
|
59
|
+
}
|
|
60
|
+
function y(e) {
|
|
61
|
+
L(e) ? (z(o.filter((r) => r !== e)), s && s(o.filter((r) => r !== e))) : (z([...o, e]), s && s([...o, e])), j && N();
|
|
62
|
+
}
|
|
63
|
+
const k = M.filter((e) => !!(d.onSearch || !d.isSearchable || e.label.toLowerCase().includes(I.toLowerCase())));
|
|
64
|
+
return /* @__PURE__ */ t(
|
|
65
|
+
ne,
|
|
66
|
+
{
|
|
67
|
+
name: m,
|
|
68
|
+
label: A,
|
|
69
|
+
showAsterisk: D,
|
|
70
|
+
className: v,
|
|
71
|
+
errorMessage: F,
|
|
72
|
+
unShowFieldTemplate: K,
|
|
73
|
+
orientation: P,
|
|
74
|
+
children: /* @__PURE__ */ S(
|
|
75
|
+
le,
|
|
76
|
+
{
|
|
77
|
+
handleContainerFocus: Z,
|
|
78
|
+
disabled: a,
|
|
79
|
+
isError: U,
|
|
80
|
+
isFocused: i,
|
|
81
|
+
isLoading: l,
|
|
82
|
+
readOnly: p,
|
|
83
|
+
size: c,
|
|
84
|
+
variant: G,
|
|
85
|
+
prefixExists: !!x,
|
|
86
|
+
id: Q,
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ t(
|
|
89
|
+
"input",
|
|
90
|
+
{
|
|
91
|
+
ref: n,
|
|
92
|
+
name: m,
|
|
93
|
+
value: JSON.stringify(u),
|
|
94
|
+
type: "hidden"
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
/* @__PURE__ */ t(ie, { iconSize: f, icon: x, className: "prefix" }),
|
|
98
|
+
g && /* @__PURE__ */ t(g, { size: f, strokeWidth: 2.5 }),
|
|
99
|
+
/* @__PURE__ */ S(se, { size: c, children: [
|
|
100
|
+
u.map((e) => /* @__PURE__ */ t(
|
|
101
|
+
ce,
|
|
102
|
+
{
|
|
103
|
+
label: Y(e),
|
|
104
|
+
value: e,
|
|
105
|
+
handleChangeValue: y,
|
|
106
|
+
disabled: a
|
|
107
|
+
},
|
|
108
|
+
e
|
|
109
|
+
)),
|
|
110
|
+
u.length <= 0 && /* @__PURE__ */ t("p", { children: T })
|
|
111
|
+
] }),
|
|
112
|
+
/* @__PURE__ */ S(
|
|
113
|
+
fe,
|
|
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
|
+
);
|
|
152
|
+
}
|
|
153
|
+
export {
|
|
154
|
+
Ne as MultiSelect
|
|
155
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as e, Fragment as c } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronDown as a } from "lucide-react";
|
|
3
|
+
/* empty css */
|
|
4
|
+
function g(n) {
|
|
5
|
+
const { iconSize: t, isLoading: o, disabled: i, readOnly: r, isFocused: s } = n, m = `arkynMultiSelectChevron ${i || r ? "notAnimate" : ""} ${s ? "focused" : ""}`;
|
|
6
|
+
return o ? /* @__PURE__ */ e(c, {}) : /* @__PURE__ */ e(
|
|
7
|
+
a,
|
|
8
|
+
{
|
|
9
|
+
className: m,
|
|
10
|
+
strokeWidth: 2.5,
|
|
11
|
+
style: {
|
|
12
|
+
minWidth: t,
|
|
13
|
+
minHeight: t,
|
|
14
|
+
maxWidth: t,
|
|
15
|
+
maxHeight: t
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
g as MultiSelectChevron
|
|
22
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
function P(e) {
|
|
4
|
+
const {
|
|
5
|
+
children: r,
|
|
6
|
+
handleContainerFocus: o,
|
|
7
|
+
disabled: i,
|
|
8
|
+
isError: s,
|
|
9
|
+
isLoading: t,
|
|
10
|
+
isFocused: n,
|
|
11
|
+
className: c,
|
|
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
|
+
);
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
P as MultiSelectContainer
|
|
30
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
function l(t) {
|
|
4
|
+
const { children: e, size: n } = t, o = `arkynMultiSelectContent ${n}`;
|
|
5
|
+
return /* @__PURE__ */ i("div", { className: o, children: e });
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
l as MultiSelectContent
|
|
9
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { X as c } from "lucide-react";
|
|
3
|
+
/* empty css */
|
|
4
|
+
function d(e) {
|
|
5
|
+
const { label: l, value: o, disabled: r, handleChangeValue: a } = e;
|
|
6
|
+
return /* @__PURE__ */ i("div", { className: "arkynMultiSelectMark", children: [
|
|
7
|
+
l,
|
|
8
|
+
/* @__PURE__ */ t(
|
|
9
|
+
"button",
|
|
10
|
+
{
|
|
11
|
+
disabled: r,
|
|
12
|
+
type: "button",
|
|
13
|
+
onClick: (n) => {
|
|
14
|
+
n.stopPropagation(), a(o);
|
|
15
|
+
},
|
|
16
|
+
children: /* @__PURE__ */ t(c, {})
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
] });
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
d as MultiSelectMark
|
|
23
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Check as p } from "lucide-react";
|
|
3
|
+
/* empty css */
|
|
4
|
+
function d(t) {
|
|
5
|
+
const { label: i, optionHasSelected: o, handleChangeValue: n, value: e, size: c } = t, l = o(e) ? "active" : "", a = `arkynMultiSelectOption ${c} ${l}`;
|
|
6
|
+
return /* @__PURE__ */ s("div", { onClick: () => n(e), className: a, children: [
|
|
7
|
+
i,
|
|
8
|
+
" ",
|
|
9
|
+
/* @__PURE__ */ r(p, {})
|
|
10
|
+
] });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
d as MultiSelectOption
|
|
14
|
+
};
|