@arkyn/components 3.0.1-beta.200 → 3.0.1-beta.204
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/LICENSE.txt +184 -1
- package/README.md +14 -1
- package/dist/components/alert/alertContainer/index.d.ts.map +1 -1
- package/dist/components/cardTab/cardTabContext.d.ts.map +1 -1
- package/dist/components/drawer/drawerContext.d.ts.map +1 -1
- package/dist/components/modal/modalContext.d.ts.map +1 -1
- package/dist/components/tab/tabContext.d.ts.map +1 -1
- package/dist/index.js +85 -62
- package/dist/index.js.map +1 -0
- package/dist/modules/components/alert/alertContainer/index.js +17 -15
- package/dist/modules/components/alert/alertContainer/index.js.map +1 -0
- package/dist/modules/components/alert/alertContainer/styles.css +3 -0
- package/dist/modules/components/alert/alertContent/index.js +2 -0
- package/dist/modules/components/alert/alertContent/index.js.map +1 -0
- package/dist/modules/components/alert/alertContent/styles.css +1 -0
- package/dist/modules/components/alert/alertDescription/index.js +2 -0
- package/dist/modules/components/alert/alertDescription/index.js.map +1 -0
- package/dist/modules/components/alert/alertDescription/styles.css +1 -0
- package/dist/modules/components/alert/alertIcon/index.js +2 -0
- package/dist/modules/components/alert/alertIcon/index.js.map +1 -0
- package/dist/modules/components/alert/alertIcon/styles.css +7 -0
- package/dist/modules/components/alert/alertTitle/index.js +2 -0
- package/dist/modules/components/alert/alertTitle/index.js.map +1 -0
- package/dist/modules/components/alert/alertTitle/styles.css +1 -0
- package/dist/modules/components/audioPlayer/index.js +2 -0
- package/dist/modules/components/audioPlayer/index.js.map +1 -0
- package/dist/modules/components/audioPlayer/styles.css +3 -0
- package/dist/modules/components/audioUpload/hasFileContent/index.js +2 -0
- package/dist/modules/components/audioUpload/hasFileContent/index.js.map +1 -0
- package/dist/modules/components/audioUpload/hasFileContent/styles.css +1 -0
- package/dist/modules/components/audioUpload/index.js +2 -0
- package/dist/modules/components/audioUpload/index.js.map +1 -0
- package/dist/modules/components/audioUpload/noFileContent/index.js +2 -0
- package/dist/modules/components/audioUpload/noFileContent/index.js.map +1 -0
- package/dist/modules/components/audioUpload/noFileContent/styles.css +1 -0
- package/dist/modules/components/audioUpload/styles.css +25 -0
- package/dist/modules/components/badge/index.js +2 -0
- package/dist/modules/components/badge/index.js.map +1 -0
- package/dist/modules/components/badge/styles.css +1 -0
- package/dist/modules/components/button/index.js +2 -0
- package/dist/modules/components/button/index.js.map +1 -0
- package/dist/modules/components/button/styles.css +1 -0
- package/dist/modules/components/calendar/_calendarProvider.js +2 -0
- package/dist/modules/components/calendar/_calendarProvider.js.map +1 -0
- package/dist/modules/components/calendar/_viewService.js +2 -0
- package/dist/modules/components/calendar/_viewService.js.map +1 -0
- package/dist/modules/components/calendar/calendarContainer/index.js +2 -0
- package/dist/modules/components/calendar/calendarContainer/index.js.map +1 -0
- package/dist/modules/components/calendar/calendarContainer/styles.css +1 -0
- package/dist/modules/components/calendar/calendarHeader/index.js +2 -0
- package/dist/modules/components/calendar/calendarHeader/index.js.map +1 -0
- package/dist/modules/components/calendar/calendarHeader/styles.css +1 -0
- package/dist/modules/components/calendar/calendarTableBody/index.js +2 -0
- package/dist/modules/components/calendar/calendarTableBody/index.js.map +1 -0
- package/dist/modules/components/calendar/calendarTableBody/styles.css +1 -0
- package/dist/modules/components/calendar/calendarTableContainer/index.js +2 -0
- package/dist/modules/components/calendar/calendarTableContainer/index.js.map +1 -0
- package/dist/modules/components/calendar/calendarTableContainer/styles.css +1 -0
- package/dist/modules/components/calendar/calendarTableHeader/index.js +2 -0
- package/dist/modules/components/calendar/calendarTableHeader/index.js.map +1 -0
- package/dist/modules/components/calendar/calendarTableHeader/styles.css +1 -0
- package/dist/modules/components/calendar/calendarTableTd/index.js +2 -0
- package/dist/modules/components/calendar/calendarTableTd/index.js.map +1 -0
- package/dist/modules/components/calendar/calendarTableTd/styles.css +1 -0
- package/dist/modules/components/calendar/index.js +2 -0
- package/dist/modules/components/calendar/index.js.map +1 -0
- package/dist/modules/components/calendar/styles.css +33 -0
- package/dist/modules/components/cardTab/cardTabButton/index.js +2 -0
- package/dist/modules/components/cardTab/cardTabButton/index.js.map +1 -0
- package/dist/modules/components/cardTab/cardTabButton/styles.css +1 -0
- package/dist/modules/components/cardTab/cardTabContainer/index.js +2 -0
- package/dist/modules/components/cardTab/cardTabContainer/index.js.map +1 -0
- package/dist/modules/components/cardTab/cardTabContainer/styles.css +1 -0
- package/dist/modules/components/cardTab/cardTabContext.js +20 -9
- package/dist/modules/components/cardTab/cardTabContext.js.map +1 -0
- package/dist/modules/components/checkbox/index.js +2 -0
- package/dist/modules/components/checkbox/index.js.map +1 -0
- package/dist/modules/components/checkbox/styles.css +7 -0
- package/dist/modules/components/clientOnly.js +2 -0
- package/dist/modules/components/clientOnly.js.map +1 -0
- package/dist/modules/components/currencyInput/index.js +2 -0
- package/dist/modules/components/currencyInput/index.js.map +1 -0
- package/dist/modules/components/currencyInput/style.css +1 -0
- package/dist/modules/components/currencyInput/styles.css +7 -0
- package/dist/modules/components/divider/index.js +2 -0
- package/dist/modules/components/divider/index.js.map +1 -0
- package/dist/modules/components/divider/styles.css +1 -0
- package/dist/modules/components/drawer/drawerContainer/index.js +2 -0
- package/dist/modules/components/drawer/drawerContainer/index.js.map +1 -0
- package/dist/modules/components/drawer/drawerContainer/styles.css +1 -0
- package/dist/modules/components/drawer/drawerContext.js +12 -9
- package/dist/modules/components/drawer/drawerContext.js.map +1 -0
- package/dist/modules/components/drawer/drawerHeader/index.js +2 -0
- package/dist/modules/components/drawer/drawerHeader/index.js.map +1 -0
- package/dist/modules/components/drawer/drawerHeader/styles.css +1 -0
- package/dist/modules/components/facebookPixel/facebookPixel.client.js +2 -0
- package/dist/modules/components/facebookPixel/facebookPixel.client.js.map +1 -0
- package/dist/modules/components/facebookPixel/index.js +2 -0
- package/dist/modules/components/facebookPixel/index.js.map +1 -0
- package/dist/modules/components/facebookPixel/pixel.js +2 -0
- package/dist/modules/components/facebookPixel/pixel.js.map +1 -0
- package/dist/modules/components/fieldError/index.js +2 -0
- package/dist/modules/components/fieldError/index.js.map +1 -0
- package/dist/modules/components/fieldError/styles.css +1 -0
- package/dist/modules/components/fieldLabel/index.js +2 -0
- package/dist/modules/components/fieldLabel/index.js.map +1 -0
- package/dist/modules/components/fieldLabel/styles.css +1 -0
- package/dist/modules/components/fieldWrapper/index.js +2 -0
- package/dist/modules/components/fieldWrapper/index.js.map +1 -0
- package/dist/modules/components/fieldWrapper/styles.css +1 -0
- package/dist/modules/components/fileUpload/hasFileContent/index.js +2 -0
- package/dist/modules/components/fileUpload/hasFileContent/index.js.map +1 -0
- package/dist/modules/components/fileUpload/hasFileContent/styles.css +1 -0
- package/dist/modules/components/fileUpload/index.js +2 -0
- package/dist/modules/components/fileUpload/index.js.map +1 -0
- package/dist/modules/components/fileUpload/noFileContent/index.js +2 -0
- package/dist/modules/components/fileUpload/noFileContent/index.js.map +1 -0
- package/dist/modules/components/fileUpload/noFileContent/styles.css +1 -0
- package/dist/modules/components/fileUpload/styles.css +19 -0
- package/dist/modules/components/fullCalendar/_fullCalendarProvider.js +2 -0
- package/dist/modules/components/fullCalendar/_fullCalendarProvider.js.map +1 -0
- package/dist/modules/components/fullCalendar/_viewService.js +2 -0
- package/dist/modules/components/fullCalendar/_viewService.js.map +1 -0
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +2 -0
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/styles.css +1 -0
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +2 -0
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/styles.css +1 -0
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +2 -0
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/styles.css +1 -0
- package/dist/modules/components/fullCalendar/dayCalendar/index.js +2 -0
- package/dist/modules/components/fullCalendar/dayCalendar/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js +2 -0
- package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/fullCalendarContainer/styles.css +1 -0
- package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js +2 -0
- package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/fullCalendarHeader/styles.css +1 -0
- package/dist/modules/components/fullCalendar/index.js +2 -0
- package/dist/modules/components/fullCalendar/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/index.js +2 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +2 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/styles.css +1 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +2 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/styles.css +1 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +2 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/styles.css +1 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +2 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/styles.css +1 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +2 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/styles.css +1 -0
- package/dist/modules/components/fullCalendar/styles.css +35 -0
- package/dist/modules/components/fullCalendar/weekCalendar/index.js +2 -0
- package/dist/modules/components/fullCalendar/weekCalendar/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +2 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/styles.css +1 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +2 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/styles.css +1 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +2 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/styles.css +1 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +2 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/styles.css +1 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +2 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/styles.css +1 -0
- package/dist/modules/components/googleAnalytics/googleAnalytics.client.js +2 -0
- package/dist/modules/components/googleAnalytics/googleAnalytics.client.js.map +1 -0
- package/dist/modules/components/googleAnalytics/googleAnalytics.js +2 -0
- package/dist/modules/components/googleAnalytics/googleAnalytics.js.map +1 -0
- package/dist/modules/components/googleAnalytics/index.js +2 -0
- package/dist/modules/components/googleAnalytics/index.js.map +1 -0
- package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js +2 -0
- package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js.map +1 -0
- package/dist/modules/components/googleTagManager/googleTagManager.client.js +2 -0
- package/dist/modules/components/googleTagManager/googleTagManager.client.js.map +1 -0
- package/dist/modules/components/googleTagManager/googleTagManager.js +2 -0
- package/dist/modules/components/googleTagManager/googleTagManager.js.map +1 -0
- package/dist/modules/components/googleTagManager/index.js +2 -0
- package/dist/modules/components/googleTagManager/index.js.map +1 -0
- package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js +2 -0
- package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js.map +1 -0
- package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js +2 -0
- package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js.map +1 -0
- package/dist/modules/components/iconButton/index.js +2 -0
- package/dist/modules/components/iconButton/index.js.map +1 -0
- package/dist/modules/components/iconButton/styles.css +1 -0
- package/dist/modules/components/imageUpload/hasFileContent/index.js +2 -0
- package/dist/modules/components/imageUpload/hasFileContent/index.js.map +1 -0
- package/dist/modules/components/imageUpload/hasFileContent/styles.css +1 -0
- package/dist/modules/components/imageUpload/index.js +2 -0
- package/dist/modules/components/imageUpload/index.js.map +1 -0
- package/dist/modules/components/imageUpload/noFileContent/index.js +2 -0
- package/dist/modules/components/imageUpload/noFileContent/index.js.map +1 -0
- package/dist/modules/components/imageUpload/noFileContent/styles.css +1 -0
- package/dist/modules/components/imageUpload/styles.css +17 -0
- package/dist/modules/components/input/index.js +2 -0
- package/dist/modules/components/input/index.js.map +1 -0
- package/dist/modules/components/input/style.css +1 -0
- package/dist/modules/components/input/styles.css +7 -0
- package/dist/modules/components/mapView/index.js +2 -0
- package/dist/modules/components/mapView/index.js.map +1 -0
- package/dist/modules/components/mapView/mapView.client.js +2 -0
- package/dist/modules/components/mapView/mapView.client.js.map +1 -0
- package/dist/modules/components/mapView/mapbox.css +1 -0
- package/dist/modules/components/mapView/styles.css +1 -0
- package/dist/modules/components/maskedInput/index.js +2 -0
- package/dist/modules/components/maskedInput/index.js.map +1 -0
- package/dist/modules/components/maskedInput/style.css +1 -0
- package/dist/modules/components/maskedInput/styles.css +7 -0
- package/dist/modules/components/modal/modalContainer/index.js +2 -0
- package/dist/modules/components/modal/modalContainer/index.js.map +1 -0
- package/dist/modules/components/modal/modalContainer/styles.css +1 -0
- package/dist/modules/components/modal/modalContext.js +12 -9
- package/dist/modules/components/modal/modalContext.js.map +1 -0
- package/dist/modules/components/modal/modalFooter/index.js +2 -0
- package/dist/modules/components/modal/modalFooter/index.js.map +1 -0
- package/dist/modules/components/modal/modalFooter/styles.css +1 -0
- package/dist/modules/components/modal/modalHeader/index.js +2 -0
- package/dist/modules/components/modal/modalHeader/index.js.map +1 -0
- package/dist/modules/components/modal/modalHeader/styles.css +1 -0
- package/dist/modules/components/multiSelect/index.js +2 -0
- package/dist/modules/components/multiSelect/index.js.map +1 -0
- package/dist/modules/components/multiSelect/multiSelectChevron/index.js +2 -0
- package/dist/modules/components/multiSelect/multiSelectChevron/index.js.map +1 -0
- package/dist/modules/components/multiSelect/multiSelectChevron/styles.css +1 -0
- package/dist/modules/components/multiSelect/multiSelectContainer/index.js +2 -0
- package/dist/modules/components/multiSelect/multiSelectContainer/index.js.map +1 -0
- package/dist/modules/components/multiSelect/multiSelectContainer/styles.css +1 -0
- package/dist/modules/components/multiSelect/multiSelectContent/index.js +2 -0
- package/dist/modules/components/multiSelect/multiSelectContent/index.js.map +1 -0
- package/dist/modules/components/multiSelect/multiSelectContent/styles.css +1 -0
- package/dist/modules/components/multiSelect/multiSelectMark/index.js +2 -0
- package/dist/modules/components/multiSelect/multiSelectMark/index.js.map +1 -0
- package/dist/modules/components/multiSelect/multiSelectMark/styles.css +1 -0
- package/dist/modules/components/multiSelect/multiSelectOption/index.js +2 -0
- package/dist/modules/components/multiSelect/multiSelectOption/index.js.map +1 -0
- package/dist/modules/components/multiSelect/multiSelectOption/styles.css +1 -0
- package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js +2 -0
- package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js.map +1 -0
- package/dist/modules/components/multiSelect/multiSelectOptionsContainer/styles.css +1 -0
- package/dist/modules/components/multiSelect/multiSelectOverlay/index.js +2 -0
- package/dist/modules/components/multiSelect/multiSelectOverlay/index.js.map +1 -0
- package/dist/modules/components/multiSelect/multiSelectOverlay/styles.css +1 -0
- package/dist/modules/components/multiSelect/multiSelectSpinner/index.js +2 -0
- package/dist/modules/components/multiSelect/multiSelectSpinner/index.js.map +1 -0
- package/dist/modules/components/multiSelect/multiSelectSpinner/styles.css +1 -0
- package/dist/modules/components/multiSelect/styles.css +31 -0
- package/dist/modules/components/pagination/chevronButton/index.js +2 -0
- package/dist/modules/components/pagination/chevronButton/index.js.map +1 -0
- package/dist/modules/components/pagination/chevronButton/styles.css +1 -0
- package/dist/modules/components/pagination/currentButton/index.js +2 -0
- package/dist/modules/components/pagination/currentButton/index.js.map +1 -0
- package/dist/modules/components/pagination/currentButton/styles.css +1 -0
- package/dist/modules/components/pagination/index.js +2 -0
- package/dist/modules/components/pagination/index.js.map +1 -0
- package/dist/modules/components/pagination/pageButton/index.js +2 -0
- package/dist/modules/components/pagination/pageButton/index.js.map +1 -0
- package/dist/modules/components/pagination/pageButton/styles.css +1 -0
- package/dist/modules/components/pagination/paginationService.js +2 -0
- package/dist/modules/components/pagination/paginationService.js.map +1 -0
- package/dist/modules/components/pagination/spread/index.js +2 -0
- package/dist/modules/components/pagination/spread/index.js.map +1 -0
- package/dist/modules/components/pagination/spread/styles.css +1 -0
- package/dist/modules/components/pagination/styles.css +9 -0
- package/dist/modules/components/phoneInput/index.js +2 -0
- package/dist/modules/components/phoneInput/index.js.map +1 -0
- package/dist/modules/components/phoneInput/phoneInputContainer/index.js +2 -0
- package/dist/modules/components/phoneInput/phoneInputContainer/index.js.map +1 -0
- package/dist/modules/components/phoneInput/phoneInputContainer/styles.css +1 -0
- package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js +2 -0
- package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js.map +1 -0
- package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/styles.css +1 -0
- package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js +2 -0
- package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js.map +1 -0
- package/dist/modules/components/phoneInput/phoneInputCountryOption/styles.css +1 -0
- package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js +2 -0
- package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js.map +1 -0
- package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/styles.css +1 -0
- package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js +2 -0
- package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js.map +1 -0
- package/dist/modules/components/phoneInput/phoneInputCountrySelector/styles.css +1 -0
- package/dist/modules/components/phoneInput/phoneInputMask/index.js +2 -0
- package/dist/modules/components/phoneInput/phoneInputMask/index.js.map +1 -0
- package/dist/modules/components/phoneInput/phoneInputMask/style.css +1 -0
- package/dist/modules/components/phoneInput/styles.css +19 -0
- package/dist/modules/components/popover/index.js +2 -0
- package/dist/modules/components/popover/index.js.map +1 -0
- package/dist/modules/components/popover/styles.css +1 -0
- package/dist/modules/components/radio/radioBox/index.js +2 -0
- package/dist/modules/components/radio/radioBox/index.js.map +1 -0
- package/dist/modules/components/radio/radioBox/styles.css +1 -0
- package/dist/modules/components/radio/radioContext.js +2 -0
- package/dist/modules/components/radio/radioContext.js.map +1 -0
- package/dist/modules/components/radio/radioGroup/index.js +2 -0
- package/dist/modules/components/radio/radioGroup/index.js.map +1 -0
- package/dist/modules/components/radio/radioGroup/styles.css +7 -0
- package/dist/modules/components/richText/blockButton/index.js +2 -0
- package/dist/modules/components/richText/blockButton/index.js.map +1 -0
- package/dist/modules/components/richText/blockButton/styles.css +1 -0
- package/dist/modules/components/richText/element/index.js +2 -0
- package/dist/modules/components/richText/element/index.js.map +1 -0
- package/dist/modules/components/richText/element/styles.css +1 -0
- package/dist/modules/components/richText/index.js +2 -0
- package/dist/modules/components/richText/index.js.map +1 -0
- package/dist/modules/components/richText/insertImage/index.js +2 -0
- package/dist/modules/components/richText/insertImage/index.js.map +1 -0
- package/dist/modules/components/richText/insertImage/styles.css +1 -0
- package/dist/modules/components/richText/insertVideo/index.js +2 -0
- package/dist/modules/components/richText/insertVideo/index.js.map +1 -0
- package/dist/modules/components/richText/insertVideo/styles.css +1 -0
- package/dist/modules/components/richText/leaf/index.js +2 -0
- package/dist/modules/components/richText/leaf/index.js.map +1 -0
- package/dist/modules/components/richText/markButton/index.js +2 -0
- package/dist/modules/components/richText/markButton/index.js.map +1 -0
- package/dist/modules/components/richText/markButton/styles.css +1 -0
- package/dist/modules/components/richText/styles.css +67 -0
- package/dist/modules/components/richText/toolbar/index.js +2 -0
- package/dist/modules/components/richText/toolbar/index.js.map +1 -0
- package/dist/modules/components/richText/toolbar/styles.css +1 -0
- package/dist/modules/components/searchPlaces.js +2 -0
- package/dist/modules/components/searchPlaces.js.map +1 -0
- package/dist/modules/components/select/index.js +2 -0
- package/dist/modules/components/select/index.js.map +1 -0
- package/dist/modules/components/select/selectChevron/index.js +2 -0
- package/dist/modules/components/select/selectChevron/index.js.map +1 -0
- package/dist/modules/components/select/selectChevron/styles.css +1 -0
- package/dist/modules/components/select/selectContainer/index.js +2 -0
- package/dist/modules/components/select/selectContainer/index.js.map +1 -0
- package/dist/modules/components/select/selectContainer/styles.css +1 -0
- package/dist/modules/components/select/selectContent/index.js +2 -0
- package/dist/modules/components/select/selectContent/index.js.map +1 -0
- package/dist/modules/components/select/selectContent/styles.css +1 -0
- package/dist/modules/components/select/selectOption/index.js +2 -0
- package/dist/modules/components/select/selectOption/index.js.map +1 -0
- package/dist/modules/components/select/selectOption/styles.css +1 -0
- package/dist/modules/components/select/selectOptionsContainer/index.js +2 -0
- package/dist/modules/components/select/selectOptionsContainer/index.js.map +1 -0
- package/dist/modules/components/select/selectOptionsContainer/styles.css +1 -0
- package/dist/modules/components/select/selectOverlay/index.js +2 -0
- package/dist/modules/components/select/selectOverlay/index.js.map +1 -0
- package/dist/modules/components/select/selectOverlay/styles.css +1 -0
- package/dist/modules/components/select/selectSpinner/index.js +2 -0
- package/dist/modules/components/select/selectSpinner/index.js.map +1 -0
- package/dist/modules/components/select/selectSpinner/styles.css +1 -0
- package/dist/modules/components/select/styles.css +29 -0
- package/dist/modules/components/slider/index.js +2 -0
- package/dist/modules/components/slider/index.js.map +1 -0
- package/dist/modules/components/slider/styles.css +1 -0
- package/dist/modules/components/switch/index.js +2 -0
- package/dist/modules/components/switch/index.js.map +1 -0
- package/dist/modules/components/switch/styles.css +7 -0
- package/dist/modules/components/tab/tabButton/index.js +2 -0
- package/dist/modules/components/tab/tabButton/index.js.map +1 -0
- package/dist/modules/components/tab/tabButton/styles.css +1 -0
- package/dist/modules/components/tab/tabContainer/index.js +2 -0
- package/dist/modules/components/tab/tabContainer/index.js.map +1 -0
- package/dist/modules/components/tab/tabContainer/styles.css +1 -0
- package/dist/modules/components/tab/tabContext.js +20 -9
- package/dist/modules/components/tab/tabContext.js.map +1 -0
- package/dist/modules/components/table/tableBody/index.js +2 -0
- package/dist/modules/components/table/tableBody/index.js.map +1 -0
- package/dist/modules/components/table/tableBody/styles.css +1 -0
- package/dist/modules/components/table/tableCaption/index.js +2 -0
- package/dist/modules/components/table/tableCaption/index.js.map +1 -0
- package/dist/modules/components/table/tableCaption/styles.css +1 -0
- package/dist/modules/components/table/tableContainer/index.js +2 -0
- package/dist/modules/components/table/tableContainer/index.js.map +1 -0
- package/dist/modules/components/table/tableContainer/styles.css +1 -0
- package/dist/modules/components/table/tableFooter/index.js +2 -0
- package/dist/modules/components/table/tableFooter/index.js.map +1 -0
- package/dist/modules/components/table/tableFooter/styles.css +1 -0
- package/dist/modules/components/table/tableHeader/index.js +2 -0
- package/dist/modules/components/table/tableHeader/index.js.map +1 -0
- package/dist/modules/components/table/tableHeader/styles.css +1 -0
- package/dist/modules/components/textarea/index.js +2 -0
- package/dist/modules/components/textarea/index.js.map +1 -0
- package/dist/modules/components/textarea/styles.css +7 -0
- package/dist/modules/components/tooltip/index.js +2 -0
- package/dist/modules/components/tooltip/index.js.map +1 -0
- package/dist/modules/components/tooltip/styles.css +1 -0
- package/dist/modules/hooks/useAutomation.js +2 -0
- package/dist/modules/hooks/useAutomation.js.map +1 -0
- package/dist/modules/hooks/useDrawer.js +2 -0
- package/dist/modules/hooks/useDrawer.js.map +1 -0
- package/dist/modules/hooks/useForm.js +2 -0
- package/dist/modules/hooks/useForm.js.map +1 -0
- package/dist/modules/hooks/useHydrated.js +2 -0
- package/dist/modules/hooks/useHydrated.js.map +1 -0
- package/dist/modules/hooks/useModal.js +2 -0
- package/dist/modules/hooks/useModal.js.map +1 -0
- package/dist/modules/hooks/useScopedParams.js +2 -0
- package/dist/modules/hooks/useScopedParams.js.map +1 -0
- package/dist/modules/hooks/useScrollLock.js +2 -0
- package/dist/modules/hooks/useScrollLock.js.map +1 -0
- package/dist/modules/hooks/useSearchAutomation.js +2 -0
- package/dist/modules/hooks/useSearchAutomation.js.map +1 -0
- package/dist/modules/hooks/useSlider.js +2 -0
- package/dist/modules/hooks/useSlider.js.map +1 -0
- package/dist/modules/hooks/useToast.js +2 -0
- package/dist/modules/hooks/useToast.js.map +1 -0
- package/dist/modules/providers/drawerProvider.js +2 -0
- package/dist/modules/providers/drawerProvider.js.map +1 -0
- package/dist/modules/providers/formProvider.js +11 -9
- package/dist/modules/providers/formProvider.js.map +1 -0
- package/dist/modules/providers/modalProvider.js +2 -0
- package/dist/modules/providers/modalProvider.js.map +1 -0
- package/dist/modules/providers/placesProvider.js +2 -0
- package/dist/modules/providers/placesProvider.js.map +1 -0
- package/dist/modules/providers/toastProvider.js +41 -38
- package/dist/modules/providers/toastProvider.js.map +1 -0
- package/dist/modules/services/extractTextFromNode.js +2 -0
- package/dist/modules/services/extractTextFromNode.js.map +1 -0
- package/dist/modules/services/fieldTemplate.js +2 -0
- package/dist/modules/services/fieldTemplate.js.map +1 -0
- package/dist/modules/services/iconRenderer.js +2 -0
- package/dist/modules/services/iconRenderer.js.map +1 -0
- package/dist/modules/services/isBlockActive.js +2 -0
- package/dist/modules/services/isBlockActive.js.map +1 -0
- package/dist/modules/services/isMarkActive.js +2 -0
- package/dist/modules/services/isMarkActive.js.map +1 -0
- package/dist/modules/services/maskCurrencyValues.js +2 -0
- package/dist/modules/services/maskCurrencyValues.js.map +1 -0
- package/dist/modules/services/toHtml.js +2 -0
- package/dist/modules/services/toHtml.js.map +1 -0
- package/dist/modules/services/toRichTextValue.js +2 -0
- package/dist/modules/services/toRichTextValue.js.map +1 -0
- package/dist/modules/services/toggleBlock.js +2 -0
- package/dist/modules/services/toggleBlock.js.map +1 -0
- package/dist/modules/services/toggleMark.js +2 -0
- package/dist/modules/services/toggleMark.js.map +1 -0
- package/dist/modules/templates/badResponses.js +2 -0
- package/dist/modules/templates/badResponses.js.map +1 -0
- package/dist/modules/templates/richTextTemplates.js +2 -0
- package/dist/modules/templates/richTextTemplates.js.map +1 -0
- package/dist/modules/templates/successResponses.js +2 -0
- package/dist/modules/templates/successResponses.js.map +1 -0
- package/dist/modules/utils/phoneInputUtilities.js +2 -0
- package/dist/modules/utils/phoneInputUtilities.js.map +1 -0
- package/dist/modules/utils/richTextUtilities.js +2 -0
- package/dist/modules/utils/richTextUtilities.js.map +1 -0
- package/dist/providers/formProvider.d.ts.map +1 -1
- package/dist/providers/toastProvider.d.ts.map +1 -1
- package/dist/style.css +0 -1
- package/package.json +638 -10
- package/dist/components/__test__/alertContainer.spec.d.ts +0 -2
- package/dist/components/__test__/alertContainer.spec.d.ts.map +0 -1
- package/dist/components/__test__/alertContent.spec.d.ts +0 -2
- package/dist/components/__test__/alertContent.spec.d.ts.map +0 -1
- package/dist/components/__test__/alertDescription.spec.d.ts +0 -2
- package/dist/components/__test__/alertDescription.spec.d.ts.map +0 -1
- package/dist/components/__test__/alertIcon.spec.d.ts +0 -2
- package/dist/components/__test__/alertIcon.spec.d.ts.map +0 -1
- package/dist/components/__test__/alertTitle.spec.d.ts +0 -2
- package/dist/components/__test__/alertTitle.spec.d.ts.map +0 -1
- package/dist/components/__test__/audioPlayer.spec.d.ts +0 -2
- package/dist/components/__test__/audioPlayer.spec.d.ts.map +0 -1
- package/dist/components/__test__/audioUpload.spec.d.ts +0 -2
- package/dist/components/__test__/audioUpload.spec.d.ts.map +0 -1
- package/dist/components/__test__/badge.spec.d.ts +0 -2
- package/dist/components/__test__/badge.spec.d.ts.map +0 -1
- package/dist/components/__test__/button.spec.d.ts +0 -2
- package/dist/components/__test__/button.spec.d.ts.map +0 -1
- package/dist/components/__test__/calendar.spec.d.ts +0 -2
- package/dist/components/__test__/calendar.spec.d.ts.map +0 -1
- package/dist/components/__test__/cardTabButton.spec.d.ts +0 -2
- package/dist/components/__test__/cardTabButton.spec.d.ts.map +0 -1
- package/dist/components/__test__/cardTabContainer.spec.d.ts +0 -2
- package/dist/components/__test__/cardTabContainer.spec.d.ts.map +0 -1
- package/dist/components/__test__/checkbox.spec.d.ts +0 -2
- package/dist/components/__test__/checkbox.spec.d.ts.map +0 -1
- package/dist/components/__test__/clientOnly.spec.d.ts +0 -2
- package/dist/components/__test__/clientOnly.spec.d.ts.map +0 -1
- package/dist/components/__test__/currencyInput.spec.d.ts +0 -2
- package/dist/components/__test__/currencyInput.spec.d.ts.map +0 -1
- package/dist/components/__test__/divider.spec.d.ts +0 -2
- package/dist/components/__test__/divider.spec.d.ts.map +0 -1
- package/dist/components/__test__/drawerContainer.spec.d.ts +0 -2
- package/dist/components/__test__/drawerContainer.spec.d.ts.map +0 -1
- package/dist/components/__test__/drawerHeader.spec.d.ts +0 -2
- package/dist/components/__test__/drawerHeader.spec.d.ts.map +0 -1
- package/dist/components/__test__/facebookPixel.spec.d.ts +0 -2
- package/dist/components/__test__/facebookPixel.spec.d.ts.map +0 -1
- package/dist/components/__test__/fieldError.spec.d.ts +0 -2
- package/dist/components/__test__/fieldError.spec.d.ts.map +0 -1
- package/dist/components/__test__/fieldLabel.spec.d.ts +0 -2
- package/dist/components/__test__/fieldLabel.spec.d.ts.map +0 -1
- package/dist/components/__test__/fieldWrapper.spec.d.ts +0 -2
- package/dist/components/__test__/fieldWrapper.spec.d.ts.map +0 -1
- package/dist/components/__test__/fileUpload.spec.d.ts +0 -2
- package/dist/components/__test__/fileUpload.spec.d.ts.map +0 -1
- package/dist/components/__test__/fullCalendar.spec.d.ts +0 -2
- package/dist/components/__test__/fullCalendar.spec.d.ts.map +0 -1
- package/dist/components/__test__/googleAnalytics.spec.d.ts +0 -2
- package/dist/components/__test__/googleAnalytics.spec.d.ts.map +0 -1
- package/dist/components/__test__/googleTagManager.spec.d.ts +0 -2
- package/dist/components/__test__/googleTagManager.spec.d.ts.map +0 -1
- package/dist/components/__test__/iconButton.spec.d.ts +0 -2
- package/dist/components/__test__/iconButton.spec.d.ts.map +0 -1
- package/dist/components/__test__/imageUpload.spec.d.ts +0 -2
- package/dist/components/__test__/imageUpload.spec.d.ts.map +0 -1
- package/dist/components/__test__/input.spec.d.ts +0 -2
- package/dist/components/__test__/input.spec.d.ts.map +0 -1
- package/dist/components/__test__/mapView.spec.d.ts +0 -2
- package/dist/components/__test__/mapView.spec.d.ts.map +0 -1
- package/dist/components/__test__/maskedInput.spec.d.ts +0 -2
- package/dist/components/__test__/maskedInput.spec.d.ts.map +0 -1
- package/dist/components/__test__/modalContainer.spec.d.ts +0 -2
- package/dist/components/__test__/modalContainer.spec.d.ts.map +0 -1
- package/dist/components/__test__/modalFooter.spec.d.ts +0 -2
- package/dist/components/__test__/modalFooter.spec.d.ts.map +0 -1
- package/dist/components/__test__/modalHeader.spec.d.ts +0 -2
- package/dist/components/__test__/modalHeader.spec.d.ts.map +0 -1
- package/dist/components/__test__/multiSelect.spec.d.ts +0 -2
- package/dist/components/__test__/multiSelect.spec.d.ts.map +0 -1
- package/dist/components/__test__/pagination.spec.d.ts +0 -2
- package/dist/components/__test__/pagination.spec.d.ts.map +0 -1
- package/dist/components/__test__/phoneInput.spec.d.ts +0 -2
- package/dist/components/__test__/phoneInput.spec.d.ts.map +0 -1
- package/dist/components/__test__/popover.spec.d.ts +0 -2
- package/dist/components/__test__/popover.spec.d.ts.map +0 -1
- package/dist/components/__test__/radioBox.spec.d.ts +0 -2
- package/dist/components/__test__/radioBox.spec.d.ts.map +0 -1
- package/dist/components/__test__/radioGroup.spec.d.ts +0 -2
- package/dist/components/__test__/radioGroup.spec.d.ts.map +0 -1
- package/dist/components/__test__/richText.spec.d.ts +0 -2
- package/dist/components/__test__/richText.spec.d.ts.map +0 -1
- package/dist/components/__test__/select.spec.d.ts +0 -2
- package/dist/components/__test__/select.spec.d.ts.map +0 -1
- package/dist/components/__test__/slider.spec.d.ts +0 -2
- package/dist/components/__test__/slider.spec.d.ts.map +0 -1
- package/dist/components/__test__/switch.spec.d.ts +0 -2
- package/dist/components/__test__/switch.spec.d.ts.map +0 -1
- package/dist/components/__test__/tabButton.spec.d.ts +0 -2
- package/dist/components/__test__/tabButton.spec.d.ts.map +0 -1
- package/dist/components/__test__/tabContainer.spec.d.ts +0 -2
- package/dist/components/__test__/tabContainer.spec.d.ts.map +0 -1
- package/dist/components/__test__/tableBody.spec.d.ts +0 -2
- package/dist/components/__test__/tableBody.spec.d.ts.map +0 -1
- package/dist/components/__test__/tableCaption.spec.d.ts +0 -2
- package/dist/components/__test__/tableCaption.spec.d.ts.map +0 -1
- package/dist/components/__test__/tableContainer.spec.d.ts +0 -2
- package/dist/components/__test__/tableContainer.spec.d.ts.map +0 -1
- package/dist/components/__test__/tableFooter.spec.d.ts +0 -2
- package/dist/components/__test__/tableFooter.spec.d.ts.map +0 -1
- package/dist/components/__test__/tableHeader.spec.d.ts +0 -2
- package/dist/components/__test__/tableHeader.spec.d.ts.map +0 -1
- package/dist/components/__test__/textarea.spec.d.ts +0 -2
- package/dist/components/__test__/textarea.spec.d.ts.map +0 -1
- package/dist/components/__test__/tooltip.spec.d.ts +0 -2
- package/dist/components/__test__/tooltip.spec.d.ts.map +0 -1
- package/dist/hooks/__test__/useAutomation.spec.d.ts +0 -2
- package/dist/hooks/__test__/useAutomation.spec.d.ts.map +0 -1
- package/dist/hooks/__test__/useDrawer.spec.d.ts +0 -2
- package/dist/hooks/__test__/useDrawer.spec.d.ts.map +0 -1
- package/dist/hooks/__test__/useForm.spec.d.ts +0 -2
- package/dist/hooks/__test__/useForm.spec.d.ts.map +0 -1
- package/dist/hooks/__test__/useHydrated.spec.d.ts +0 -2
- package/dist/hooks/__test__/useHydrated.spec.d.ts.map +0 -1
- package/dist/hooks/__test__/useModal.spec.d.ts +0 -2
- package/dist/hooks/__test__/useModal.spec.d.ts.map +0 -1
- package/dist/hooks/__test__/useScopedParams.spec.d.ts +0 -2
- package/dist/hooks/__test__/useScopedParams.spec.d.ts.map +0 -1
- package/dist/hooks/__test__/useScrollLock.spec.d.ts +0 -2
- package/dist/hooks/__test__/useScrollLock.spec.d.ts.map +0 -1
- package/dist/hooks/__test__/useSearchAutomation.spec.d.ts +0 -2
- package/dist/hooks/__test__/useSearchAutomation.spec.d.ts.map +0 -1
- package/dist/hooks/__test__/useSlider.spec.d.ts +0 -2
- package/dist/hooks/__test__/useSlider.spec.d.ts.map +0 -1
- package/dist/hooks/__test__/useToast.spec.d.ts +0 -2
- package/dist/hooks/__test__/useToast.spec.d.ts.map +0 -1
- package/dist/modules/index.js +0 -72
- package/dist/modules/style.css +0 -2
- package/dist/providers/__test__/drawerProvider.spec.d.ts +0 -2
- package/dist/providers/__test__/drawerProvider.spec.d.ts.map +0 -1
- package/dist/providers/__test__/formProvider.spec.d.ts +0 -2
- package/dist/providers/__test__/formProvider.spec.d.ts.map +0 -1
- package/dist/providers/__test__/modalProvider.spec.d.ts +0 -2
- package/dist/providers/__test__/modalProvider.spec.d.ts.map +0 -1
- package/dist/providers/__test__/placesProvider.spec.d.ts +0 -2
- package/dist/providers/__test__/placesProvider.spec.d.ts.map +0 -1
- package/dist/providers/__test__/toastProvider.spec.d.ts +0 -2
- package/dist/providers/__test__/toastProvider.spec.d.ts.map +0 -1
- package/dist/services/__test__/extractTextFromNode.spec.d.ts +0 -2
- package/dist/services/__test__/extractTextFromNode.spec.d.ts.map +0 -1
- package/dist/services/__test__/isBlockActive.spec.d.ts +0 -2
- package/dist/services/__test__/isBlockActive.spec.d.ts.map +0 -1
- package/dist/services/__test__/isMarkActive.spec.d.ts +0 -2
- package/dist/services/__test__/isMarkActive.spec.d.ts.map +0 -1
- package/dist/services/__test__/maskCurrencyValues.spec.d.ts +0 -2
- package/dist/services/__test__/maskCurrencyValues.spec.d.ts.map +0 -1
- package/dist/services/__test__/toHtml.spec.d.ts +0 -2
- package/dist/services/__test__/toHtml.spec.d.ts.map +0 -1
- package/dist/services/__test__/toRichTextValue.spec.d.ts +0 -2
- package/dist/services/__test__/toRichTextValue.spec.d.ts.map +0 -1
- package/dist/services/__test__/toggleBlock.spec.d.ts +0 -2
- package/dist/services/__test__/toggleBlock.spec.d.ts.map +0 -1
- package/dist/services/__test__/toggleMark.spec.d.ts +0 -2
- package/dist/services/__test__/toggleMark.spec.d.ts.map +0 -1
- package/dist/templates/__test__/badResponses.spec.d.ts +0 -2
- package/dist/templates/__test__/badResponses.spec.d.ts.map +0 -1
- package/dist/templates/__test__/richTextTemplates.spec.d.ts +0 -2
- package/dist/templates/__test__/richTextTemplates.spec.d.ts.map +0 -1
- package/dist/templates/__test__/successResponses.spec.d.ts +0 -2
- package/dist/templates/__test__/successResponses.spec.d.ts.map +0 -1
- package/dist/utils/__test__/phoneInputUtilities.spec.d.ts +0 -2
- package/dist/utils/__test__/phoneInputUtilities.spec.d.ts.map +0 -1
- package/dist/utils/__test__/richTextUtilities.spec.d.ts +0 -2
- package/dist/utils/__test__/richTextUtilities.spec.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modalProvider.js","names":[],"sources":["../../../src/providers/modalProvider.tsx"],"sourcesContent":["import { createContext, type ReactNode, useState } from \"react\";\n\n// biome-ignore lint/suspicious/noExplicitAny: intentional\ntype ModalContextProps<T = any> = {\n\tmodalIsOpen(key: string): boolean;\n\tmodalData(key: string): T;\n\topenModal(key: string, data?: T): void;\n\tcloseModal(key: string): void;\n\tcloseAll(): void;\n};\n\ntype OpenedModals = {\n\tkey: string;\n\t// biome-ignore lint/suspicious/noExplicitAny: intentional\n\tdata?: any;\n}[];\n\ntype ModalProviderProps = {\n\tchildren: ReactNode;\n\tenableModalAutomation?: boolean;\n};\n\nconst modalContext = createContext({} as ModalContextProps);\n\n/**\n * ModalProvider — context provider that manages open/close state and data for named modals.\n *\n * Wrap your app (or a subtree) with this once. Any component in the tree can then call\n * `useModal(key)` to open, close, or read data for a specific modal. `closeAll()` is also\n * available (used by `useAutomation` to close all modals after a successful form action).\n *\n * @param props.children - Components that will have access to modal context.\n *\n * @returns ModalProvider JSX element.\n *\n * @example\n * ```tsx\n * // In your root layout\n * <ModalProvider>\n * <App />\n * </ModalProvider>\n *\n * // Opening a modal from anywhere in the tree\n * const { openModal } = useModal();\n * openModal('confirm-delete', { id: user.id });\n *\n * // Consuming in the modal component\n * const { modalIsOpen, modalData, closeModal } = useModal<{ id: number }>('confirm-delete');\n * ```\n */\n\nfunction ModalProvider(args: ModalProviderProps) {\n\tconst { children = false } = args;\n\tconst [openedModals, setOpenedModals] = useState<OpenedModals>([]);\n\n\tfunction modalIsOpen(key: string) {\n\t\treturn !!openedModals.some((modal) => modal.key === key);\n\t}\n\n\tfunction modalData(key: string) {\n\t\treturn openedModals.find((modal) => modal.key === key)?.data;\n\t}\n\n\t// biome-ignore lint/suspicious/noExplicitAny: intentional\n\tfunction openModal(key: string, data?: any) {\n\t\tconst alreadyExist = modalIsOpen(key);\n\t\tif (alreadyExist) {\n\t\t\tsetOpenedModals((old) => {\n\t\t\t\tconst filtered = old.filter((modal) => modal.key !== key);\n\t\t\t\treturn [...filtered, { key, data }];\n\t\t\t});\n\t\t} else setOpenedModals([...openedModals, { key, data }]);\n\t}\n\n\tfunction closeModal(key: string) {\n\t\tsetOpenedModals(openedModals.filter((modal) => modal.key !== key));\n\t}\n\n\tfunction closeAll() {\n\t\tsetOpenedModals([]);\n\t}\n\n\treturn (\n\t\t<modalContext.Provider\n\t\t\tvalue={{ modalIsOpen, modalData, openModal, closeModal, closeAll }}\n\t\t>\n\t\t\t{children}\n\t\t</modalContext.Provider>\n\t);\n}\n\nexport { type ModalContextProps, ModalProvider, modalContext };\n"],"mappings":";;;AAsBA,IAAM,IAAe,EAAc,CAAC,CAAsB;AA6B1D,SAAS,EAAc,GAA0B;CAChD,IAAM,EAAE,cAAW,OAAU,GACvB,CAAC,GAAc,KAAmB,EAAuB,CAAC,CAAC;CAEjE,SAAS,EAAY,GAAa;EACjC,OAAO,CAAC,CAAC,EAAa,MAAM,MAAU,EAAM,QAAQ,CAAG;CACxD;CAEA,SAAS,EAAU,GAAa;EAC/B,OAAO,EAAa,MAAM,MAAU,EAAM,QAAQ,CAAG,CAAC,EAAE;CACzD;CAGA,SAAS,EAAU,GAAa,GAAY;EAE3C,AADqB,EAAY,CAC7B,IACH,GAAiB,MAET,CAAC,GADS,EAAI,QAAQ,MAAU,EAAM,QAAQ,CAC1C,GAAU;GAAE;GAAK;EAAK,CAAC,CAClC,IACK,EAAgB,CAAC,GAAG,GAAc;GAAE;GAAK;EAAK,CAAC,CAAC;CACxD;CAEA,SAAS,EAAW,GAAa;EAChC,EAAgB,EAAa,QAAQ,MAAU,EAAM,QAAQ,CAAG,CAAC;CAClE;CAEA,SAAS,IAAW;EACnB,EAAgB,CAAC,CAAC;CACnB;CAEA,OACC,kBAAC,EAAa,UAAd;EACC,OAAO;GAAE;GAAa;GAAW;GAAW;GAAY;EAAS;EAEhE;CACqB,CAAA;AAEzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"placesProvider.js","names":[],"sources":["../../../src/providers/placesProvider.tsx"],"sourcesContent":["import { useLoadScript } from \"@react-google-maps/api\";\nimport type { ReactNode } from \"react\";\n\nconst libraries: (\"places\" | \"marker\" | \"maps\")[] = [\n\t\"places\",\n\t\"marker\",\n\t\"maps\",\n];\n\ntype PlacesProviderProps = {\n\tapiKey: string;\n\tchildren: (isLoaded: boolean) => ReactNode;\n\tpreventFontsLoading?: boolean;\n};\n\n/**\n * PlacesProvider — loads the Google Maps JS API with `places`, `marker`, and `maps` libraries.\n *\n * Uses a render-prop pattern: `children` receives `isLoaded` so you can defer rendering\n * `SearchPlaces` or `MapView` until the script is ready.\n *\n * @param props.apiKey - Google Maps API key. Required.\n * @param props.children - Render function: `(isLoaded: boolean) => ReactNode`.\n * @param props.preventFontsLoading - Prevents Google Fonts from being injected by the Maps SDK. @default true\n *\n * @returns The result of calling `children(isLoaded)`.\n *\n * @example\n * ```tsx\n * <PlacesProvider apiKey={env.GOOGLE_MAPS_KEY}>\n * {(isLoaded) => (\n * isLoaded\n * ? <SearchPlaces apiKey={env.GOOGLE_MAPS_KEY} onSelect={setAddress} />\n * : <Skeleton />\n * )}\n * </PlacesProvider>\n * ```\n */\n\nfunction PlacesProvider(props: PlacesProviderProps) {\n\tconst { apiKey, children, preventFontsLoading = true } = props;\n\n\tconst { isLoaded } = useLoadScript({\n\t\tgoogleMapsApiKey: apiKey,\n\t\tlibraries,\n\t\tpreventGoogleFontsLoading: preventFontsLoading,\n\t});\n\n\treturn <>{children(isLoaded)}</>;\n}\n\nexport { PlacesProvider };\n"],"mappings":";;;AAGA,IAAM,IAA8C;CACnD;CACA;CACA;AACD;AAgCA,SAAS,EAAe,GAA4B;CACnD,IAAM,EAAE,WAAQ,aAAU,yBAAsB,OAAS,GAEnD,EAAE,gBAAa,EAAc;EAClC,kBAAkB;EAClB;EACA,2BAA2B;CAC5B,CAAC;CAED,OAAO,kBAAA,GAAA,EAAA,UAAG,EAAS,CAAQ,EAAI,CAAA;AAChC"}
|
|
@@ -1,46 +1,49 @@
|
|
|
1
|
-
import { createContext as e } from "react";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
1
|
+
import { createContext as e, useMemo as t } from "react";
|
|
2
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
import i, { Toaster as a } from "react-hot-toast";
|
|
4
4
|
//#region src/providers/toastProvider.tsx
|
|
5
|
-
var
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
});
|
|
35
|
-
}
|
|
5
|
+
var o = e({});
|
|
6
|
+
function s(e) {
|
|
7
|
+
switch (e.type) {
|
|
8
|
+
case "success": return i.success(e.message, {
|
|
9
|
+
style: {
|
|
10
|
+
background: "#10B981",
|
|
11
|
+
color: "#ffffff",
|
|
12
|
+
padding: "12px 16px",
|
|
13
|
+
fontSize: "14px",
|
|
14
|
+
fontWeight: 600
|
|
15
|
+
},
|
|
16
|
+
iconTheme: {
|
|
17
|
+
primary: "#059669",
|
|
18
|
+
secondary: "#ffffff"
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
case "danger": return i.error(e.message, {
|
|
22
|
+
style: {
|
|
23
|
+
background: "#E11D48",
|
|
24
|
+
color: "#ffffff",
|
|
25
|
+
padding: "12px 16px",
|
|
26
|
+
fontSize: "14px",
|
|
27
|
+
fontWeight: 600
|
|
28
|
+
},
|
|
29
|
+
iconTheme: {
|
|
30
|
+
primary: "#BE123C",
|
|
31
|
+
secondary: "#ffffff"
|
|
32
|
+
}
|
|
33
|
+
});
|
|
36
34
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
}
|
|
36
|
+
function c({ children: e }) {
|
|
37
|
+
let i = t(() => ({ showToast: s }), []);
|
|
38
|
+
return /* @__PURE__ */ r(o.Provider, {
|
|
39
|
+
value: i,
|
|
40
|
+
children: [/* @__PURE__ */ n(a, {
|
|
40
41
|
position: "top-right",
|
|
41
42
|
containerStyle: { zIndex: 999999999999999 }
|
|
42
43
|
}), e]
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
46
|
//#endregion
|
|
46
|
-
export {
|
|
47
|
+
export { c as ToastProvider, o as toastContext };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=toastProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toastProvider.js","names":[],"sources":["../../../src/providers/toastProvider.tsx"],"sourcesContent":["import { createContext, type ReactNode, useMemo } from \"react\";\nimport toast, { Toaster } from \"react-hot-toast\";\n\ntype ToastProps = {\n\tmessage: string;\n\ttype: \"success\" | \"danger\";\n};\n\ntype ToastContextProps = {\n\tshowToast(toast: ToastProps): void;\n};\n\ntype ToastProviderProps = {\n\tchildren: ReactNode;\n};\n\nconst toastContext = createContext({} as ToastContextProps);\n\nfunction showToast(props: ToastProps) {\n\tswitch (props.type) {\n\t\tcase \"success\":\n\t\t\treturn toast.success(props.message, {\n\t\t\t\tstyle: {\n\t\t\t\t\tbackground: \"#10B981\",\n\t\t\t\t\tcolor: \"#ffffff\",\n\t\t\t\t\tpadding: \"12px 16px\",\n\t\t\t\t\tfontSize: \"14px\",\n\t\t\t\t\tfontWeight: 600,\n\t\t\t\t},\n\t\t\t\ticonTheme: {\n\t\t\t\t\tprimary: \"#059669\",\n\t\t\t\t\tsecondary: \"#ffffff\",\n\t\t\t\t},\n\t\t\t});\n\t\tcase \"danger\":\n\t\t\treturn toast.error(props.message, {\n\t\t\t\tstyle: {\n\t\t\t\t\tbackground: \"#E11D48\",\n\t\t\t\t\tcolor: \"#ffffff\",\n\t\t\t\t\tpadding: \"12px 16px\",\n\t\t\t\t\tfontSize: \"14px\",\n\t\t\t\t\tfontWeight: 600,\n\t\t\t\t},\n\t\t\t\ticonTheme: {\n\t\t\t\t\tprimary: \"#BE123C\",\n\t\t\t\t\tsecondary: \"#ffffff\",\n\t\t\t\t},\n\t\t\t});\n\t}\n}\n\n/**\n * ToastProvider — mounts a `react-hot-toast` `<Toaster>` and exposes `showToast` via context.\n *\n * Wrap your app once. Then call `useToast()` anywhere in the tree to show notifications.\n * Supports two types: `\"success\"` (green) and `\"danger\"` (red).\n *\n * @param props.children - App subtree that will have access to `useToast`.\n *\n * @returns ToastProvider JSX element.\n *\n * @example\n * ```tsx\n * // In your root layout\n * <ToastProvider>\n * <App />\n * </ToastProvider>\n *\n * // Anywhere in the tree\n * const { showToast } = useToast();\n * showToast({ message: \"Order placed!\", type: \"success\" });\n * ```\n */\n\nfunction ToastProvider({ children }: ToastProviderProps) {\n\tconst value = useMemo(() => ({ showToast }), []);\n\n\treturn (\n\t\t<toastContext.Provider value={value}>\n\t\t\t<Toaster\n\t\t\t\tposition=\"top-right\"\n\t\t\t\tcontainerStyle={{ zIndex: 999999999999999 }}\n\t\t\t/>\n\t\t\t{children}\n\t\t</toastContext.Provider>\n\t);\n}\n\nexport { ToastProvider, toastContext };\n"],"mappings":";;;;AAgBA,IAAM,IAAe,EAAc,CAAC,CAAsB;AAE1D,SAAS,EAAU,GAAmB;CACrC,QAAQ,EAAM,MAAd;EACC,KAAK,WACJ,OAAO,EAAM,QAAQ,EAAM,SAAS;GACnC,OAAO;IACN,YAAY;IACZ,OAAO;IACP,SAAS;IACT,UAAU;IACV,YAAY;GACb;GACA,WAAW;IACV,SAAS;IACT,WAAW;GACZ;EACD,CAAC;EACF,KAAK,UACJ,OAAO,EAAM,MAAM,EAAM,SAAS;GACjC,OAAO;IACN,YAAY;IACZ,OAAO;IACP,SAAS;IACT,UAAU;IACV,YAAY;GACb;GACA,WAAW;IACV,SAAS;IACT,WAAW;GACZ;EACD,CAAC;CACH;AACD;AAyBA,SAAS,EAAc,EAAE,eAAgC;CACxD,IAAM,IAAQ,SAAe,EAAE,aAAU,IAAI,CAAC,CAAC;CAE/C,OACC,kBAAC,EAAa,UAAd;EAA8B;YAA9B,CACC,kBAAC,GAAD;GACC,UAAS;GACT,gBAAgB,EAAE,QAAQ,gBAAgB;EAC1C,CAAA,GACA,CACqB;;AAEzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractTextFromNode.js","names":[],"sources":["../../../src/services/extractTextFromNode.ts"],"sourcesContent":["import { type Descendant, Node } from \"slate\";\n\nfunction extractTextFromNode(nodes: Descendant[]) {\n\treturn nodes.map((n) => Node.string(n)).join(\"\");\n}\n\nexport { extractTextFromNode };\n"],"mappings":";;AAEA,SAAS,EAAoB,GAAqB;CACjD,OAAO,EAAM,KAAK,MAAM,EAAK,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE;AAChD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldTemplate.js","names":[],"sources":["../../../src/services/fieldTemplate.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\n\nimport { FieldError } from \"../components/fieldError\";\nimport { FieldLabel } from \"../components/fieldLabel\";\nimport { FieldWrapper } from \"../components/fieldWrapper\";\n\ntype FormRendererProps = {\n\tname?: string;\n\tlabel?: string;\n\tclassName?: string;\n\tshowAsterisk?: boolean;\n\tunShowFieldTemplate?: boolean;\n\terrorMessage?: string;\n\torientation?: \"horizontal\" | \"vertical\" | \"horizontalReverse\";\n\tchildren: ReactNode;\n};\n\nfunction FieldTemplate(props: FormRendererProps) {\n\tconst {\n\t\tname,\n\t\tlabel,\n\t\tshowAsterisk,\n\t\tclassName,\n\t\tunShowFieldTemplate,\n\t\terrorMessage,\n\t\tchildren,\n\t\torientation,\n\t} = props;\n\n\tif (unShowFieldTemplate) return children;\n\n\treturn (\n\t\t<FieldWrapper id={name} className={className} orientation={orientation}>\n\t\t\t{label && <FieldLabel showAsterisk={showAsterisk}>{label}</FieldLabel>}\n\t\t\t{children}\n\t\t\t{errorMessage && <FieldError>{errorMessage}</FieldError>}\n\t\t</FieldWrapper>\n\t);\n}\n\nexport { FieldTemplate };\n"],"mappings":";;;;;AAiBA,SAAS,EAAc,GAA0B;CAChD,IAAM,EACL,SACA,UACA,iBACA,cACA,wBACA,iBACA,aACA,mBACG;CAIJ,OAFI,IAA4B,IAG/B,kBAAC,GAAD;EAAc,IAAI;EAAiB;EAAwB;YAA3D;GACE,KAAS,kBAAC,GAAD;IAA0B;cAAe;GAAkB,CAAA;GACpE;GACA,KAAgB,kBAAC,GAAD,EAAA,UAAa,EAAyB,CAAA;EAC1C;;AAEhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iconRenderer.js","names":[],"sources":["../../../src/services/iconRenderer.tsx"],"sourcesContent":["import type { LucideIcon } from \"lucide-react\";\n\ntype IconRendererProps = {\n\ticonSize: number;\n\tclassName?: string;\n\ticon?: LucideIcon | string;\n\tshow?: boolean;\n};\n\nfunction IconRenderer(props: IconRendererProps) {\n\tconst { iconSize, icon: Icon, className, show = true } = props;\n\n\tif (!show) return null;\n\tif (!Icon) return null;\n\n\tif (typeof Icon === \"string\") {\n\t\treturn <p className={className}>{Icon}</p>;\n\t}\n\n\treturn <Icon size={iconSize} strokeWidth={2.5} className={className} />;\n}\n\nexport { IconRenderer };\n"],"mappings":";;AASA,SAAS,EAAa,GAA0B;CAC/C,IAAM,EAAE,aAAU,MAAM,GAAM,cAAW,UAAO,OAAS;CASzD,OAPI,CAAC,KACD,CAAC,IAAa,OAEd,OAAO,KAAS,WACZ,kBAAC,KAAD;EAAc;YAAY;CAAQ,CAAA,IAGnC,kBAAC,GAAD;EAAM,MAAM;EAAU,aAAa;EAAgB;CAAY,CAAA;AACvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isBlockActive.js","names":[],"sources":["../../../src/services/isBlockActive.ts"],"sourcesContent":["import { Editor, Element as SlateElement } from \"slate\";\n\nimport type {\n\tRichTextAlignFormatType,\n\tRichTextElementFormatType,\n} from \"../types/richTextTypes\";\n\nfunction isBlockActive(\n\teditor: Editor,\n\tformat: RichTextElementFormatType | RichTextAlignFormatType,\n\tblockType: \"type\" | \"align\" = \"type\",\n) {\n\tconst { selection } = editor;\n\tif (!selection) return false;\n\n\tconst [match] = Array.from(\n\t\tEditor.nodes(editor, {\n\t\t\tat: Editor.unhangRange(editor, selection),\n\t\t\tmatch: (n) =>\n\t\t\t\t!Editor.isEditor(n) &&\n\t\t\t\tSlateElement.isElement(n) &&\n\t\t\t\tn[blockType] === format,\n\t\t}),\n\t);\n\n\treturn !!match;\n}\n\nexport { isBlockActive };\n"],"mappings":";;AAOA,SAAS,EACR,GACA,GACA,IAA8B,QAC7B;CACD,IAAM,EAAE,iBAAc;CACtB,IAAI,CAAC,GAAW,OAAO;CAEvB,IAAM,CAAC,KAAS,MAAM,KACrB,EAAO,MAAM,GAAQ;EACpB,IAAI,EAAO,YAAY,GAAQ,CAAS;EACxC,QAAQ,MACP,CAAC,EAAO,SAAS,CAAC,KAClB,EAAa,UAAU,CAAC,KACxB,EAAE,OAAe;CACnB,CAAC,CACF;CAEA,OAAO,CAAC,CAAC;AACV"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isMarkActive.js","names":[],"sources":["../../../src/services/isMarkActive.ts"],"sourcesContent":["import { Editor } from \"slate\";\n\nimport type { RichTextMarkFormatType } from \"../types/richTextTypes\";\n\nfunction isMarkActive(editor: Editor, format: RichTextMarkFormatType) {\n\tconst marks = Editor.marks(editor);\n\treturn marks ? marks[format] === true : false;\n}\n\nexport { isMarkActive };\n"],"mappings":";;AAIA,SAAS,EAAa,GAAgB,GAAgC;CACrE,IAAM,IAAQ,EAAO,MAAM,CAAM;CACjC,OAAO,IAAQ,EAAM,OAAY,KAAO;AACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maskCurrencyValues.js","names":[],"sources":["../../../src/services/maskCurrencyValues.ts"],"sourcesContent":["import { formatToCurrency, removeNonNumeric } from \"@arkyn/shared\";\n\ntype Locale =\n\t| \"USD\"\n\t| \"EUR\"\n\t| \"JPY\"\n\t| \"GBP\"\n\t| \"AUD\"\n\t| \"CAD\"\n\t| \"CHF\"\n\t| \"CNY\"\n\t| \"SEK\"\n\t| \"NZD\"\n\t| \"BRL\"\n\t| \"INR\"\n\t| \"RUB\"\n\t| \"ZAR\"\n\t| \"MXN\"\n\t| \"SGD\"\n\t| \"HKD\"\n\t| \"NOK\"\n\t| \"KRW\"\n\t| \"TRY\"\n\t| \"IDR\"\n\t| \"THB\";\n\nfunction normalizeValue(number: string | number) {\n\tlet safeNumber = number;\n\n\tif (typeof number === \"string\") {\n\t\tsafeNumber = +removeNonNumeric(number);\n\t\tif (safeNumber % 1 !== 0) safeNumber = safeNumber.toFixed(2);\n\t} else {\n\t\tsafeNumber = Number.isInteger(number)\n\t\t\t? Number(number) * 10 ** 2\n\t\t\t: number.toFixed(2);\n\t}\n\n\treturn +removeNonNumeric(String(safeNumber)) / 10 ** 2;\n}\n\nfunction maskCurrencyValues(\n\tinputFieldValue: string | number | undefined,\n\tlocale: Locale,\n): [number, string] {\n\tif (!inputFieldValue) return [0, formatToCurrency(0, locale)];\n\n\tconst value = normalizeValue(inputFieldValue);\n\tconst maskedValue = formatToCurrency(value, locale);\n\n\treturn [value, maskedValue];\n}\n\nexport { maskCurrencyValues, normalizeValue };\n"],"mappings":";;AA0BA,SAAS,EAAe,GAAyB;CAChD,IAAI,IAAa;CAWjB,OATI,OAAO,KAAW,YACrB,IAAa,CAAC,EAAiB,CAAM,GACjC,IAAa,KAAM,MAAG,IAAa,EAAW,QAAQ,CAAC,MAE3D,IAAa,OAAO,UAAU,CAAM,IACjC,OAAO,CAAM,IAAI,MAAM,IACvB,EAAO,QAAQ,CAAC,GAGZ,EAAiB,OAAO,CAAU,CAAC,IAAI,MAAM;AACtD;AAEA,SAAS,EACR,GACA,GACmB;CACnB,IAAI,CAAC,GAAiB,OAAO,CAAC,GAAG,EAAiB,GAAG,CAAM,CAAC;CAE5D,IAAM,IAAQ,EAAe,CAAe;CAG5C,OAAO,CAAC,GAFY,EAAiB,GAAO,CAE7B,CAAW;AAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toHtml.js","names":[],"sources":["../../../src/services/toHtml.ts"],"sourcesContent":["import type { RichTextValue } from \"../types/richTextTypes\";\nimport { serialize } from \"../utils/richTextUtilities\";\n\n/**\n * toHtml — converts a `RichTextValue` (Slate.js Descendant array) to an HTML string.\n *\n * Use this to persist or display the editor's content as plain HTML.\n *\n * @param richTextValue - The value from a `RichText` component's `onChange` callback.\n * @returns HTML string representation of the rich text content.\n *\n * @example\n * ```tsx\n * const [content, setContent] = useState<RichTextValue>([]);\n *\n * // On form submit, convert to HTML for storage\n * const html = toHtml(content);\n * // e.g. \"<p><strong>Hello world</strong></p>\"\n * ```\n */\n\nfunction toHtml(richTextValue: RichTextValue): string {\n\treturn richTextValue.map((node) => serialize(node)).join(\"\");\n}\n\nexport { toHtml };\n"],"mappings":";;AAqBA,SAAS,EAAO,GAAsC;CACrD,OAAO,EAAc,KAAK,MAAS,EAAU,CAAI,CAAC,CAAC,CAAC,KAAK,EAAE;AAC5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toRichTextValue.js","names":[],"sources":["../../../src/services/toRichTextValue.ts"],"sourcesContent":["import parse from \"html-react-parser\";\n\nimport type { ParseElement, RichTextValue } from \"../types/richTextTypes\";\nimport { deserialize } from \"../utils/richTextUtilities\";\n\n/**\n * toRichTextValue — converts an HTML string to a `RichTextValue` (Slate.js Descendant array).\n *\n * Use this to populate a `RichText` editor with content previously stored as HTML\n * (e.g. loaded from a database).\n *\n * @param html - HTML string to convert.\n * @returns Slate.js Descendant array ready to pass to `RichText`'s `defaultValue` prop.\n *\n * @example\n * ```tsx\n * // Load stored HTML into the editor\n * const defaultValue = toRichTextValue(product.description);\n * // e.g. [{ type: 'paragraph', children: [{ text: 'Hello', bold: true }] }]\n *\n * <RichText name=\"description\" defaultValue={defaultValue} />\n * ```\n */\n\nfunction toRichTextValue(html: string): RichTextValue {\n\tconst parsed = parse(html);\n\n\tif (Array.isArray(parsed)) {\n\t\treturn parsed.map((node) => {\n\t\t\tif (typeof node === \"string\") return { text: node };\n\t\t\treturn deserialize(node as ParseElement);\n\t\t});\n\t}\n\n\tif (typeof parsed === \"string\") return [{ text: parsed }];\n\treturn [deserialize(parsed as ParseElement)];\n}\n\nexport { toRichTextValue };\n"],"mappings":";;;AAwBA,SAAS,EAAgB,GAA6B;CACrD,IAAM,IAAS,EAAM,CAAI;CAUzB,OARI,MAAM,QAAQ,CAAM,IAChB,EAAO,KAAK,MACd,OAAO,KAAS,WAAiB,EAAE,MAAM,EAAK,IAC3C,EAAY,CAAoB,CACvC,IAGE,OAAO,KAAW,WAAiB,CAAC,EAAE,MAAM,EAAO,CAAC,IACjD,CAAC,EAAY,CAAsB,CAAC;AAC5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggleBlock.js","names":[],"sources":["../../../src/services/toggleBlock.ts"],"sourcesContent":["import { Editor, Element as SlateElement, Transforms } from \"slate\";\n\nimport { listTypes, textAlignTypes } from \"../templates/richTextTemplates\";\nimport type {\n\tRichTextAlignFormatType,\n\tRichTextElementFormatType,\n} from \"../types/richTextTypes\";\nimport { isBlockActive } from \"./isBlockActive\";\n\nfunction toggleBlock(\n\teditor: Editor,\n\tformat: RichTextElementFormatType | RichTextAlignFormatType,\n) {\n\tconst blockType = textAlignTypes.includes(format) ? \"align\" : \"type\";\n\tconst isActive = isBlockActive(editor, format, blockType);\n\n\tconst isList = listTypes.includes(format);\n\n\tTransforms.unwrapNodes(editor, {\n\t\tmatch: (n) =>\n\t\t\t!Editor.isEditor(n) &&\n\t\t\tSlateElement.isElement(n) &&\n\t\t\tlistTypes.includes(n.type) &&\n\t\t\t!textAlignTypes.includes(format),\n\t\tsplit: true,\n\t});\n\n\tlet newProperties: Partial<SlateElement>;\n\n\tif (textAlignTypes.includes(format)) {\n\t\tconst formatType = format as RichTextAlignFormatType;\n\t\tnewProperties = { align: isActive ? undefined : formatType };\n\t} else {\n\t\tconst formatType = format as RichTextElementFormatType;\n\t\tnewProperties = {\n\t\t\ttype: isActive ? \"paragraph\" : isList ? \"listItem\" : formatType,\n\t\t};\n\t}\n\n\tTransforms.setNodes<SlateElement>(editor, newProperties);\n\n\tif (!isActive && isList) {\n\t\tconst block = { type: format as RichTextElementFormatType, children: [] };\n\t\tTransforms.wrapNodes(editor, block);\n\t}\n}\n\nexport { toggleBlock };\n"],"mappings":";;;;AASA,SAAS,EACR,GACA,GACC;CAED,IAAM,IAAW,EAAc,GAAQ,GADrB,EAAe,SAAS,CAAM,IAAI,UAAU,MACN,GAElD,IAAS,EAAU,SAAS,CAAM;CAExC,EAAW,YAAY,GAAQ;EAC9B,QAAQ,MACP,CAAC,EAAO,SAAS,CAAC,KAClB,EAAa,UAAU,CAAC,KACxB,EAAU,SAAS,EAAE,IAAI,KACzB,CAAC,EAAe,SAAS,CAAM;EAChC,OAAO;CACR,CAAC;CAED,IAAI;CAcJ,IAZA,AAKC,IALG,EAAe,SAAS,CAAM,IAEjB,EAAE,OAAO,IAAW,KAAA,IAAY,EAAW,IAG3C,EACf,MAAM,IAAW,cAAc,IAAS,aAAa,EACtD,GAGD,EAAW,SAAuB,GAAQ,CAAa,GAEnD,CAAC,KAAY,GAAQ;EACxB,IAAM,IAAQ;GAAE,MAAM;GAAqC,UAAU,CAAC;EAAE;EACxE,EAAW,UAAU,GAAQ,CAAK;CACnC;AACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggleMark.js","names":[],"sources":["../../../src/services/toggleMark.ts"],"sourcesContent":["import { Editor } from \"slate\";\n\nimport type { RichTextMarkFormatType } from \"../types/richTextTypes\";\nimport { isMarkActive } from \"./isMarkActive\";\n\nfunction toggleMark(editor: Editor, format: RichTextMarkFormatType) {\n\tconst isActive = isMarkActive(editor, format);\n\n\tif (isActive) Editor.removeMark(editor, format);\n\telse Editor.addMark(editor, format, true);\n}\n\nexport { toggleMark };\n"],"mappings":";;;AAKA,SAAS,EAAW,GAAgB,GAAgC;CAGnE,AAFiB,EAAa,GAAQ,CAElC,IAAU,EAAO,WAAW,GAAQ,CAAM,IACzC,EAAO,QAAQ,GAAQ,GAAQ,EAAI;AACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badResponses.js","names":[],"sources":["../../../src/templates/badResponses.ts"],"sourcesContent":["const badResponses = [\n\t\"BadGateway\",\n\t\"BadRequest\",\n\t\"Conflict\",\n\t\"Forbidden\",\n\t\"NotFound\",\n\t\"NotImplemented\",\n\t\"ServerError\",\n\t\"Unauthorized\",\n\t\"UnprocessableEntity\",\n];\n\nexport { badResponses };\n"],"mappings":";AAAA,IAAM,IAAe;CACpB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"richTextTemplates.js","names":[],"sources":["../../../src/templates/richTextTemplates.ts"],"sourcesContent":["import type {\n\tDescendant,\n\tRichTextMarkFormatType,\n} from \"../types/richTextTypes\";\n\ntype HotKeys = {\n\t[key: string]: RichTextMarkFormatType;\n};\n\nconst hotKeys: HotKeys = {\n\t\"mod+b\": \"bold\",\n\t\"mod+i\": \"italic\",\n\t\"mod+u\": \"underline\",\n\t\"mod+`\": \"code\",\n};\n\nconst initialValue: Descendant[] = [\n\t{ type: \"paragraph\", children: [{ text: \"\" }] },\n];\n\nconst listTypes = [\"listItem\", \"numberedList\"];\n\nconst textAlignTypes = [\"left\", \"center\", \"right\", \"justify\"];\n\nexport { hotKeys, initialValue, listTypes, textAlignTypes };\n"],"mappings":";AASA,IAAM,IAAmB;CACxB,SAAS;CACT,SAAS;CACT,SAAS;CACT,SAAS;AACV,GAEM,IAA6B,CAClC;CAAE,MAAM;CAAa,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC;AAAE,CAC/C,GAEM,IAAY,CAAC,YAAY,cAAc,GAEvC,IAAiB;CAAC;CAAQ;CAAU;CAAS;AAAS"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"successResponses.js","names":[],"sources":["../../../src/templates/successResponses.ts"],"sourcesContent":["const successResponses = [\"Created\", \"Found\", \"Success\", \"Updated\"];\n\nexport { successResponses };\n"],"mappings":";AAAA,IAAM,IAAmB;CAAC;CAAW;CAAS;CAAW;AAAS"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phoneInputUtilities.js","names":[],"sources":["../../../src/utils/phoneInputUtilities.ts"],"sourcesContent":["function clear(value: string) {\n\treturn value?.replace(/[^0-9]/g, \"\");\n}\n\nconst TYPES = {\n\tEIGHT: \"(99) 9999-9999\",\n\tNINE: \"(99) 99999-9999\",\n};\n\nfunction applyMask(value: string, maskPattern: string) {\n\tlet result = \"\";\n\tlet digitIndex = 0;\n\n\tfor (let i = 0; i < maskPattern.length; i++) {\n\t\tif (maskPattern[i] === \"9\") {\n\t\t\tif (digitIndex < value.length) {\n\t\t\t\tresult += value[digitIndex];\n\t\t\t\tdigitIndex++;\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} else {\n\t\t\tif (digitIndex < value.length) {\n\t\t\t\tresult += maskPattern[i];\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn result;\n}\n\nfunction getMask(value: string): \"NINE\" | \"EIGHT\" {\n\tconst mask = value.length > 10 ? \"NINE\" : \"EIGHT\";\n\treturn mask;\n}\n\nconst MAX_LENGTH = clear(TYPES.NINE).length;\n\nexport { applyMask, clear, getMask, MAX_LENGTH, TYPES };\n"],"mappings":";AAAA,SAAS,EAAM,GAAe;CAC7B,OAAO,GAAO,QAAQ,WAAW,EAAE;AACpC;AAEA,IAAM,IAAQ;CACb,OAAO;CACP,MAAM;AACP;AAEA,SAAS,EAAU,GAAe,GAAqB;CACtD,IAAI,IAAS,IACT,IAAa;CAEjB,KAAK,IAAI,IAAI,GAAG,IAAI,EAAY,QAAQ,KACvC,IAAI,EAAY,OAAO,KACtB,IAAI,IAAa,EAAM,QAEtB,AADA,KAAU,EAAM,IAChB;MAEA;MAGD,IAAI,IAAa,EAAM,QACtB,KAAU,EAAY;MAEtB;CAKH,OAAO;AACR;AAEA,SAAS,EAAQ,GAAiC;CAEjD,OADa,EAAM,SAAS,KAAK,SAAS;AAE3C;AAEA,IAAM,IAAa,EAAM,EAAM,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"richTextUtilities.js","names":[],"sources":["../../../src/utils/richTextUtilities.ts"],"sourcesContent":["import { Element, Text } from \"slate\";\nimport type { ParseElement } from \"../types/richTextTypes\";\n\n// biome-ignore lint/suspicious/noExplicitAny: intentional\nfunction serialize(node: any): string {\n\tif (Text.isText(node)) {\n\t\tlet text = node?.text;\n\t\tif (node?.bold) {\n\t\t\ttext = `<strong>${text}</strong>`;\n\t\t}\n\t\tif (node?.code) {\n\t\t\ttext = `<code>${text}</code>`;\n\t\t}\n\t\tif (node?.italic) {\n\t\t\ttext = `<em>${text}</em>`;\n\t\t}\n\t\tif (node?.underline) {\n\t\t\ttext = `<u>${text}</u>`;\n\t\t}\n\t\treturn text;\n\t}\n\n\tif (Element.isElement(node)) {\n\t\t// biome-ignore lint/suspicious/noExplicitAny: intentional\n\t\tconst children = node.children?.map((n: any) => serialize(n)).join(\"\");\n\t\tconst alignStyle = node.align || \"left\";\n\n\t\tswitch (node.type) {\n\t\t\tcase \"video\":\n\t\t\t\treturn `<iframe src=\"${node.src}\" class=\"align_${alignStyle}\" />`;\n\t\t\tcase \"image\":\n\t\t\t\treturn `<img src=\"${node.src}\" class=\"align_${alignStyle}\" />`;\n\t\t\tcase \"paragraph\":\n\t\t\t\treturn `<p class=\"align_${alignStyle}\">${children}</p>`;\n\t\t\tcase \"blockQuote\":\n\t\t\t\treturn `<blockquote class=\"align_${alignStyle}\">${children}</blockquote>`;\n\t\t\tcase \"bulletedList\":\n\t\t\t\treturn `<ul class=\"align_${alignStyle}\">${children}</ul>`;\n\t\t\tcase \"headingOne\":\n\t\t\t\treturn `<h1 class=\"align_${alignStyle}\">${children}</h1>`;\n\t\t\tcase \"headingTwo\":\n\t\t\t\treturn `<h2 class=\"align_${alignStyle}\">${children}</h2>`;\n\t\t\tcase \"listItem\":\n\t\t\t\treturn `<li class=\"align_${alignStyle}\">${children}</li>`;\n\t\t\tcase \"numberedList\":\n\t\t\t\treturn `<ol class=\"align_${alignStyle}\">${children}</ol>`;\n\t\t\tdefault:\n\t\t\t\treturn \"\";\n\t\t}\n\t}\n\n\treturn \"\";\n}\n\n// biome-ignore lint/suspicious/noExplicitAny: intentional\nfunction deserialize(el: ParseElement): any {\n\tif (typeof el === \"string\") {\n\t\treturn { text: el };\n\t}\n\n\tconst children = Array.isArray(el.props.children)\n\t\t? el.props.children.map((child) => deserialize(child))\n\t\t: [{ text: el.props.children || \"\" }];\n\n\tconst align = el.props.className?.replace(\"align_\", \"\") as\n\t\t| \"left\"\n\t\t| \"center\"\n\t\t| \"right\"\n\t\t| \"justify\";\n\n\tswitch (el.type) {\n\t\tcase \"img\":\n\t\t\treturn {\n\t\t\t\ttype: \"image\",\n\t\t\t\talign,\n\t\t\t\tsrc: el.props.src,\n\t\t\t\tchildren: [{ text: \"\" }],\n\t\t\t};\n\t\tcase \"p\":\n\t\t\treturn { type: \"paragraph\", align, children };\n\t\tcase \"blockquote\":\n\t\t\treturn { type: \"blockQuote\", align, children };\n\t\tcase \"ul\":\n\t\t\treturn { type: \"bulletedList\", align, children };\n\t\tcase \"ol\":\n\t\t\treturn { type: \"numberedList\", align, children };\n\t\tcase \"li\":\n\t\t\treturn { type: \"listItem\", align, children };\n\t\tcase \"h1\":\n\t\t\treturn { type: \"headingOne\", align, children };\n\t\tcase \"h2\":\n\t\t\treturn { type: \"headingTwo\", align, children };\n\t\tcase \"strong\":\n\t\t\treturn { text: el.props.children, bold: true };\n\t\tcase \"code\":\n\t\t\treturn { text: el.props.children, code: true };\n\t\tcase \"em\":\n\t\t\treturn { text: el.props.children, italic: true };\n\t\tcase \"u\":\n\t\t\treturn { text: el.props.children, underline: true };\n\t\tdefault:\n\t\t\treturn { text: el.props.children || \"\" };\n\t}\n}\n\nexport { deserialize, serialize };\n"],"mappings":";;AAIA,SAAS,EAAU,GAAmB;CACrC,IAAI,EAAK,OAAO,CAAI,GAAG;EACtB,IAAI,IAAO,GAAM;EAajB,OAZI,GAAM,SACT,IAAO,WAAW,EAAK,aAEpB,GAAM,SACT,IAAO,SAAS,EAAK,WAElB,GAAM,WACT,IAAO,OAAO,EAAK,SAEhB,GAAM,cACT,IAAO,MAAM,EAAK,QAEZ;CACR;CAEA,IAAI,EAAQ,UAAU,CAAI,GAAG;EAE5B,IAAM,IAAW,EAAK,UAAU,KAAK,MAAW,EAAU,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,GAC/D,IAAa,EAAK,SAAS;EAEjC,QAAQ,EAAK,MAAb;GACC,KAAK,SACJ,OAAO,gBAAgB,EAAK,IAAI,iBAAiB,EAAW;GAC7D,KAAK,SACJ,OAAO,aAAa,EAAK,IAAI,iBAAiB,EAAW;GAC1D,KAAK,aACJ,OAAO,mBAAmB,EAAW,IAAI,EAAS;GACnD,KAAK,cACJ,OAAO,4BAA4B,EAAW,IAAI,EAAS;GAC5D,KAAK,gBACJ,OAAO,oBAAoB,EAAW,IAAI,EAAS;GACpD,KAAK,cACJ,OAAO,oBAAoB,EAAW,IAAI,EAAS;GACpD,KAAK,cACJ,OAAO,oBAAoB,EAAW,IAAI,EAAS;GACpD,KAAK,YACJ,OAAO,oBAAoB,EAAW,IAAI,EAAS;GACpD,KAAK,gBACJ,OAAO,oBAAoB,EAAW,IAAI,EAAS;GACpD,SACC,OAAO;EACT;CACD;CAEA,OAAO;AACR;AAGA,SAAS,EAAY,GAAuB;CAC3C,IAAI,OAAO,KAAO,UACjB,OAAO,EAAE,MAAM,EAAG;CAGnB,IAAM,IAAW,MAAM,QAAQ,EAAG,MAAM,QAAQ,IAC7C,EAAG,MAAM,SAAS,KAAK,MAAU,EAAY,CAAK,CAAC,IACnD,CAAC,EAAE,MAAM,EAAG,MAAM,YAAY,GAAG,CAAC,GAE/B,IAAQ,EAAG,MAAM,WAAW,QAAQ,UAAU,EAAE;CAMtD,QAAQ,EAAG,MAAX;EACC,KAAK,OACJ,OAAO;GACN,MAAM;GACN;GACA,KAAK,EAAG,MAAM;GACd,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC;EACxB;EACD,KAAK,KACJ,OAAO;GAAE,MAAM;GAAa;GAAO;EAAS;EAC7C,KAAK,cACJ,OAAO;GAAE,MAAM;GAAc;GAAO;EAAS;EAC9C,KAAK,MACJ,OAAO;GAAE,MAAM;GAAgB;GAAO;EAAS;EAChD,KAAK,MACJ,OAAO;GAAE,MAAM;GAAgB;GAAO;EAAS;EAChD,KAAK,MACJ,OAAO;GAAE,MAAM;GAAY;GAAO;EAAS;EAC5C,KAAK,MACJ,OAAO;GAAE,MAAM;GAAc;GAAO;EAAS;EAC9C,KAAK,MACJ,OAAO;GAAE,MAAM;GAAc;GAAO;EAAS;EAC9C,KAAK,UACJ,OAAO;GAAE,MAAM,EAAG,MAAM;GAAU,MAAM;EAAK;EAC9C,KAAK,QACJ,OAAO;GAAE,MAAM,EAAG,MAAM;GAAU,MAAM;EAAK;EAC9C,KAAK,MACJ,OAAO;GAAE,MAAM,EAAG,MAAM;GAAU,QAAQ;EAAK;EAChD,KAAK,KACJ,OAAO;GAAE,MAAM,EAAG,MAAM;GAAU,WAAW;EAAK;EACnD,SACC,OAAO,EAAE,MAAM,EAAG,MAAM,YAAY,GAAG;CACzC;AACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formProvider.d.ts","sourceRoot":"","sources":["../../src/providers/formProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"formProvider.d.ts","sourceRoot":"","sources":["../../src/providers/formProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAE7E,KAAK,gBAAgB,GAAG;IAEvB,WAAW,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAClC,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACxB,QAAQ,EAAE,SAAS,CAAC;IAEpB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,WAAW,2CAAwC,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAgB7C;AAED,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toastProvider.d.ts","sourceRoot":"","sources":["../../src/providers/toastProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"toastProvider.d.ts","sourceRoot":"","sources":["../../src/providers/toastProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAG/D,KAAK,UAAU,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC3B,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACxB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;CACnC,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACzB,QAAQ,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,YAAY,4CAAyC,CAAC;AAmC5D;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,iBAAS,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,+BAYtD;AAED,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC"}
|