@underpeaks/generator-nextjs 1.0.24 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/boolean/display/nxf_icon_check.d.ts +3 -0
- package/dist/components/boolean/display/nxf_icon_check.d.ts.map +1 -0
- package/dist/components/boolean/display/nxf_icon_check.js +28 -0
- package/dist/components/boolean/display/nxf_icon_check.js.map +1 -0
- package/dist/components/boolean/edit/nxf_checkbox.d.ts +3 -0
- package/dist/components/boolean/edit/nxf_checkbox.d.ts.map +1 -0
- package/dist/components/boolean/edit/nxf_checkbox.js +37 -0
- package/dist/components/boolean/edit/nxf_checkbox.js.map +1 -0
- package/dist/components/boolean/edit/nxf_radio_yes_no.d.ts +3 -0
- package/dist/components/boolean/edit/nxf_radio_yes_no.d.ts.map +1 -0
- package/dist/components/boolean/edit/nxf_radio_yes_no.js +48 -0
- package/dist/components/boolean/edit/nxf_radio_yes_no.js.map +1 -0
- package/dist/components/boolean/edit/nxf_switch.d.ts +3 -0
- package/dist/components/boolean/edit/nxf_switch.d.ts.map +1 -0
- package/dist/components/boolean/edit/nxf_switch.js +47 -0
- package/dist/components/boolean/edit/nxf_switch.js.map +1 -0
- package/dist/components/boolean/edit/nxf_toggle.d.ts +3 -0
- package/dist/components/boolean/edit/nxf_toggle.d.ts.map +1 -0
- package/dist/components/boolean/edit/nxf_toggle.js +45 -0
- package/dist/components/boolean/edit/nxf_toggle.js.map +1 -0
- package/dist/components/choice/display/nxf_checklist_display.d.ts +3 -0
- package/dist/components/choice/display/nxf_checklist_display.d.ts.map +1 -0
- package/dist/components/choice/display/nxf_checklist_display.js +33 -0
- package/dist/components/choice/display/nxf_checklist_display.js.map +1 -0
- package/dist/components/choice/display/nxf_chip.d.ts +3 -0
- package/dist/components/choice/display/nxf_chip.d.ts.map +1 -0
- package/dist/components/choice/display/nxf_chip.js +28 -0
- package/dist/components/choice/display/nxf_chip.js.map +1 -0
- package/dist/components/choice/display/nxf_chip_list.d.ts +3 -0
- package/dist/components/choice/display/nxf_chip_list.d.ts.map +1 -0
- package/dist/components/choice/display/nxf_chip_list.js +33 -0
- package/dist/components/choice/display/nxf_chip_list.js.map +1 -0
- package/dist/components/choice/display/nxf_dropdown_display.d.ts +3 -0
- package/dist/components/choice/display/nxf_dropdown_display.d.ts.map +1 -0
- package/dist/components/choice/display/nxf_dropdown_display.js +27 -0
- package/dist/components/choice/display/nxf_dropdown_display.js.map +1 -0
- package/dist/components/choice/display/nxf_radio_display.d.ts +3 -0
- package/dist/components/choice/display/nxf_radio_display.d.ts.map +1 -0
- package/dist/components/choice/display/nxf_radio_display.js +24 -0
- package/dist/components/choice/display/nxf_radio_display.js.map +1 -0
- package/dist/components/choice/display/nxf_text_button.d.ts +3 -0
- package/dist/components/choice/display/nxf_text_button.d.ts.map +1 -0
- package/dist/components/choice/display/nxf_text_button.js +34 -0
- package/dist/components/choice/display/nxf_text_button.js.map +1 -0
- package/dist/components/choice/edit/nxf_autocomplete.d.ts +3 -0
- package/dist/components/choice/edit/nxf_autocomplete.d.ts.map +1 -0
- package/dist/components/choice/edit/nxf_autocomplete.js +59 -0
- package/dist/components/choice/edit/nxf_autocomplete.js.map +1 -0
- package/dist/components/choice/edit/nxf_checkbox_group.d.ts +3 -0
- package/dist/components/choice/edit/nxf_checkbox_group.d.ts.map +1 -0
- package/dist/components/choice/edit/nxf_checkbox_group.js +55 -0
- package/dist/components/choice/edit/nxf_checkbox_group.js.map +1 -0
- package/dist/components/choice/edit/nxf_multi_select.d.ts +3 -0
- package/dist/components/choice/edit/nxf_multi_select.d.ts.map +1 -0
- package/dist/components/choice/edit/nxf_multi_select.js +64 -0
- package/dist/components/choice/edit/nxf_multi_select.js.map +1 -0
- package/dist/components/choice/edit/nxf_radio.d.ts +3 -0
- package/dist/components/choice/edit/nxf_radio.d.ts.map +1 -0
- package/dist/components/choice/edit/nxf_radio.js +51 -0
- package/dist/components/choice/edit/nxf_radio.js.map +1 -0
- package/dist/components/choice/edit/nxf_select.d.ts +3 -0
- package/dist/components/choice/edit/nxf_select.d.ts.map +1 -0
- package/dist/components/choice/edit/nxf_select.js +53 -0
- package/dist/components/choice/edit/nxf_select.js.map +1 -0
- package/dist/components/datetime/display/nxf_formatted_date.d.ts +3 -0
- package/dist/components/datetime/display/nxf_formatted_date.d.ts.map +1 -0
- package/dist/components/datetime/display/nxf_formatted_date.js +25 -0
- package/dist/components/datetime/display/nxf_formatted_date.js.map +1 -0
- package/dist/components/datetime/display/nxf_formatted_date_range.d.ts +3 -0
- package/dist/components/datetime/display/nxf_formatted_date_range.d.ts.map +1 -0
- package/dist/components/datetime/display/nxf_formatted_date_range.js +29 -0
- package/dist/components/datetime/display/nxf_formatted_date_range.js.map +1 -0
- package/dist/components/datetime/display/nxf_formatted_datetime.d.ts +3 -0
- package/dist/components/datetime/display/nxf_formatted_datetime.d.ts.map +1 -0
- package/dist/components/datetime/display/nxf_formatted_datetime.js +31 -0
- package/dist/components/datetime/display/nxf_formatted_datetime.js.map +1 -0
- package/dist/components/datetime/display/nxf_formatted_time.d.ts +3 -0
- package/dist/components/datetime/display/nxf_formatted_time.d.ts.map +1 -0
- package/dist/components/datetime/display/nxf_formatted_time.js +25 -0
- package/dist/components/datetime/display/nxf_formatted_time.js.map +1 -0
- package/dist/components/datetime/display/nxf_relative_time.d.ts +3 -0
- package/dist/components/datetime/display/nxf_relative_time.d.ts.map +1 -0
- package/dist/components/datetime/display/nxf_relative_time.js +37 -0
- package/dist/components/datetime/display/nxf_relative_time.js.map +1 -0
- package/dist/components/datetime/edit/nxf_calendar_picker.d.ts +3 -0
- package/dist/components/datetime/edit/nxf_calendar_picker.d.ts.map +1 -0
- package/dist/components/datetime/edit/nxf_calendar_picker.js +85 -0
- package/dist/components/datetime/edit/nxf_calendar_picker.js.map +1 -0
- package/dist/components/datetime/edit/nxf_date_picker.d.ts +3 -0
- package/dist/components/datetime/edit/nxf_date_picker.d.ts.map +1 -0
- package/dist/components/datetime/edit/nxf_date_picker.js +44 -0
- package/dist/components/datetime/edit/nxf_date_picker.js.map +1 -0
- package/dist/components/datetime/edit/nxf_date_range_picker.d.ts +3 -0
- package/dist/components/datetime/edit/nxf_date_range_picker.d.ts.map +1 -0
- package/dist/components/datetime/edit/nxf_date_range_picker.js +58 -0
- package/dist/components/datetime/edit/nxf_date_range_picker.js.map +1 -0
- package/dist/components/datetime/edit/nxf_datetime_picker.d.ts +3 -0
- package/dist/components/datetime/edit/nxf_datetime_picker.d.ts.map +1 -0
- package/dist/components/datetime/edit/nxf_datetime_picker.js +49 -0
- package/dist/components/datetime/edit/nxf_datetime_picker.js.map +1 -0
- package/dist/components/datetime/edit/nxf_month_picker.d.ts +3 -0
- package/dist/components/datetime/edit/nxf_month_picker.d.ts.map +1 -0
- package/dist/components/datetime/edit/nxf_month_picker.js +44 -0
- package/dist/components/datetime/edit/nxf_month_picker.js.map +1 -0
- package/dist/components/datetime/edit/nxf_relative_date_input.d.ts +3 -0
- package/dist/components/datetime/edit/nxf_relative_date_input.d.ts.map +1 -0
- package/dist/components/datetime/edit/nxf_relative_date_input.js +47 -0
- package/dist/components/datetime/edit/nxf_relative_date_input.js.map +1 -0
- package/dist/components/datetime/edit/nxf_time_picker.d.ts +3 -0
- package/dist/components/datetime/edit/nxf_time_picker.d.ts.map +1 -0
- package/dist/components/datetime/edit/nxf_time_picker.js +44 -0
- package/dist/components/datetime/edit/nxf_time_picker.js.map +1 -0
- package/dist/components/datetime/edit/nxf_week_picker.d.ts +3 -0
- package/dist/components/datetime/edit/nxf_week_picker.d.ts.map +1 -0
- package/dist/components/datetime/edit/nxf_week_picker.js +45 -0
- package/dist/components/datetime/edit/nxf_week_picker.js.map +1 -0
- package/dist/components/documents/display/nxf_file_download_link.d.ts +3 -0
- package/dist/components/documents/display/nxf_file_download_link.d.ts.map +1 -0
- package/dist/components/documents/display/nxf_file_download_link.js +29 -0
- package/dist/components/documents/display/nxf_file_download_link.js.map +1 -0
- package/dist/components/documents/edit/nxf_document_upload.d.ts +3 -0
- package/dist/components/documents/edit/nxf_document_upload.d.ts.map +1 -0
- package/dist/components/documents/edit/nxf_document_upload.js +70 -0
- package/dist/components/documents/edit/nxf_document_upload.js.map +1 -0
- package/dist/components/documents/edit/nxf_file_upload.d.ts +3 -0
- package/dist/components/documents/edit/nxf_file_upload.d.ts.map +1 -0
- package/dist/components/documents/edit/nxf_file_upload.js +59 -0
- package/dist/components/documents/edit/nxf_file_upload.js.map +1 -0
- package/dist/components/files/edit/nxf_file_list_upload.d.ts +3 -0
- package/dist/components/files/edit/nxf_file_list_upload.d.ts.map +1 -0
- package/dist/components/files/edit/nxf_file_list_upload.js +64 -0
- package/dist/components/files/edit/nxf_file_list_upload.js.map +1 -0
- package/dist/components/identifier/display/nxf_barcode_display.d.ts +3 -0
- package/dist/components/identifier/display/nxf_barcode_display.d.ts.map +1 -0
- package/dist/components/identifier/display/nxf_barcode_display.js +31 -0
- package/dist/components/identifier/display/nxf_barcode_display.js.map +1 -0
- package/dist/components/identifier/display/nxf_qr_code_display.d.ts +3 -0
- package/dist/components/identifier/display/nxf_qr_code_display.d.ts.map +1 -0
- package/dist/components/identifier/display/nxf_qr_code_display.js +31 -0
- package/dist/components/identifier/display/nxf_qr_code_display.js.map +1 -0
- package/dist/components/identifier/edit/nxf_hidden.d.ts +3 -0
- package/dist/components/identifier/edit/nxf_hidden.d.ts.map +1 -0
- package/dist/components/identifier/edit/nxf_hidden.js +27 -0
- package/dist/components/identifier/edit/nxf_hidden.js.map +1 -0
- package/dist/components/lists/display/nxf_file_list_display.d.ts +3 -0
- package/dist/components/lists/display/nxf_file_list_display.d.ts.map +1 -0
- package/dist/components/lists/display/nxf_file_list_display.js +43 -0
- package/dist/components/lists/display/nxf_file_list_display.js.map +1 -0
- package/dist/components/lists/display/nxf_list_display.d.ts +3 -0
- package/dist/components/lists/display/nxf_list_display.d.ts.map +1 -0
- package/dist/components/lists/display/nxf_list_display.js +34 -0
- package/dist/components/lists/display/nxf_list_display.js.map +1 -0
- package/dist/components/lists/display/nxf_ordered_list_display.d.ts +3 -0
- package/dist/components/lists/display/nxf_ordered_list_display.d.ts.map +1 -0
- package/dist/components/lists/display/nxf_ordered_list_display.js +33 -0
- package/dist/components/lists/display/nxf_ordered_list_display.js.map +1 -0
- package/dist/components/lists/edit/nxf_checklist.d.ts +3 -0
- package/dist/components/lists/edit/nxf_checklist.d.ts.map +1 -0
- package/dist/components/lists/edit/nxf_checklist.js +80 -0
- package/dist/components/lists/edit/nxf_checklist.js.map +1 -0
- package/dist/components/lists/edit/nxf_chip_list_input.d.ts +3 -0
- package/dist/components/lists/edit/nxf_chip_list_input.d.ts.map +1 -0
- package/dist/components/lists/edit/nxf_chip_list_input.js +70 -0
- package/dist/components/lists/edit/nxf_chip_list_input.js.map +1 -0
- package/dist/components/lists/edit/nxf_list.d.ts +3 -0
- package/dist/components/lists/edit/nxf_list.d.ts.map +1 -0
- package/dist/components/lists/edit/nxf_list.js +86 -0
- package/dist/components/lists/edit/nxf_list.js.map +1 -0
- package/dist/components/lists/edit/nxf_ordered_list_input.d.ts +3 -0
- package/dist/components/lists/edit/nxf_ordered_list_input.d.ts.map +1 -0
- package/dist/components/lists/edit/nxf_ordered_list_input.js +89 -0
- package/dist/components/lists/edit/nxf_ordered_list_input.js.map +1 -0
- package/dist/components/lists/edit/nxf_repeater.d.ts +3 -0
- package/dist/components/lists/edit/nxf_repeater.d.ts.map +1 -0
- package/dist/components/lists/edit/nxf_repeater.js +92 -0
- package/dist/components/lists/edit/nxf_repeater.js.map +1 -0
- package/dist/components/lists/edit/nxf_tags_input.d.ts +3 -0
- package/dist/components/lists/edit/nxf_tags_input.d.ts.map +1 -0
- package/dist/components/lists/edit/nxf_tags_input.js +67 -0
- package/dist/components/lists/edit/nxf_tags_input.js.map +1 -0
- package/dist/components/location/display/nxf_address_label.d.ts +3 -0
- package/dist/components/location/display/nxf_address_label.d.ts.map +1 -0
- package/dist/components/location/display/nxf_address_label.js +28 -0
- package/dist/components/location/display/nxf_address_label.js.map +1 -0
- package/dist/components/location/display/nxf_map_preview.d.ts +3 -0
- package/dist/components/location/display/nxf_map_preview.d.ts.map +1 -0
- package/dist/components/location/display/nxf_map_preview.js +46 -0
- package/dist/components/location/display/nxf_map_preview.js.map +1 -0
- package/dist/components/location/edit/nxf_location_input.d.ts +3 -0
- package/dist/components/location/edit/nxf_location_input.d.ts.map +1 -0
- package/dist/components/location/edit/nxf_location_input.js +72 -0
- package/dist/components/location/edit/nxf_location_input.js.map +1 -0
- package/dist/components/media/display/nxf_audio_player.d.ts +3 -0
- package/dist/components/media/display/nxf_audio_player.d.ts.map +1 -0
- package/dist/components/media/display/nxf_audio_player.js +27 -0
- package/dist/components/media/display/nxf_audio_player.js.map +1 -0
- package/dist/components/media/display/nxf_video_player.d.ts +3 -0
- package/dist/components/media/display/nxf_video_player.d.ts.map +1 -0
- package/dist/components/media/display/nxf_video_player.js +30 -0
- package/dist/components/media/display/nxf_video_player.js.map +1 -0
- package/dist/components/media/edit/nxf_audio_upload.d.ts +1 -0
- package/dist/components/media/edit/nxf_audio_upload.d.ts.map +1 -0
- package/dist/components/media/edit/nxf_audio_upload.js +2 -0
- package/dist/components/media/edit/nxf_audio_upload.js.map +1 -0
- package/dist/components/media/edit/nxf_signature_pad.d.ts +3 -0
- package/dist/components/media/edit/nxf_signature_pad.d.ts.map +1 -0
- package/dist/components/media/edit/nxf_signature_pad.js +90 -0
- package/dist/components/media/edit/nxf_signature_pad.js.map +1 -0
- package/dist/components/media/edit/nxf_video_upload.d.ts +3 -0
- package/dist/components/media/edit/nxf_video_upload.d.ts.map +1 -0
- package/dist/components/media/edit/nxf_video_upload.js +59 -0
- package/dist/components/media/edit/nxf_video_upload.js.map +1 -0
- package/dist/components/numeric/display/nxf_formatted_currency.d.ts +1 -0
- package/dist/components/numeric/display/nxf_formatted_currency.d.ts.map +1 -0
- package/dist/components/numeric/display/nxf_formatted_currency.js +2 -0
- package/dist/components/numeric/display/nxf_formatted_currency.js.map +1 -0
- package/dist/components/numeric/display/nxf_formatted_percentage.d.ts +3 -0
- package/dist/components/numeric/display/nxf_formatted_percentage.d.ts.map +1 -0
- package/dist/components/numeric/display/nxf_formatted_percentage.js +24 -0
- package/dist/components/numeric/display/nxf_formatted_percentage.js.map +1 -0
- package/dist/components/numeric/display/nxf_formatted_unit.d.ts +3 -0
- package/dist/components/numeric/display/nxf_formatted_unit.d.ts.map +1 -0
- package/dist/components/numeric/display/nxf_formatted_unit.js +30 -0
- package/dist/components/numeric/display/nxf_formatted_unit.js.map +1 -0
- package/dist/components/numeric/display/nxf_progress_bar.d.ts +3 -0
- package/dist/components/numeric/display/nxf_progress_bar.d.ts.map +1 -0
- package/dist/components/numeric/display/nxf_progress_bar.js +30 -0
- package/dist/components/numeric/display/nxf_progress_bar.js.map +1 -0
- package/dist/components/numeric/display/nxf_star_display.d.ts +3 -0
- package/dist/components/numeric/display/nxf_star_display.d.ts.map +1 -0
- package/dist/components/numeric/display/nxf_star_display.js +31 -0
- package/dist/components/numeric/display/nxf_star_display.js.map +1 -0
- package/dist/components/numeric/edit/nxf_counter.d.ts +3 -0
- package/dist/components/numeric/edit/nxf_counter.d.ts.map +1 -0
- package/dist/components/numeric/edit/nxf_counter.js +62 -0
- package/dist/components/numeric/edit/nxf_counter.js.map +1 -0
- package/dist/components/numeric/edit/nxf_currency_input.d.ts +3 -0
- package/dist/components/numeric/edit/nxf_currency_input.d.ts.map +1 -0
- package/dist/components/numeric/edit/nxf_currency_input.js +55 -0
- package/dist/components/numeric/edit/nxf_currency_input.js.map +1 -0
- package/dist/components/numeric/edit/nxf_distance_input.d.ts +3 -0
- package/dist/components/numeric/edit/nxf_distance_input.d.ts.map +1 -0
- package/dist/components/numeric/edit/nxf_distance_input.js +53 -0
- package/dist/components/numeric/edit/nxf_distance_input.js.map +1 -0
- package/dist/components/numeric/edit/nxf_number_input.d.ts +3 -0
- package/dist/components/numeric/edit/nxf_number_input.d.ts.map +1 -0
- package/dist/components/numeric/edit/nxf_number_input.js +50 -0
- package/dist/components/numeric/edit/nxf_number_input.js.map +1 -0
- package/dist/components/numeric/edit/nxf_percentage_input.d.ts +3 -0
- package/dist/components/numeric/edit/nxf_percentage_input.d.ts.map +1 -0
- package/dist/components/numeric/edit/nxf_percentage_input.js +51 -0
- package/dist/components/numeric/edit/nxf_percentage_input.js.map +1 -0
- package/dist/components/numeric/edit/nxf_range_slider.d.ts +3 -0
- package/dist/components/numeric/edit/nxf_range_slider.d.ts.map +1 -0
- package/dist/components/numeric/edit/nxf_range_slider.js +69 -0
- package/dist/components/numeric/edit/nxf_range_slider.js.map +1 -0
- package/dist/components/numeric/edit/nxf_rating.d.ts +3 -0
- package/dist/components/numeric/edit/nxf_rating.d.ts.map +1 -0
- package/dist/components/numeric/edit/nxf_rating.js +50 -0
- package/dist/components/numeric/edit/nxf_rating.js.map +1 -0
- package/dist/components/numeric/edit/nxf_slider.d.ts +3 -0
- package/dist/components/numeric/edit/nxf_slider.d.ts.map +1 -0
- package/dist/components/numeric/edit/nxf_slider.js +51 -0
- package/dist/components/numeric/edit/nxf_slider.js.map +1 -0
- package/dist/components/numeric/edit/nxf_stepper.d.ts +3 -0
- package/dist/components/numeric/edit/nxf_stepper.d.ts.map +1 -0
- package/dist/components/numeric/edit/nxf_stepper.js +61 -0
- package/dist/components/numeric/edit/nxf_stepper.js.map +1 -0
- package/dist/components/numeric/edit/nxf_weight_input.d.ts +3 -0
- package/dist/components/numeric/edit/nxf_weight_input.d.ts.map +1 -0
- package/dist/components/numeric/edit/nxf_weight_input.js +53 -0
- package/dist/components/numeric/edit/nxf_weight_input.js.map +1 -0
- package/dist/components/other/display/nxf_signature_display.d.ts +3 -0
- package/dist/components/other/display/nxf_signature_display.d.ts.map +1 -0
- package/dist/components/other/display/nxf_signature_display.js +35 -0
- package/dist/components/other/display/nxf_signature_display.js.map +1 -0
- package/dist/components/reference/edit/nxf_icon_picker.d.ts +3 -0
- package/dist/components/reference/edit/nxf_icon_picker.d.ts.map +1 -0
- package/dist/components/reference/edit/nxf_icon_picker.js +63 -0
- package/dist/components/reference/edit/nxf_icon_picker.js.map +1 -0
- package/dist/components/reference/edit/nxf_image_url.d.ts +3 -0
- package/dist/components/reference/edit/nxf_image_url.d.ts.map +1 -0
- package/dist/components/reference/edit/nxf_image_url.js +50 -0
- package/dist/components/reference/edit/nxf_image_url.js.map +1 -0
- package/dist/components/reference/edit/nxf_media_picker.d.ts +3 -0
- package/dist/components/reference/edit/nxf_media_picker.d.ts.map +1 -0
- package/dist/components/reference/edit/nxf_media_picker.js +70 -0
- package/dist/components/reference/edit/nxf_media_picker.js.map +1 -0
- package/dist/components/structured_data/display/nxf_json_viewer_display.d.ts +3 -0
- package/dist/components/structured_data/display/nxf_json_viewer_display.d.ts.map +1 -0
- package/dist/components/structured_data/display/nxf_json_viewer_display.js +30 -0
- package/dist/components/structured_data/display/nxf_json_viewer_display.js.map +1 -0
- package/dist/components/structured_data/display/nxf_key_value_display.d.ts +3 -0
- package/dist/components/structured_data/display/nxf_key_value_display.d.ts.map +1 -0
- package/dist/components/structured_data/display/nxf_key_value_display.js +35 -0
- package/dist/components/structured_data/display/nxf_key_value_display.js.map +1 -0
- package/dist/components/structured_data/edit/nxf_form_builder.d.ts +3 -0
- package/dist/components/structured_data/edit/nxf_form_builder.d.ts.map +1 -0
- package/dist/components/structured_data/edit/nxf_form_builder.js +84 -0
- package/dist/components/structured_data/edit/nxf_form_builder.js.map +1 -0
- package/dist/components/structured_data/edit/nxf_json_viewer.d.ts +3 -0
- package/dist/components/structured_data/edit/nxf_json_viewer.d.ts.map +1 -0
- package/dist/components/structured_data/edit/nxf_json_viewer.js +48 -0
- package/dist/components/structured_data/edit/nxf_json_viewer.js.map +1 -0
- package/dist/components/structured_data/edit/nxf_key_value_editor.d.ts +3 -0
- package/dist/components/structured_data/edit/nxf_key_value_editor.d.ts.map +1 -0
- package/dist/components/structured_data/edit/nxf_key_value_editor.js +84 -0
- package/dist/components/structured_data/edit/nxf_key_value_editor.js.map +1 -0
- package/dist/components/structured_data/edit/nxf_schema_editor.d.ts +3 -0
- package/dist/components/structured_data/edit/nxf_schema_editor.d.ts.map +1 -0
- package/dist/components/structured_data/edit/nxf_schema_editor.js +46 -0
- package/dist/components/structured_data/edit/nxf_schema_editor.js.map +1 -0
- package/dist/components/text/display/nxf_badge.d.ts +3 -0
- package/dist/components/text/display/nxf_badge.d.ts.map +1 -0
- package/dist/components/text/display/nxf_badge.js +28 -0
- package/dist/components/text/display/nxf_badge.js.map +1 -0
- package/dist/components/text/display/nxf_code_block.d.ts +3 -0
- package/dist/components/text/display/nxf_code_block.d.ts.map +1 -0
- package/dist/components/text/display/nxf_code_block.js +28 -0
- package/dist/components/text/display/nxf_code_block.js.map +1 -0
- package/dist/components/text/display/nxf_color_swatch.d.ts +3 -0
- package/dist/components/text/display/nxf_color_swatch.d.ts.map +1 -0
- package/dist/components/text/display/nxf_color_swatch.js +30 -0
- package/dist/components/text/display/nxf_color_swatch.js.map +1 -0
- package/dist/components/text/display/nxf_heading.d.ts +3 -0
- package/dist/components/text/display/nxf_heading.d.ts.map +1 -0
- package/dist/components/text/display/nxf_heading.js +24 -0
- package/dist/components/text/display/nxf_heading.js.map +1 -0
- package/dist/components/text/display/nxf_label.d.ts +3 -0
- package/dist/components/text/display/nxf_label.d.ts.map +1 -0
- package/dist/components/text/display/nxf_label.js +25 -0
- package/dist/components/text/display/nxf_label.js.map +1 -0
- package/dist/components/text/display/nxf_link.d.ts +3 -0
- package/dist/components/text/display/nxf_link.d.ts.map +1 -0
- package/dist/components/text/display/nxf_link.js +31 -0
- package/dist/components/text/display/nxf_link.js.map +1 -0
- package/dist/components/text/display/nxf_mailto_link.d.ts +3 -0
- package/dist/components/text/display/nxf_mailto_link.d.ts.map +1 -0
- package/dist/components/text/display/nxf_mailto_link.js +29 -0
- package/dist/components/text/display/nxf_mailto_link.js.map +1 -0
- package/dist/components/text/display/nxf_masked_label.d.ts +3 -0
- package/dist/components/text/display/nxf_masked_label.d.ts.map +1 -0
- package/dist/components/text/display/nxf_masked_label.js +30 -0
- package/dist/components/text/display/nxf_masked_label.js.map +1 -0
- package/dist/components/text/display/nxf_paragraph.d.ts +3 -0
- package/dist/components/text/display/nxf_paragraph.d.ts.map +1 -0
- package/dist/components/text/display/nxf_paragraph.js +24 -0
- package/dist/components/text/display/nxf_paragraph.js.map +1 -0
- package/dist/components/text/display/nxf_rendered_html.d.ts +3 -0
- package/dist/components/text/display/nxf_rendered_html.d.ts.map +1 -0
- package/dist/components/text/display/nxf_rendered_html.js +28 -0
- package/dist/components/text/display/nxf_rendered_html.js.map +1 -0
- package/dist/components/text/display/nxf_rendered_markdown.d.ts +3 -0
- package/dist/components/text/display/nxf_rendered_markdown.d.ts.map +1 -0
- package/dist/components/text/display/nxf_rendered_markdown.js +26 -0
- package/dist/components/text/display/nxf_rendered_markdown.js.map +1 -0
- package/dist/components/text/display/nxf_tel_link.d.ts +3 -0
- package/dist/components/text/display/nxf_tel_link.d.ts.map +1 -0
- package/dist/components/text/display/nxf_tel_link.js +29 -0
- package/dist/components/text/display/nxf_tel_link.js.map +1 -0
- package/dist/components/text/display/nxf_truncated_text.d.ts +3 -0
- package/dist/components/text/display/nxf_truncated_text.d.ts.map +1 -0
- package/dist/components/text/display/nxf_truncated_text.js +32 -0
- package/dist/components/text/display/nxf_truncated_text.js.map +1 -0
- package/dist/components/text/edit/nxf_barcode_input.d.ts +3 -0
- package/dist/components/text/edit/nxf_barcode_input.d.ts.map +1 -0
- package/dist/components/text/edit/nxf_barcode_input.js +70 -0
- package/dist/components/text/edit/nxf_barcode_input.js.map +1 -0
- package/dist/components/text/edit/nxf_code_editor.d.ts +3 -0
- package/dist/components/text/edit/nxf_code_editor.d.ts.map +1 -0
- package/dist/components/text/edit/nxf_code_editor.js +47 -0
- package/dist/components/text/edit/nxf_code_editor.js.map +1 -0
- package/dist/components/text/edit/nxf_color_picker.d.ts +3 -0
- package/dist/components/text/edit/nxf_color_picker.d.ts.map +1 -0
- package/dist/components/text/edit/nxf_color_picker.js +61 -0
- package/dist/components/text/edit/nxf_color_picker.js.map +1 -0
- package/dist/components/text/edit/nxf_email_input.d.ts +3 -0
- package/dist/components/text/edit/nxf_email_input.d.ts.map +1 -0
- package/dist/components/text/edit/nxf_email_input.js +42 -0
- package/dist/components/text/edit/nxf_email_input.js.map +1 -0
- package/dist/components/text/edit/nxf_html_editor.d.ts +3 -0
- package/dist/components/text/edit/nxf_html_editor.d.ts.map +1 -0
- package/dist/components/text/edit/nxf_html_editor.js +47 -0
- package/dist/components/text/edit/nxf_html_editor.js.map +1 -0
- package/dist/components/text/edit/nxf_markdown_editor.d.ts +3 -0
- package/dist/components/text/edit/nxf_markdown_editor.d.ts.map +1 -0
- package/dist/components/text/edit/nxf_markdown_editor.js +50 -0
- package/dist/components/text/edit/nxf_markdown_editor.js.map +1 -0
- package/dist/components/text/edit/nxf_masked_input.d.ts +3 -0
- package/dist/components/text/edit/nxf_masked_input.d.ts.map +1 -0
- package/dist/components/text/edit/nxf_masked_input.js +67 -0
- package/dist/components/text/edit/nxf_masked_input.js.map +1 -0
- package/dist/components/text/edit/nxf_otp_input.d.ts +3 -0
- package/dist/components/text/edit/nxf_otp_input.d.ts.map +1 -0
- package/dist/components/text/edit/nxf_otp_input.js +60 -0
- package/dist/components/text/edit/nxf_otp_input.js.map +1 -0
- package/dist/components/text/edit/nxf_password_input.d.ts +3 -0
- package/dist/components/text/edit/nxf_password_input.d.ts.map +1 -0
- package/dist/components/text/edit/nxf_password_input.js +57 -0
- package/dist/components/text/edit/nxf_password_input.js.map +1 -0
- package/dist/components/text/edit/nxf_phone_input.d.ts +3 -0
- package/dist/components/text/edit/nxf_phone_input.d.ts.map +1 -0
- package/dist/components/text/edit/nxf_phone_input.js +42 -0
- package/dist/components/text/edit/nxf_phone_input.js.map +1 -0
- package/dist/components/text/edit/nxf_qr_code_input.d.ts +3 -0
- package/dist/components/text/edit/nxf_qr_code_input.d.ts.map +1 -0
- package/dist/components/text/edit/nxf_qr_code_input.js +69 -0
- package/dist/components/text/edit/nxf_qr_code_input.js.map +1 -0
- package/dist/components/text/edit/nxf_rich_text.d.ts +3 -0
- package/dist/components/text/edit/nxf_rich_text.d.ts.map +1 -0
- package/dist/components/text/edit/nxf_rich_text.js +45 -0
- package/dist/components/text/edit/nxf_rich_text.js.map +1 -0
- package/dist/components/text/edit/nxf_search_input.d.ts +3 -0
- package/dist/components/text/edit/nxf_search_input.d.ts.map +1 -0
- package/dist/components/text/edit/nxf_search_input.js +44 -0
- package/dist/components/text/edit/nxf_search_input.js.map +1 -0
- package/dist/components/text/edit/nxf_slug_input.d.ts +3 -0
- package/dist/components/text/edit/nxf_slug_input.d.ts.map +1 -0
- package/dist/components/text/edit/nxf_slug_input.js +52 -0
- package/dist/components/text/edit/nxf_slug_input.js.map +1 -0
- package/dist/components/text/edit/nxf_textarea.d.ts +3 -0
- package/dist/components/text/edit/nxf_textarea.d.ts.map +1 -0
- package/dist/components/text/edit/nxf_textarea.js +49 -0
- package/dist/components/text/edit/nxf_textarea.js.map +1 -0
- package/dist/components/text/edit/nxf_textfield.d.ts +3 -0
- package/dist/components/text/edit/nxf_textfield.d.ts.map +1 -0
- package/dist/components/text/edit/nxf_textfield.js +42 -0
- package/dist/components/text/edit/nxf_textfield.js.map +1 -0
- package/dist/components/text/edit/nxf_url_input.d.ts +3 -0
- package/dist/components/text/edit/nxf_url_input.d.ts.map +1 -0
- package/dist/components/text/edit/nxf_url_input.js +43 -0
- package/dist/components/text/edit/nxf_url_input.js.map +1 -0
- package/dist/components/upload/display/nxf_avatar_display.d.ts +3 -0
- package/dist/components/upload/display/nxf_avatar_display.d.ts.map +1 -0
- package/dist/components/upload/display/nxf_avatar_display.js +43 -0
- package/dist/components/upload/display/nxf_avatar_display.js.map +1 -0
- package/dist/components/upload/display/nxf_icon_display.d.ts +3 -0
- package/dist/components/upload/display/nxf_icon_display.d.ts.map +1 -0
- package/dist/components/upload/display/nxf_icon_display.js +40 -0
- package/dist/components/upload/display/nxf_icon_display.js.map +1 -0
- package/dist/components/upload/display/nxf_image_carousel.d.ts +3 -0
- package/dist/components/upload/display/nxf_image_carousel.d.ts.map +1 -0
- package/dist/components/upload/display/nxf_image_carousel.js +66 -0
- package/dist/components/upload/display/nxf_image_carousel.js.map +1 -0
- package/dist/components/upload/display/nxf_image_grid.d.ts +3 -0
- package/dist/components/upload/display/nxf_image_grid.d.ts.map +1 -0
- package/dist/components/upload/display/nxf_image_grid.js +32 -0
- package/dist/components/upload/display/nxf_image_grid.js.map +1 -0
- package/dist/components/upload/display/nxf_single_image.d.ts +3 -0
- package/dist/components/upload/display/nxf_single_image.d.ts.map +1 -0
- package/dist/components/upload/display/nxf_single_image.js +38 -0
- package/dist/components/upload/display/nxf_single_image.js.map +1 -0
- package/dist/components/upload/display/nxf_thumbnail.d.ts +3 -0
- package/dist/components/upload/display/nxf_thumbnail.d.ts.map +1 -0
- package/dist/components/upload/display/nxf_thumbnail.js +43 -0
- package/dist/components/upload/display/nxf_thumbnail.js.map +1 -0
- package/dist/components/upload/edit/nxf_avatar_upload.d.ts +3 -0
- package/dist/components/upload/edit/nxf_avatar_upload.d.ts.map +1 -0
- package/dist/components/upload/edit/nxf_avatar_upload.js +61 -0
- package/dist/components/upload/edit/nxf_avatar_upload.js.map +1 -0
- package/dist/components/upload/edit/nxf_cover_image_upload.d.ts +3 -0
- package/dist/components/upload/edit/nxf_cover_image_upload.d.ts.map +1 -0
- package/dist/components/upload/edit/nxf_cover_image_upload.js +68 -0
- package/dist/components/upload/edit/nxf_cover_image_upload.js.map +1 -0
- package/dist/components/upload/edit/nxf_image_gallery_upload.d.ts +3 -0
- package/dist/components/upload/edit/nxf_image_gallery_upload.d.ts.map +1 -0
- package/dist/components/upload/edit/nxf_image_gallery_upload.js +70 -0
- package/dist/components/upload/edit/nxf_image_gallery_upload.js.map +1 -0
- package/dist/components/upload/edit/nxf_image_upload.d.ts +3 -0
- package/dist/components/upload/edit/nxf_image_upload.d.ts.map +1 -0
- package/dist/components/upload/edit/nxf_image_upload.js +70 -0
- package/dist/components/upload/edit/nxf_image_upload.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File: underpeaks_codegen/packages/generator-nextjs/src/components/upload/edit/nxf_cover_image_upload.ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.generateNxfCoverImageUpload = generateNxfCoverImageUpload;
|
|
5
|
+
function generateNxfCoverImageUpload() {
|
|
6
|
+
const lines = [];
|
|
7
|
+
lines.push(`// GENERATED BY UNDERPEAKS CODEGEN v1.0.0`);
|
|
8
|
+
lines.push(`// Component: NxfCoverImageUpload (edit)`);
|
|
9
|
+
lines.push(`// Shared component library — generated once per project, you own this file.`);
|
|
10
|
+
lines.push(`// NOTE: does NOT self-save — see NxfImageUpload for rationale. Wide`);
|
|
11
|
+
lines.push(`// banner aspect ratio (16:6) distinguishes this from NxfImageUpload's`);
|
|
12
|
+
lines.push(`// generic preview box.`);
|
|
13
|
+
lines.push(``);
|
|
14
|
+
lines.push(`'use client'`);
|
|
15
|
+
lines.push(``);
|
|
16
|
+
lines.push(`interface NxfCoverImageUploadProps {`);
|
|
17
|
+
lines.push(` label: string`);
|
|
18
|
+
lines.push(` value?: string`);
|
|
19
|
+
lines.push(` onUpload: (file: File) => Promise<string>`);
|
|
20
|
+
lines.push(` onChange: (value: string | undefined) => void`);
|
|
21
|
+
lines.push(`}`);
|
|
22
|
+
lines.push(``);
|
|
23
|
+
lines.push(`export function NxfCoverImageUpload({`);
|
|
24
|
+
lines.push(` label,`);
|
|
25
|
+
lines.push(` value,`);
|
|
26
|
+
lines.push(` onUpload,`);
|
|
27
|
+
lines.push(` onChange,`);
|
|
28
|
+
lines.push(`}: NxfCoverImageUploadProps) {`);
|
|
29
|
+
lines.push(` async function handlePick(e: React.ChangeEvent<HTMLInputElement>) {`);
|
|
30
|
+
lines.push(` const file = e.target.files?.[0]`);
|
|
31
|
+
lines.push(` if (!file) return`);
|
|
32
|
+
lines.push(` const url = await onUpload(file)`);
|
|
33
|
+
lines.push(` onChange(url)`);
|
|
34
|
+
lines.push(` }`);
|
|
35
|
+
lines.push(``);
|
|
36
|
+
lines.push(` return (`);
|
|
37
|
+
lines.push(` <div className="flex flex-col gap-2">`);
|
|
38
|
+
lines.push(` <label className="text-sm font-medium text-gray-700">{label}</label>`);
|
|
39
|
+
lines.push(` <label className="block w-full aspect-[16/6] border border-gray-300 rounded-lg overflow-hidden cursor-pointer relative">`);
|
|
40
|
+
lines.push(` {value ? (`);
|
|
41
|
+
lines.push(` // eslint-disable-next-line @next/next/no-img-element`);
|
|
42
|
+
lines.push(` <img src={value} alt={label} className="w-full h-full object-cover" />`);
|
|
43
|
+
lines.push(` ) : (`);
|
|
44
|
+
lines.push(` <div className="flex items-center justify-center h-full text-gray-400 text-sm">`);
|
|
45
|
+
lines.push(` Click to upload cover image`);
|
|
46
|
+
lines.push(` </div>`);
|
|
47
|
+
lines.push(` )}`);
|
|
48
|
+
lines.push(` <input type="file" accept="image/*" onChange={handlePick} className="hidden" />`);
|
|
49
|
+
lines.push(` </label>`);
|
|
50
|
+
lines.push(` {value && (`);
|
|
51
|
+
lines.push(` <button`);
|
|
52
|
+
lines.push(` type="button"`);
|
|
53
|
+
lines.push(` onClick={() => onChange(undefined)}`);
|
|
54
|
+
lines.push(` className="text-sm text-red-600 hover:underline self-start"`);
|
|
55
|
+
lines.push(` >`);
|
|
56
|
+
lines.push(` Remove`);
|
|
57
|
+
lines.push(` </button>`);
|
|
58
|
+
lines.push(` )}`);
|
|
59
|
+
lines.push(` </div>`);
|
|
60
|
+
lines.push(` )`);
|
|
61
|
+
lines.push(`}`);
|
|
62
|
+
return {
|
|
63
|
+
path: `src/components/upload/edit/nxf_cover_image_upload.tsx`,
|
|
64
|
+
content: lines.join('\n'),
|
|
65
|
+
category: 'customizable',
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=nxf_cover_image_upload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nxf_cover_image_upload.js","sourceRoot":"","sources":["../../../../src/components/upload/edit/nxf_cover_image_upload.ts"],"names":[],"mappings":";AAAA,0GAA0G;;AAI1G,kEAgEC;AAhED,SAAgB,2BAA2B;IACzC,MAAM,KAAK,GAAa,EAAE,CAAA;IAE1B,KAAK,CAAC,IAAI,CAAC,2CAA2C,CAAC,CAAA;IACvD,KAAK,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAA;IACtD,KAAK,CAAC,IAAI,CAAC,8EAA8E,CAAC,CAAA;IAC1F,KAAK,CAAC,IAAI,CAAC,sEAAsE,CAAC,CAAA;IAClF,KAAK,CAAC,IAAI,CAAC,wEAAwE,CAAC,CAAA;IACpF,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAA;IACrC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACd,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;IAC1B,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACd,KAAK,CAAC,IAAI,CAAC,sCAAsC,CAAC,CAAA;IAClD,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAA;IAChC,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAA;IAChC,KAAK,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAA;IACzD,KAAK,CAAC,IAAI,CAAC,iDAAiD,CAAC,CAAA;IAC7D,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IACf,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACd,KAAK,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAA;IACnD,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IACtB,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IACtB,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;IACzB,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iBAAiB,CAAC,CAAA;IAC7B,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAA;IACrC,KAAK,CAAC,IAAI,CAAC,+CAA+C,CAAC,CAAA;IAC3D,KAAK,CAAC,IAAI,CAAC,uEAAuE,CAAC,CAAA;IACnF,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;IACvB,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;IAC9B,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;IAC/B,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IACtB,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;IACxB,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IACjB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAEf,OAAO;QACL,IAAI,EAAM,uDAAuD;QACjE,OAAO,EAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;QAC1B,QAAQ,EAAE,cAAc;KACzB,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nxf_image_gallery_upload.d.ts","sourceRoot":"","sources":["../../../../src/components/upload/edit/nxf_image_gallery_upload.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,wBAAgB,6BAA6B,IAAI,aAAa,CAkE7D"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File: underpeaks_codegen/packages/generator-nextjs/src/components/upload/edit/nxf_image_gallery_upload.ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.generateNxfImageGalleryUpload = generateNxfImageGalleryUpload;
|
|
5
|
+
function generateNxfImageGalleryUpload() {
|
|
6
|
+
const lines = [];
|
|
7
|
+
lines.push(`// GENERATED BY UNDERPEAKS CODEGEN v1.0.0`);
|
|
8
|
+
lines.push(`// Component: NxfImageGalleryUpload (edit)`);
|
|
9
|
+
lines.push(`// Shared component library — generated once per project, you own this file.`);
|
|
10
|
+
lines.push(`// NOTE: does NOT self-save — see NxfImageUpload for the same rationale.`);
|
|
11
|
+
lines.push(`// onUpload may be called once per selected file; caller controls batching.`);
|
|
12
|
+
lines.push(``);
|
|
13
|
+
lines.push(`'use client'`);
|
|
14
|
+
lines.push(``);
|
|
15
|
+
lines.push(`interface NxfImageGalleryUploadProps {`);
|
|
16
|
+
lines.push(` label: string`);
|
|
17
|
+
lines.push(` value?: string[]`);
|
|
18
|
+
lines.push(` onUpload: (files: FileList) => Promise<string[]>`);
|
|
19
|
+
lines.push(` onChange: (value: string[]) => void`);
|
|
20
|
+
lines.push(`}`);
|
|
21
|
+
lines.push(``);
|
|
22
|
+
lines.push(`export function NxfImageGalleryUpload({`);
|
|
23
|
+
lines.push(` label,`);
|
|
24
|
+
lines.push(` value = [],`);
|
|
25
|
+
lines.push(` onUpload,`);
|
|
26
|
+
lines.push(` onChange,`);
|
|
27
|
+
lines.push(`}: NxfImageGalleryUploadProps) {`);
|
|
28
|
+
lines.push(` async function handlePick(e: React.ChangeEvent<HTMLInputElement>) {`);
|
|
29
|
+
lines.push(` if (!e.target.files || e.target.files.length === 0) return`);
|
|
30
|
+
lines.push(` const uploaded = await onUpload(e.target.files)`);
|
|
31
|
+
lines.push(` onChange([...value, ...uploaded])`);
|
|
32
|
+
lines.push(` e.target.value = ''`);
|
|
33
|
+
lines.push(` }`);
|
|
34
|
+
lines.push(``);
|
|
35
|
+
lines.push(` function remove(url: string) {`);
|
|
36
|
+
lines.push(` onChange(value.filter((v) => v !== url))`);
|
|
37
|
+
lines.push(` }`);
|
|
38
|
+
lines.push(``);
|
|
39
|
+
lines.push(` return (`);
|
|
40
|
+
lines.push(` <div className="flex flex-col gap-2">`);
|
|
41
|
+
lines.push(` <label className="text-sm font-medium text-gray-700">{label}</label>`);
|
|
42
|
+
lines.push(` <div className="flex flex-wrap gap-2">`);
|
|
43
|
+
lines.push(` {value.map((url) => (`);
|
|
44
|
+
lines.push(` <div key={url} className="relative w-20 h-20">`);
|
|
45
|
+
lines.push(` {/* eslint-disable-next-line @next/next/no-img-element */}`);
|
|
46
|
+
lines.push(` <img src={url} alt="" className="w-full h-full object-cover rounded-lg" />`);
|
|
47
|
+
lines.push(` <button`);
|
|
48
|
+
lines.push(` type="button"`);
|
|
49
|
+
lines.push(` onClick={() => remove(url)}`);
|
|
50
|
+
lines.push(` className="absolute -top-2 -right-2 bg-white rounded-full w-5 h-5 text-xs shadow border border-gray-200"`);
|
|
51
|
+
lines.push(` >`);
|
|
52
|
+
lines.push(` ✕`);
|
|
53
|
+
lines.push(` </button>`);
|
|
54
|
+
lines.push(` </div>`);
|
|
55
|
+
lines.push(` ))}`);
|
|
56
|
+
lines.push(` <label className="w-20 h-20 border border-dashed border-gray-300 rounded-lg flex items-center justify-center text-gray-400 text-xs cursor-pointer hover:border-gray-400">`);
|
|
57
|
+
lines.push(` + Add`);
|
|
58
|
+
lines.push(` <input type="file" accept="image/*" multiple onChange={handlePick} className="hidden" />`);
|
|
59
|
+
lines.push(` </label>`);
|
|
60
|
+
lines.push(` </div>`);
|
|
61
|
+
lines.push(` </div>`);
|
|
62
|
+
lines.push(` )`);
|
|
63
|
+
lines.push(`}`);
|
|
64
|
+
return {
|
|
65
|
+
path: `src/components/upload/edit/nxf_image_gallery_upload.tsx`,
|
|
66
|
+
content: lines.join('\n'),
|
|
67
|
+
category: 'customizable',
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=nxf_image_gallery_upload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nxf_image_gallery_upload.js","sourceRoot":"","sources":["../../../../src/components/upload/edit/nxf_image_gallery_upload.ts"],"names":[],"mappings":";AAAA,4GAA4G;;AAI5G,sEAkEC;AAlED,SAAgB,6BAA6B;IAC3C,MAAM,KAAK,GAAa,EAAE,CAA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C,IAAI,CAAC,mLAAmL,CAAC,CAAA;IAC/L,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAA;IAC7B,KAAK,CAAC,IAAI,CAAC,oGAAoG,CAAC,CAAA;IAChH,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;IAC9B,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;IAC1B,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;IACxB,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IACjB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAEf,OAAO;QACL,IAAI,EAAM,yDAAyD;QACnE,OAAO,EAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;QAC1B,QAAQ,EAAE,cAAc;KACzB,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nxf_image_upload.d.ts","sourceRoot":"","sources":["../../../../src/components/upload/edit/nxf_image_upload.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,wBAAgB,sBAAsB,IAAI,aAAa,CAkEtD"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File: underpeaks_codegen/packages/generator-nextjs/src/components/upload/edit/nxf_image_upload.ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.generateNxfImageUpload = generateNxfImageUpload;
|
|
5
|
+
function generateNxfImageUpload() {
|
|
6
|
+
const lines = [];
|
|
7
|
+
lines.push(`// GENERATED BY UNDERPEAKS CODEGEN v1.0.0`);
|
|
8
|
+
lines.push(`// Component: NxfImageUpload (edit)`);
|
|
9
|
+
lines.push(`// Shared component library — generated once per project, you own this file.`);
|
|
10
|
+
lines.push(`// NOTE: does NOT self-save. Actual upload/storage logic is left to the`);
|
|
11
|
+
lines.push(`// caller-supplied onUpload callback, which must return the resulting URL`);
|
|
12
|
+
lines.push(`// so this component stays stateless about storage. Per anti-self-save`);
|
|
13
|
+
lines.push(`// rule, the parent form owns persistence — critical when multiple fields`);
|
|
14
|
+
lines.push(`// share one Save button.`);
|
|
15
|
+
lines.push(``);
|
|
16
|
+
lines.push(`'use client'`);
|
|
17
|
+
lines.push(``);
|
|
18
|
+
lines.push(`interface NxfImageUploadProps {`);
|
|
19
|
+
lines.push(` label: string`);
|
|
20
|
+
lines.push(` value?: string`);
|
|
21
|
+
lines.push(` onUpload: (file: File) => Promise<string>`);
|
|
22
|
+
lines.push(` onChange: (value: string | undefined) => void`);
|
|
23
|
+
lines.push(`}`);
|
|
24
|
+
lines.push(``);
|
|
25
|
+
lines.push(`export function NxfImageUpload({`);
|
|
26
|
+
lines.push(` label,`);
|
|
27
|
+
lines.push(` value,`);
|
|
28
|
+
lines.push(` onUpload,`);
|
|
29
|
+
lines.push(` onChange,`);
|
|
30
|
+
lines.push(`}: NxfImageUploadProps) {`);
|
|
31
|
+
lines.push(` async function handlePick(e: React.ChangeEvent<HTMLInputElement>) {`);
|
|
32
|
+
lines.push(` const file = e.target.files?.[0]`);
|
|
33
|
+
lines.push(` if (!file) return`);
|
|
34
|
+
lines.push(` const url = await onUpload(file)`);
|
|
35
|
+
lines.push(` onChange(url)`);
|
|
36
|
+
lines.push(` }`);
|
|
37
|
+
lines.push(``);
|
|
38
|
+
lines.push(` return (`);
|
|
39
|
+
lines.push(` <div className="flex flex-col gap-2">`);
|
|
40
|
+
lines.push(` <label className="text-sm font-medium text-gray-700">{label}</label>`);
|
|
41
|
+
lines.push(` <label className="block h-40 border border-gray-300 rounded-lg overflow-hidden cursor-pointer relative">`);
|
|
42
|
+
lines.push(` {value ? (`);
|
|
43
|
+
lines.push(` // eslint-disable-next-line @next/next/no-img-element`);
|
|
44
|
+
lines.push(` <img src={value} alt={label} className="w-full h-full object-cover" />`);
|
|
45
|
+
lines.push(` ) : (`);
|
|
46
|
+
lines.push(` <div className="flex items-center justify-center h-full text-gray-400 text-sm">`);
|
|
47
|
+
lines.push(` Click to upload`);
|
|
48
|
+
lines.push(` </div>`);
|
|
49
|
+
lines.push(` )}`);
|
|
50
|
+
lines.push(` <input type="file" accept="image/*" onChange={handlePick} className="hidden" />`);
|
|
51
|
+
lines.push(` </label>`);
|
|
52
|
+
lines.push(` {value && (`);
|
|
53
|
+
lines.push(` <button`);
|
|
54
|
+
lines.push(` type="button"`);
|
|
55
|
+
lines.push(` onClick={() => onChange(undefined)}`);
|
|
56
|
+
lines.push(` className="text-sm text-red-600 hover:underline self-start"`);
|
|
57
|
+
lines.push(` >`);
|
|
58
|
+
lines.push(` Remove`);
|
|
59
|
+
lines.push(` </button>`);
|
|
60
|
+
lines.push(` )}`);
|
|
61
|
+
lines.push(` </div>`);
|
|
62
|
+
lines.push(` )`);
|
|
63
|
+
lines.push(`}`);
|
|
64
|
+
return {
|
|
65
|
+
path: `src/components/upload/edit/nxf_image_upload.tsx`,
|
|
66
|
+
content: lines.join('\n'),
|
|
67
|
+
category: 'customizable',
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=nxf_image_upload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nxf_image_upload.js","sourceRoot":"","sources":["../../../../src/components/upload/edit/nxf_image_upload.ts"],"names":[],"mappings":";AAAA,oGAAoG;;AAIpG,wDAkEC;AAlED,SAAgB,sBAAsB;IACpC,MAAM,KAAK,GAAa,EAAE,CAAA;IAE1B,KAAK,CAAC,IAAI,CAAC,2CAA2C,CAAC,CAAA;IACvD,KAAK,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAA;IACjD,KAAK,CAAC,IAAI,CAAC,8EAA8E,CAAC,CAAA;IAC1F,KAAK,CAAC,IAAI,CAAC,yEAAyE,CAAC,CAAA;IACrF,KAAK,CAAC,IAAI,CAAC,2EAA2E,CAAC,CAAA;IACvF,KAAK,CAAC,IAAI,CAAC,wEA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