@arkyn/components 3.0.1-beta.99 → 3.0.3
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 +198 -22
- package/dist/components/alert/alertContainer/index.d.ts +30 -46
- package/dist/components/alert/alertContainer/index.d.ts.map +1 -1
- package/dist/components/alert/alertContent/index.d.ts +12 -37
- package/dist/components/alert/alertContent/index.d.ts.map +1 -1
- package/dist/components/alert/alertDescription/index.d.ts +11 -39
- package/dist/components/alert/alertDescription/index.d.ts.map +1 -1
- package/dist/components/alert/alertIcon/index.d.ts +16 -40
- package/dist/components/alert/alertIcon/index.d.ts.map +1 -1
- package/dist/components/alert/alertTitle/index.d.ts +13 -36
- package/dist/components/alert/alertTitle/index.d.ts.map +1 -1
- package/dist/components/audioPlayer/index.d.ts +25 -33
- package/dist/components/audioPlayer/index.d.ts.map +1 -1
- package/dist/components/audioUpload/hasFileContent/index.d.ts +1 -1
- package/dist/components/audioUpload/hasFileContent/index.d.ts.map +1 -1
- package/dist/components/audioUpload/index.d.ts +38 -49
- package/dist/components/audioUpload/index.d.ts.map +1 -1
- package/dist/components/audioUpload/noFileContent/index.d.ts +1 -1
- package/dist/components/audioUpload/noFileContent/index.d.ts.map +1 -1
- package/dist/components/badge/index.d.ts +34 -25
- package/dist/components/badge/index.d.ts.map +1 -1
- package/dist/components/button/index.d.ts +42 -32
- package/dist/components/button/index.d.ts.map +1 -1
- 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 +16 -54
- package/dist/components/cardTab/cardTabButton/index.d.ts.map +1 -1
- package/dist/components/cardTab/cardTabContainer/index.d.ts +18 -60
- package/dist/components/cardTab/cardTabContainer/index.d.ts.map +1 -1
- package/dist/components/cardTab/cardTabContext.d.ts +4 -4
- package/dist/components/cardTab/cardTabContext.d.ts.map +1 -1
- package/dist/components/checkbox/index.d.ts +42 -37
- package/dist/components/checkbox/index.d.ts.map +1 -1
- package/dist/components/clientOnly.d.ts +14 -67
- package/dist/components/clientOnly.d.ts.map +1 -1
- package/dist/components/currencyInput/index.d.ts +75 -53
- package/dist/components/currencyInput/index.d.ts.map +1 -1
- package/dist/components/datePicker/datePickerCalendarContainer/index.d.ts +9 -0
- package/dist/components/datePicker/datePickerCalendarContainer/index.d.ts.map +1 -0
- package/dist/components/datePicker/datePickerChevron/index.d.ts +11 -0
- package/dist/components/datePicker/datePickerChevron/index.d.ts.map +1 -0
- package/dist/components/datePicker/datePickerContainer/index.d.ts +19 -0
- package/dist/components/datePicker/datePickerContainer/index.d.ts.map +1 -0
- package/dist/components/datePicker/datePickerContent/index.d.ts +9 -0
- package/dist/components/datePicker/datePickerContent/index.d.ts.map +1 -0
- package/dist/components/datePicker/datePickerOverlay/index.d.ts +8 -0
- package/dist/components/datePicker/datePickerOverlay/index.d.ts.map +1 -0
- package/dist/components/datePicker/datePickerSpinner/index.d.ts +8 -0
- package/dist/components/datePicker/datePickerSpinner/index.d.ts.map +1 -0
- package/dist/components/datePicker/index.d.ts +155 -0
- package/dist/components/datePicker/index.d.ts.map +1 -0
- package/dist/components/divider/index.d.ts +14 -27
- package/dist/components/divider/index.d.ts.map +1 -1
- package/dist/components/drawer/drawerContainer/index.d.ts +18 -52
- package/dist/components/drawer/drawerContainer/index.d.ts.map +1 -1
- package/dist/components/drawer/drawerContext.d.ts +2 -2
- package/dist/components/drawer/drawerContext.d.ts.map +1 -1
- package/dist/components/drawer/drawerHeader/index.d.ts +11 -35
- package/dist/components/drawer/drawerHeader/index.d.ts.map +1 -1
- 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 +6 -13
- package/dist/components/fieldError/index.d.ts.map +1 -1
- package/dist/components/fieldLabel/index.d.ts +8 -23
- package/dist/components/fieldLabel/index.d.ts.map +1 -1
- package/dist/components/fieldWrapper/index.d.ts +14 -24
- package/dist/components/fieldWrapper/index.d.ts.map +1 -1
- package/dist/components/fileUpload/hasFileContent/index.d.ts +1 -1
- package/dist/components/fileUpload/hasFileContent/index.d.ts.map +1 -1
- package/dist/components/fileUpload/index.d.ts +37 -62
- package/dist/components/fileUpload/index.d.ts.map +1 -1
- package/dist/components/fileUpload/noFileContent/index.d.ts +1 -1
- package/dist/components/fileUpload/noFileContent/index.d.ts.map +1 -1
- 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 +35 -19
- package/dist/components/iconButton/index.d.ts.map +1 -1
- package/dist/components/imageUpload/hasFileContent/index.d.ts +1 -1
- package/dist/components/imageUpload/hasFileContent/index.d.ts.map +1 -1
- package/dist/components/imageUpload/index.d.ts +51 -75
- package/dist/components/imageUpload/index.d.ts.map +1 -1
- package/dist/components/imageUpload/noFileContent/index.d.ts +1 -1
- package/dist/components/imageUpload/noFileContent/index.d.ts.map +1 -1
- package/dist/components/input/index.d.ts +58 -47
- package/dist/components/input/index.d.ts.map +1 -1
- package/dist/components/mapView/index.d.ts +55 -7
- package/dist/components/mapView/index.d.ts.map +1 -1
- 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 +71 -56
- package/dist/components/maskedInput/index.d.ts.map +1 -1
- package/dist/components/modal/modalContainer/index.d.ts +19 -59
- package/dist/components/modal/modalContainer/index.d.ts.map +1 -1
- package/dist/components/modal/modalContext.d.ts +2 -2
- package/dist/components/modal/modalContext.d.ts.map +1 -1
- package/dist/components/modal/modalFooter/index.d.ts +19 -52
- package/dist/components/modal/modalFooter/index.d.ts.map +1 -1
- package/dist/components/modal/modalHeader/index.d.ts +15 -49
- package/dist/components/modal/modalHeader/index.d.ts.map +1 -1
- package/dist/components/multiSelect/index.d.ts +72 -63
- package/dist/components/multiSelect/index.d.ts.map +1 -1
- package/dist/components/multiSelect/multiSelectChevron/index.d.ts +1 -1
- package/dist/components/multiSelect/multiSelectChevron/index.d.ts.map +1 -1
- package/dist/components/multiSelect/multiSelectContainer/index.d.ts +2 -2
- package/dist/components/multiSelect/multiSelectContainer/index.d.ts.map +1 -1
- package/dist/components/multiSelect/multiSelectContent/index.d.ts +2 -2
- package/dist/components/multiSelect/multiSelectContent/index.d.ts.map +1 -1
- package/dist/components/multiSelect/multiSelectMark/index.d.ts +1 -1
- package/dist/components/multiSelect/multiSelectMark/index.d.ts.map +1 -1
- package/dist/components/multiSelect/multiSelectOption/index.d.ts +1 -1
- package/dist/components/multiSelect/multiSelectOption/index.d.ts.map +1 -1
- package/dist/components/multiSelect/multiSelectOptionsContainer/index.d.ts +2 -2
- package/dist/components/multiSelect/multiSelectOptionsContainer/index.d.ts.map +1 -1
- package/dist/components/multiSelect/multiSelectOverlay/index.d.ts +1 -1
- package/dist/components/multiSelect/multiSelectOverlay/index.d.ts.map +1 -1
- package/dist/components/multiSelect/multiSelectSpinner/index.d.ts +1 -1
- package/dist/components/multiSelect/multiSelectSpinner/index.d.ts.map +1 -1
- package/dist/components/pagination/chevronButton/index.d.ts +1 -1
- package/dist/components/pagination/chevronButton/index.d.ts.map +1 -1
- package/dist/components/pagination/currentButton/index.d.ts +1 -1
- package/dist/components/pagination/currentButton/index.d.ts.map +1 -1
- package/dist/components/pagination/index.d.ts +20 -11
- package/dist/components/pagination/index.d.ts.map +1 -1
- package/dist/components/pagination/pageButton/index.d.ts +1 -1
- package/dist/components/pagination/pageButton/index.d.ts.map +1 -1
- package/dist/components/pagination/paginationService.d.ts.map +1 -1
- package/dist/components/pagination/spread/index.d.ts +1 -1
- package/dist/components/pagination/spread/index.d.ts.map +1 -1
- package/dist/components/phoneInput/index.d.ts +68 -89
- package/dist/components/phoneInput/index.d.ts.map +1 -1
- package/dist/components/phoneInput/phoneInputContainer/index.d.ts +2 -2
- package/dist/components/phoneInput/phoneInputContainer/index.d.ts.map +1 -1
- package/dist/components/phoneInput/phoneInputCountriesOverlay/index.d.ts +1 -1
- package/dist/components/phoneInput/phoneInputCountriesOverlay/index.d.ts.map +1 -1
- package/dist/components/phoneInput/phoneInputCountryOption/index.d.ts +2 -3
- package/dist/components/phoneInput/phoneInputCountryOption/index.d.ts.map +1 -1
- package/dist/components/phoneInput/phoneInputCountryOptionsContainer/index.d.ts +2 -2
- package/dist/components/phoneInput/phoneInputCountryOptionsContainer/index.d.ts.map +1 -1
- package/dist/components/phoneInput/phoneInputCountrySelector/index.d.ts +2 -3
- package/dist/components/phoneInput/phoneInputCountrySelector/index.d.ts.map +1 -1
- package/dist/components/phoneInput/phoneInputMask/index.d.ts +1 -2
- package/dist/components/phoneInput/phoneInputMask/index.d.ts.map +1 -1
- package/dist/components/popover/index.d.ts +36 -116
- package/dist/components/popover/index.d.ts.map +1 -1
- package/dist/components/radio/radioBox/index.d.ts +19 -67
- package/dist/components/radio/radioBox/index.d.ts.map +1 -1
- package/dist/components/radio/radioContext.d.ts +2 -2
- package/dist/components/radio/radioContext.d.ts.map +1 -1
- package/dist/components/radio/radioGroup/index.d.ts +40 -67
- package/dist/components/radio/radioGroup/index.d.ts.map +1 -1
- package/dist/components/richText/blockButton/index.d.ts +3 -3
- package/dist/components/richText/blockButton/index.d.ts.map +1 -1
- package/dist/components/richText/element/index.d.ts +2 -2
- package/dist/components/richText/element/index.d.ts.map +1 -1
- package/dist/components/richText/index.d.ts +35 -47
- package/dist/components/richText/index.d.ts.map +1 -1
- package/dist/components/richText/insertImage/index.d.ts +2 -2
- package/dist/components/richText/insertImage/index.d.ts.map +1 -1
- 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 +2 -2
- package/dist/components/richText/leaf/index.d.ts.map +1 -1
- package/dist/components/richText/markButton/index.d.ts +3 -3
- package/dist/components/richText/markButton/index.d.ts.map +1 -1
- package/dist/components/richText/toolbar/index.d.ts +2 -2
- package/dist/components/richText/toolbar/index.d.ts.map +1 -1
- package/dist/components/searchPlaces.d.ts +55 -52
- package/dist/components/searchPlaces.d.ts.map +1 -1
- package/dist/components/select/index.d.ts +73 -64
- package/dist/components/select/index.d.ts.map +1 -1
- package/dist/components/select/selectChevron/index.d.ts +1 -1
- package/dist/components/select/selectChevron/index.d.ts.map +1 -1
- package/dist/components/select/selectContainer/index.d.ts +2 -2
- package/dist/components/select/selectContainer/index.d.ts.map +1 -1
- package/dist/components/select/selectContent/index.d.ts +2 -2
- package/dist/components/select/selectContent/index.d.ts.map +1 -1
- package/dist/components/select/selectOption/index.d.ts +1 -1
- package/dist/components/select/selectOption/index.d.ts.map +1 -1
- package/dist/components/select/selectOptionsContainer/index.d.ts +2 -2
- package/dist/components/select/selectOptionsContainer/index.d.ts.map +1 -1
- package/dist/components/select/selectOverlay/index.d.ts +1 -1
- package/dist/components/select/selectOverlay/index.d.ts.map +1 -1
- package/dist/components/select/selectSpinner/index.d.ts +1 -1
- package/dist/components/select/selectSpinner/index.d.ts.map +1 -1
- package/dist/components/slider/index.d.ts +22 -36
- package/dist/components/slider/index.d.ts.map +1 -1
- package/dist/components/switch/index.d.ts +46 -58
- package/dist/components/switch/index.d.ts.map +1 -1
- package/dist/components/tab/tabButton/index.d.ts +16 -54
- package/dist/components/tab/tabButton/index.d.ts.map +1 -1
- package/dist/components/tab/tabContainer/index.d.ts +18 -60
- package/dist/components/tab/tabContainer/index.d.ts.map +1 -1
- package/dist/components/tab/tabContext.d.ts +2 -2
- package/dist/components/tab/tabContext.d.ts.map +1 -1
- package/dist/components/table/tableBody/index.d.ts +15 -49
- package/dist/components/table/tableBody/index.d.ts.map +1 -1
- package/dist/components/table/tableCaption/index.d.ts +8 -48
- package/dist/components/table/tableCaption/index.d.ts.map +1 -1
- package/dist/components/table/tableContainer/index.d.ts +14 -43
- package/dist/components/table/tableContainer/index.d.ts.map +1 -1
- package/dist/components/table/tableFooter/index.d.ts +7 -31
- package/dist/components/table/tableFooter/index.d.ts.map +1 -1
- package/dist/components/table/tableHeader/index.d.ts +6 -27
- package/dist/components/table/tableHeader/index.d.ts.map +1 -1
- package/dist/components/textarea/index.d.ts +36 -68
- package/dist/components/textarea/index.d.ts.map +1 -1
- package/dist/components/tooltip/index.d.ts +29 -57
- package/dist/components/tooltip/index.d.ts.map +1 -1
- package/dist/hooks/useAutomation.d.ts +22 -25
- package/dist/hooks/useAutomation.d.ts.map +1 -1
- package/dist/hooks/useDrawer.d.ts +20 -65
- package/dist/hooks/useDrawer.d.ts.map +1 -1
- package/dist/hooks/useForm.d.ts +12 -29
- package/dist/hooks/useForm.d.ts.map +1 -1
- package/dist/hooks/useHydrated.d.ts +8 -63
- package/dist/hooks/useHydrated.d.ts.map +1 -1
- package/dist/hooks/useModal.d.ts +20 -60
- package/dist/hooks/useModal.d.ts.map +1 -1
- package/dist/hooks/useScopedParams.d.ts +18 -70
- package/dist/hooks/useScopedParams.d.ts.map +1 -1
- package/dist/hooks/useScrollLock.d.ts +11 -27
- package/dist/hooks/useScrollLock.d.ts.map +1 -1
- package/dist/hooks/useSearchAutomation.d.ts +31 -0
- package/dist/hooks/useSearchAutomation.d.ts.map +1 -0
- package/dist/hooks/useSlider.d.ts +5 -19
- package/dist/hooks/useSlider.d.ts.map +1 -1
- package/dist/hooks/useToast.d.ts +8 -52
- package/dist/hooks/useToast.d.ts.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4644 -69
- package/dist/index.js.map +1 -0
- package/dist/modules/components/alert/alertContainer/index.js +29 -0
- 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 +14 -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 +14 -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 +30 -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 +14 -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 +77 -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 +57 -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 +74 -0
- package/dist/modules/components/audioUpload/index.js.map +1 -0
- package/dist/modules/components/audioUpload/noFileContent/index.js +38 -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 +29 -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 +42 -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 +42 -0
- package/dist/modules/components/calendar/_calendarProvider.js.map +1 -0
- package/dist/modules/components/calendar/_viewService.js +135 -0
- package/dist/modules/components/calendar/_viewService.js.map +1 -0
- package/dist/modules/components/calendar/calendarContainer/index.js +13 -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 +58 -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 +15 -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 +13 -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 +16 -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 +23 -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 +34 -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 +22 -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 +25 -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 +26 -0
- package/dist/modules/components/cardTab/cardTabContext.js.map +1 -0
- package/dist/modules/components/checkbox/index.js +40 -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 +10 -0
- package/dist/modules/components/clientOnly.js.map +1 -0
- package/dist/modules/components/currencyInput/index.js +114 -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/datePicker/datePickerCalendarContainer/index.js +25 -0
- package/dist/modules/components/datePicker/datePickerCalendarContainer/index.js.map +1 -0
- package/dist/modules/components/datePicker/datePickerCalendarContainer/styles.css +1 -0
- package/dist/modules/components/datePicker/datePickerChevron/index.js +21 -0
- package/dist/modules/components/datePicker/datePickerChevron/index.js.map +1 -0
- package/dist/modules/components/datePicker/datePickerChevron/styles.css +1 -0
- package/dist/modules/components/datePicker/datePickerContainer/index.js +16 -0
- package/dist/modules/components/datePicker/datePickerContainer/index.js.map +1 -0
- package/dist/modules/components/datePicker/datePickerContainer/styles.css +1 -0
- package/dist/modules/components/datePicker/datePickerContent/index.js +14 -0
- package/dist/modules/components/datePicker/datePickerContent/index.js.map +1 -0
- package/dist/modules/components/datePicker/datePickerContent/styles.css +1 -0
- package/dist/modules/components/datePicker/datePickerOverlay/index.js +14 -0
- package/dist/modules/components/datePicker/datePickerOverlay/index.js.map +1 -0
- package/dist/modules/components/datePicker/datePickerOverlay/styles.css +1 -0
- package/dist/modules/components/datePicker/datePickerSpinner/index.js +16 -0
- package/dist/modules/components/datePicker/datePickerSpinner/index.js.map +1 -0
- package/dist/modules/components/datePicker/datePickerSpinner/styles.css +1 -0
- package/dist/modules/components/datePicker/index.js +194 -0
- package/dist/modules/components/datePicker/index.js.map +1 -0
- package/dist/modules/components/datePicker/styles.css +79 -0
- package/dist/modules/components/divider/index.js +14 -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 +39 -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 +18 -0
- package/dist/modules/components/drawer/drawerContext.js.map +1 -0
- package/dist/modules/components/drawer/drawerHeader/index.js +23 -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 +10 -0
- package/dist/modules/components/facebookPixel/facebookPixel.client.js.map +1 -0
- package/dist/modules/components/facebookPixel/index.js +11 -0
- package/dist/modules/components/facebookPixel/index.js.map +1 -0
- package/dist/modules/components/facebookPixel/pixel.js +50 -0
- package/dist/modules/components/facebookPixel/pixel.js.map +1 -0
- package/dist/modules/components/fieldError/index.js +15 -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 +14 -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 +15 -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 +62 -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 +68 -0
- package/dist/modules/components/fileUpload/index.js.map +1 -0
- package/dist/modules/components/fileUpload/noFileContent/index.js +38 -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 +37 -0
- package/dist/modules/components/fullCalendar/_fullCalendarProvider.js.map +1 -0
- package/dist/modules/components/fullCalendar/_viewService.js +103 -0
- package/dist/modules/components/fullCalendar/_viewService.js.map +1 -0
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +13 -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 +73 -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 +31 -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 +16 -0
- package/dist/modules/components/fullCalendar/dayCalendar/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js +13 -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 +71 -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 +33 -0
- package/dist/modules/components/fullCalendar/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/index.js +12 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +31 -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 +15 -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 +13 -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 +16 -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 +38 -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 +12 -0
- package/dist/modules/components/fullCalendar/weekCalendar/index.js.map +1 -0
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +73 -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 +20 -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 +13 -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 +19 -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 +37 -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 +9 -0
- package/dist/modules/components/googleAnalytics/googleAnalytics.client.js.map +1 -0
- package/dist/modules/components/googleAnalytics/googleAnalytics.js +20 -0
- package/dist/modules/components/googleAnalytics/googleAnalytics.js.map +1 -0
- package/dist/modules/components/googleAnalytics/index.js +12 -0
- package/dist/modules/components/googleAnalytics/index.js.map +1 -0
- package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js +16 -0
- package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js.map +1 -0
- package/dist/modules/components/googleTagManager/googleTagManager.client.js +9 -0
- package/dist/modules/components/googleTagManager/googleTagManager.client.js.map +1 -0
- package/dist/modules/components/googleTagManager/googleTagManager.js +47 -0
- package/dist/modules/components/googleTagManager/googleTagManager.js.map +1 -0
- package/dist/modules/components/googleTagManager/index.js +19 -0
- package/dist/modules/components/googleTagManager/index.js.map +1 -0
- package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js +11 -0
- package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js.map +1 -0
- package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js +25 -0
- package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js.map +1 -0
- package/dist/modules/components/iconButton/index.js +34 -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 +49 -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 +68 -0
- package/dist/modules/components/imageUpload/index.js.map +1 -0
- package/dist/modules/components/imageUpload/noFileContent/index.js +38 -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 +95 -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 +31 -0
- package/dist/modules/components/mapView/index.js.map +1 -0
- package/dist/modules/components/mapView/mapView.client.js +58 -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 +104 -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 +38 -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 +18 -0
- package/dist/modules/components/modal/modalContext.js.map +1 -0
- package/dist/modules/components/modal/modalFooter/index.js +14 -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 +23 -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 +118 -0
- package/dist/modules/components/multiSelect/index.js.map +1 -0
- package/dist/modules/components/multiSelect/multiSelectChevron/index.js +21 -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 +16 -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 +14 -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 +22 -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 +20 -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 +38 -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 +14 -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 +16 -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 +21 -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 +15 -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 +54 -0
- package/dist/modules/components/pagination/index.js.map +1 -0
- package/dist/modules/components/pagination/pageButton/index.js +16 -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 +36 -0
- package/dist/modules/components/pagination/paginationService.js.map +1 -0
- package/dist/modules/components/pagination/spread/index.js +14 -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 +111 -0
- package/dist/modules/components/phoneInput/index.js.map +1 -0
- package/dist/modules/components/phoneInput/phoneInputContainer/index.js +15 -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 +14 -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 +26 -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 +36 -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 +28 -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 +55 -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 +32 -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 +27 -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 +24 -0
- package/dist/modules/components/radio/radioContext.js.map +1 -0
- package/dist/modules/components/radio/radioGroup/index.js +44 -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 +23 -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 +75 -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 +144 -0
- package/dist/modules/components/richText/index.js.map +1 -0
- package/dist/modules/components/richText/insertImage/index.js +97 -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 +88 -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 +12 -0
- package/dist/modules/components/richText/leaf/index.js.map +1 -0
- package/dist/modules/components/richText/markButton/index.js +22 -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 +13 -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 +60 -0
- package/dist/modules/components/searchPlaces.js.map +1 -0
- package/dist/modules/components/select/index.js +115 -0
- package/dist/modules/components/select/index.js.map +1 -0
- package/dist/modules/components/select/selectChevron/index.js +21 -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 +16 -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 +14 -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 +21 -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 +38 -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 +14 -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 +16 -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 +46 -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 +38 -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 +22 -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 +25 -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 +26 -0
- package/dist/modules/components/tab/tabContext.js.map +1 -0
- package/dist/modules/components/table/tableBody/index.js +22 -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 +18 -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 +15 -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 +21 -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 +15 -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 +54 -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 +37 -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 +47 -0
- package/dist/modules/hooks/useAutomation.js.map +1 -0
- package/dist/modules/hooks/useDrawer.js +20 -0
- package/dist/modules/hooks/useDrawer.js.map +1 -0
- package/dist/modules/hooks/useForm.js +10 -0
- package/dist/modules/hooks/useForm.js.map +1 -0
- package/dist/modules/hooks/useHydrated.js +12 -0
- package/dist/modules/hooks/useHydrated.js.map +1 -0
- package/dist/modules/hooks/useModal.js +20 -0
- package/dist/modules/hooks/useModal.js.map +1 -0
- package/dist/modules/hooks/useScopedParams.js +20 -0
- package/dist/modules/hooks/useScopedParams.js.map +1 -0
- package/dist/modules/hooks/useScrollLock.js +23 -0
- package/dist/modules/hooks/useScrollLock.js.map +1 -0
- package/dist/modules/hooks/useSearchAutomation.js +36 -0
- package/dist/modules/hooks/useSearchAutomation.js.map +1 -0
- package/dist/modules/hooks/useSlider.js +16 -0
- package/dist/modules/hooks/useSlider.js.map +1 -0
- package/dist/modules/hooks/useToast.js +12 -0
- package/dist/modules/hooks/useToast.js.map +1 -0
- package/dist/modules/providers/drawerProvider.js +38 -0
- package/dist/modules/providers/drawerProvider.js.map +1 -0
- package/dist/modules/providers/formProvider.js +15 -0
- package/dist/modules/providers/formProvider.js.map +1 -0
- package/dist/modules/providers/modalProvider.js +36 -0
- package/dist/modules/providers/modalProvider.js.map +1 -0
- package/dist/modules/providers/placesProvider.js +20 -0
- package/dist/modules/providers/placesProvider.js.map +1 -0
- package/dist/modules/providers/toastProvider.js +49 -0
- package/dist/modules/providers/toastProvider.js.map +1 -0
- package/dist/modules/services/extractTextFromNode.js +9 -0
- package/dist/modules/services/extractTextFromNode.js.map +1 -0
- package/dist/modules/services/fieldTemplate.js +26 -0
- package/dist/modules/services/fieldTemplate.js.map +1 -0
- package/dist/modules/services/iconRenderer.js +17 -0
- package/dist/modules/services/iconRenderer.js.map +1 -0
- package/dist/modules/services/isBlockActive.js +15 -0
- package/dist/modules/services/isBlockActive.js.map +1 -0
- package/dist/modules/services/isMarkActive.js +10 -0
- package/dist/modules/services/isMarkActive.js.map +1 -0
- package/dist/modules/services/maskCurrencyValues.js +15 -0
- package/dist/modules/services/maskCurrencyValues.js.map +1 -0
- package/dist/modules/services/toHtml.js +9 -0
- package/dist/modules/services/toHtml.js.map +1 -0
- package/dist/modules/services/toRichTextValue.js +11 -0
- package/dist/modules/services/toRichTextValue.js.map +1 -0
- package/dist/modules/services/toggleBlock.js +23 -0
- package/dist/modules/services/toggleBlock.js.map +1 -0
- package/dist/modules/services/toggleMark.js +10 -0
- package/dist/modules/services/toggleMark.js.map +1 -0
- package/dist/modules/templates/badResponses.js +16 -0
- package/dist/modules/templates/badResponses.js.map +1 -0
- package/dist/modules/templates/richTextTemplates.js +19 -0
- package/dist/modules/templates/richTextTemplates.js.map +1 -0
- package/dist/modules/templates/successResponses.js +11 -0
- package/dist/modules/templates/successResponses.js.map +1 -0
- package/dist/modules/utils/phoneInputUtilities.js +24 -0
- package/dist/modules/utils/phoneInputUtilities.js.map +1 -0
- package/dist/modules/utils/richTextUtilities.js +92 -0
- package/dist/modules/utils/richTextUtilities.js.map +1 -0
- package/dist/providers/drawerProvider.d.ts +18 -84
- package/dist/providers/drawerProvider.d.ts.map +1 -1
- package/dist/providers/formProvider.d.ts +20 -56
- package/dist/providers/formProvider.d.ts.map +1 -1
- package/dist/providers/modalProvider.d.ts +19 -80
- package/dist/providers/modalProvider.d.ts.map +1 -1
- package/dist/providers/placesProvider.d.ts +18 -13
- package/dist/providers/placesProvider.d.ts.map +1 -1
- package/dist/providers/toastProvider.d.ts +13 -24
- package/dist/providers/toastProvider.d.ts.map +1 -1
- package/dist/services/extractTextFromNode.d.ts +1 -1
- package/dist/services/extractTextFromNode.d.ts.map +1 -1
- package/dist/services/fieldTemplate.d.ts +14 -0
- package/dist/services/fieldTemplate.d.ts.map +1 -0
- package/dist/services/iconRenderer.d.ts +2 -2
- package/dist/services/iconRenderer.d.ts.map +1 -1
- package/dist/services/isBlockActive.d.ts +1 -1
- package/dist/services/isBlockActive.d.ts.map +1 -1
- package/dist/services/isMarkActive.d.ts +1 -1
- package/dist/services/isMarkActive.d.ts.map +1 -1
- package/dist/services/maskCurrencyValues.d.ts.map +1 -1
- package/dist/services/toHtml.d.ts +12 -11
- package/dist/services/toHtml.d.ts.map +1 -1
- package/dist/services/toRichTextValue.d.ts +12 -18
- package/dist/services/toRichTextValue.d.ts.map +1 -1
- package/dist/services/toggleBlock.d.ts +1 -1
- package/dist/services/toggleBlock.d.ts.map +1 -1
- package/dist/services/toggleMark.d.ts +1 -1
- package/dist/services/toggleMark.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/templates/richTextTemplates.d.ts +1 -1
- package/dist/templates/richTextTemplates.d.ts.map +1 -1
- package/dist/types/richTextTypes.d.ts +14 -3
- package/dist/types/richTextTypes.d.ts.map +1 -1
- package/dist/utils/phoneInputUtilities.d.ts +2 -1714
- package/dist/utils/phoneInputUtilities.d.ts.map +1 -1
- package/dist/utils/richTextUtilities.d.ts +1 -1
- package/dist/utils/richTextUtilities.d.ts.map +1 -1
- package/package.json +1100 -27
- package/styles.d.ts +3 -0
- package/dist/bundle.js +0 -18048
- package/dist/bundle.umd.cjs +0 -219
- package/dist/components/alert/alertContainer/index.js +0 -91
- package/dist/components/alert/alertContent/index.js +0 -46
- package/dist/components/alert/alertDescription/index.js +0 -48
- package/dist/components/alert/alertIcon/index.js +0 -61
- package/dist/components/alert/alertTitle/index.js +0 -42
- package/dist/components/audioPlayer/index.js +0 -115
- package/dist/components/audioUpload/hasFileContent/index.js +0 -26
- package/dist/components/audioUpload/index.js +0 -120
- package/dist/components/audioUpload/noFileContent/index.js +0 -29
- package/dist/components/badge/index.js +0 -49
- package/dist/components/button/index.js +0 -61
- package/dist/components/cardTab/cardTabButton/index.js +0 -80
- package/dist/components/cardTab/cardTabContainer/index.js +0 -88
- package/dist/components/cardTab/cardTabContext.js +0 -10
- package/dist/components/checkbox/index.js +0 -87
- package/dist/components/clientOnly.js +0 -86
- package/dist/components/currencyInput/index.js +0 -141
- package/dist/components/divider/index.js +0 -45
- package/dist/components/drawer/drawerContainer/index.js +0 -75
- package/dist/components/drawer/drawerContext.js +0 -10
- package/dist/components/drawer/drawerHeader/index.js +0 -58
- package/dist/components/fieldError/index.js +0 -33
- package/dist/components/fieldLabel/index.js +0 -39
- package/dist/components/fieldWrapper/index.js +0 -42
- package/dist/components/fileUpload/hasFileContent/index.js +0 -34
- package/dist/components/fileUpload/index.js +0 -127
- package/dist/components/fileUpload/noFileContent/index.js +0 -29
- package/dist/components/iconButton/index.js +0 -41
- package/dist/components/imageUpload/hasFileContent/index.js +0 -24
- package/dist/components/imageUpload/index.js +0 -149
- package/dist/components/imageUpload/noFileContent/index.js +0 -29
- package/dist/components/input/index.js +0 -114
- package/dist/components/mapView/index.js +0 -16
- package/dist/components/maskedInput/index.js +0 -131
- package/dist/components/modal/modalContainer/index.js +0 -82
- package/dist/components/modal/modalContext.js +0 -10
- package/dist/components/modal/modalFooter/index.js +0 -72
- package/dist/components/modal/modalHeader/index.js +0 -69
- package/dist/components/multiSelect/index.js +0 -169
- package/dist/components/multiSelect/multiSelectChevron/index.js +0 -18
- package/dist/components/multiSelect/multiSelectContainer/index.js +0 -11
- package/dist/components/multiSelect/multiSelectContent/index.js +0 -8
- package/dist/components/multiSelect/multiSelectMark/index.js +0 -11
- package/dist/components/multiSelect/multiSelectOption/index.js +0 -10
- package/dist/components/multiSelect/multiSelectOptionsContainer/index.js +0 -44
- package/dist/components/multiSelect/multiSelectOverlay/index.js +0 -9
- package/dist/components/multiSelect/multiSelectSpinner/index.js +0 -10
- package/dist/components/pagination/chevronButton/index.js +0 -9
- package/dist/components/pagination/currentButton/index.js +0 -6
- package/dist/components/pagination/index.js +0 -37
- package/dist/components/pagination/pageButton/index.js +0 -7
- package/dist/components/pagination/paginationService.js +0 -62
- package/dist/components/pagination/spread/index.js +0 -7
- package/dist/components/phoneInput/index.js +0 -205
- package/dist/components/phoneInput/phoneInputContainer/index.js +0 -11
- package/dist/components/phoneInput/phoneInputCountriesOverlay/index.js +0 -9
- package/dist/components/phoneInput/phoneInputCountryOption/index.js +0 -10
- package/dist/components/phoneInput/phoneInputCountryOptionsContainer/index.js +0 -40
- package/dist/components/phoneInput/phoneInputCountrySelector/index.js +0 -9
- package/dist/components/phoneInput/phoneInputMask/index.js +0 -34
- package/dist/components/popover/index.js +0 -151
- package/dist/components/radio/radioBox/index.js +0 -99
- package/dist/components/radio/radioContext.js +0 -11
- package/dist/components/radio/radioGroup/index.js +0 -100
- package/dist/components/richText/blockButton/index.js +0 -18
- package/dist/components/richText/element/index.js +0 -24
- package/dist/components/richText/index.js +0 -149
- package/dist/components/richText/insertImage/index.js +0 -33
- package/dist/components/richText/leaf/index.js +0 -13
- package/dist/components/richText/markButton/index.js +0 -16
- package/dist/components/richText/toolbar/index.js +0 -6
- package/dist/components/searchPlaces.js +0 -91
- package/dist/components/select/index.js +0 -168
- package/dist/components/select/selectChevron/index.js +0 -18
- package/dist/components/select/selectContainer/index.js +0 -11
- package/dist/components/select/selectContent/index.js +0 -8
- package/dist/components/select/selectOption/index.js +0 -10
- package/dist/components/select/selectOptionsContainer/index.js +0 -44
- package/dist/components/select/selectOverlay/index.js +0 -9
- package/dist/components/select/selectSpinner/index.js +0 -10
- package/dist/components/slider/index.js +0 -97
- package/dist/components/switch/index.js +0 -100
- package/dist/components/tab/tabButton/index.js +0 -80
- package/dist/components/tab/tabContainer/index.js +0 -88
- package/dist/components/tab/tabContext.js +0 -10
- package/dist/components/table/tableBody/index.js +0 -69
- package/dist/components/table/tableCaption/index.js +0 -64
- package/dist/components/table/tableContainer/index.js +0 -66
- package/dist/components/table/tableFooter/index.js +0 -47
- package/dist/components/table/tableHeader/index.js +0 -46
- package/dist/components/textarea/index.js +0 -128
- package/dist/components/tooltip/index.js +0 -135
- package/dist/hooks/useAutomation.js +0 -67
- package/dist/hooks/useDrawer.js +0 -20
- package/dist/hooks/useForm.js +0 -52
- package/dist/hooks/useHydrated.js +0 -81
- package/dist/hooks/useModal.js +0 -20
- package/dist/hooks/useScopedParams.js +0 -107
- package/dist/hooks/useScrollLock.js +0 -68
- package/dist/hooks/useSlider.js +0 -49
- package/dist/hooks/useToast.js +0 -72
- package/dist/providers/drawerProvider.js +0 -120
- package/dist/providers/formProvider.js +0 -69
- package/dist/providers/modalProvider.js +0 -119
- package/dist/providers/placesProvider.js +0 -35
- package/dist/providers/toastProvider.js +0 -73
- package/dist/services/extractTextFromNode.js +0 -5
- package/dist/services/iconRenderer.js +0 -13
- package/dist/services/isBlockActive.js +0 -14
- package/dist/services/isMarkActive.js +0 -6
- package/dist/services/maskCurrencyValues.js +0 -23
- package/dist/services/toHtml.js +0 -21
- package/dist/services/toRichTextValue.js +0 -40
- package/dist/services/toggleBlock.js +0 -32
- package/dist/services/toggleMark.js +0 -10
- package/dist/templates/badResponses.js +0 -12
- package/dist/templates/richTextTemplates.js +0 -12
- package/dist/templates/successResponses.js +0 -2
- package/dist/types/richTextTypes.js +0 -1
- package/dist/utils/phoneInputUtilities.js +0 -99
- package/dist/utils/richTextUtilities.js +0 -87
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
//#region src/providers/toastProvider.tsx
|
|
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
|
+
});
|
|
34
|
+
}
|
|
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, {
|
|
41
|
+
position: "top-right",
|
|
42
|
+
containerStyle: { zIndex: 999999999999999 }
|
|
43
|
+
}), e]
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
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,26 @@
|
|
|
1
|
+
import { FieldError as e } from "../components/fieldError/index.js";
|
|
2
|
+
import { FieldLabel as t } from "../components/fieldLabel/index.js";
|
|
3
|
+
import { FieldWrapper as n } from "../components/fieldWrapper/index.js";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/services/fieldTemplate.tsx
|
|
6
|
+
function a(a) {
|
|
7
|
+
let { name: o, label: s, showAsterisk: c, className: l, unShowFieldTemplate: u, errorMessage: d, children: f, orientation: p } = a;
|
|
8
|
+
return u ? f : /* @__PURE__ */ i(n, {
|
|
9
|
+
id: o,
|
|
10
|
+
className: l,
|
|
11
|
+
orientation: p,
|
|
12
|
+
children: [
|
|
13
|
+
s && /* @__PURE__ */ r(t, {
|
|
14
|
+
htmlFor: o,
|
|
15
|
+
showAsterisk: c,
|
|
16
|
+
children: s
|
|
17
|
+
}),
|
|
18
|
+
f,
|
|
19
|
+
d && /* @__PURE__ */ r(e, { children: d })
|
|
20
|
+
]
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { a as FieldTemplate };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=fieldTemplate.js.map
|
|
@@ -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 && (\n\t\t\t\t<FieldLabel htmlFor={name} showAsterisk={showAsterisk}>\n\t\t\t\t\t{label}\n\t\t\t\t</FieldLabel>\n\t\t\t)}\n\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,KACA,kBAAC,GAAD;IAAY,SAAS;IAAoB;cACvC;GACU,CAAA;GAGZ;GACA,KAAgB,kBAAC,GAAD,EAAA,UAAa,EAAyB,CAAA;EAC1C;;AAEhB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
//#region src/services/iconRenderer.tsx
|
|
3
|
+
function t(t) {
|
|
4
|
+
let { iconSize: n, icon: r, className: i, show: a = !0 } = t;
|
|
5
|
+
return !a || !r ? null : typeof r == "string" ? /* @__PURE__ */ e("p", {
|
|
6
|
+
className: i,
|
|
7
|
+
children: r
|
|
8
|
+
}) : /* @__PURE__ */ e(r, {
|
|
9
|
+
size: n,
|
|
10
|
+
strokeWidth: 2.5,
|
|
11
|
+
className: i
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { t as IconRenderer };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=iconRenderer.js.map
|
|
@@ -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,15 @@
|
|
|
1
|
+
import { Editor as e, Element as t } from "slate";
|
|
2
|
+
//#region src/services/isBlockActive.ts
|
|
3
|
+
function n(n, r, i = "type") {
|
|
4
|
+
let { selection: a } = n;
|
|
5
|
+
if (!a) return !1;
|
|
6
|
+
let [o] = Array.from(e.nodes(n, {
|
|
7
|
+
at: e.unhangRange(n, a),
|
|
8
|
+
match: (n) => !e.isEditor(n) && t.isElement(n) && n[i] === r
|
|
9
|
+
}));
|
|
10
|
+
return !!o;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as isBlockActive };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=isBlockActive.js.map
|
|
@@ -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,15 @@
|
|
|
1
|
+
import { formatToCurrency as e, removeNonNumeric as t } from "@arkyn/shared";
|
|
2
|
+
//#region src/services/maskCurrencyValues.ts
|
|
3
|
+
function n(e) {
|
|
4
|
+
let n = e;
|
|
5
|
+
return typeof e == "string" ? (n = +t(e), n % 1 != 0 && (n = n.toFixed(2))) : n = Number.isInteger(e) ? Number(e) * 10 ** 2 : e.toFixed(2), t(String(n)) / 10 ** 2;
|
|
6
|
+
}
|
|
7
|
+
function r(t, r) {
|
|
8
|
+
if (!t) return [0, e(0, r)];
|
|
9
|
+
let i = n(t);
|
|
10
|
+
return [i, e(i, r)];
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { r as maskCurrencyValues, n as normalizeValue };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=maskCurrencyValues.js.map
|
|
@@ -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,11 @@
|
|
|
1
|
+
import { deserialize as e } from "../utils/richTextUtilities.js";
|
|
2
|
+
import t from "html-react-parser";
|
|
3
|
+
//#region src/services/toRichTextValue.ts
|
|
4
|
+
function n(n) {
|
|
5
|
+
let r = t(n);
|
|
6
|
+
return Array.isArray(r) ? r.map((t) => typeof t == "string" ? { text: t } : e(t)) : typeof r == "string" ? [{ text: r }] : [e(r)];
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as toRichTextValue };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=toRichTextValue.js.map
|
|
@@ -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,23 @@
|
|
|
1
|
+
import { listTypes as e, textAlignTypes as t } from "../templates/richTextTemplates.js";
|
|
2
|
+
import { isBlockActive as n } from "./isBlockActive.js";
|
|
3
|
+
import { Editor as r, Element as i, Transforms as a } from "slate";
|
|
4
|
+
//#region src/services/toggleBlock.ts
|
|
5
|
+
function o(o, s) {
|
|
6
|
+
let c = n(o, s, t.includes(s) ? "align" : "type"), l = e.includes(s);
|
|
7
|
+
a.unwrapNodes(o, {
|
|
8
|
+
match: (n) => !r.isEditor(n) && i.isElement(n) && e.includes(n.type) && !t.includes(s),
|
|
9
|
+
split: !0
|
|
10
|
+
});
|
|
11
|
+
let u;
|
|
12
|
+
if (u = t.includes(s) ? { align: c ? void 0 : s } : { type: c ? "paragraph" : l ? "listItem" : s }, a.setNodes(o, u), !c && l) {
|
|
13
|
+
let e = {
|
|
14
|
+
type: s,
|
|
15
|
+
children: []
|
|
16
|
+
};
|
|
17
|
+
a.wrapNodes(o, e);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { o as toggleBlock };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=toggleBlock.js.map
|
|
@@ -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,10 @@
|
|
|
1
|
+
import { isMarkActive as e } from "./isMarkActive.js";
|
|
2
|
+
import { Editor as t } from "slate";
|
|
3
|
+
//#region src/services/toggleMark.ts
|
|
4
|
+
function n(n, r) {
|
|
5
|
+
e(n, r) ? t.removeMark(n, r) : t.addMark(n, r, !0);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { n as toggleMark };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=toggleMark.js.map
|
|
@@ -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,16 @@
|
|
|
1
|
+
//#region src/templates/badResponses.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"BadGateway",
|
|
4
|
+
"BadRequest",
|
|
5
|
+
"Conflict",
|
|
6
|
+
"Forbidden",
|
|
7
|
+
"NotFound",
|
|
8
|
+
"NotImplemented",
|
|
9
|
+
"ServerError",
|
|
10
|
+
"Unauthorized",
|
|
11
|
+
"UnprocessableEntity"
|
|
12
|
+
];
|
|
13
|
+
//#endregion
|
|
14
|
+
export { e as badResponses };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=badResponses.js.map
|
|
@@ -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,19 @@
|
|
|
1
|
+
//#region src/templates/richTextTemplates.ts
|
|
2
|
+
var e = {
|
|
3
|
+
"mod+b": "bold",
|
|
4
|
+
"mod+i": "italic",
|
|
5
|
+
"mod+u": "underline",
|
|
6
|
+
"mod+`": "code"
|
|
7
|
+
}, t = [{
|
|
8
|
+
type: "paragraph",
|
|
9
|
+
children: [{ text: "" }]
|
|
10
|
+
}], n = ["listItem", "numberedList"], r = [
|
|
11
|
+
"left",
|
|
12
|
+
"center",
|
|
13
|
+
"right",
|
|
14
|
+
"justify"
|
|
15
|
+
];
|
|
16
|
+
//#endregion
|
|
17
|
+
export { e as hotKeys, t as initialValue, n as listTypes, r as textAlignTypes };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=richTextTemplates.js.map
|
|
@@ -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,24 @@
|
|
|
1
|
+
//#region src/utils/phoneInputUtilities.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e?.replace(/[^0-9]/g, "");
|
|
4
|
+
}
|
|
5
|
+
var t = {
|
|
6
|
+
EIGHT: "(99) 9999-9999",
|
|
7
|
+
NINE: "(99) 99999-9999"
|
|
8
|
+
};
|
|
9
|
+
function n(e, t, n = "9") {
|
|
10
|
+
let r = "", i = 0;
|
|
11
|
+
for (let a = 0; a < t.length; a++) if (t[a] === n) if (i < e.length) r += e[i], i++;
|
|
12
|
+
else break;
|
|
13
|
+
else if (i < e.length) r += t[a];
|
|
14
|
+
else break;
|
|
15
|
+
return r;
|
|
16
|
+
}
|
|
17
|
+
function r(e) {
|
|
18
|
+
return e.length > 10 ? "NINE" : "EIGHT";
|
|
19
|
+
}
|
|
20
|
+
var i = e(t.NINE).length;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { i as MAX_LENGTH, t as TYPES, n as applyMask, e as clear, r as getMask };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=phoneInputUtilities.js.map
|
|
@@ -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, placeholder = \"9\") {\n\tlet result = \"\";\n\tlet digitIndex = 0;\n\n\tfor (let i = 0; i < maskPattern.length; i++) {\n\t\tif (maskPattern[i] === placeholder) {\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,IAAc,KAAK;CACzE,IAAI,IAAS,IACT,IAAa;CAEjB,KAAK,IAAI,IAAI,GAAG,IAAI,EAAY,QAAQ,KACvC,IAAI,EAAY,OAAO,GACtB,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,92 @@
|
|
|
1
|
+
import { Element as e, Text as t } from "slate";
|
|
2
|
+
//#region src/utils/richTextUtilities.ts
|
|
3
|
+
function n(r) {
|
|
4
|
+
if (t.isText(r)) {
|
|
5
|
+
let e = r?.text;
|
|
6
|
+
return r?.bold && (e = `<strong>${e}</strong>`), r?.code && (e = `<code>${e}</code>`), r?.italic && (e = `<em>${e}</em>`), r?.underline && (e = `<u>${e}</u>`), e;
|
|
7
|
+
}
|
|
8
|
+
if (e.isElement(r)) {
|
|
9
|
+
let e = r.children?.map((e) => n(e)).join(""), t = r.align || "left";
|
|
10
|
+
switch (r.type) {
|
|
11
|
+
case "video": return `<iframe src="${r.src}" class="align_${t}" />`;
|
|
12
|
+
case "image": return `<img src="${r.src}" class="align_${t}" />`;
|
|
13
|
+
case "paragraph": return `<p class="align_${t}">${e}</p>`;
|
|
14
|
+
case "blockQuote": return `<blockquote class="align_${t}">${e}</blockquote>`;
|
|
15
|
+
case "bulletedList": return `<ul class="align_${t}">${e}</ul>`;
|
|
16
|
+
case "headingOne": return `<h1 class="align_${t}">${e}</h1>`;
|
|
17
|
+
case "headingTwo": return `<h2 class="align_${t}">${e}</h2>`;
|
|
18
|
+
case "listItem": return `<li class="align_${t}">${e}</li>`;
|
|
19
|
+
case "numberedList": return `<ol class="align_${t}">${e}</ol>`;
|
|
20
|
+
default: return "";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return "";
|
|
24
|
+
}
|
|
25
|
+
function r(e) {
|
|
26
|
+
if (typeof e == "string") return { text: e };
|
|
27
|
+
let t = Array.isArray(e.props.children) ? e.props.children.map((e) => r(e)) : [{ text: e.props.children || "" }], n = e.props.className?.replace("align_", "");
|
|
28
|
+
switch (e.type) {
|
|
29
|
+
case "img": return {
|
|
30
|
+
type: "image",
|
|
31
|
+
align: n,
|
|
32
|
+
src: e.props.src,
|
|
33
|
+
children: [{ text: "" }]
|
|
34
|
+
};
|
|
35
|
+
case "p": return {
|
|
36
|
+
type: "paragraph",
|
|
37
|
+
align: n,
|
|
38
|
+
children: t
|
|
39
|
+
};
|
|
40
|
+
case "blockquote": return {
|
|
41
|
+
type: "blockQuote",
|
|
42
|
+
align: n,
|
|
43
|
+
children: t
|
|
44
|
+
};
|
|
45
|
+
case "ul": return {
|
|
46
|
+
type: "bulletedList",
|
|
47
|
+
align: n,
|
|
48
|
+
children: t
|
|
49
|
+
};
|
|
50
|
+
case "ol": return {
|
|
51
|
+
type: "numberedList",
|
|
52
|
+
align: n,
|
|
53
|
+
children: t
|
|
54
|
+
};
|
|
55
|
+
case "li": return {
|
|
56
|
+
type: "listItem",
|
|
57
|
+
align: n,
|
|
58
|
+
children: t
|
|
59
|
+
};
|
|
60
|
+
case "h1": return {
|
|
61
|
+
type: "headingOne",
|
|
62
|
+
align: n,
|
|
63
|
+
children: t
|
|
64
|
+
};
|
|
65
|
+
case "h2": return {
|
|
66
|
+
type: "headingTwo",
|
|
67
|
+
align: n,
|
|
68
|
+
children: t
|
|
69
|
+
};
|
|
70
|
+
case "strong": return {
|
|
71
|
+
text: e.props.children,
|
|
72
|
+
bold: !0
|
|
73
|
+
};
|
|
74
|
+
case "code": return {
|
|
75
|
+
text: e.props.children,
|
|
76
|
+
code: !0
|
|
77
|
+
};
|
|
78
|
+
case "em": return {
|
|
79
|
+
text: e.props.children,
|
|
80
|
+
italic: !0
|
|
81
|
+
};
|
|
82
|
+
case "u": return {
|
|
83
|
+
text: e.props.children,
|
|
84
|
+
underline: !0
|
|
85
|
+
};
|
|
86
|
+
default: return { text: e.props.children || "" };
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
//#endregion
|
|
90
|
+
export { r as deserialize, n as serialize };
|
|
91
|
+
|
|
92
|
+
//# sourceMappingURL=richTextUtilities.js.map
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
2
|
type DrawerContextProps<T = any> = {
|
|
3
3
|
drawerIsOpen(key: string): boolean;
|
|
4
4
|
drawerData(key: string): T;
|
|
@@ -11,96 +11,30 @@ type DrawerProviderProps = {
|
|
|
11
11
|
};
|
|
12
12
|
declare const drawerContext: import("react").Context<DrawerContextProps<any>>;
|
|
13
13
|
/**
|
|
14
|
-
* DrawerProvider
|
|
14
|
+
* DrawerProvider — context provider that manages open/close state and data for named drawers.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* @param props.enableDrawerAutomation - Optional flag to enable drawer automation features
|
|
16
|
+
* Wrap your app (or a subtree) with this once. Any component in the tree can then call
|
|
17
|
+
* `useDrawer(key)` to open, close, or read data for a specific drawer.
|
|
19
18
|
*
|
|
20
|
-
* @
|
|
19
|
+
* @param props.children - Components that will have access to drawer context.
|
|
20
|
+
*
|
|
21
|
+
* @returns DrawerProvider JSX element.
|
|
21
22
|
*
|
|
22
23
|
* @example
|
|
23
24
|
* ```tsx
|
|
24
|
-
* //
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* <NavigationDrawer />
|
|
29
|
-
* <FilterDrawer />
|
|
30
|
-
* <SettingsDrawer />
|
|
31
|
-
* <MainContent />
|
|
32
|
-
* </DrawerProvider>
|
|
33
|
-
* );
|
|
34
|
-
* }
|
|
35
|
-
*
|
|
36
|
-
* // Drawer provider with automation enabled
|
|
37
|
-
* function AppWithAutomation() {
|
|
38
|
-
* return (
|
|
39
|
-
* <DrawerProvider enableDrawerAutomation={true}>
|
|
40
|
-
* <Dashboard />
|
|
41
|
-
* <SidePanel />
|
|
42
|
-
* <NotificationDrawer />
|
|
43
|
-
* </DrawerProvider>
|
|
44
|
-
* );
|
|
45
|
-
* }
|
|
46
|
-
*
|
|
47
|
-
* // Using with multiple drawers
|
|
48
|
-
* function MultiDrawerApp() {
|
|
49
|
-
* return (
|
|
50
|
-
* <DrawerProvider>
|
|
51
|
-
* <Header />
|
|
52
|
-
* <NavigationDrawer key="navigation" />
|
|
53
|
-
* <FilterDrawer key="filters" />
|
|
54
|
-
* <CartDrawer key="shopping-cart" />
|
|
55
|
-
* <MainContent />
|
|
56
|
-
* </DrawerProvider>
|
|
57
|
-
* );
|
|
58
|
-
* }
|
|
59
|
-
*
|
|
60
|
-
* // Component using drawer context
|
|
61
|
-
* function DrawerController() {
|
|
62
|
-
* const { openDrawer, closeDrawer } = useDrawer();
|
|
63
|
-
*
|
|
64
|
-
* const handleOpenNavigation = () => {
|
|
65
|
-
* openDrawer('navigation', { section: 'main-menu' });
|
|
66
|
-
* };
|
|
67
|
-
*
|
|
68
|
-
* const handleOpenFilters = () => {
|
|
69
|
-
* openDrawer('filters', { category: 'electronics', priceRange: [0, 1000] });
|
|
70
|
-
* };
|
|
71
|
-
*
|
|
72
|
-
* return (
|
|
73
|
-
* <div>
|
|
74
|
-
* <button onClick={handleOpenNavigation}>
|
|
75
|
-
* Open Navigation
|
|
76
|
-
* </button>
|
|
77
|
-
* <button onClick={handleOpenFilters}>
|
|
78
|
-
* Open Filters
|
|
79
|
-
* </button>
|
|
80
|
-
* </div>
|
|
81
|
-
* );
|
|
82
|
-
* }
|
|
83
|
-
*
|
|
84
|
-
* // Drawer component consuming context
|
|
85
|
-
* function NavigationDrawer() {
|
|
86
|
-
* const { drawerIsOpen, drawerData, closeDrawer } = useDrawer('navigation');
|
|
25
|
+
* // In your root layout
|
|
26
|
+
* <DrawerProvider>
|
|
27
|
+
* <App />
|
|
28
|
+
* </DrawerProvider>
|
|
87
29
|
*
|
|
88
|
-
*
|
|
30
|
+
* // Opening a drawer from anywhere in the tree
|
|
31
|
+
* const { openDrawer } = useDrawer();
|
|
32
|
+
* openDrawer('filters', { category: 'electronics' });
|
|
89
33
|
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
* <h2>Navigation</h2>
|
|
93
|
-
* <p>Current section: {drawerData?.section}</p>
|
|
94
|
-
* <nav>
|
|
95
|
-
* <a href="/home">Home</a>
|
|
96
|
-
* <a href="/products">Products</a>
|
|
97
|
-
* <a href="/about">About</a>
|
|
98
|
-
* </nav>
|
|
99
|
-
* </Drawer>
|
|
100
|
-
* );
|
|
101
|
-
* }
|
|
34
|
+
* // Consuming in the drawer component
|
|
35
|
+
* const { drawerIsOpen, drawerData, closeDrawer } = useDrawer<{ category: string }>('filters');
|
|
102
36
|
* ```
|
|
103
37
|
*/
|
|
104
|
-
declare function DrawerProvider(args: DrawerProviderProps): import("react
|
|
105
|
-
export {
|
|
38
|
+
declare function DrawerProvider(args: DrawerProviderProps): import("react").JSX.Element;
|
|
39
|
+
export { type DrawerContextProps, DrawerProvider, drawerContext };
|
|
106
40
|
//# sourceMappingURL=drawerProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawerProvider.d.ts","sourceRoot":"","sources":["../../src/providers/drawerProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAY,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"drawerProvider.d.ts","sourceRoot":"","sources":["../../src/providers/drawerProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAGhE,KAAK,kBAAkB,CAAC,CAAC,GAAG,GAAG,IAAI;IAClC,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACnC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;IAC3B,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACxC,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,CAAC;AAQF,KAAK,mBAAmB,GAAG;IAC1B,QAAQ,EAAE,SAAS,CAAC;IACpB,sBAAsB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,QAAA,MAAM,aAAa,kDAA0C,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,iBAAS,cAAc,CAAC,IAAI,EAAE,mBAAmB,+BAkChD;AAED,OAAO,EAAE,KAAK,kBAAkB,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"}
|