@arkyn/components 3.0.1-beta.170 → 3.0.1-beta.173
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/alert/alertContainer/index.d.ts +48 -0
- package/dist/components/alert/alertContainer/index.d.ts.map +1 -0
- package/dist/components/alert/alertContent/index.d.ts +24 -0
- package/dist/components/alert/alertContent/index.d.ts.map +1 -0
- package/dist/components/alert/alertDescription/index.d.ts +23 -0
- package/dist/components/alert/alertDescription/index.d.ts.map +1 -0
- package/dist/components/alert/alertIcon/index.d.ts +30 -0
- package/dist/components/alert/alertIcon/index.d.ts.map +1 -0
- package/dist/components/alert/alertTitle/index.d.ts +25 -0
- package/dist/components/alert/alertTitle/index.d.ts.map +1 -0
- package/dist/components/audioPlayer/index.d.ts +51 -0
- package/dist/components/audioPlayer/index.d.ts.map +1 -0
- package/dist/components/audioUpload/hasFileContent/index.d.ts +13 -0
- package/dist/components/audioUpload/hasFileContent/index.d.ts.map +1 -0
- package/dist/components/audioUpload/index.d.ts +71 -0
- package/dist/components/audioUpload/index.d.ts.map +1 -0
- package/dist/components/audioUpload/noFileContent/index.d.ts +12 -0
- package/dist/components/audioUpload/noFileContent/index.d.ts.map +1 -0
- package/dist/components/badge/index.d.ts +60 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/button/index.d.ts +70 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/calendar/_calendarProvider.d.ts +52 -0
- package/dist/components/calendar/_calendarProvider.d.ts.map +1 -0
- package/dist/components/calendar/_viewService.d.ts +32 -0
- package/dist/components/calendar/_viewService.d.ts.map +1 -0
- package/dist/components/calendar/calendarContainer/index.d.ts +8 -0
- package/dist/components/calendar/calendarContainer/index.d.ts.map +1 -0
- package/dist/components/calendar/calendarHeader/index.d.ts +7 -0
- package/dist/components/calendar/calendarHeader/index.d.ts.map +1 -0
- package/dist/components/calendar/calendarTableBody/index.d.ts +4 -0
- package/dist/components/calendar/calendarTableBody/index.d.ts.map +1 -0
- package/dist/components/calendar/calendarTableContainer/index.d.ts +8 -0
- package/dist/components/calendar/calendarTableContainer/index.d.ts.map +1 -0
- package/dist/components/calendar/calendarTableHeader/index.d.ts +4 -0
- package/dist/components/calendar/calendarTableHeader/index.d.ts.map +1 -0
- package/dist/components/calendar/calendarTableTd/index.d.ts +11 -0
- package/dist/components/calendar/calendarTableTd/index.d.ts.map +1 -0
- package/dist/components/calendar/index.d.ts +100 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/cardTab/cardTabButton/index.d.ts +34 -0
- package/dist/components/cardTab/cardTabButton/index.d.ts.map +1 -0
- package/dist/components/cardTab/cardTabContainer/index.d.ts +41 -0
- package/dist/components/cardTab/cardTabContainer/index.d.ts.map +1 -0
- package/dist/components/cardTab/cardTabContext.d.ts +16 -0
- package/dist/components/cardTab/cardTabContext.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +80 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/clientOnly.d.ts +33 -0
- package/dist/components/clientOnly.d.ts.map +1 -0
- package/dist/components/currencyInput/index.d.ts +120 -0
- package/dist/components/currencyInput/index.d.ts.map +1 -0
- package/dist/components/divider/index.d.ts +32 -0
- package/dist/components/divider/index.d.ts.map +1 -0
- package/dist/components/drawer/drawerContainer/index.d.ts +37 -0
- package/dist/components/drawer/drawerContainer/index.d.ts.map +1 -0
- package/dist/components/drawer/drawerContext.d.ts +12 -0
- package/dist/components/drawer/drawerContext.d.ts.map +1 -0
- package/dist/components/drawer/drawerHeader/index.d.ts +31 -0
- package/dist/components/drawer/drawerHeader/index.d.ts.map +1 -0
- package/dist/components/facebookPixel/facebookPixel.client.d.ts +4 -0
- package/dist/components/facebookPixel/facebookPixel.client.d.ts.map +1 -0
- package/dist/components/facebookPixel/index.d.ts +65 -0
- package/dist/components/facebookPixel/index.d.ts.map +1 -0
- package/dist/components/facebookPixel/pixel.d.ts +21 -0
- package/dist/components/facebookPixel/pixel.d.ts.map +1 -0
- package/dist/components/fieldError/index.d.ts +22 -0
- package/dist/components/fieldError/index.d.ts.map +1 -0
- package/dist/components/fieldLabel/index.d.ts +23 -0
- package/dist/components/fieldLabel/index.d.ts.map +1 -0
- package/dist/components/fieldWrapper/index.d.ts +33 -0
- package/dist/components/fieldWrapper/index.d.ts.map +1 -0
- package/dist/components/fileUpload/hasFileContent/index.d.ts +13 -0
- package/dist/components/fileUpload/hasFileContent/index.d.ts.map +1 -0
- package/dist/components/fileUpload/index.d.ts +69 -0
- package/dist/components/fileUpload/index.d.ts.map +1 -0
- package/dist/components/fileUpload/noFileContent/index.d.ts +12 -0
- package/dist/components/fileUpload/noFileContent/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/_fullCalendarProvider.d.ts +44 -0
- package/dist/components/fullCalendar/_fullCalendarProvider.d.ts.map +1 -0
- package/dist/components/fullCalendar/_viewService.d.ts +28 -0
- package/dist/components/fullCalendar/_viewService.d.ts.map +1 -0
- package/dist/components/fullCalendar/dayCalendar/dayCalendarContainer/index.d.ts +8 -0
- package/dist/components/fullCalendar/dayCalendar/dayCalendarContainer/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/dayCalendar/dayCalendarEvent/index.d.ts +7 -0
- package/dist/components/fullCalendar/dayCalendar/dayCalendarEvent/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/dayCalendar/dayCalendarRow/index.d.ts +8 -0
- package/dist/components/fullCalendar/dayCalendar/dayCalendarRow/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/dayCalendar/index.d.ts +3 -0
- package/dist/components/fullCalendar/dayCalendar/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/fullCalendarContainer/index.d.ts +8 -0
- package/dist/components/fullCalendar/fullCalendarContainer/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/fullCalendarHeader/index.d.ts +8 -0
- package/dist/components/fullCalendar/fullCalendarHeader/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/index.d.ts +94 -0
- package/dist/components/fullCalendar/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/monthlyCalendar/index.d.ts +3 -0
- package/dist/components/fullCalendar/monthlyCalendar/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.d.ts +9 -0
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.d.ts +4 -0
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.d.ts +8 -0
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.d.ts +4 -0
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.d.ts +10 -0
- package/dist/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/weekCalendar/index.d.ts +3 -0
- package/dist/components/fullCalendar/weekCalendar/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/weekCalendar/weekCalendarEvent/index.d.ts +10 -0
- package/dist/components/fullCalendar/weekCalendar/weekCalendarEvent/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.d.ts +4 -0
- package/dist/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.d.ts +8 -0
- package/dist/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.d.ts +4 -0
- package/dist/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.d.ts.map +1 -0
- package/dist/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.d.ts +11 -0
- package/dist/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.d.ts.map +1 -0
- package/dist/components/googleAnalytics/googleAnalytics.client.d.ts +6 -0
- package/dist/components/googleAnalytics/googleAnalytics.client.d.ts.map +1 -0
- package/dist/components/googleAnalytics/googleAnalytics.d.ts +10 -0
- package/dist/components/googleAnalytics/googleAnalytics.d.ts.map +1 -0
- package/dist/components/googleAnalytics/index.d.ts +30 -0
- package/dist/components/googleAnalytics/index.d.ts.map +1 -0
- package/dist/components/googleAnalytics/snippets/generateGAElements.d.ts +9 -0
- package/dist/components/googleAnalytics/snippets/generateGAElements.d.ts.map +1 -0
- package/dist/components/googleTagManager/googleTagManager.client.d.ts +11 -0
- package/dist/components/googleTagManager/googleTagManager.client.d.ts.map +1 -0
- package/dist/components/googleTagManager/googleTagManager.d.ts +20 -0
- package/dist/components/googleTagManager/googleTagManager.d.ts.map +1 -0
- package/dist/components/googleTagManager/index.d.ts +55 -0
- package/dist/components/googleTagManager/index.d.ts.map +1 -0
- package/dist/components/googleTagManager/snippets/appendToDataLayer.d.ts +7 -0
- package/dist/components/googleTagManager/snippets/appendToDataLayer.d.ts.map +1 -0
- package/dist/components/googleTagManager/snippets/generateGTMElements.d.ts +15 -0
- package/dist/components/googleTagManager/snippets/generateGTMElements.d.ts.map +1 -0
- package/dist/components/iconButton/index.d.ts +60 -0
- package/dist/components/iconButton/index.d.ts.map +1 -0
- package/dist/components/imageUpload/hasFileContent/index.d.ts +13 -0
- package/dist/components/imageUpload/hasFileContent/index.d.ts.map +1 -0
- package/dist/components/imageUpload/index.d.ts +92 -0
- package/dist/components/imageUpload/index.d.ts.map +1 -0
- package/dist/components/imageUpload/noFileContent/index.d.ts +12 -0
- package/dist/components/imageUpload/noFileContent/index.d.ts.map +1 -0
- package/dist/components/input/index.d.ts +94 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/mapView/index.d.ts +61 -0
- package/dist/components/mapView/index.d.ts.map +1 -0
- package/dist/components/mapView/mapView.client.d.ts +17 -0
- package/dist/components/mapView/mapView.client.d.ts.map +1 -0
- package/dist/components/maskedInput/index.d.ts +120 -0
- package/dist/components/maskedInput/index.d.ts.map +1 -0
- package/dist/components/modal/modalContainer/index.d.ts +38 -0
- package/dist/components/modal/modalContainer/index.d.ts.map +1 -0
- package/dist/components/modal/modalContext.d.ts +12 -0
- package/dist/components/modal/modalContext.d.ts.map +1 -0
- package/dist/components/modal/modalFooter/index.d.ts +39 -0
- package/dist/components/modal/modalFooter/index.d.ts.map +1 -0
- package/dist/components/modal/modalHeader/index.d.ts +32 -0
- package/dist/components/modal/modalHeader/index.d.ts.map +1 -0
- package/dist/components/multiSelect/index.d.ts +134 -0
- package/dist/components/multiSelect/index.d.ts.map +1 -0
- package/dist/components/multiSelect/multiSelectChevron/index.d.ts +11 -0
- package/dist/components/multiSelect/multiSelectChevron/index.d.ts.map +1 -0
- package/dist/components/multiSelect/multiSelectContainer/index.d.ts +19 -0
- package/dist/components/multiSelect/multiSelectContainer/index.d.ts.map +1 -0
- package/dist/components/multiSelect/multiSelectContent/index.d.ts +9 -0
- package/dist/components/multiSelect/multiSelectContent/index.d.ts.map +1 -0
- package/dist/components/multiSelect/multiSelectMark/index.d.ts +10 -0
- package/dist/components/multiSelect/multiSelectMark/index.d.ts.map +1 -0
- package/dist/components/multiSelect/multiSelectOption/index.d.ts +11 -0
- package/dist/components/multiSelect/multiSelectOption/index.d.ts.map +1 -0
- package/dist/components/multiSelect/multiSelectOptionsContainer/index.d.ts +12 -0
- package/dist/components/multiSelect/multiSelectOptionsContainer/index.d.ts.map +1 -0
- package/dist/components/multiSelect/multiSelectOverlay/index.d.ts +8 -0
- package/dist/components/multiSelect/multiSelectOverlay/index.d.ts.map +1 -0
- package/dist/components/multiSelect/multiSelectSpinner/index.d.ts +8 -0
- package/dist/components/multiSelect/multiSelectSpinner/index.d.ts.map +1 -0
- package/dist/components/pagination/chevronButton/index.d.ts +9 -0
- package/dist/components/pagination/chevronButton/index.d.ts.map +1 -0
- package/dist/components/pagination/currentButton/index.d.ts +7 -0
- package/dist/components/pagination/currentButton/index.d.ts.map +1 -0
- package/dist/components/pagination/index.d.ts +60 -0
- package/dist/components/pagination/index.d.ts.map +1 -0
- package/dist/components/pagination/pageButton/index.d.ts +8 -0
- package/dist/components/pagination/pageButton/index.d.ts.map +1 -0
- package/dist/components/pagination/paginationService.d.ts +26 -0
- package/dist/components/pagination/paginationService.d.ts.map +1 -0
- package/dist/components/pagination/spread/index.d.ts +4 -0
- package/dist/components/pagination/spread/index.d.ts.map +1 -0
- package/dist/components/phoneInput/index.d.ts +106 -0
- package/dist/components/phoneInput/index.d.ts.map +1 -0
- package/dist/components/phoneInput/phoneInputContainer/index.d.ts +17 -0
- package/dist/components/phoneInput/phoneInputContainer/index.d.ts.map +1 -0
- package/dist/components/phoneInput/phoneInputCountriesOverlay/index.d.ts +8 -0
- package/dist/components/phoneInput/phoneInputCountriesOverlay/index.d.ts.map +1 -0
- package/dist/components/phoneInput/phoneInputCountryOption/index.d.ts +17 -0
- package/dist/components/phoneInput/phoneInputCountryOption/index.d.ts.map +1 -0
- package/dist/components/phoneInput/phoneInputCountryOptionsContainer/index.d.ts +12 -0
- package/dist/components/phoneInput/phoneInputCountryOptionsContainer/index.d.ts.map +1 -0
- package/dist/components/phoneInput/phoneInputCountrySelector/index.d.ts +16 -0
- package/dist/components/phoneInput/phoneInputCountrySelector/index.d.ts.map +1 -0
- package/dist/components/phoneInput/phoneInputMask/index.d.ts +22 -0
- package/dist/components/phoneInput/phoneInputMask/index.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts +66 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/radio/radioBox/index.d.ts +37 -0
- package/dist/components/radio/radioBox/index.d.ts.map +1 -0
- package/dist/components/radio/radioContext.d.ts +20 -0
- package/dist/components/radio/radioContext.d.ts.map +1 -0
- package/dist/components/radio/radioGroup/index.d.ts +66 -0
- package/dist/components/radio/radioGroup/index.d.ts.map +1 -0
- package/dist/components/richText/blockButton/index.d.ts +10 -0
- package/dist/components/richText/blockButton/index.d.ts.map +1 -0
- package/dist/components/richText/element/index.d.ts +5 -0
- package/dist/components/richText/element/index.d.ts.map +1 -0
- package/dist/components/richText/index.d.ts +54 -0
- package/dist/components/richText/index.d.ts.map +1 -0
- package/dist/components/richText/insertImage/index.d.ts +5 -0
- package/dist/components/richText/insertImage/index.d.ts.map +1 -0
- package/dist/components/richText/insertVideo/index.d.ts +5 -0
- package/dist/components/richText/insertVideo/index.d.ts.map +1 -0
- package/dist/components/richText/leaf/index.d.ts +4 -0
- package/dist/components/richText/leaf/index.d.ts.map +1 -0
- package/dist/components/richText/markButton/index.d.ts +10 -0
- package/dist/components/richText/markButton/index.d.ts.map +1 -0
- package/dist/components/richText/toolbar/index.d.ts +8 -0
- package/dist/components/richText/toolbar/index.d.ts.map +1 -0
- package/dist/components/searchPlaces.d.ts +73 -0
- package/dist/components/searchPlaces.d.ts.map +1 -0
- package/dist/components/select/index.d.ts +134 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/selectChevron/index.d.ts +11 -0
- package/dist/components/select/selectChevron/index.d.ts.map +1 -0
- package/dist/components/select/selectContainer/index.d.ts +19 -0
- package/dist/components/select/selectContainer/index.d.ts.map +1 -0
- package/dist/components/select/selectContent/index.d.ts +9 -0
- package/dist/components/select/selectContent/index.d.ts.map +1 -0
- package/dist/components/select/selectOption/index.d.ts +11 -0
- package/dist/components/select/selectOption/index.d.ts.map +1 -0
- package/dist/components/select/selectOptionsContainer/index.d.ts +12 -0
- package/dist/components/select/selectOptionsContainer/index.d.ts.map +1 -0
- package/dist/components/select/selectOverlay/index.d.ts +8 -0
- package/dist/components/select/selectOverlay/index.d.ts.map +1 -0
- package/dist/components/select/selectSpinner/index.d.ts +8 -0
- package/dist/components/select/selectSpinner/index.d.ts.map +1 -0
- package/dist/components/slider/index.d.ts +43 -0
- package/dist/components/slider/index.d.ts.map +1 -0
- package/dist/components/switch/index.d.ts +84 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/tab/tabButton/index.d.ts +34 -0
- package/dist/components/tab/tabButton/index.d.ts.map +1 -0
- package/dist/components/tab/tabContainer/index.d.ts +41 -0
- package/dist/components/tab/tabContainer/index.d.ts.map +1 -0
- package/dist/components/tab/tabContext.d.ts +16 -0
- package/dist/components/tab/tabContext.d.ts.map +1 -0
- package/dist/components/table/tableBody/index.d.ts +33 -0
- package/dist/components/table/tableBody/index.d.ts.map +1 -0
- package/dist/components/table/tableCaption/index.d.ts +22 -0
- package/dist/components/table/tableCaption/index.d.ts.map +1 -0
- package/dist/components/table/tableContainer/index.d.ts +35 -0
- package/dist/components/table/tableContainer/index.d.ts.map +1 -0
- package/dist/components/table/tableFooter/index.d.ts +21 -0
- package/dist/components/table/tableFooter/index.d.ts.map +1 -0
- package/dist/components/table/tableHeader/index.d.ts +23 -0
- package/dist/components/table/tableHeader/index.d.ts.map +1 -0
- package/dist/components/textarea/index.d.ts +73 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.d.ts +52 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/hooks/useAutomation.d.ts +39 -0
- package/dist/hooks/useAutomation.d.ts.map +1 -0
- package/dist/hooks/useDrawer.d.ts +41 -0
- package/dist/hooks/useDrawer.d.ts.map +1 -0
- package/dist/hooks/useForm.d.ts +35 -0
- package/dist/hooks/useForm.d.ts.map +1 -0
- package/dist/hooks/useHydrated.d.ts +21 -0
- package/dist/hooks/useHydrated.d.ts.map +1 -0
- package/dist/hooks/useModal.d.ts +41 -0
- package/dist/hooks/useModal.d.ts.map +1 -0
- package/dist/hooks/useScopedParams.d.ts +37 -0
- package/dist/hooks/useScopedParams.d.ts.map +1 -0
- package/dist/hooks/useScrollLock.d.ts +23 -0
- package/dist/hooks/useScrollLock.d.ts.map +1 -0
- package/dist/hooks/useSearchAutomation.d.ts +31 -0
- package/dist/hooks/useSearchAutomation.d.ts.map +1 -0
- package/dist/hooks/useSlider.d.ts +17 -0
- package/dist/hooks/useSlider.d.ts.map +1 -0
- package/dist/hooks/useToast.d.ts +26 -0
- package/dist/hooks/useToast.d.ts.map +1 -0
- package/dist/index.d.ts +72 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4392 -0
- package/dist/modules/components/alert/alertContainer/index.js +27 -0
- package/dist/modules/components/alert/alertContent/index.js +12 -0
- package/dist/modules/components/alert/alertDescription/index.js +12 -0
- package/dist/modules/components/alert/alertIcon/index.js +28 -0
- package/dist/modules/components/alert/alertTitle/index.js +12 -0
- package/dist/modules/components/audioPlayer/index.js +75 -0
- package/dist/modules/components/audioUpload/hasFileContent/index.js +55 -0
- package/dist/modules/components/audioUpload/index.js +72 -0
- package/dist/modules/components/audioUpload/noFileContent/index.js +36 -0
- package/dist/modules/components/badge/index.js +27 -0
- package/dist/modules/components/button/index.js +40 -0
- package/dist/modules/components/calendar/_calendarProvider.js +40 -0
- package/dist/modules/components/calendar/_viewService.js +133 -0
- package/dist/modules/components/calendar/calendarContainer/index.js +11 -0
- package/dist/modules/components/calendar/calendarHeader/index.js +56 -0
- package/dist/modules/components/calendar/calendarTableBody/index.js +13 -0
- package/dist/modules/components/calendar/calendarTableContainer/index.js +11 -0
- package/dist/modules/components/calendar/calendarTableHeader/index.js +14 -0
- package/dist/modules/components/calendar/calendarTableTd/index.js +21 -0
- package/dist/modules/components/calendar/index.js +32 -0
- package/dist/modules/components/cardTab/cardTabButton/index.js +20 -0
- package/dist/modules/components/cardTab/cardTabContainer/index.js +23 -0
- package/dist/modules/components/cardTab/cardTabContext.js +15 -0
- package/dist/modules/components/checkbox/index.js +38 -0
- package/dist/modules/components/clientOnly.js +8 -0
- package/dist/modules/components/currencyInput/index.js +112 -0
- package/dist/modules/components/divider/index.js +12 -0
- package/dist/modules/components/drawer/drawerContainer/index.js +41 -0
- package/dist/modules/components/drawer/drawerContext.js +15 -0
- package/dist/modules/components/drawer/drawerHeader/index.js +21 -0
- package/dist/modules/components/facebookPixel/facebookPixel.client.js +8 -0
- package/dist/modules/components/facebookPixel/index.js +9 -0
- package/dist/modules/components/facebookPixel/pixel.js +48 -0
- package/dist/modules/components/fieldError/index.js +13 -0
- package/dist/modules/components/fieldLabel/index.js +12 -0
- package/dist/modules/components/fieldWrapper/index.js +13 -0
- package/dist/modules/components/fileUpload/hasFileContent/index.js +60 -0
- package/dist/modules/components/fileUpload/index.js +66 -0
- package/dist/modules/components/fileUpload/noFileContent/index.js +36 -0
- package/dist/modules/components/fullCalendar/_fullCalendarProvider.js +35 -0
- package/dist/modules/components/fullCalendar/_viewService.js +101 -0
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +11 -0
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +71 -0
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +29 -0
- package/dist/modules/components/fullCalendar/dayCalendar/index.js +14 -0
- package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js +11 -0
- package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js +69 -0
- package/dist/modules/components/fullCalendar/index.js +31 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/index.js +10 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +29 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +13 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +11 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +14 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +36 -0
- package/dist/modules/components/fullCalendar/weekCalendar/index.js +10 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +71 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +18 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +11 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +17 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +35 -0
- package/dist/modules/components/googleAnalytics/googleAnalytics.client.js +7 -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 +14 -0
- package/dist/modules/components/googleTagManager/googleTagManager.client.js +7 -0
- package/dist/modules/components/googleTagManager/googleTagManager.js +45 -0
- package/dist/modules/components/googleTagManager/index.js +17 -0
- package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js +9 -0
- package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js +23 -0
- package/dist/modules/components/iconButton/index.js +32 -0
- package/dist/modules/components/imageUpload/hasFileContent/index.js +47 -0
- package/dist/modules/components/imageUpload/index.js +66 -0
- package/dist/modules/components/imageUpload/noFileContent/index.js +36 -0
- package/dist/modules/components/input/index.js +93 -0
- package/dist/modules/components/mapView/index.js +29 -0
- package/dist/modules/components/mapView/mapView.client.js +56 -0
- package/dist/modules/components/maskedInput/index.js +102 -0
- package/dist/modules/components/modal/modalContainer/index.js +50 -0
- package/dist/modules/components/modal/modalContext.js +15 -0
- package/dist/modules/components/modal/modalFooter/index.js +12 -0
- package/dist/modules/components/modal/modalHeader/index.js +21 -0
- package/dist/modules/components/multiSelect/index.js +116 -0
- package/dist/modules/components/multiSelect/multiSelectChevron/index.js +19 -0
- package/dist/modules/components/multiSelect/multiSelectContainer/index.js +14 -0
- package/dist/modules/components/multiSelect/multiSelectContent/index.js +12 -0
- package/dist/modules/components/multiSelect/multiSelectMark/index.js +20 -0
- package/dist/modules/components/multiSelect/multiSelectOption/index.js +18 -0
- package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js +36 -0
- package/dist/modules/components/multiSelect/multiSelectOverlay/index.js +12 -0
- package/dist/modules/components/multiSelect/multiSelectSpinner/index.js +14 -0
- package/dist/modules/components/pagination/chevronButton/index.js +19 -0
- package/dist/modules/components/pagination/currentButton/index.js +13 -0
- package/dist/modules/components/pagination/index.js +52 -0
- package/dist/modules/components/pagination/pageButton/index.js +14 -0
- package/dist/modules/components/pagination/paginationService.js +34 -0
- package/dist/modules/components/pagination/spread/index.js +12 -0
- package/dist/modules/components/phoneInput/index.js +104 -0
- package/dist/modules/components/phoneInput/phoneInputContainer/index.js +13 -0
- package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js +12 -0
- package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js +24 -0
- package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js +34 -0
- package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js +26 -0
- package/dist/modules/components/phoneInput/phoneInputMask/index.js +50 -0
- package/dist/modules/components/popover/index.js +38 -0
- package/dist/modules/components/radio/radioBox/index.js +25 -0
- package/dist/modules/components/radio/radioContext.js +22 -0
- package/dist/modules/components/radio/radioGroup/index.js +42 -0
- package/dist/modules/components/richText/blockButton/index.js +21 -0
- package/dist/modules/components/richText/element/index.js +73 -0
- package/dist/modules/components/richText/index.js +144 -0
- package/dist/modules/components/richText/insertImage/index.js +95 -0
- package/dist/modules/components/richText/insertVideo/index.js +86 -0
- package/dist/modules/components/richText/leaf/index.js +10 -0
- package/dist/modules/components/richText/markButton/index.js +20 -0
- package/dist/modules/components/richText/toolbar/index.js +11 -0
- package/dist/modules/components/searchPlaces.js +58 -0
- package/dist/modules/components/select/index.js +113 -0
- package/dist/modules/components/select/selectChevron/index.js +19 -0
- package/dist/modules/components/select/selectContainer/index.js +14 -0
- package/dist/modules/components/select/selectContent/index.js +12 -0
- package/dist/modules/components/select/selectOption/index.js +18 -0
- package/dist/modules/components/select/selectOptionsContainer/index.js +36 -0
- package/dist/modules/components/select/selectOverlay/index.js +12 -0
- package/dist/modules/components/select/selectSpinner/index.js +14 -0
- package/dist/modules/components/slider/index.js +44 -0
- package/dist/modules/components/switch/index.js +36 -0
- package/dist/modules/components/tab/tabButton/index.js +20 -0
- package/dist/modules/components/tab/tabContainer/index.js +23 -0
- package/dist/modules/components/tab/tabContext.js +15 -0
- package/dist/modules/components/table/tableBody/index.js +20 -0
- package/dist/modules/components/table/tableCaption/index.js +16 -0
- package/dist/modules/components/table/tableContainer/index.js +13 -0
- package/dist/modules/components/table/tableFooter/index.js +19 -0
- package/dist/modules/components/table/tableHeader/index.js +13 -0
- package/dist/modules/components/textarea/index.js +52 -0
- package/dist/modules/components/tooltip/index.js +35 -0
- package/dist/modules/hooks/useAutomation.js +45 -0
- package/dist/modules/hooks/useDrawer.js +18 -0
- package/dist/modules/hooks/useForm.js +8 -0
- package/dist/modules/hooks/useHydrated.js +10 -0
- package/dist/modules/hooks/useModal.js +18 -0
- package/dist/modules/hooks/useScopedParams.js +18 -0
- package/dist/modules/hooks/useScrollLock.js +21 -0
- package/dist/modules/hooks/useSearchAutomation.js +34 -0
- package/dist/modules/hooks/useSlider.js +14 -0
- package/dist/modules/hooks/useToast.js +10 -0
- package/dist/modules/index.js +72 -0
- package/dist/modules/providers/drawerProvider.js +36 -0
- package/dist/modules/providers/formProvider.js +13 -0
- package/dist/modules/providers/modalProvider.js +40 -0
- package/dist/modules/providers/placesProvider.js +18 -0
- package/dist/modules/providers/toastProvider.js +46 -0
- package/dist/modules/services/extractTextFromNode.js +7 -0
- package/dist/modules/services/fieldTemplate.js +23 -0
- package/dist/modules/services/iconRenderer.js +15 -0
- package/dist/modules/services/isBlockActive.js +13 -0
- package/dist/modules/services/isMarkActive.js +8 -0
- package/dist/modules/services/maskCurrencyValues.js +13 -0
- package/dist/modules/services/toHtml.js +7 -0
- package/dist/modules/services/toRichTextValue.js +9 -0
- package/dist/modules/services/toggleBlock.js +21 -0
- package/dist/modules/services/toggleMark.js +8 -0
- package/dist/modules/style.css +2 -0
- package/dist/modules/templates/badResponses.js +14 -0
- package/dist/modules/templates/richTextTemplates.js +17 -0
- package/dist/modules/templates/successResponses.js +9 -0
- package/dist/modules/utils/phoneInputUtilities.js +22 -0
- package/dist/modules/utils/richTextUtilities.js +90 -0
- package/dist/providers/drawerProvider.d.ts +40 -0
- package/dist/providers/drawerProvider.d.ts.map +1 -0
- package/dist/providers/formProvider.d.ts +40 -0
- package/dist/providers/formProvider.d.ts.map +1 -0
- package/dist/providers/modalProvider.d.ts +42 -0
- package/dist/providers/modalProvider.d.ts.map +1 -0
- package/dist/providers/placesProvider.d.ts +32 -0
- package/dist/providers/placesProvider.d.ts.map +1 -0
- package/dist/providers/toastProvider.d.ts +37 -0
- package/dist/providers/toastProvider.d.ts.map +1 -0
- package/dist/services/extractTextFromNode.d.ts +4 -0
- package/dist/services/extractTextFromNode.d.ts.map +1 -0
- package/dist/services/fieldTemplate.d.ts +14 -0
- package/dist/services/fieldTemplate.d.ts.map +1 -0
- package/dist/services/iconRenderer.d.ts +10 -0
- package/dist/services/iconRenderer.d.ts.map +1 -0
- package/dist/services/isBlockActive.d.ts +5 -0
- package/dist/services/isBlockActive.d.ts.map +1 -0
- package/dist/services/isMarkActive.d.ts +5 -0
- package/dist/services/isMarkActive.d.ts.map +1 -0
- package/dist/services/maskCurrencyValues.d.ts +5 -0
- package/dist/services/maskCurrencyValues.d.ts.map +1 -0
- package/dist/services/toHtml.d.ts +21 -0
- package/dist/services/toHtml.d.ts.map +1 -0
- package/dist/services/toRichTextValue.d.ts +22 -0
- package/dist/services/toRichTextValue.d.ts.map +1 -0
- package/dist/services/toggleBlock.d.ts +5 -0
- package/dist/services/toggleBlock.d.ts.map +1 -0
- package/dist/services/toggleMark.d.ts +5 -0
- package/dist/services/toggleMark.d.ts.map +1 -0
- package/dist/style.css +2 -0
- package/dist/templates/badResponses.d.ts +3 -0
- package/dist/templates/badResponses.d.ts.map +1 -0
- package/dist/templates/richTextTemplates.d.ts +10 -0
- package/dist/templates/richTextTemplates.d.ts.map +1 -0
- package/dist/templates/successResponses.d.ts +3 -0
- package/dist/templates/successResponses.d.ts.map +1 -0
- package/dist/types/richTextTypes.d.ts +64 -0
- package/dist/types/richTextTypes.d.ts.map +1 -0
- package/dist/utils/phoneInputUtilities.d.ts +10 -0
- package/dist/utils/phoneInputUtilities.d.ts.map +1 -0
- package/dist/utils/richTextUtilities.d.ts +5 -0
- package/dist/utils/richTextUtilities.d.ts.map +1 -0
- package/package.json +17 -5
|
@@ -0,0 +1,24 @@
|
|
|
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/phoneInput/phoneInputCountryOption/index.tsx
|
|
5
|
+
function r(r) {
|
|
6
|
+
let { country: i, isActive: a, handleChangeValue: o, size: s } = r;
|
|
7
|
+
return /* @__PURE__ */ t("div", {
|
|
8
|
+
onClick: () => o(i),
|
|
9
|
+
className: `arkynPhoneInputCountryOption ${s} ${a ? "active" : ""}`,
|
|
10
|
+
children: [
|
|
11
|
+
/* @__PURE__ */ e("img", {
|
|
12
|
+
src: i.flag,
|
|
13
|
+
alt: i.name,
|
|
14
|
+
className: "flag"
|
|
15
|
+
}),
|
|
16
|
+
i.name,
|
|
17
|
+
" ",
|
|
18
|
+
/* @__PURE__ */ e("span", { children: i.code }),
|
|
19
|
+
/* @__PURE__ */ e(n, { className: "check" })
|
|
20
|
+
]
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { r as PhoneInputCountryOption };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { useScrollLock as e } from "../../../hooks/useScrollLock.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { useEffect as t, useRef as n, useState as r } from "react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/phoneInput/phoneInputCountryOptionsContainer/index.tsx
|
|
6
|
+
function o(o) {
|
|
7
|
+
let { children: s, isOpen: c, onSearch: l, search: u, placeholder: d } = o, f = n(null), [p, m] = r("bottom");
|
|
8
|
+
function h(e) {
|
|
9
|
+
l(e.target.value);
|
|
10
|
+
}
|
|
11
|
+
return e(c), t(() => {
|
|
12
|
+
c && (() => {
|
|
13
|
+
if (!f.current) return;
|
|
14
|
+
let e = f.current.parentElement;
|
|
15
|
+
if (!e) return;
|
|
16
|
+
let t = e.getBoundingClientRect();
|
|
17
|
+
window.innerHeight - t.bottom < 300 && t.top > 300 ? m("top") : m("bottom");
|
|
18
|
+
})();
|
|
19
|
+
}, [c]), c ? /* @__PURE__ */ a("div", {
|
|
20
|
+
className: `arkynPhoneInputCountryOptionsContainer ${p}`,
|
|
21
|
+
ref: f,
|
|
22
|
+
children: [/* @__PURE__ */ i("input", {
|
|
23
|
+
type: "search",
|
|
24
|
+
name: "search-select",
|
|
25
|
+
className: "arkynPhoneInputCountryOptionsContainerSearchSelect",
|
|
26
|
+
value: u,
|
|
27
|
+
id: "input-search",
|
|
28
|
+
placeholder: d,
|
|
29
|
+
onChange: h
|
|
30
|
+
}), s]
|
|
31
|
+
}) : null;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { o as PhoneInputCountryOptionsContainer };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Divider as e } from "../../divider/index.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
import { ChevronDown as r } from "lucide-react";
|
|
5
|
+
//#region src/components/phoneInput/phoneInputCountrySelector/index.tsx
|
|
6
|
+
function i(i) {
|
|
7
|
+
let { currentCountry: a, onClick: o } = i;
|
|
8
|
+
return /* @__PURE__ */ n("div", {
|
|
9
|
+
className: "phoneInputSelectCountry",
|
|
10
|
+
onClick: o,
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ t("img", {
|
|
13
|
+
className: "flag",
|
|
14
|
+
src: a.flag,
|
|
15
|
+
alt: a.name
|
|
16
|
+
}),
|
|
17
|
+
/* @__PURE__ */ t(r, {
|
|
18
|
+
className: "chevronDown",
|
|
19
|
+
strokeWidth: 2.5
|
|
20
|
+
}),
|
|
21
|
+
/* @__PURE__ */ t(e, { orientation: "vertical" })
|
|
22
|
+
]
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { i as PhoneInputCountrySelector };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { MAX_LENGTH as e, TYPES as t, applyMask as n, clear as r, getMask as i } from "../../../utils/phoneInputUtilities.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { forwardRef as a, useEffect as o, useState as s } from "react";
|
|
4
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
5
|
+
import { InputMask as l } from "@react-input/mask";
|
|
6
|
+
//#region src/components/phoneInput/phoneInputMask/index.tsx
|
|
7
|
+
var u = a((e, t) => /* @__PURE__ */ c("input", {
|
|
8
|
+
ref: t,
|
|
9
|
+
...e
|
|
10
|
+
})), d = a((a, d) => {
|
|
11
|
+
let { onFocus: f, readonly: p, onBlur: m, size: h, onChange: g, value: _, currentCountry: v, disabled: y, id: b } = a, [x, S] = s(!1), C = typeof v.mask == "string" ? v.mask : v.mask[0];
|
|
12
|
+
o(() => {
|
|
13
|
+
x ? g(C) : S(!0);
|
|
14
|
+
}, [
|
|
15
|
+
g,
|
|
16
|
+
C,
|
|
17
|
+
x
|
|
18
|
+
]);
|
|
19
|
+
let w = `phoneInputMask ${h}`;
|
|
20
|
+
function T(a) {
|
|
21
|
+
let o = r(a.target.value), s = i(o);
|
|
22
|
+
o.length > e || (o = n(o, t[s]), a.target.value = o, g(o));
|
|
23
|
+
}
|
|
24
|
+
return v.code === "+55" ? /* @__PURE__ */ c("input", {
|
|
25
|
+
id: b,
|
|
26
|
+
value: _,
|
|
27
|
+
onChange: T,
|
|
28
|
+
className: w,
|
|
29
|
+
onFocus: f,
|
|
30
|
+
onBlur: m,
|
|
31
|
+
disabled: y,
|
|
32
|
+
ref: d
|
|
33
|
+
}) : /* @__PURE__ */ c(l, {
|
|
34
|
+
id: b,
|
|
35
|
+
value: _,
|
|
36
|
+
readOnly: p,
|
|
37
|
+
onChange: (e) => g(e.target.value),
|
|
38
|
+
className: w,
|
|
39
|
+
component: u,
|
|
40
|
+
onFocus: f,
|
|
41
|
+
onBlur: m,
|
|
42
|
+
disabled: y,
|
|
43
|
+
mask: C,
|
|
44
|
+
showMask: !0,
|
|
45
|
+
replacement: { _: /\d/ },
|
|
46
|
+
ref: d
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
//#endregion
|
|
50
|
+
export { d as PhoneInputMask };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { useScrollLock as e } from "../../hooks/useScrollLock.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { useState as t } from "react";
|
|
4
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
|
+
import { motion as i } from "framer-motion";
|
|
6
|
+
//#region src/components/popover/index.tsx
|
|
7
|
+
function a(a) {
|
|
8
|
+
let { children: o, button: s, closeOnClick: c, className: l = "", orientation: u = "bottomLeft" } = a, [d, f] = t(!1), p = `arkynPopover ${u} ${d ? "visibleTrue" : "visibleFalse"} ${l}`;
|
|
9
|
+
function m() {
|
|
10
|
+
d || f(!0);
|
|
11
|
+
}
|
|
12
|
+
return e(d), /* @__PURE__ */ r("div", {
|
|
13
|
+
className: p,
|
|
14
|
+
onClick: m,
|
|
15
|
+
children: [
|
|
16
|
+
s,
|
|
17
|
+
/* @__PURE__ */ n(i.div, {
|
|
18
|
+
style: { visibility: d ? "visible" : "hidden" },
|
|
19
|
+
transition: {
|
|
20
|
+
ease: "easeOut",
|
|
21
|
+
duration: 0
|
|
22
|
+
},
|
|
23
|
+
initial: { opacity: 0 },
|
|
24
|
+
animate: { opacity: +!!d },
|
|
25
|
+
exit: { opacity: 0 },
|
|
26
|
+
onClick: () => c && f(!1),
|
|
27
|
+
className: "arkynPopoverContent",
|
|
28
|
+
children: o
|
|
29
|
+
}),
|
|
30
|
+
d && /* @__PURE__ */ n("div", {
|
|
31
|
+
onClick: () => f(!1),
|
|
32
|
+
className: "arkynPopoverOverlay"
|
|
33
|
+
})
|
|
34
|
+
]
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
export { a as Popover };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useRadioGroup as e } from "../radioContext.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/radio/radioBox/index.tsx
|
|
5
|
+
function r(r) {
|
|
6
|
+
let { value: i, size: a, disabled: o, children: s, className: c = "", onClick: l, onFocus: u, ...d } = r, { handleChange: f, size: p, value: m, isError: h, disabled: g } = e(), _ = m === i, v = a || p, y = o || g, b = `arkynRadioBox ${v} ${_ ? "checkedTrue" : "checkedFalse"} ${h ? "errorTrue" : "errorFalse"} ${y ? "disabledTrue" : "disabledFalse"} ${c}`;
|
|
7
|
+
function x(e) {
|
|
8
|
+
l?.(e), f(i);
|
|
9
|
+
}
|
|
10
|
+
function S(e) {
|
|
11
|
+
u?.(e), f(i);
|
|
12
|
+
}
|
|
13
|
+
return /* @__PURE__ */ n("label", {
|
|
14
|
+
className: b.trim(),
|
|
15
|
+
children: [/* @__PURE__ */ t("button", {
|
|
16
|
+
type: "button",
|
|
17
|
+
disabled: y,
|
|
18
|
+
onClick: x,
|
|
19
|
+
onFocus: S,
|
|
20
|
+
...d
|
|
21
|
+
}), s]
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { r as RadioBox };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createContext as e, useContext as t } from "react";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/radio/radioContext.tsx
|
|
4
|
+
var r = e({});
|
|
5
|
+
function i(e) {
|
|
6
|
+
let { children: t, size: i, isError: a, handleChange: o, value: s, disabled: c } = e;
|
|
7
|
+
return /* @__PURE__ */ n(r.Provider, {
|
|
8
|
+
value: {
|
|
9
|
+
handleChange: o,
|
|
10
|
+
value: s,
|
|
11
|
+
size: i,
|
|
12
|
+
isError: a,
|
|
13
|
+
disabled: c
|
|
14
|
+
},
|
|
15
|
+
children: t
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function a() {
|
|
19
|
+
return t(r);
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { i as RadioProvider, a as useRadioGroup };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { useForm as e } from "../../../hooks/useForm.js";
|
|
2
|
+
import { FieldTemplate as t } from "../../../services/fieldTemplate.js";
|
|
3
|
+
import { RadioProvider as n } from "../radioContext.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { useState as r } from "react";
|
|
6
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/radio/radioGroup/index.tsx
|
|
8
|
+
function o(o) {
|
|
9
|
+
let { defaultValue: s = "", name: c, label: l, showAsterisk: u, errorMessage: d, value: f, onChange: p, size: m = "md", className: h = "", disabled: g = !1, unShowFieldTemplate: _ = !1, orientation: v = "vertical", ...y } = o, [b, x] = r(s), { fieldErrors: S } = e();
|
|
10
|
+
function C(e) {
|
|
11
|
+
x(e), p && p(e);
|
|
12
|
+
}
|
|
13
|
+
let w = d || S?.[c], T = !!w, E = `arkynRadioGroup ${m}`;
|
|
14
|
+
return /* @__PURE__ */ i(t, {
|
|
15
|
+
name: c,
|
|
16
|
+
label: l,
|
|
17
|
+
showAsterisk: u,
|
|
18
|
+
className: h,
|
|
19
|
+
errorMessage: w,
|
|
20
|
+
unShowFieldTemplate: _,
|
|
21
|
+
orientation: v,
|
|
22
|
+
children: /* @__PURE__ */ a(n, {
|
|
23
|
+
isError: T,
|
|
24
|
+
size: m,
|
|
25
|
+
value: f || b,
|
|
26
|
+
handleChange: C,
|
|
27
|
+
disabled: g,
|
|
28
|
+
children: [/* @__PURE__ */ i("input", {
|
|
29
|
+
style: { display: "none" },
|
|
30
|
+
type: "text",
|
|
31
|
+
readOnly: !0,
|
|
32
|
+
name: c,
|
|
33
|
+
value: f || b
|
|
34
|
+
}), /* @__PURE__ */ i("div", {
|
|
35
|
+
className: E.trim(),
|
|
36
|
+
...y
|
|
37
|
+
})]
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { o as RadioGroup };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { textAlignTypes as e } from "../../../templates/richTextTemplates.js";
|
|
2
|
+
import { isBlockActive as t } from "../../../services/isBlockActive.js";
|
|
3
|
+
import { toggleBlock as n } from "../../../services/toggleBlock.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
+
import { useSlate as i } from "slate-react";
|
|
7
|
+
//#region src/components/richText/blockButton/index.tsx
|
|
8
|
+
function a({ format: a, icon: o }) {
|
|
9
|
+
let s = i(), c = t(s, a, e.includes(a) ? "align" : "type") ? "activeTrue" : "activeFalse";
|
|
10
|
+
function l(e) {
|
|
11
|
+
e.preventDefault(), n(s, a);
|
|
12
|
+
}
|
|
13
|
+
return /* @__PURE__ */ r("button", {
|
|
14
|
+
type: "button",
|
|
15
|
+
className: `arkynRichTextBlockButton ${c}`,
|
|
16
|
+
onMouseDown: l,
|
|
17
|
+
children: /* @__PURE__ */ r(o, {})
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { a as BlockButton };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/richText/element/index.tsx
|
|
4
|
+
function n({ attributes: n, children: r, element: i }) {
|
|
5
|
+
let a = { textAlign: i.align };
|
|
6
|
+
switch (i.type) {
|
|
7
|
+
case "blockQuote": return /* @__PURE__ */ e("blockquote", {
|
|
8
|
+
className: "arkynElementBlockquote",
|
|
9
|
+
style: a,
|
|
10
|
+
...n,
|
|
11
|
+
children: r
|
|
12
|
+
});
|
|
13
|
+
case "bulletedList": return /* @__PURE__ */ e("ul", {
|
|
14
|
+
className: "arkynElementBulletList",
|
|
15
|
+
style: a,
|
|
16
|
+
...n,
|
|
17
|
+
children: r
|
|
18
|
+
});
|
|
19
|
+
case "headingOne": return /* @__PURE__ */ e("h1", {
|
|
20
|
+
className: "arkynElementHeadingOne",
|
|
21
|
+
style: a,
|
|
22
|
+
...n,
|
|
23
|
+
children: r
|
|
24
|
+
});
|
|
25
|
+
case "headingTwo": return /* @__PURE__ */ e("h2", {
|
|
26
|
+
className: "arkynElementHeadingTwo",
|
|
27
|
+
style: a,
|
|
28
|
+
...n,
|
|
29
|
+
children: r
|
|
30
|
+
});
|
|
31
|
+
case "listItem": return /* @__PURE__ */ e("li", {
|
|
32
|
+
className: "arkynElementListItem",
|
|
33
|
+
style: a,
|
|
34
|
+
...n,
|
|
35
|
+
children: r
|
|
36
|
+
});
|
|
37
|
+
case "numberedList": return /* @__PURE__ */ e("ol", {
|
|
38
|
+
className: "arkynElementNumberedList",
|
|
39
|
+
style: a,
|
|
40
|
+
...n,
|
|
41
|
+
children: r
|
|
42
|
+
});
|
|
43
|
+
case "image": return /* @__PURE__ */ t("div", {
|
|
44
|
+
style: a,
|
|
45
|
+
...n,
|
|
46
|
+
children: [/* @__PURE__ */ e("img", {
|
|
47
|
+
className: "arkynElementImage",
|
|
48
|
+
alt: "arkynElementImage",
|
|
49
|
+
src: i?.src || ""
|
|
50
|
+
}), r]
|
|
51
|
+
});
|
|
52
|
+
case "video": return /* @__PURE__ */ t("div", {
|
|
53
|
+
style: a,
|
|
54
|
+
...n,
|
|
55
|
+
children: [/* @__PURE__ */ e("iframe", {
|
|
56
|
+
className: "arkynElementVideo",
|
|
57
|
+
src: i?.src || "",
|
|
58
|
+
title: "YouTube video player",
|
|
59
|
+
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",
|
|
60
|
+
referrerPolicy: "strict-origin-when-cross-origin",
|
|
61
|
+
allowFullScreen: !0
|
|
62
|
+
}), r]
|
|
63
|
+
});
|
|
64
|
+
default: return /* @__PURE__ */ e("p", {
|
|
65
|
+
className: "arkynElementParagraph",
|
|
66
|
+
style: a,
|
|
67
|
+
...n,
|
|
68
|
+
children: r
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
export { n as Element };
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { useForm as e } from "../../hooks/useForm.js";
|
|
2
|
+
import { FieldTemplate as t } from "../../services/fieldTemplate.js";
|
|
3
|
+
import { extractTextFromNode as n } from "../../services/extractTextFromNode.js";
|
|
4
|
+
import { toggleMark as r } from "../../services/toggleMark.js";
|
|
5
|
+
import { hotKeys as i, initialValue as a } from "../../templates/richTextTemplates.js";
|
|
6
|
+
import { BlockButton as o } from "./blockButton/index.js";
|
|
7
|
+
import { Element as s } from "./element/index.js";
|
|
8
|
+
import { InsertImage as ee } from "./insertImage/index.js";
|
|
9
|
+
import { InsertVideo as te } from "./insertVideo/index.js";
|
|
10
|
+
import { Leaf as ne } from "./leaf/index.js";
|
|
11
|
+
import { MarkButton as c } from "./markButton/index.js";
|
|
12
|
+
import { Toolbar as l } from "./toolbar/index.js";
|
|
13
|
+
/* empty css */
|
|
14
|
+
import { useCallback as u, useId as re, useMemo as ie, useRef as ae, useState as d } from "react";
|
|
15
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
16
|
+
import { AlignCenter as oe, AlignJustify as se, AlignLeft as ce, AlignRight as le, Bold as m, Code as h, Heading1 as g, Heading2 as _, Italic as v, Quote as y, Underline as b } from "lucide-react";
|
|
17
|
+
import x from "is-hotkey";
|
|
18
|
+
import { Transforms as S, createEditor as C } from "slate";
|
|
19
|
+
import { withHistory as w } from "slate-history";
|
|
20
|
+
import { Editable as T, Slate as E, withReact as D } from "slate-react";
|
|
21
|
+
//#region src/components/richText/index.tsx
|
|
22
|
+
function O(O) {
|
|
23
|
+
let { name: k, hiddenButtons: A, imageConfig: j, videoConfig: M, className: N = "", defaultValue: P = "[]", enforceCharacterLimit: F = !1, onChangeCharactersCount: I, baseErrorMessage: L, maxLimit: R = 1e4, onChange: z, isError: B, label: V, showAsterisk: H, id: U, orientation: W = "vertical", unShowFieldTemplate: ue = !1 } = O, G = ie(() => w(D(C())), []), { fieldErrors: de } = e();
|
|
24
|
+
function K() {
|
|
25
|
+
try {
|
|
26
|
+
let e = JSON.parse(P);
|
|
27
|
+
return !Array.isArray(e) || e.length <= 0 ? a : e.every((e) => typeof e == "object" && !!e && "type" in e && "children" in e) ? e : a;
|
|
28
|
+
} catch {
|
|
29
|
+
return a;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
let [q, fe] = d(n(K()).length), [pe, me] = d(JSON.stringify(K()) || "[]"), [he, J] = d(!1), ge = ae(null), _e = re(), Y = U || _e, X = L || de?.[k], ve = B || !!X, ye = u(ne, []), be = u(s, []);
|
|
33
|
+
function Z(e) {
|
|
34
|
+
let t = n(e);
|
|
35
|
+
fe(t.length), I?.(t.length), !(F && t.length >= R) && (me(JSON.stringify(e)), z?.(e), G.children = e, S.setNodes(G, { children: e }));
|
|
36
|
+
}
|
|
37
|
+
let xe = `arkynRichText ${ve || R < q ? "errorTrue" : "errorFalse"} ${he ? "focusTrue" : "focusFalse"}`, Q = R - q;
|
|
38
|
+
function $(e) {
|
|
39
|
+
return !A?.includes(e);
|
|
40
|
+
}
|
|
41
|
+
return /* @__PURE__ */ f(t, {
|
|
42
|
+
name: k,
|
|
43
|
+
label: V,
|
|
44
|
+
showAsterisk: H,
|
|
45
|
+
className: N,
|
|
46
|
+
errorMessage: X,
|
|
47
|
+
unShowFieldTemplate: ue,
|
|
48
|
+
orientation: W,
|
|
49
|
+
children: /* @__PURE__ */ p(E, {
|
|
50
|
+
editor: G,
|
|
51
|
+
initialValue: K(),
|
|
52
|
+
onChange: Z,
|
|
53
|
+
onValueChange: Z,
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ p("div", {
|
|
56
|
+
className: xe,
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ p(l, { children: [
|
|
59
|
+
$("headingOne") && /* @__PURE__ */ f(o, {
|
|
60
|
+
format: "headingOne",
|
|
61
|
+
icon: g
|
|
62
|
+
}),
|
|
63
|
+
$("headingTwo") && /* @__PURE__ */ f(o, {
|
|
64
|
+
format: "headingTwo",
|
|
65
|
+
icon: _
|
|
66
|
+
}),
|
|
67
|
+
$("blockQuote") && /* @__PURE__ */ f(o, {
|
|
68
|
+
format: "blockQuote",
|
|
69
|
+
icon: y
|
|
70
|
+
}),
|
|
71
|
+
$("bold") && /* @__PURE__ */ f(c, {
|
|
72
|
+
format: "bold",
|
|
73
|
+
icon: m
|
|
74
|
+
}),
|
|
75
|
+
$("italic") && /* @__PURE__ */ f(c, {
|
|
76
|
+
format: "italic",
|
|
77
|
+
icon: v
|
|
78
|
+
}),
|
|
79
|
+
$("underline") && /* @__PURE__ */ f(c, {
|
|
80
|
+
format: "underline",
|
|
81
|
+
icon: b
|
|
82
|
+
}),
|
|
83
|
+
$("code") && /* @__PURE__ */ f(c, {
|
|
84
|
+
format: "code",
|
|
85
|
+
icon: h
|
|
86
|
+
}),
|
|
87
|
+
$("left") && /* @__PURE__ */ f(o, {
|
|
88
|
+
format: "left",
|
|
89
|
+
icon: ce
|
|
90
|
+
}),
|
|
91
|
+
$("right") && /* @__PURE__ */ f(o, {
|
|
92
|
+
format: "right",
|
|
93
|
+
icon: le
|
|
94
|
+
}),
|
|
95
|
+
$("center") && /* @__PURE__ */ f(o, {
|
|
96
|
+
format: "center",
|
|
97
|
+
icon: oe
|
|
98
|
+
}),
|
|
99
|
+
$("justify") && /* @__PURE__ */ f(o, {
|
|
100
|
+
format: "justify",
|
|
101
|
+
icon: se
|
|
102
|
+
}),
|
|
103
|
+
j && $("image") && /* @__PURE__ */ f(ee, { ...j }),
|
|
104
|
+
$("video") && /* @__PURE__ */ f(te, { ...M })
|
|
105
|
+
] }),
|
|
106
|
+
/* @__PURE__ */ f(T, {
|
|
107
|
+
className: "editorContainer",
|
|
108
|
+
renderElement: be,
|
|
109
|
+
renderLeaf: ye,
|
|
110
|
+
spellCheck: !0,
|
|
111
|
+
ref: ge,
|
|
112
|
+
id: Y,
|
|
113
|
+
onFocus: () => J(!0),
|
|
114
|
+
onBlur: () => J(!1),
|
|
115
|
+
onKeyDown: (e) => {
|
|
116
|
+
for (let t in i) if (x(t, e)) {
|
|
117
|
+
e.preventDefault();
|
|
118
|
+
let n = i[t];
|
|
119
|
+
r(G, n);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}),
|
|
123
|
+
Q < 0 && /* @__PURE__ */ f("div", {
|
|
124
|
+
className: "restatesCharacters",
|
|
125
|
+
children: Q
|
|
126
|
+
})
|
|
127
|
+
]
|
|
128
|
+
}),
|
|
129
|
+
/* @__PURE__ */ f("input", {
|
|
130
|
+
type: "hidden",
|
|
131
|
+
name: k,
|
|
132
|
+
value: pe.slice(0, R)
|
|
133
|
+
}),
|
|
134
|
+
/* @__PURE__ */ f("input", {
|
|
135
|
+
type: "hidden",
|
|
136
|
+
name: `${k}Count`,
|
|
137
|
+
value: q
|
|
138
|
+
})
|
|
139
|
+
]
|
|
140
|
+
})
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
//#endregion
|
|
144
|
+
export { O as RichText };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Button as e } from "../../button/index.js";
|
|
2
|
+
import { Input as t } from "../../input/index.js";
|
|
3
|
+
import { ImageUpload as n } from "../../imageUpload/index.js";
|
|
4
|
+
import { ModalContainer as r } from "../../modal/modalContainer/index.js";
|
|
5
|
+
import { ModalFooter as i } from "../../modal/modalFooter/index.js";
|
|
6
|
+
import { ModalHeader as a } from "../../modal/modalHeader/index.js";
|
|
7
|
+
import { TabButton as o } from "../../tab/tabButton/index.js";
|
|
8
|
+
import { TabContainer as s } from "../../tab/tabContainer/index.js";
|
|
9
|
+
/* empty css */
|
|
10
|
+
import { useState as c } from "react";
|
|
11
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
12
|
+
import { Image as f } from "lucide-react";
|
|
13
|
+
import { useSlate as p } from "slate-react";
|
|
14
|
+
//#region src/components/richText/insertImage/index.tsx
|
|
15
|
+
function m(m) {
|
|
16
|
+
let { action: h, tabLabels: g = ["Adicionar URL", "Upload de arquivo"], modalCancelButton: _ = "Cancelar", modalConfirmButton: v = "Confirmar", modalInputImageLabel: y = "Imagem:", modalInputUrlLabel: b = "URL da imagem:", modalTitle: x = "Inserir imagem" } = m, S = p(), [C, w] = c(!1), [T, E] = c(""), [D, O] = c("url");
|
|
17
|
+
function k(e) {
|
|
18
|
+
e.preventDefault(), !(!T || T === "") && (S.insertNodes([
|
|
19
|
+
{
|
|
20
|
+
type: "paragraph",
|
|
21
|
+
children: [{ text: "" }]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: "image",
|
|
25
|
+
src: T,
|
|
26
|
+
children: [{ text: "" }]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
type: "paragraph",
|
|
30
|
+
children: [{ text: "" }]
|
|
31
|
+
}
|
|
32
|
+
]), w(!1));
|
|
33
|
+
}
|
|
34
|
+
return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("button", {
|
|
35
|
+
type: "button",
|
|
36
|
+
className: "arkynRichTextInsertImage",
|
|
37
|
+
onMouseDown: () => w(!0),
|
|
38
|
+
children: /* @__PURE__ */ u(f, {})
|
|
39
|
+
}), /* @__PURE__ */ d(r, {
|
|
40
|
+
isVisible: C,
|
|
41
|
+
makeInvisible: () => w(!1),
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ u(a, { children: x }),
|
|
44
|
+
/* @__PURE__ */ d("div", {
|
|
45
|
+
className: "arkynRichTextInsertImageModalContent",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ d(s, {
|
|
48
|
+
defaultValue: D,
|
|
49
|
+
onChange: O,
|
|
50
|
+
children: [/* @__PURE__ */ u(o, {
|
|
51
|
+
value: "url",
|
|
52
|
+
children: g[0]
|
|
53
|
+
}), /* @__PURE__ */ u(o, {
|
|
54
|
+
value: "file",
|
|
55
|
+
children: g[1]
|
|
56
|
+
})]
|
|
57
|
+
}),
|
|
58
|
+
D === "url" && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(t, {
|
|
59
|
+
type: "text",
|
|
60
|
+
name: "richTextImageURL",
|
|
61
|
+
label: b,
|
|
62
|
+
showAsterisk: !0,
|
|
63
|
+
defaultValue: T,
|
|
64
|
+
onChange: (e) => E(e.target.value)
|
|
65
|
+
}), T && /* @__PURE__ */ u("img", {
|
|
66
|
+
className: "arkynRichTextInsertImageModalPreviewImage",
|
|
67
|
+
src: T,
|
|
68
|
+
alt: "preview"
|
|
69
|
+
})] }),
|
|
70
|
+
D === "file" && /* @__PURE__ */ u(n, {
|
|
71
|
+
name: "richTextImageURL",
|
|
72
|
+
action: h,
|
|
73
|
+
label: y,
|
|
74
|
+
showAsterisk: !0,
|
|
75
|
+
defaultValue: T,
|
|
76
|
+
onChange: (e) => E(e)
|
|
77
|
+
})
|
|
78
|
+
]
|
|
79
|
+
}),
|
|
80
|
+
/* @__PURE__ */ d(i, { children: [/* @__PURE__ */ u(e, {
|
|
81
|
+
type: "button",
|
|
82
|
+
scheme: "danger",
|
|
83
|
+
variant: "outline",
|
|
84
|
+
onClick: () => w(!1),
|
|
85
|
+
children: _
|
|
86
|
+
}), /* @__PURE__ */ u(e, {
|
|
87
|
+
type: "button",
|
|
88
|
+
onClick: k,
|
|
89
|
+
children: v
|
|
90
|
+
})] })
|
|
91
|
+
]
|
|
92
|
+
})] });
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
export { m as InsertImage };
|