@ginia/ui 0.1.1
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/AGENTS.md +66 -0
- package/README.md +135 -0
- package/dist/components/domain/index.cjs +23 -0
- package/dist/components/domain/index.cjs.map +1 -0
- package/dist/components/domain/index.d.cts +6 -0
- package/dist/components/domain/index.d.ts +6 -0
- package/dist/components/domain/index.js +2 -0
- package/dist/components/domain/index.js.map +1 -0
- package/dist/components/domain/resume/index.cjs +29 -0
- package/dist/components/domain/resume/index.cjs.map +1 -0
- package/dist/components/domain/resume/index.d.cts +6 -0
- package/dist/components/domain/resume/index.d.ts +6 -0
- package/dist/components/domain/resume/index.js +5 -0
- package/dist/components/domain/resume/index.js.map +1 -0
- package/dist/components/domain/resume/resume-editor/resume-editor.cjs +137 -0
- package/dist/components/domain/resume/resume-editor/resume-editor.cjs.map +1 -0
- package/dist/components/domain/resume/resume-editor/resume-editor.d.cts +15 -0
- package/dist/components/domain/resume/resume-editor/resume-editor.d.ts +15 -0
- package/dist/components/domain/resume/resume-editor/resume-editor.js +113 -0
- package/dist/components/domain/resume/resume-editor/resume-editor.js.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/academic-info.cjs +68 -0
- package/dist/components/domain/resume/resume-editor/sections/academic-info.cjs.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/academic-info.d.cts +12 -0
- package/dist/components/domain/resume/resume-editor/sections/academic-info.d.ts +12 -0
- package/dist/components/domain/resume/resume-editor/sections/academic-info.js +44 -0
- package/dist/components/domain/resume/resume-editor/sections/academic-info.js.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/activities.cjs +127 -0
- package/dist/components/domain/resume/resume-editor/sections/activities.cjs.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/activities.d.cts +12 -0
- package/dist/components/domain/resume/resume-editor/sections/activities.d.ts +12 -0
- package/dist/components/domain/resume/resume-editor/sections/activities.js +103 -0
- package/dist/components/domain/resume/resume-editor/sections/activities.js.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/certifications.cjs +128 -0
- package/dist/components/domain/resume/resume-editor/sections/certifications.cjs.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/certifications.d.cts +13 -0
- package/dist/components/domain/resume/resume-editor/sections/certifications.d.ts +13 -0
- package/dist/components/domain/resume/resume-editor/sections/certifications.js +104 -0
- package/dist/components/domain/resume/resume-editor/sections/certifications.js.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/education.cjs +127 -0
- package/dist/components/domain/resume/resume-editor/sections/education.cjs.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/education.d.cts +12 -0
- package/dist/components/domain/resume/resume-editor/sections/education.d.ts +12 -0
- package/dist/components/domain/resume/resume-editor/sections/education.js +103 -0
- package/dist/components/domain/resume/resume-editor/sections/education.js.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/experience.cjs +127 -0
- package/dist/components/domain/resume/resume-editor/sections/experience.cjs.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/experience.d.cts +12 -0
- package/dist/components/domain/resume/resume-editor/sections/experience.d.ts +12 -0
- package/dist/components/domain/resume/resume-editor/sections/experience.js +103 -0
- package/dist/components/domain/resume/resume-editor/sections/experience.js.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/personal-info.cjs +171 -0
- package/dist/components/domain/resume/resume-editor/sections/personal-info.cjs.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/personal-info.d.cts +12 -0
- package/dist/components/domain/resume/resume-editor/sections/personal-info.d.ts +12 -0
- package/dist/components/domain/resume/resume-editor/sections/personal-info.js +147 -0
- package/dist/components/domain/resume/resume-editor/sections/personal-info.js.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/preferences.cjs +129 -0
- package/dist/components/domain/resume/resume-editor/sections/preferences.cjs.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/preferences.d.cts +12 -0
- package/dist/components/domain/resume/resume-editor/sections/preferences.d.ts +12 -0
- package/dist/components/domain/resume/resume-editor/sections/preferences.js +109 -0
- package/dist/components/domain/resume/resume-editor/sections/preferences.js.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/requirements.cjs +123 -0
- package/dist/components/domain/resume/resume-editor/sections/requirements.cjs.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/requirements.d.cts +12 -0
- package/dist/components/domain/resume/resume-editor/sections/requirements.d.ts +12 -0
- package/dist/components/domain/resume/resume-editor/sections/requirements.js +99 -0
- package/dist/components/domain/resume/resume-editor/sections/requirements.js.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/skills.cjs +110 -0
- package/dist/components/domain/resume/resume-editor/sections/skills.cjs.map +1 -0
- package/dist/components/domain/resume/resume-editor/sections/skills.d.cts +12 -0
- package/dist/components/domain/resume/resume-editor/sections/skills.d.ts +12 -0
- package/dist/components/domain/resume/resume-editor/sections/skills.js +86 -0
- package/dist/components/domain/resume/resume-editor/sections/skills.js.map +1 -0
- package/dist/components/domain/resume/resume-preview/resume-preview.cjs +73 -0
- package/dist/components/domain/resume/resume-preview/resume-preview.cjs.map +1 -0
- package/dist/components/domain/resume/resume-preview/resume-preview.d.cts +13 -0
- package/dist/components/domain/resume/resume-preview/resume-preview.d.ts +13 -0
- package/dist/components/domain/resume/resume-preview/resume-preview.js +39 -0
- package/dist/components/domain/resume/resume-preview/resume-preview.js.map +1 -0
- package/dist/components/domain/resume/resume-preview/sections/contact-skills.cjs +79 -0
- package/dist/components/domain/resume/resume-preview/sections/contact-skills.cjs.map +1 -0
- package/dist/components/domain/resume/resume-preview/sections/contact-skills.d.cts +12 -0
- package/dist/components/domain/resume/resume-preview/sections/contact-skills.d.ts +12 -0
- package/dist/components/domain/resume/resume-preview/sections/contact-skills.js +55 -0
- package/dist/components/domain/resume/resume-preview/sections/contact-skills.js.map +1 -0
- package/dist/components/domain/resume/resume-preview/sections/experience-education.cjs +127 -0
- package/dist/components/domain/resume/resume-preview/sections/experience-education.cjs.map +1 -0
- package/dist/components/domain/resume/resume-preview/sections/experience-education.d.cts +13 -0
- package/dist/components/domain/resume/resume-preview/sections/experience-education.d.ts +13 -0
- package/dist/components/domain/resume/resume-preview/sections/experience-education.js +103 -0
- package/dist/components/domain/resume/resume-preview/sections/experience-education.js.map +1 -0
- package/dist/components/domain/resume/resume-preview/sections/footer-preview.cjs +36 -0
- package/dist/components/domain/resume/resume-preview/sections/footer-preview.cjs.map +1 -0
- package/dist/components/domain/resume/resume-preview/sections/footer-preview.d.cts +5 -0
- package/dist/components/domain/resume/resume-preview/sections/footer-preview.d.ts +5 -0
- package/dist/components/domain/resume/resume-preview/sections/footer-preview.js +12 -0
- package/dist/components/domain/resume/resume-preview/sections/footer-preview.js.map +1 -0
- package/dist/components/domain/resume/resume-preview/sections/header-preview.cjs +64 -0
- package/dist/components/domain/resume/resume-preview/sections/header-preview.cjs.map +1 -0
- package/dist/components/domain/resume/resume-preview/sections/header-preview.d.cts +13 -0
- package/dist/components/domain/resume/resume-preview/sections/header-preview.d.ts +13 -0
- package/dist/components/domain/resume/resume-preview/sections/header-preview.js +40 -0
- package/dist/components/domain/resume/resume-preview/sections/header-preview.js.map +1 -0
- package/dist/components/domain/resume/resume.cjs +360 -0
- package/dist/components/domain/resume/resume.cjs.map +1 -0
- package/dist/components/domain/resume/resume.d.cts +7 -0
- package/dist/components/domain/resume/resume.d.ts +7 -0
- package/dist/components/domain/resume/resume.js +326 -0
- package/dist/components/domain/resume/resume.js.map +1 -0
- package/dist/components/domain/resume/types.cjs +17 -0
- package/dist/components/domain/resume/types.cjs.map +1 -0
- package/dist/components/domain/resume/types.d.cts +195 -0
- package/dist/components/domain/resume/types.d.ts +195 -0
- package/dist/components/domain/resume/types.js +1 -0
- package/dist/components/domain/resume/types.js.map +1 -0
- package/dist/components/ui/accordion/accordion.cjs +103 -0
- package/dist/components/ui/accordion/accordion.cjs.map +1 -0
- package/dist/components/ui/accordion/accordion.d.cts +10 -0
- package/dist/components/ui/accordion/accordion.d.ts +10 -0
- package/dist/components/ui/accordion/accordion.js +66 -0
- package/dist/components/ui/accordion/accordion.js.map +1 -0
- package/dist/components/ui/accordion/index.cjs +23 -0
- package/dist/components/ui/accordion/index.cjs.map +1 -0
- package/dist/components/ui/accordion/index.d.cts +4 -0
- package/dist/components/ui/accordion/index.d.ts +4 -0
- package/dist/components/ui/accordion/index.js +2 -0
- package/dist/components/ui/accordion/index.js.map +1 -0
- package/dist/components/ui/alert/alert.cjs +90 -0
- package/dist/components/ui/alert/alert.cjs.map +1 -0
- package/dist/components/ui/alert/alert.d.cts +14 -0
- package/dist/components/ui/alert/alert.d.ts +14 -0
- package/dist/components/ui/alert/alert.js +53 -0
- package/dist/components/ui/alert/alert.js.map +1 -0
- package/dist/components/ui/alert/index.cjs +23 -0
- package/dist/components/ui/alert/index.cjs.map +1 -0
- package/dist/components/ui/alert/index.d.cts +4 -0
- package/dist/components/ui/alert/index.d.ts +4 -0
- package/dist/components/ui/alert/index.js +2 -0
- package/dist/components/ui/alert/index.js.map +1 -0
- package/dist/components/ui/alert-dialog/alert-dialog.cjs +207 -0
- package/dist/components/ui/alert-dialog/alert-dialog.cjs.map +1 -0
- package/dist/components/ui/alert-dialog/alert-dialog.d.cts +17 -0
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts +17 -0
- package/dist/components/ui/alert-dialog/alert-dialog.js +163 -0
- package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert-dialog/index.cjs +23 -0
- package/dist/components/ui/alert-dialog/index.cjs.map +1 -0
- package/dist/components/ui/alert-dialog/index.d.cts +4 -0
- package/dist/components/ui/alert-dialog/index.d.ts +4 -0
- package/dist/components/ui/alert-dialog/index.js +2 -0
- package/dist/components/ui/alert-dialog/index.js.map +1 -0
- package/dist/components/ui/aspect-ratio/aspect-ratio.cjs +41 -0
- package/dist/components/ui/aspect-ratio/aspect-ratio.cjs.map +1 -0
- package/dist/components/ui/aspect-ratio/aspect-ratio.d.cts +5 -0
- package/dist/components/ui/aspect-ratio/aspect-ratio.d.ts +5 -0
- package/dist/components/ui/aspect-ratio/aspect-ratio.js +7 -0
- package/dist/components/ui/aspect-ratio/aspect-ratio.js.map +1 -0
- package/dist/components/ui/aspect-ratio/index.cjs +23 -0
- package/dist/components/ui/aspect-ratio/index.cjs.map +1 -0
- package/dist/components/ui/aspect-ratio/index.d.cts +2 -0
- package/dist/components/ui/aspect-ratio/index.d.ts +2 -0
- package/dist/components/ui/aspect-ratio/index.js +2 -0
- package/dist/components/ui/aspect-ratio/index.js.map +1 -0
- package/dist/components/ui/autocomplete/autocomplete.cjs +210 -0
- package/dist/components/ui/autocomplete/autocomplete.cjs.map +1 -0
- package/dist/components/ui/autocomplete/autocomplete.d.cts +28 -0
- package/dist/components/ui/autocomplete/autocomplete.d.ts +28 -0
- package/dist/components/ui/autocomplete/autocomplete.js +176 -0
- package/dist/components/ui/autocomplete/autocomplete.js.map +1 -0
- package/dist/components/ui/autocomplete/index.cjs +23 -0
- package/dist/components/ui/autocomplete/index.cjs.map +1 -0
- package/dist/components/ui/autocomplete/index.d.cts +3 -0
- package/dist/components/ui/autocomplete/index.d.ts +3 -0
- package/dist/components/ui/autocomplete/index.js +2 -0
- package/dist/components/ui/autocomplete/index.js.map +1 -0
- package/dist/components/ui/avatar/avatar.cjs +80 -0
- package/dist/components/ui/avatar/avatar.cjs.map +1 -0
- package/dist/components/ui/avatar/avatar.d.cts +8 -0
- package/dist/components/ui/avatar/avatar.d.ts +8 -0
- package/dist/components/ui/avatar/avatar.js +44 -0
- package/dist/components/ui/avatar/avatar.js.map +1 -0
- package/dist/components/ui/avatar/index.cjs +23 -0
- package/dist/components/ui/avatar/index.cjs.map +1 -0
- package/dist/components/ui/avatar/index.d.cts +3 -0
- package/dist/components/ui/avatar/index.d.ts +3 -0
- package/dist/components/ui/avatar/index.js +2 -0
- package/dist/components/ui/avatar/index.js.map +1 -0
- package/dist/components/ui/badge/badge.cjs +71 -0
- package/dist/components/ui/badge/badge.cjs.map +1 -0
- package/dist/components/ui/badge/badge.d.cts +13 -0
- package/dist/components/ui/badge/badge.d.ts +13 -0
- package/dist/components/ui/badge/badge.js +46 -0
- package/dist/components/ui/badge/badge.js.map +1 -0
- package/dist/components/ui/badge/index.cjs +23 -0
- package/dist/components/ui/badge/index.cjs.map +1 -0
- package/dist/components/ui/badge/index.d.cts +5 -0
- package/dist/components/ui/badge/index.d.ts +5 -0
- package/dist/components/ui/badge/index.js +2 -0
- package/dist/components/ui/badge/index.js.map +1 -0
- package/dist/components/ui/breadcrumb/breadcrumb.cjs +141 -0
- package/dist/components/ui/breadcrumb/breadcrumb.cjs.map +1 -0
- package/dist/components/ui/breadcrumb/breadcrumb.d.cts +14 -0
- package/dist/components/ui/breadcrumb/breadcrumb.d.ts +14 -0
- package/dist/components/ui/breadcrumb/breadcrumb.js +111 -0
- package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/components/ui/breadcrumb/index.cjs +23 -0
- package/dist/components/ui/breadcrumb/index.cjs.map +1 -0
- package/dist/components/ui/breadcrumb/index.d.cts +3 -0
- package/dist/components/ui/breadcrumb/index.d.ts +3 -0
- package/dist/components/ui/breadcrumb/index.js +2 -0
- package/dist/components/ui/breadcrumb/index.js.map +1 -0
- package/dist/components/ui/button/button.cjs +79 -0
- package/dist/components/ui/button/button.cjs.map +1 -0
- package/dist/components/ui/button/button.d.cts +14 -0
- package/dist/components/ui/button/button.d.ts +14 -0
- package/dist/components/ui/button/button.js +54 -0
- package/dist/components/ui/button/button.js.map +1 -0
- package/dist/components/ui/button/index.cjs +23 -0
- package/dist/components/ui/button/index.cjs.map +1 -0
- package/dist/components/ui/button/index.d.cts +5 -0
- package/dist/components/ui/button/index.d.ts +5 -0
- package/dist/components/ui/button/index.js +2 -0
- package/dist/components/ui/button/index.js.map +1 -0
- package/dist/components/ui/calendar/calendar.cjs +78 -0
- package/dist/components/ui/calendar/calendar.cjs.map +1 -0
- package/dist/components/ui/calendar/calendar.d.cts +8 -0
- package/dist/components/ui/calendar/calendar.d.ts +8 -0
- package/dist/components/ui/calendar/calendar.js +54 -0
- package/dist/components/ui/calendar/calendar.js.map +1 -0
- package/dist/components/ui/calendar/index.cjs +23 -0
- package/dist/components/ui/calendar/index.cjs.map +1 -0
- package/dist/components/ui/calendar/index.d.cts +4 -0
- package/dist/components/ui/calendar/index.d.ts +4 -0
- package/dist/components/ui/calendar/index.js +2 -0
- package/dist/components/ui/calendar/index.js.map +1 -0
- package/dist/components/ui/card/card.cjs +118 -0
- package/dist/components/ui/card/card.cjs.map +1 -0
- package/dist/components/ui/card/card.d.cts +12 -0
- package/dist/components/ui/card/card.d.ts +12 -0
- package/dist/components/ui/card/card.js +88 -0
- package/dist/components/ui/card/card.js.map +1 -0
- package/dist/components/ui/card/index.cjs +23 -0
- package/dist/components/ui/card/index.cjs.map +1 -0
- package/dist/components/ui/card/index.d.cts +3 -0
- package/dist/components/ui/card/index.d.ts +3 -0
- package/dist/components/ui/card/index.js +2 -0
- package/dist/components/ui/card/index.js.map +1 -0
- package/dist/components/ui/carousel/carousel.cjs +234 -0
- package/dist/components/ui/carousel/carousel.cjs.map +1 -0
- package/dist/components/ui/carousel/carousel.d.cts +24 -0
- package/dist/components/ui/carousel/carousel.d.ts +24 -0
- package/dist/components/ui/carousel/carousel.js +196 -0
- package/dist/components/ui/carousel/carousel.js.map +1 -0
- package/dist/components/ui/carousel/index.cjs +23 -0
- package/dist/components/ui/carousel/index.cjs.map +1 -0
- package/dist/components/ui/carousel/index.d.cts +7 -0
- package/dist/components/ui/carousel/index.d.ts +7 -0
- package/dist/components/ui/carousel/index.js +2 -0
- package/dist/components/ui/carousel/index.js.map +1 -0
- package/dist/components/ui/checkbox/checkbox.cjs +63 -0
- package/dist/components/ui/checkbox/checkbox.cjs.map +1 -0
- package/dist/components/ui/checkbox/checkbox.d.cts +6 -0
- package/dist/components/ui/checkbox/checkbox.d.ts +6 -0
- package/dist/components/ui/checkbox/checkbox.js +29 -0
- package/dist/components/ui/checkbox/checkbox.js.map +1 -0
- package/dist/components/ui/checkbox/index.cjs +23 -0
- package/dist/components/ui/checkbox/index.cjs.map +1 -0
- package/dist/components/ui/checkbox/index.d.cts +3 -0
- package/dist/components/ui/checkbox/index.d.ts +3 -0
- package/dist/components/ui/checkbox/index.js +2 -0
- package/dist/components/ui/checkbox/index.js.map +1 -0
- package/dist/components/ui/collapsible/collapsible.cjs +47 -0
- package/dist/components/ui/collapsible/collapsible.cjs.map +1 -0
- package/dist/components/ui/collapsible/collapsible.d.cts +7 -0
- package/dist/components/ui/collapsible/collapsible.d.ts +7 -0
- package/dist/components/ui/collapsible/collapsible.js +11 -0
- package/dist/components/ui/collapsible/collapsible.js.map +1 -0
- package/dist/components/ui/collapsible/index.cjs +23 -0
- package/dist/components/ui/collapsible/index.cjs.map +1 -0
- package/dist/components/ui/collapsible/index.d.cts +2 -0
- package/dist/components/ui/collapsible/index.d.ts +2 -0
- package/dist/components/ui/collapsible/index.js +2 -0
- package/dist/components/ui/collapsible/index.js.map +1 -0
- package/dist/components/ui/combobox/combobox.cjs +129 -0
- package/dist/components/ui/combobox/combobox.cjs.map +1 -0
- package/dist/components/ui/combobox/combobox.d.cts +19 -0
- package/dist/components/ui/combobox/combobox.d.ts +19 -0
- package/dist/components/ui/combobox/combobox.js +102 -0
- package/dist/components/ui/combobox/combobox.js.map +1 -0
- package/dist/components/ui/combobox/index.cjs +23 -0
- package/dist/components/ui/combobox/index.cjs.map +1 -0
- package/dist/components/ui/combobox/index.d.cts +2 -0
- package/dist/components/ui/combobox/index.d.ts +2 -0
- package/dist/components/ui/combobox/index.js +2 -0
- package/dist/components/ui/combobox/index.js.map +1 -0
- package/dist/components/ui/command/command.cjs +174 -0
- package/dist/components/ui/command/command.cjs.map +1 -0
- package/dist/components/ui/command/command.d.cts +17 -0
- package/dist/components/ui/command/command.d.ts +17 -0
- package/dist/components/ui/command/command.js +142 -0
- package/dist/components/ui/command/command.js.map +1 -0
- package/dist/components/ui/command/index.cjs +23 -0
- package/dist/components/ui/command/index.cjs.map +1 -0
- package/dist/components/ui/command/index.d.cts +5 -0
- package/dist/components/ui/command/index.d.ts +5 -0
- package/dist/components/ui/command/index.js +2 -0
- package/dist/components/ui/command/index.js.map +1 -0
- package/dist/components/ui/context-menu/context-menu.cjs +255 -0
- package/dist/components/ui/context-menu/context-menu.cjs.map +1 -0
- package/dist/components/ui/context-menu/context-menu.d.cts +27 -0
- package/dist/components/ui/context-menu/context-menu.d.ts +27 -0
- package/dist/components/ui/context-menu/context-menu.js +207 -0
- package/dist/components/ui/context-menu/context-menu.js.map +1 -0
- package/dist/components/ui/context-menu/index.cjs +23 -0
- package/dist/components/ui/context-menu/index.cjs.map +1 -0
- package/dist/components/ui/context-menu/index.d.cts +4 -0
- package/dist/components/ui/context-menu/index.d.ts +4 -0
- package/dist/components/ui/context-menu/index.js +2 -0
- package/dist/components/ui/context-menu/index.js.map +1 -0
- package/dist/components/ui/date-picker/date-picker.cjs +189 -0
- package/dist/components/ui/date-picker/date-picker.cjs.map +1 -0
- package/dist/components/ui/date-picker/date-picker.d.cts +12 -0
- package/dist/components/ui/date-picker/date-picker.d.ts +12 -0
- package/dist/components/ui/date-picker/date-picker.js +159 -0
- package/dist/components/ui/date-picker/date-picker.js.map +1 -0
- package/dist/components/ui/date-picker/index.cjs +23 -0
- package/dist/components/ui/date-picker/index.cjs.map +1 -0
- package/dist/components/ui/date-picker/index.d.cts +2 -0
- package/dist/components/ui/date-picker/index.d.ts +2 -0
- package/dist/components/ui/date-picker/index.js +2 -0
- package/dist/components/ui/date-picker/index.js.map +1 -0
- package/dist/components/ui/dialog/dialog.cjs +184 -0
- package/dist/components/ui/dialog/dialog.cjs.map +1 -0
- package/dist/components/ui/dialog/dialog.d.cts +18 -0
- package/dist/components/ui/dialog/dialog.d.ts +18 -0
- package/dist/components/ui/dialog/dialog.js +141 -0
- package/dist/components/ui/dialog/dialog.js.map +1 -0
- package/dist/components/ui/dialog/index.cjs +23 -0
- package/dist/components/ui/dialog/index.cjs.map +1 -0
- package/dist/components/ui/dialog/index.d.cts +4 -0
- package/dist/components/ui/dialog/index.d.ts +4 -0
- package/dist/components/ui/dialog/index.js +2 -0
- package/dist/components/ui/dialog/index.js.map +1 -0
- package/dist/components/ui/drawer/drawer.cjs +156 -0
- package/dist/components/ui/drawer/drawer.cjs.map +1 -0
- package/dist/components/ui/drawer/drawer.d.cts +16 -0
- package/dist/components/ui/drawer/drawer.d.ts +16 -0
- package/dist/components/ui/drawer/drawer.js +123 -0
- package/dist/components/ui/drawer/drawer.js.map +1 -0
- package/dist/components/ui/drawer/index.cjs +23 -0
- package/dist/components/ui/drawer/index.cjs.map +1 -0
- package/dist/components/ui/drawer/index.d.cts +4 -0
- package/dist/components/ui/drawer/index.d.ts +4 -0
- package/dist/components/ui/drawer/index.js +2 -0
- package/dist/components/ui/drawer/index.js.map +1 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.cjs +201 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.cjs.map +1 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.cts +30 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +30 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +153 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -0
- package/dist/components/ui/dropdown-menu/index.cjs +23 -0
- package/dist/components/ui/dropdown-menu/index.cjs.map +1 -0
- package/dist/components/ui/dropdown-menu/index.d.cts +4 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/index.js +2 -0
- package/dist/components/ui/dropdown-menu/index.js.map +1 -0
- package/dist/components/ui/form/form.cjs +162 -0
- package/dist/components/ui/form/form.cjs.map +1 -0
- package/dist/components/ui/form/form.d.cts +28 -0
- package/dist/components/ui/form/form.d.ts +28 -0
- package/dist/components/ui/form/form.js +126 -0
- package/dist/components/ui/form/form.js.map +1 -0
- package/dist/components/ui/form/index.cjs +23 -0
- package/dist/components/ui/form/index.cjs.map +1 -0
- package/dist/components/ui/form/index.d.cts +6 -0
- package/dist/components/ui/form/index.d.ts +6 -0
- package/dist/components/ui/form/index.js +2 -0
- package/dist/components/ui/form/index.js.map +1 -0
- package/dist/components/ui/hover-card/hover-card.cjs +76 -0
- package/dist/components/ui/hover-card/hover-card.cjs.map +1 -0
- package/dist/components/ui/hover-card/hover-card.d.cts +9 -0
- package/dist/components/ui/hover-card/hover-card.d.ts +9 -0
- package/dist/components/ui/hover-card/hover-card.js +40 -0
- package/dist/components/ui/hover-card/hover-card.js.map +1 -0
- package/dist/components/ui/hover-card/index.cjs +23 -0
- package/dist/components/ui/hover-card/index.cjs.map +1 -0
- package/dist/components/ui/hover-card/index.d.cts +4 -0
- package/dist/components/ui/hover-card/index.d.ts +4 -0
- package/dist/components/ui/hover-card/index.js +2 -0
- package/dist/components/ui/hover-card/index.js.map +1 -0
- package/dist/components/ui/icon/icon.cjs +56 -0
- package/dist/components/ui/icon/icon.cjs.map +1 -0
- package/dist/components/ui/icon/icon.d.cts +39 -0
- package/dist/components/ui/icon/icon.d.ts +39 -0
- package/dist/components/ui/icon/icon.js +31 -0
- package/dist/components/ui/icon/icon.js.map +1 -0
- package/dist/components/ui/icon/index.cjs +31 -0
- package/dist/components/ui/icon/index.cjs.map +1 -0
- package/dist/components/ui/icon/index.d.cts +3 -0
- package/dist/components/ui/icon/index.d.ts +3 -0
- package/dist/components/ui/icon/index.js +6 -0
- package/dist/components/ui/icon/index.js.map +1 -0
- package/dist/components/ui/index.cjs +137 -0
- package/dist/components/ui/index.cjs.map +1 -0
- package/dist/components/ui/index.d.cts +97 -0
- package/dist/components/ui/index.d.ts +97 -0
- package/dist/components/ui/index.js +59 -0
- package/dist/components/ui/index.js.map +1 -0
- package/dist/components/ui/input/index.cjs +23 -0
- package/dist/components/ui/input/index.cjs.map +1 -0
- package/dist/components/ui/input/index.d.cts +3 -0
- package/dist/components/ui/input/index.d.ts +3 -0
- package/dist/components/ui/input/index.js +2 -0
- package/dist/components/ui/input/index.js.map +1 -0
- package/dist/components/ui/input/input.cjs +44 -0
- package/dist/components/ui/input/input.cjs.map +1 -0
- package/dist/components/ui/input/input.d.cts +6 -0
- package/dist/components/ui/input/input.d.ts +6 -0
- package/dist/components/ui/input/input.js +20 -0
- package/dist/components/ui/input/input.js.map +1 -0
- package/dist/components/ui/input-field/index.cjs +23 -0
- package/dist/components/ui/input-field/index.cjs.map +1 -0
- package/dist/components/ui/input-field/index.d.cts +3 -0
- package/dist/components/ui/input-field/index.d.ts +3 -0
- package/dist/components/ui/input-field/index.js +2 -0
- package/dist/components/ui/input-field/index.js.map +1 -0
- package/dist/components/ui/input-field/input-field.cjs +72 -0
- package/dist/components/ui/input-field/input-field.cjs.map +1 -0
- package/dist/components/ui/input-field/input-field.d.cts +22 -0
- package/dist/components/ui/input-field/input-field.d.ts +22 -0
- package/dist/components/ui/input-field/input-field.js +47 -0
- package/dist/components/ui/input-field/input-field.js.map +1 -0
- package/dist/components/ui/input-otp/index.cjs +23 -0
- package/dist/components/ui/input-otp/index.cjs.map +1 -0
- package/dist/components/ui/input-otp/index.d.cts +4 -0
- package/dist/components/ui/input-otp/index.d.ts +4 -0
- package/dist/components/ui/input-otp/index.js +2 -0
- package/dist/components/ui/input-otp/index.js.map +1 -0
- package/dist/components/ui/input-otp/input-otp.cjs +105 -0
- package/dist/components/ui/input-otp/input-otp.cjs.map +1 -0
- package/dist/components/ui/input-otp/input-otp.d.cts +14 -0
- package/dist/components/ui/input-otp/input-otp.d.ts +14 -0
- package/dist/components/ui/input-otp/input-otp.js +68 -0
- package/dist/components/ui/input-otp/input-otp.js.map +1 -0
- package/dist/components/ui/label/index.cjs +23 -0
- package/dist/components/ui/label/index.cjs.map +1 -0
- package/dist/components/ui/label/index.d.cts +4 -0
- package/dist/components/ui/label/index.d.ts +4 -0
- package/dist/components/ui/label/index.js +2 -0
- package/dist/components/ui/label/index.js.map +1 -0
- package/dist/components/ui/label/label.cjs +58 -0
- package/dist/components/ui/label/label.cjs.map +1 -0
- package/dist/components/ui/label/label.d.cts +7 -0
- package/dist/components/ui/label/label.d.ts +7 -0
- package/dist/components/ui/label/label.js +24 -0
- package/dist/components/ui/label/label.js.map +1 -0
- package/dist/components/ui/loading-state/index.cjs +23 -0
- package/dist/components/ui/loading-state/index.cjs.map +1 -0
- package/dist/components/ui/loading-state/index.d.cts +2 -0
- package/dist/components/ui/loading-state/index.d.ts +2 -0
- package/dist/components/ui/loading-state/index.js +2 -0
- package/dist/components/ui/loading-state/index.js.map +1 -0
- package/dist/components/ui/loading-state/loading-state.cjs +60 -0
- package/dist/components/ui/loading-state/loading-state.cjs.map +1 -0
- package/dist/components/ui/loading-state/loading-state.d.cts +11 -0
- package/dist/components/ui/loading-state/loading-state.d.ts +11 -0
- package/dist/components/ui/loading-state/loading-state.js +36 -0
- package/dist/components/ui/loading-state/loading-state.js.map +1 -0
- package/dist/components/ui/logo/index.cjs +23 -0
- package/dist/components/ui/logo/index.cjs.map +1 -0
- package/dist/components/ui/logo/index.d.cts +3 -0
- package/dist/components/ui/logo/index.d.ts +3 -0
- package/dist/components/ui/logo/index.js +2 -0
- package/dist/components/ui/logo/index.js.map +1 -0
- package/dist/components/ui/logo/logo.cjs +50 -0
- package/dist/components/ui/logo/logo.cjs.map +1 -0
- package/dist/components/ui/logo/logo.d.cts +9 -0
- package/dist/components/ui/logo/logo.d.ts +9 -0
- package/dist/components/ui/logo/logo.js +26 -0
- package/dist/components/ui/logo/logo.js.map +1 -0
- package/dist/components/ui/menubar/index.cjs +23 -0
- package/dist/components/ui/menubar/index.cjs.map +1 -0
- package/dist/components/ui/menubar/index.d.cts +4 -0
- package/dist/components/ui/menubar/index.d.ts +4 -0
- package/dist/components/ui/menubar/index.js +2 -0
- package/dist/components/ui/menubar/index.js.map +1 -0
- package/dist/components/ui/menubar/menubar.cjs +280 -0
- package/dist/components/ui/menubar/menubar.cjs.map +1 -0
- package/dist/components/ui/menubar/menubar.d.cts +28 -0
- package/dist/components/ui/menubar/menubar.d.ts +28 -0
- package/dist/components/ui/menubar/menubar.js +231 -0
- package/dist/components/ui/menubar/menubar.js.map +1 -0
- package/dist/components/ui/month-year-picker/index.cjs +23 -0
- package/dist/components/ui/month-year-picker/index.cjs.map +1 -0
- package/dist/components/ui/month-year-picker/index.d.cts +2 -0
- package/dist/components/ui/month-year-picker/index.d.ts +2 -0
- package/dist/components/ui/month-year-picker/index.js +2 -0
- package/dist/components/ui/month-year-picker/index.js.map +1 -0
- package/dist/components/ui/month-year-picker/month-year-picker.cjs +157 -0
- package/dist/components/ui/month-year-picker/month-year-picker.cjs.map +1 -0
- package/dist/components/ui/month-year-picker/month-year-picker.d.cts +12 -0
- package/dist/components/ui/month-year-picker/month-year-picker.d.ts +12 -0
- package/dist/components/ui/month-year-picker/month-year-picker.js +127 -0
- package/dist/components/ui/month-year-picker/month-year-picker.js.map +1 -0
- package/dist/components/ui/multi-select/index.cjs +23 -0
- package/dist/components/ui/multi-select/index.cjs.map +1 -0
- package/dist/components/ui/multi-select/index.d.cts +2 -0
- package/dist/components/ui/multi-select/index.d.ts +2 -0
- package/dist/components/ui/multi-select/index.js +2 -0
- package/dist/components/ui/multi-select/index.js.map +1 -0
- package/dist/components/ui/multi-select/multi-select.cjs +173 -0
- package/dist/components/ui/multi-select/multi-select.cjs.map +1 -0
- package/dist/components/ui/multi-select/multi-select.d.cts +19 -0
- package/dist/components/ui/multi-select/multi-select.d.ts +19 -0
- package/dist/components/ui/multi-select/multi-select.js +139 -0
- package/dist/components/ui/multi-select/multi-select.js.map +1 -0
- package/dist/components/ui/navigation-menu/index.cjs +23 -0
- package/dist/components/ui/navigation-menu/index.cjs.map +1 -0
- package/dist/components/ui/navigation-menu/index.d.cts +5 -0
- package/dist/components/ui/navigation-menu/index.d.ts +5 -0
- package/dist/components/ui/navigation-menu/index.js +2 -0
- package/dist/components/ui/navigation-menu/index.js.map +1 -0
- package/dist/components/ui/navigation-menu/navigation-menu.cjs +201 -0
- package/dist/components/ui/navigation-menu/navigation-menu.cjs.map +1 -0
- package/dist/components/ui/navigation-menu/navigation-menu.d.cts +18 -0
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts +18 -0
- package/dist/components/ui/navigation-menu/navigation-menu.js +159 -0
- package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -0
- package/dist/components/ui/pagination/index.cjs +23 -0
- package/dist/components/ui/pagination/index.cjs.map +1 -0
- package/dist/components/ui/pagination/index.d.cts +6 -0
- package/dist/components/ui/pagination/index.d.ts +6 -0
- package/dist/components/ui/pagination/index.js +2 -0
- package/dist/components/ui/pagination/index.js.map +1 -0
- package/dist/components/ui/pagination/pagination.cjs +148 -0
- package/dist/components/ui/pagination/pagination.cjs.map +1 -0
- package/dist/components/ui/pagination/pagination.d.cts +18 -0
- package/dist/components/ui/pagination/pagination.d.ts +18 -0
- package/dist/components/ui/pagination/pagination.js +118 -0
- package/dist/components/ui/pagination/pagination.js.map +1 -0
- package/dist/components/ui/popover/index.cjs +23 -0
- package/dist/components/ui/popover/index.cjs.map +1 -0
- package/dist/components/ui/popover/index.d.cts +3 -0
- package/dist/components/ui/popover/index.d.ts +3 -0
- package/dist/components/ui/popover/index.js +2 -0
- package/dist/components/ui/popover/index.js.map +1 -0
- package/dist/components/ui/popover/popover.cjs +63 -0
- package/dist/components/ui/popover/popover.cjs.map +1 -0
- package/dist/components/ui/popover/popover.d.cts +8 -0
- package/dist/components/ui/popover/popover.d.ts +8 -0
- package/dist/components/ui/popover/popover.js +27 -0
- package/dist/components/ui/popover/popover.js.map +1 -0
- package/dist/components/ui/progress/index.cjs +23 -0
- package/dist/components/ui/progress/index.cjs.map +1 -0
- package/dist/components/ui/progress/index.d.cts +2 -0
- package/dist/components/ui/progress/index.d.ts +2 -0
- package/dist/components/ui/progress/index.js +2 -0
- package/dist/components/ui/progress/index.js.map +1 -0
- package/dist/components/ui/progress/progress.cjs +77 -0
- package/dist/components/ui/progress/progress.cjs.map +1 -0
- package/dist/components/ui/progress/progress.d.cts +15 -0
- package/dist/components/ui/progress/progress.d.ts +15 -0
- package/dist/components/ui/progress/progress.js +53 -0
- package/dist/components/ui/progress/progress.js.map +1 -0
- package/dist/components/ui/radio-group/index.cjs +23 -0
- package/dist/components/ui/radio-group/index.cjs.map +1 -0
- package/dist/components/ui/radio-group/index.d.cts +3 -0
- package/dist/components/ui/radio-group/index.d.ts +3 -0
- package/dist/components/ui/radio-group/index.js +2 -0
- package/dist/components/ui/radio-group/index.js.map +1 -0
- package/dist/components/ui/radio-group/radio-group.cjs +72 -0
- package/dist/components/ui/radio-group/radio-group.cjs.map +1 -0
- package/dist/components/ui/radio-group/radio-group.d.cts +7 -0
- package/dist/components/ui/radio-group/radio-group.d.ts +7 -0
- package/dist/components/ui/radio-group/radio-group.js +37 -0
- package/dist/components/ui/radio-group/radio-group.js.map +1 -0
- package/dist/components/ui/resizable/index.cjs +23 -0
- package/dist/components/ui/resizable/index.cjs.map +1 -0
- package/dist/components/ui/resizable/index.d.cts +3 -0
- package/dist/components/ui/resizable/index.d.ts +3 -0
- package/dist/components/ui/resizable/index.js +2 -0
- package/dist/components/ui/resizable/index.js.map +1 -0
- package/dist/components/ui/resizable/resizable.cjs +74 -0
- package/dist/components/ui/resizable/resizable.cjs.map +1 -0
- package/dist/components/ui/resizable/resizable.d.cts +12 -0
- package/dist/components/ui/resizable/resizable.d.ts +12 -0
- package/dist/components/ui/resizable/resizable.js +52 -0
- package/dist/components/ui/resizable/resizable.js.map +1 -0
- package/dist/components/ui/rich-text-editor/index.cjs +23 -0
- package/dist/components/ui/rich-text-editor/index.cjs.map +1 -0
- package/dist/components/ui/rich-text-editor/index.d.cts +2 -0
- package/dist/components/ui/rich-text-editor/index.d.ts +2 -0
- package/dist/components/ui/rich-text-editor/index.js +2 -0
- package/dist/components/ui/rich-text-editor/index.js.map +1 -0
- package/dist/components/ui/rich-text-editor/rich-text-editor.cjs +294 -0
- package/dist/components/ui/rich-text-editor/rich-text-editor.cjs.map +1 -0
- package/dist/components/ui/rich-text-editor/rich-text-editor.d.cts +13 -0
- package/dist/components/ui/rich-text-editor/rich-text-editor.d.ts +13 -0
- package/dist/components/ui/rich-text-editor/rich-text-editor.js +274 -0
- package/dist/components/ui/rich-text-editor/rich-text-editor.js.map +1 -0
- package/dist/components/ui/scroll-area/index.cjs +23 -0
- package/dist/components/ui/scroll-area/index.cjs.map +1 -0
- package/dist/components/ui/scroll-area/index.d.cts +3 -0
- package/dist/components/ui/scroll-area/index.d.ts +3 -0
- package/dist/components/ui/scroll-area/index.js +2 -0
- package/dist/components/ui/scroll-area/index.js.map +1 -0
- package/dist/components/ui/scroll-area/scroll-area.cjs +75 -0
- package/dist/components/ui/scroll-area/scroll-area.cjs.map +1 -0
- package/dist/components/ui/scroll-area/scroll-area.d.cts +7 -0
- package/dist/components/ui/scroll-area/scroll-area.d.ts +7 -0
- package/dist/components/ui/scroll-area/scroll-area.js +40 -0
- package/dist/components/ui/scroll-area/scroll-area.js.map +1 -0
- package/dist/components/ui/section-loader/index.cjs +23 -0
- package/dist/components/ui/section-loader/index.cjs.map +1 -0
- package/dist/components/ui/section-loader/index.d.cts +2 -0
- package/dist/components/ui/section-loader/index.d.ts +2 -0
- package/dist/components/ui/section-loader/index.js +2 -0
- package/dist/components/ui/section-loader/index.js.map +1 -0
- package/dist/components/ui/section-loader/section-loader.cjs +75 -0
- package/dist/components/ui/section-loader/section-loader.cjs.map +1 -0
- package/dist/components/ui/section-loader/section-loader.d.cts +16 -0
- package/dist/components/ui/section-loader/section-loader.d.ts +16 -0
- package/dist/components/ui/section-loader/section-loader.js +50 -0
- package/dist/components/ui/section-loader/section-loader.js.map +1 -0
- package/dist/components/ui/select/index.cjs +23 -0
- package/dist/components/ui/select/index.cjs.map +1 -0
- package/dist/components/ui/select/index.d.cts +4 -0
- package/dist/components/ui/select/index.d.ts +4 -0
- package/dist/components/ui/select/index.js +2 -0
- package/dist/components/ui/select/index.js.map +1 -0
- package/dist/components/ui/select/select.cjs +217 -0
- package/dist/components/ui/select/select.cjs.map +1 -0
- package/dist/components/ui/select/select.d.cts +18 -0
- package/dist/components/ui/select/select.d.ts +18 -0
- package/dist/components/ui/select/select.js +174 -0
- package/dist/components/ui/select/select.js.map +1 -0
- package/dist/components/ui/separator/index.cjs +23 -0
- package/dist/components/ui/separator/index.cjs.map +1 -0
- package/dist/components/ui/separator/index.d.cts +3 -0
- package/dist/components/ui/separator/index.d.ts +3 -0
- package/dist/components/ui/separator/index.js +2 -0
- package/dist/components/ui/separator/index.js.map +1 -0
- package/dist/components/ui/separator/separator.cjs +60 -0
- package/dist/components/ui/separator/separator.cjs.map +1 -0
- package/dist/components/ui/separator/separator.d.cts +6 -0
- package/dist/components/ui/separator/separator.d.ts +6 -0
- package/dist/components/ui/separator/separator.js +26 -0
- package/dist/components/ui/separator/separator.js.map +1 -0
- package/dist/components/ui/sheet/index.cjs +23 -0
- package/dist/components/ui/sheet/index.cjs.map +1 -0
- package/dist/components/ui/sheet/index.d.cts +6 -0
- package/dist/components/ui/sheet/index.d.ts +6 -0
- package/dist/components/ui/sheet/index.js +2 -0
- package/dist/components/ui/sheet/index.js.map +1 -0
- package/dist/components/ui/sheet/sheet.cjs +195 -0
- package/dist/components/ui/sheet/sheet.cjs.map +1 -0
- package/dist/components/ui/sheet/sheet.d.cts +21 -0
- package/dist/components/ui/sheet/sheet.d.ts +21 -0
- package/dist/components/ui/sheet/sheet.js +154 -0
- package/dist/components/ui/sheet/sheet.js.map +1 -0
- package/dist/components/ui/skeleton/index.cjs +23 -0
- package/dist/components/ui/skeleton/index.cjs.map +1 -0
- package/dist/components/ui/skeleton/index.d.cts +3 -0
- package/dist/components/ui/skeleton/index.d.ts +3 -0
- package/dist/components/ui/skeleton/index.js +2 -0
- package/dist/components/ui/skeleton/index.js.map +1 -0
- package/dist/components/ui/skeleton/skeleton.cjs +42 -0
- package/dist/components/ui/skeleton/skeleton.cjs.map +1 -0
- package/dist/components/ui/skeleton/skeleton.d.cts +6 -0
- package/dist/components/ui/skeleton/skeleton.d.ts +6 -0
- package/dist/components/ui/skeleton/skeleton.js +18 -0
- package/dist/components/ui/skeleton/skeleton.js.map +1 -0
- package/dist/components/ui/slider/index.cjs +23 -0
- package/dist/components/ui/slider/index.cjs.map +1 -0
- package/dist/components/ui/slider/index.d.cts +4 -0
- package/dist/components/ui/slider/index.d.ts +4 -0
- package/dist/components/ui/slider/index.js +2 -0
- package/dist/components/ui/slider/index.js.map +1 -0
- package/dist/components/ui/slider/slider.cjs +73 -0
- package/dist/components/ui/slider/slider.cjs.map +1 -0
- package/dist/components/ui/slider/slider.d.cts +7 -0
- package/dist/components/ui/slider/slider.d.ts +7 -0
- package/dist/components/ui/slider/slider.js +39 -0
- package/dist/components/ui/slider/slider.js.map +1 -0
- package/dist/components/ui/sonner/index.cjs +23 -0
- package/dist/components/ui/sonner/index.cjs.map +1 -0
- package/dist/components/ui/sonner/index.d.cts +3 -0
- package/dist/components/ui/sonner/index.d.ts +3 -0
- package/dist/components/ui/sonner/index.js +2 -0
- package/dist/components/ui/sonner/index.js.map +1 -0
- package/dist/components/ui/sonner/sonner.cjs +45 -0
- package/dist/components/ui/sonner/sonner.cjs.map +1 -0
- package/dist/components/ui/sonner/sonner.d.cts +6 -0
- package/dist/components/ui/sonner/sonner.d.ts +6 -0
- package/dist/components/ui/sonner/sonner.js +21 -0
- package/dist/components/ui/sonner/sonner.js.map +1 -0
- package/dist/components/ui/spinner/index.cjs +23 -0
- package/dist/components/ui/spinner/index.cjs.map +1 -0
- package/dist/components/ui/spinner/index.d.cts +2 -0
- package/dist/components/ui/spinner/index.d.ts +2 -0
- package/dist/components/ui/spinner/index.js +2 -0
- package/dist/components/ui/spinner/index.js.map +1 -0
- package/dist/components/ui/spinner/spinner.cjs +35 -0
- package/dist/components/ui/spinner/spinner.cjs.map +1 -0
- package/dist/components/ui/spinner/spinner.d.cts +5 -0
- package/dist/components/ui/spinner/spinner.d.ts +5 -0
- package/dist/components/ui/spinner/spinner.js +11 -0
- package/dist/components/ui/spinner/spinner.js.map +1 -0
- package/dist/components/ui/switch/index.cjs +23 -0
- package/dist/components/ui/switch/index.cjs.map +1 -0
- package/dist/components/ui/switch/index.d.cts +3 -0
- package/dist/components/ui/switch/index.d.ts +3 -0
- package/dist/components/ui/switch/index.js +2 -0
- package/dist/components/ui/switch/index.js.map +1 -0
- package/dist/components/ui/switch/switch.cjs +63 -0
- package/dist/components/ui/switch/switch.cjs.map +1 -0
- package/dist/components/ui/switch/switch.d.cts +6 -0
- package/dist/components/ui/switch/switch.d.ts +6 -0
- package/dist/components/ui/switch/switch.js +29 -0
- package/dist/components/ui/switch/switch.js.map +1 -0
- package/dist/components/ui/table/index.cjs +23 -0
- package/dist/components/ui/table/index.cjs.map +1 -0
- package/dist/components/ui/table/index.d.cts +3 -0
- package/dist/components/ui/table/index.d.ts +3 -0
- package/dist/components/ui/table/index.js +2 -0
- package/dist/components/ui/table/index.js.map +1 -0
- package/dist/components/ui/table/table.cjs +145 -0
- package/dist/components/ui/table/table.cjs.map +1 -0
- package/dist/components/ui/table/table.d.cts +13 -0
- package/dist/components/ui/table/table.d.ts +13 -0
- package/dist/components/ui/table/table.js +114 -0
- package/dist/components/ui/table/table.js.map +1 -0
- package/dist/components/ui/tabs/index.cjs +23 -0
- package/dist/components/ui/tabs/index.cjs.map +1 -0
- package/dist/components/ui/tabs/index.d.cts +3 -0
- package/dist/components/ui/tabs/index.d.ts +3 -0
- package/dist/components/ui/tabs/index.js +2 -0
- package/dist/components/ui/tabs/index.js.map +1 -0
- package/dist/components/ui/tabs/tabs.cjs +86 -0
- package/dist/components/ui/tabs/tabs.cjs.map +1 -0
- package/dist/components/ui/tabs/tabs.d.cts +9 -0
- package/dist/components/ui/tabs/tabs.d.ts +9 -0
- package/dist/components/ui/tabs/tabs.js +49 -0
- package/dist/components/ui/tabs/tabs.js.map +1 -0
- package/dist/components/ui/tag-input/index.cjs +23 -0
- package/dist/components/ui/tag-input/index.cjs.map +1 -0
- package/dist/components/ui/tag-input/index.d.cts +2 -0
- package/dist/components/ui/tag-input/index.d.ts +2 -0
- package/dist/components/ui/tag-input/index.js +2 -0
- package/dist/components/ui/tag-input/index.js.map +1 -0
- package/dist/components/ui/tag-input/tag-input.cjs +121 -0
- package/dist/components/ui/tag-input/tag-input.cjs.map +1 -0
- package/dist/components/ui/tag-input/tag-input.d.cts +12 -0
- package/dist/components/ui/tag-input/tag-input.d.ts +12 -0
- package/dist/components/ui/tag-input/tag-input.js +87 -0
- package/dist/components/ui/tag-input/tag-input.js.map +1 -0
- package/dist/components/ui/textarea/index.cjs +23 -0
- package/dist/components/ui/textarea/index.cjs.map +1 -0
- package/dist/components/ui/textarea/index.d.cts +3 -0
- package/dist/components/ui/textarea/index.d.ts +3 -0
- package/dist/components/ui/textarea/index.js +2 -0
- package/dist/components/ui/textarea/index.js.map +1 -0
- package/dist/components/ui/textarea/textarea.cjs +46 -0
- package/dist/components/ui/textarea/textarea.cjs.map +1 -0
- package/dist/components/ui/textarea/textarea.d.cts +6 -0
- package/dist/components/ui/textarea/textarea.d.ts +6 -0
- package/dist/components/ui/textarea/textarea.js +22 -0
- package/dist/components/ui/textarea/textarea.js.map +1 -0
- package/dist/components/ui/toast/index.cjs +23 -0
- package/dist/components/ui/toast/index.cjs.map +1 -0
- package/dist/components/ui/toast/index.d.cts +6 -0
- package/dist/components/ui/toast/index.d.ts +6 -0
- package/dist/components/ui/toast/index.js +2 -0
- package/dist/components/ui/toast/index.js.map +1 -0
- package/dist/components/ui/toast/toast.cjs +163 -0
- package/dist/components/ui/toast/toast.cjs.map +1 -0
- package/dist/components/ui/toast/toast.d.cts +20 -0
- package/dist/components/ui/toast/toast.d.ts +20 -0
- package/dist/components/ui/toast/toast.js +122 -0
- package/dist/components/ui/toast/toast.js.map +1 -0
- package/dist/components/ui/toggle/index.cjs +23 -0
- package/dist/components/ui/toggle/index.cjs.map +1 -0
- package/dist/components/ui/toggle/index.d.cts +6 -0
- package/dist/components/ui/toggle/index.d.ts +6 -0
- package/dist/components/ui/toggle/index.js +2 -0
- package/dist/components/ui/toggle/index.js.map +1 -0
- package/dist/components/ui/toggle/toggle.cjs +80 -0
- package/dist/components/ui/toggle/toggle.cjs.map +1 -0
- package/dist/components/ui/toggle/toggle.d.cts +13 -0
- package/dist/components/ui/toggle/toggle.d.ts +13 -0
- package/dist/components/ui/toggle/toggle.js +45 -0
- package/dist/components/ui/toggle/toggle.js.map +1 -0
- package/dist/components/ui/toggle-group/index.cjs +23 -0
- package/dist/components/ui/toggle-group/index.cjs.map +1 -0
- package/dist/components/ui/toggle-group/index.d.cts +8 -0
- package/dist/components/ui/toggle-group/index.d.ts +8 -0
- package/dist/components/ui/toggle-group/index.js +2 -0
- package/dist/components/ui/toggle-group/index.js.map +1 -0
- package/dist/components/ui/toggle-group/toggle-group.cjs +94 -0
- package/dist/components/ui/toggle-group/toggle-group.cjs.map +1 -0
- package/dist/components/ui/toggle-group/toggle-group.d.cts +12 -0
- package/dist/components/ui/toggle-group/toggle-group.d.ts +12 -0
- package/dist/components/ui/toggle-group/toggle-group.js +59 -0
- package/dist/components/ui/toggle-group/toggle-group.js.map +1 -0
- package/dist/components/ui/tooltip/index.cjs +23 -0
- package/dist/components/ui/tooltip/index.cjs.map +1 -0
- package/dist/components/ui/tooltip/index.d.cts +3 -0
- package/dist/components/ui/tooltip/index.d.ts +3 -0
- package/dist/components/ui/tooltip/index.js +2 -0
- package/dist/components/ui/tooltip/index.js.map +1 -0
- package/dist/components/ui/tooltip/tooltip.cjs +65 -0
- package/dist/components/ui/tooltip/tooltip.cjs.map +1 -0
- package/dist/components/ui/tooltip/tooltip.d.cts +9 -0
- package/dist/components/ui/tooltip/tooltip.d.ts +9 -0
- package/dist/components/ui/tooltip/tooltip.js +28 -0
- package/dist/components/ui/tooltip/tooltip.js.map +1 -0
- package/dist/constants/index.cjs +189 -0
- package/dist/constants/index.cjs.map +1 -0
- package/dist/constants/index.d.cts +155 -0
- package/dist/constants/index.d.ts +155 -0
- package/dist/constants/index.js +152 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/icons.cjs +23 -0
- package/dist/icons.cjs.map +1 -0
- package/dist/icons.d.cts +1 -0
- package/dist/icons.d.ts +1 -0
- package/dist/icons.js +2 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.cjs +51 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +107 -0
- package/dist/index.d.ts +107 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/utils.cjs +33 -0
- package/dist/lib/utils.cjs.map +1 -0
- package/dist/lib/utils.d.cts +12 -0
- package/dist/lib/utils.d.ts +12 -0
- package/dist/lib/utils.js +9 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/tokens/colors.cjs +146 -0
- package/dist/tokens/colors.cjs.map +1 -0
- package/dist/tokens/colors.d.cts +118 -0
- package/dist/tokens/colors.d.ts +118 -0
- package/dist/tokens/colors.js +121 -0
- package/dist/tokens/colors.js.map +1 -0
- package/dist/tokens/index.cjs +41 -0
- package/dist/tokens/index.cjs.map +1 -0
- package/dist/tokens/index.d.cts +3 -0
- package/dist/tokens/index.d.ts +3 -0
- package/dist/tokens/index.js +12 -0
- package/dist/tokens/index.js.map +1 -0
- package/dist/tokens/spacing.cjs +45 -0
- package/dist/tokens/spacing.cjs.map +1 -0
- package/dist/tokens/spacing.d.cts +17 -0
- package/dist/tokens/spacing.d.ts +17 -0
- package/dist/tokens/spacing.js +20 -0
- package/dist/tokens/spacing.js.map +1 -0
- package/dist/tokens/typography.cjs +39 -0
- package/dist/tokens/typography.cjs.map +1 -0
- package/dist/tokens/typography.d.cts +11 -0
- package/dist/tokens/typography.d.ts +11 -0
- package/dist/tokens/typography.js +14 -0
- package/dist/tokens/typography.js.map +1 -0
- package/package.json +141 -0
- package/src/styles/theme.css +127 -0
- package/src/tokens/colors.ts +117 -0
- package/src/tokens/index.ts +3 -0
- package/src/tokens/spacing.ts +16 -0
- package/src/tokens/typography.ts +10 -0
- package/tailwind.preset.js +139 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var preferences_exports = {};
|
|
20
|
+
__export(preferences_exports, {
|
|
21
|
+
PreferencesSection: () => PreferencesSection
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(preferences_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_ui = require("../../../../ui");
|
|
26
|
+
var import_constants = require("@/constants");
|
|
27
|
+
function PreferencesSection({ data, onChange, hideFields = [] }) {
|
|
28
|
+
const prefs = data.preferences || {};
|
|
29
|
+
const handleUpdate = (field, value) => {
|
|
30
|
+
onChange({ preferences: { ...prefs, [field]: value } });
|
|
31
|
+
};
|
|
32
|
+
const stateOptions = (0, import_constants.getCandidateStateOptions)();
|
|
33
|
+
const employmentOptions = (0, import_constants.getEmploymentPreferenceOptions)();
|
|
34
|
+
const workStudyOptions = (0, import_constants.getWorkStudyPreferenceOptions)();
|
|
35
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "space-y-4 pt-2 pb-4", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
36
|
+
prefs.candidate_state !== void 0 && !hideFields.includes("preferences.candidate_state") && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2 md:col-span-2", children: [
|
|
37
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.Label, { children: "Estado del candidato" }),
|
|
38
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
39
|
+
"select",
|
|
40
|
+
{
|
|
41
|
+
className: "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
42
|
+
value: prefs.candidate_state || "",
|
|
43
|
+
onChange: (e) => handleUpdate("candidate_state", e.target.value),
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value: "", children: "Selecciona un estado" }),
|
|
46
|
+
stateOptions.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value: opt.value, children: opt.label }, opt.value))
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
] }),
|
|
51
|
+
prefs.employment_preference !== void 0 && !hideFields.includes("preferences.employment_preference") && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2", children: [
|
|
52
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.Label, { children: "Preferencia de empleo" }),
|
|
53
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
54
|
+
"select",
|
|
55
|
+
{
|
|
56
|
+
className: "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
57
|
+
value: prefs.employment_preference || "",
|
|
58
|
+
onChange: (e) => handleUpdate("employment_preference", e.target.value),
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value: "", children: "Selecciona" }),
|
|
61
|
+
employmentOptions.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value: opt.value, children: opt.label }, opt.value))
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
] }),
|
|
66
|
+
prefs.work_study_preference !== void 0 && !hideFields.includes("preferences.work_study_preference") && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2", children: [
|
|
67
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.Label, { children: "Preferencia trabajo/estudio" }),
|
|
68
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
69
|
+
"select",
|
|
70
|
+
{
|
|
71
|
+
className: "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
72
|
+
value: prefs.work_study_preference || "",
|
|
73
|
+
onChange: (e) => handleUpdate("work_study_preference", e.target.value),
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value: "", children: "Selecciona" }),
|
|
76
|
+
workStudyOptions.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value: opt.value, children: opt.label }, opt.value))
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
] }),
|
|
81
|
+
prefs.min_expected_salary !== void 0 && !hideFields.includes("preferences.min_expected_salary") && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2", children: [
|
|
82
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.Label, { children: "Salario m\xEDnimo esperado" }),
|
|
83
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
84
|
+
import_ui.Input,
|
|
85
|
+
{
|
|
86
|
+
type: "number",
|
|
87
|
+
value: prefs.min_expected_salary || "",
|
|
88
|
+
onChange: (e) => handleUpdate("min_expected_salary", Number(e.target.value))
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
] }),
|
|
92
|
+
prefs.max_expected_salary !== void 0 && !hideFields.includes("preferences.max_expected_salary") && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2", children: [
|
|
93
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.Label, { children: "Salario m\xE1ximo esperado" }),
|
|
94
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
95
|
+
import_ui.Input,
|
|
96
|
+
{
|
|
97
|
+
type: "number",
|
|
98
|
+
value: prefs.max_expected_salary || "",
|
|
99
|
+
onChange: (e) => handleUpdate("max_expected_salary", Number(e.target.value))
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
] }),
|
|
103
|
+
prefs.desired_role !== void 0 && !hideFields.includes("preferences.desired_role") && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2 md:col-span-2", children: [
|
|
104
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.Label, { children: "Rol deseado" }),
|
|
105
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
106
|
+
import_ui.Input,
|
|
107
|
+
{
|
|
108
|
+
value: prefs.desired_role || "",
|
|
109
|
+
onChange: (e) => handleUpdate("desired_role", e.target.value)
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
] }),
|
|
113
|
+
prefs.dream_job !== void 0 && !hideFields.includes("preferences.dream_job") && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2 md:col-span-2", children: [
|
|
114
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.Label, { children: "Trabajo so\xF1ado" }),
|
|
115
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
116
|
+
import_ui.Input,
|
|
117
|
+
{
|
|
118
|
+
value: prefs.dream_job || "",
|
|
119
|
+
onChange: (e) => handleUpdate("dream_job", e.target.value)
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
] })
|
|
123
|
+
] }) });
|
|
124
|
+
}
|
|
125
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
126
|
+
0 && (module.exports = {
|
|
127
|
+
PreferencesSection
|
|
128
|
+
});
|
|
129
|
+
//# sourceMappingURL=preferences.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/components/domain/resume/resume-editor/sections/preferences.tsx"],"sourcesContent":["import { CandidateProfile } from \"../../types\";\nimport { Input, Label } from \"../../../../ui\";\nimport {\n getCandidateStateOptions,\n getEmploymentPreferenceOptions,\n getWorkStudyPreferenceOptions\n} from \"@/constants\";\n\ninterface PreferencesProps {\n data: CandidateProfile;\n onChange: (partial: Partial<CandidateProfile>) => void;\n hideFields?: string[];\n}\n\nexport function PreferencesSection({ data, onChange, hideFields = [] }: PreferencesProps) {\n const prefs = data.preferences || {};\n\n const handleUpdate = (field: string, value: string | number | boolean) => {\n onChange({ preferences: { ...prefs, [field]: value } });\n };\n\n const stateOptions = getCandidateStateOptions();\n const employmentOptions = getEmploymentPreferenceOptions();\n const workStudyOptions = getWorkStudyPreferenceOptions();\n\n return (\n <div className=\"space-y-4 pt-2 pb-4\">\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n {prefs.candidate_state !== undefined && !hideFields.includes(\"preferences.candidate_state\") && (\n <div className=\"space-y-2 md:col-span-2\">\n <Label>Estado del candidato</Label>\n <select\n className=\"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\"\n value={prefs.candidate_state || \"\"}\n onChange={(e) => handleUpdate('candidate_state', e.target.value)}\n >\n <option value=\"\">Selecciona un estado</option>\n {stateOptions.map(opt => (\n <option key={opt.value} value={opt.value}>{opt.label}</option>\n ))}\n </select>\n </div>\n )}\n {prefs.employment_preference !== undefined && !hideFields.includes(\"preferences.employment_preference\") && (\n <div className=\"space-y-2\">\n <Label>Preferencia de empleo</Label>\n <select\n className=\"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\"\n value={prefs.employment_preference || \"\"}\n onChange={(e) => handleUpdate('employment_preference', e.target.value)}\n >\n <option value=\"\">Selecciona</option>\n {employmentOptions.map(opt => (\n <option key={opt.value} value={opt.value}>{opt.label}</option>\n ))}\n </select>\n </div>\n )}\n {prefs.work_study_preference !== undefined && !hideFields.includes(\"preferences.work_study_preference\") && (\n <div className=\"space-y-2\">\n <Label>Preferencia trabajo/estudio</Label>\n <select\n className=\"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\"\n value={prefs.work_study_preference || \"\"}\n onChange={(e) => handleUpdate('work_study_preference', e.target.value)}\n >\n <option value=\"\">Selecciona</option>\n {workStudyOptions.map(opt => (\n <option key={opt.value} value={opt.value}>{opt.label}</option>\n ))}\n </select>\n </div>\n )}\n {prefs.min_expected_salary !== undefined && !hideFields.includes(\"preferences.min_expected_salary\") && (\n <div className=\"space-y-2\">\n <Label>Salario mínimo esperado</Label>\n <Input\n type=\"number\"\n value={prefs.min_expected_salary || \"\"}\n onChange={(e) => handleUpdate('min_expected_salary', Number(e.target.value))}\n />\n </div>\n )}\n {prefs.max_expected_salary !== undefined && !hideFields.includes(\"preferences.max_expected_salary\") && (\n <div className=\"space-y-2\">\n <Label>Salario máximo esperado</Label>\n <Input\n type=\"number\"\n value={prefs.max_expected_salary || \"\"}\n onChange={(e) => handleUpdate('max_expected_salary', Number(e.target.value))}\n />\n </div>\n )}\n {prefs.desired_role !== undefined && !hideFields.includes(\"preferences.desired_role\") && (\n <div className=\"space-y-2 md:col-span-2\">\n <Label>Rol deseado</Label>\n <Input\n value={prefs.desired_role || \"\"}\n onChange={(e) => handleUpdate('desired_role', e.target.value)}\n />\n </div>\n )}\n {prefs.dream_job !== undefined && !hideFields.includes(\"preferences.dream_job\") && (\n <div className=\"space-y-2 md:col-span-2\">\n <Label>Trabajo soñado</Label>\n <Input\n value={prefs.dream_job || \"\"}\n onChange={(e) => handleUpdate('dream_job', e.target.value)}\n />\n </div>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA8BwB;AA7BxB,gBAA6B;AAC7B,uBAIO;AAQA,SAAS,mBAAmB,EAAE,MAAM,UAAU,aAAa,CAAC,EAAE,GAAqB;AACtF,QAAM,QAAQ,KAAK,eAAe,CAAC;AAEnC,QAAM,eAAe,CAAC,OAAe,UAAqC;AACtE,aAAS,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,KAAK,GAAG,MAAM,EAAE,CAAC;AAAA,EAC1D;AAEA,QAAM,mBAAe,2CAAyB;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,QAAC;AAAA;AAAA,UACG,OAAO,MAAM,aAAa;AAAA,UAC1B,UAAU,CAAC,MAAM,aAAa,aAAa,EAAE,OAAO,KAAK;AAAA;AAAA,MAC7D;AAAA,OACJ;AAAA,KAER,GACJ;AAER;","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { CandidateProfile } from '../../types.cjs';
|
|
3
|
+
import 'react';
|
|
4
|
+
|
|
5
|
+
interface PreferencesProps {
|
|
6
|
+
data: CandidateProfile;
|
|
7
|
+
onChange: (partial: Partial<CandidateProfile>) => void;
|
|
8
|
+
hideFields?: string[];
|
|
9
|
+
}
|
|
10
|
+
declare function PreferencesSection({ data, onChange, hideFields }: PreferencesProps): react_jsx_runtime.JSX.Element;
|
|
11
|
+
|
|
12
|
+
export { PreferencesSection };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { CandidateProfile } from '../../types.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
|
|
5
|
+
interface PreferencesProps {
|
|
6
|
+
data: CandidateProfile;
|
|
7
|
+
onChange: (partial: Partial<CandidateProfile>) => void;
|
|
8
|
+
hideFields?: string[];
|
|
9
|
+
}
|
|
10
|
+
declare function PreferencesSection({ data, onChange, hideFields }: PreferencesProps): react_jsx_runtime.JSX.Element;
|
|
11
|
+
|
|
12
|
+
export { PreferencesSection };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Input, Label } from "../../../../ui";
|
|
3
|
+
import {
|
|
4
|
+
getCandidateStateOptions,
|
|
5
|
+
getEmploymentPreferenceOptions,
|
|
6
|
+
getWorkStudyPreferenceOptions
|
|
7
|
+
} from "@/constants";
|
|
8
|
+
function PreferencesSection({ data, onChange, hideFields = [] }) {
|
|
9
|
+
const prefs = data.preferences || {};
|
|
10
|
+
const handleUpdate = (field, value) => {
|
|
11
|
+
onChange({ preferences: { ...prefs, [field]: value } });
|
|
12
|
+
};
|
|
13
|
+
const stateOptions = getCandidateStateOptions();
|
|
14
|
+
const employmentOptions = getEmploymentPreferenceOptions();
|
|
15
|
+
const workStudyOptions = getWorkStudyPreferenceOptions();
|
|
16
|
+
return /* @__PURE__ */ jsx("div", { className: "space-y-4 pt-2 pb-4", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
17
|
+
prefs.candidate_state !== void 0 && !hideFields.includes("preferences.candidate_state") && /* @__PURE__ */ jsxs("div", { className: "space-y-2 md:col-span-2", children: [
|
|
18
|
+
/* @__PURE__ */ jsx(Label, { children: "Estado del candidato" }),
|
|
19
|
+
/* @__PURE__ */ jsxs(
|
|
20
|
+
"select",
|
|
21
|
+
{
|
|
22
|
+
className: "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
23
|
+
value: prefs.candidate_state || "",
|
|
24
|
+
onChange: (e) => handleUpdate("candidate_state", e.target.value),
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ jsx("option", { value: "", children: "Selecciona un estado" }),
|
|
27
|
+
stateOptions.map((opt) => /* @__PURE__ */ jsx("option", { value: opt.value, children: opt.label }, opt.value))
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
] }),
|
|
32
|
+
prefs.employment_preference !== void 0 && !hideFields.includes("preferences.employment_preference") && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
33
|
+
/* @__PURE__ */ jsx(Label, { children: "Preferencia de empleo" }),
|
|
34
|
+
/* @__PURE__ */ jsxs(
|
|
35
|
+
"select",
|
|
36
|
+
{
|
|
37
|
+
className: "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
38
|
+
value: prefs.employment_preference || "",
|
|
39
|
+
onChange: (e) => handleUpdate("employment_preference", e.target.value),
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ jsx("option", { value: "", children: "Selecciona" }),
|
|
42
|
+
employmentOptions.map((opt) => /* @__PURE__ */ jsx("option", { value: opt.value, children: opt.label }, opt.value))
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
] }),
|
|
47
|
+
prefs.work_study_preference !== void 0 && !hideFields.includes("preferences.work_study_preference") && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
48
|
+
/* @__PURE__ */ jsx(Label, { children: "Preferencia trabajo/estudio" }),
|
|
49
|
+
/* @__PURE__ */ jsxs(
|
|
50
|
+
"select",
|
|
51
|
+
{
|
|
52
|
+
className: "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
53
|
+
value: prefs.work_study_preference || "",
|
|
54
|
+
onChange: (e) => handleUpdate("work_study_preference", e.target.value),
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ jsx("option", { value: "", children: "Selecciona" }),
|
|
57
|
+
workStudyOptions.map((opt) => /* @__PURE__ */ jsx("option", { value: opt.value, children: opt.label }, opt.value))
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
] }),
|
|
62
|
+
prefs.min_expected_salary !== void 0 && !hideFields.includes("preferences.min_expected_salary") && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
63
|
+
/* @__PURE__ */ jsx(Label, { children: "Salario m\xEDnimo esperado" }),
|
|
64
|
+
/* @__PURE__ */ jsx(
|
|
65
|
+
Input,
|
|
66
|
+
{
|
|
67
|
+
type: "number",
|
|
68
|
+
value: prefs.min_expected_salary || "",
|
|
69
|
+
onChange: (e) => handleUpdate("min_expected_salary", Number(e.target.value))
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
] }),
|
|
73
|
+
prefs.max_expected_salary !== void 0 && !hideFields.includes("preferences.max_expected_salary") && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
74
|
+
/* @__PURE__ */ jsx(Label, { children: "Salario m\xE1ximo esperado" }),
|
|
75
|
+
/* @__PURE__ */ jsx(
|
|
76
|
+
Input,
|
|
77
|
+
{
|
|
78
|
+
type: "number",
|
|
79
|
+
value: prefs.max_expected_salary || "",
|
|
80
|
+
onChange: (e) => handleUpdate("max_expected_salary", Number(e.target.value))
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
] }),
|
|
84
|
+
prefs.desired_role !== void 0 && !hideFields.includes("preferences.desired_role") && /* @__PURE__ */ jsxs("div", { className: "space-y-2 md:col-span-2", children: [
|
|
85
|
+
/* @__PURE__ */ jsx(Label, { children: "Rol deseado" }),
|
|
86
|
+
/* @__PURE__ */ jsx(
|
|
87
|
+
Input,
|
|
88
|
+
{
|
|
89
|
+
value: prefs.desired_role || "",
|
|
90
|
+
onChange: (e) => handleUpdate("desired_role", e.target.value)
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
] }),
|
|
94
|
+
prefs.dream_job !== void 0 && !hideFields.includes("preferences.dream_job") && /* @__PURE__ */ jsxs("div", { className: "space-y-2 md:col-span-2", children: [
|
|
95
|
+
/* @__PURE__ */ jsx(Label, { children: "Trabajo so\xF1ado" }),
|
|
96
|
+
/* @__PURE__ */ jsx(
|
|
97
|
+
Input,
|
|
98
|
+
{
|
|
99
|
+
value: prefs.dream_job || "",
|
|
100
|
+
onChange: (e) => handleUpdate("dream_job", e.target.value)
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
] })
|
|
104
|
+
] }) });
|
|
105
|
+
}
|
|
106
|
+
export {
|
|
107
|
+
PreferencesSection
|
|
108
|
+
};
|
|
109
|
+
//# sourceMappingURL=preferences.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/components/domain/resume/resume-editor/sections/preferences.tsx"],"sourcesContent":["import { CandidateProfile } from \"../../types\";\nimport { Input, Label } from \"../../../../ui\";\nimport {\n getCandidateStateOptions,\n getEmploymentPreferenceOptions,\n getWorkStudyPreferenceOptions\n} from \"@/constants\";\n\ninterface PreferencesProps {\n data: CandidateProfile;\n onChange: (partial: Partial<CandidateProfile>) => void;\n hideFields?: string[];\n}\n\nexport function PreferencesSection({ data, onChange, hideFields = [] }: PreferencesProps) {\n const prefs = data.preferences || {};\n\n const handleUpdate = (field: string, value: string | number | boolean) => {\n onChange({ preferences: { ...prefs, [field]: value } });\n };\n\n const stateOptions = getCandidateStateOptions();\n const employmentOptions = getEmploymentPreferenceOptions();\n const workStudyOptions = getWorkStudyPreferenceOptions();\n\n return (\n <div className=\"space-y-4 pt-2 pb-4\">\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n {prefs.candidate_state !== undefined && !hideFields.includes(\"preferences.candidate_state\") && (\n <div className=\"space-y-2 md:col-span-2\">\n <Label>Estado del candidato</Label>\n <select\n className=\"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\"\n value={prefs.candidate_state || \"\"}\n onChange={(e) => handleUpdate('candidate_state', e.target.value)}\n >\n <option value=\"\">Selecciona un estado</option>\n {stateOptions.map(opt => (\n <option key={opt.value} value={opt.value}>{opt.label}</option>\n ))}\n </select>\n </div>\n )}\n {prefs.employment_preference !== undefined && !hideFields.includes(\"preferences.employment_preference\") && (\n <div className=\"space-y-2\">\n <Label>Preferencia de empleo</Label>\n <select\n className=\"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\"\n value={prefs.employment_preference || \"\"}\n onChange={(e) => handleUpdate('employment_preference', e.target.value)}\n >\n <option value=\"\">Selecciona</option>\n {employmentOptions.map(opt => (\n <option key={opt.value} value={opt.value}>{opt.label}</option>\n ))}\n </select>\n </div>\n )}\n {prefs.work_study_preference !== undefined && !hideFields.includes(\"preferences.work_study_preference\") && (\n <div className=\"space-y-2\">\n <Label>Preferencia trabajo/estudio</Label>\n <select\n className=\"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\"\n value={prefs.work_study_preference || \"\"}\n onChange={(e) => handleUpdate('work_study_preference', e.target.value)}\n >\n <option value=\"\">Selecciona</option>\n {workStudyOptions.map(opt => (\n <option key={opt.value} value={opt.value}>{opt.label}</option>\n ))}\n </select>\n </div>\n )}\n {prefs.min_expected_salary !== undefined && !hideFields.includes(\"preferences.min_expected_salary\") && (\n <div className=\"space-y-2\">\n <Label>Salario mínimo esperado</Label>\n <Input\n type=\"number\"\n value={prefs.min_expected_salary || \"\"}\n onChange={(e) => handleUpdate('min_expected_salary', Number(e.target.value))}\n />\n </div>\n )}\n {prefs.max_expected_salary !== undefined && !hideFields.includes(\"preferences.max_expected_salary\") && (\n <div className=\"space-y-2\">\n <Label>Salario máximo esperado</Label>\n <Input\n type=\"number\"\n value={prefs.max_expected_salary || \"\"}\n onChange={(e) => handleUpdate('max_expected_salary', Number(e.target.value))}\n />\n </div>\n )}\n {prefs.desired_role !== undefined && !hideFields.includes(\"preferences.desired_role\") && (\n <div className=\"space-y-2 md:col-span-2\">\n <Label>Rol deseado</Label>\n <Input\n value={prefs.desired_role || \"\"}\n onChange={(e) => handleUpdate('desired_role', e.target.value)}\n />\n </div>\n )}\n {prefs.dream_job !== undefined && !hideFields.includes(\"preferences.dream_job\") && (\n <div className=\"space-y-2 md:col-span-2\">\n <Label>Trabajo soñado</Label>\n <Input\n value={prefs.dream_job || \"\"}\n onChange={(e) => handleUpdate('dream_job', e.target.value)}\n />\n </div>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":"AA8BwB,cACA,YADA;AA7BxB,SAAS,OAAO,aAAa;AAC7B;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,OACG;AAQA,SAAS,mBAAmB,EAAE,MAAM,UAAU,aAAa,CAAC,EAAE,GAAqB;AACtF,QAAM,QAAQ,KAAK,eAAe,CAAC;AAEnC,QAAM,eAAe,CAAC,OAAe,UAAqC;AACtE,aAAS,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,KAAK,GAAG,MAAM,EAAE,CAAC;AAAA,EAC1D;AAEA,QAAM,eAAe,yBAAyB;AAC9C,QAAM,oBAAoB,+BAA+B;AACzD,QAAM,mBAAmB,8BAA8B;AAEvD,SACI,oBAAC,SAAI,WAAU,uBACX,+BAAC,SAAI,WAAU,yCACV;AAAA,UAAM,oBAAoB,UAAa,CAAC,WAAW,SAAS,6BAA6B,KACtF,qBAAC,SAAI,WAAU,2BACX;AAAA,0BAAC,SAAM,kCAAoB;AAAA,MAC3B;AAAA,QAAC;AAAA;AAAA,UACG,WAAU;AAAA,UACV,OAAO,MAAM,mBAAmB;AAAA,UAChC,UAAU,CAAC,MAAM,aAAa,mBAAmB,EAAE,OAAO,KAAK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AAK;AAAA,UACL,OAAO,MAAM,uBAAuB;AAAA,UACpC,UAAU,CAAC,MAAM,aAAa,uBAAuB,OAAO,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA,MAC/E;AAAA,OACJ;AAAA,IAEH,MAAM,wBAAwB,UAAa,CAAC,WAAW,SAAS,iCAAiC,KAC9F,qBAAC,SAAI,WAAU,aACX;AAAA,0BAAC,SAAM,wCAAuB;AAAA,MAC9B;AAAA,QAAC;AAAA;AAAA,UACG,MAAK;AAAA,UACL,OAAO,MAAM,uBAAuB;AAAA,UACpC,UAAU,CAAC,MAAM,aAAa,uBAAuB,OAAO,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA,MAC/E;AAAA,OACJ;AAAA,IAEH,MAAM,iBAAiB,UAAa,CAAC,WAAW,SAAS,0BAA0B,KAChF,qBAAC,SAAI,WAAU,2BACX;AAAA,0BAAC,SAAM,yBAAW;AAAA,MAClB;AAAA,QAAC;AAAA;AAAA,UACG,OAAO,MAAM,gBAAgB;AAAA,UAC7B,UAAU,CAAC,MAAM,aAAa,gBAAgB,EAAE,OAAO,KAAK;AAAA;AAAA,MAChE;AAAA,OACJ;AAAA,IAEH,MAAM,cAAc,UAAa,CAAC,WAAW,SAAS,uBAAuB,KAC1E,qBAAC,SAAI,WAAU,2BACX;AAAA,0BAAC,SAAM,+BAAc;AAAA,MACrB;AAAA,QAAC;AAAA;AAAA,UACG,OAAO,MAAM,aAAa;AAAA,UAC1B,UAAU,CAAC,MAAM,aAAa,aAAa,EAAE,OAAO,KAAK;AAAA;AAAA,MAC7D;AAAA,OACJ;AAAA,KAER,GACJ;AAER;","names":[]}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var requirements_exports = {};
|
|
20
|
+
__export(requirements_exports, {
|
|
21
|
+
RequirementsSection: () => RequirementsSection
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(requirements_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_ui = require("../../../../ui");
|
|
26
|
+
var import_lucide_react = require("lucide-react");
|
|
27
|
+
function RequirementsSection({ data, onChange, hideFields = [] }) {
|
|
28
|
+
const documents = data.work_requirements?.documents || [];
|
|
29
|
+
const handleUpdate = (index, field, value) => {
|
|
30
|
+
const updated = [...documents];
|
|
31
|
+
updated[index] = { ...updated[index], [field]: value };
|
|
32
|
+
onChange({ work_requirements: { documents: updated } });
|
|
33
|
+
};
|
|
34
|
+
const handleAdd = () => {
|
|
35
|
+
onChange({
|
|
36
|
+
work_requirements: {
|
|
37
|
+
documents: [
|
|
38
|
+
...documents,
|
|
39
|
+
{ id: `temp-doc-${Date.now()}`, document_type: "", document_status: "existent" }
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
const handleRemove = (index) => {
|
|
45
|
+
onChange({
|
|
46
|
+
work_requirements: {
|
|
47
|
+
documents: documents.filter((_, i) => i !== index)
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pt-2 pb-4", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ui.Tabs, { defaultValue: "documents", className: "w-full", children: [
|
|
52
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.TabsList, { className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.TabsTrigger, { value: "documents", className: "flex-1", children: "Documentos" }) }),
|
|
53
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ui.TabsContent, { value: "documents", className: "space-y-6 mt-4", children: [
|
|
54
|
+
documents.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "p-4 border border-border rounded-lg space-y-4 shadow-md", children: [
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.FileCheck, { className: "w-5 h-5 text-secondary" }),
|
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
58
|
+
import_ui.Button,
|
|
59
|
+
{
|
|
60
|
+
variant: "ghost",
|
|
61
|
+
size: "sm",
|
|
62
|
+
className: "h-7 px-2 text-muted-foreground hover:text-destructive hover:bg-destructive/10",
|
|
63
|
+
onClick: () => handleRemove(index),
|
|
64
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Trash2, { className: "w-3.5 h-3.5" })
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
] }),
|
|
68
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
69
|
+
!hideFields.includes("requirements.document_type") && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2", children: [
|
|
70
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.Label, { children: "Tipo de documento" }),
|
|
71
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
72
|
+
import_ui.Input,
|
|
73
|
+
{
|
|
74
|
+
value: item.document_type || "",
|
|
75
|
+
onChange: (e) => handleUpdate(index, "document_type", e.target.value)
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
] }),
|
|
79
|
+
!hideFields.includes("requirements.document_status") && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2", children: [
|
|
80
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.Label, { children: "Estado del documento" }),
|
|
81
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
82
|
+
import_ui.Input,
|
|
83
|
+
{
|
|
84
|
+
value: item.document_status || "",
|
|
85
|
+
onChange: (e) => handleUpdate(index, "document_status", e.target.value)
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
] }),
|
|
89
|
+
!hideFields.includes("requirements.appointment_date") && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2 md:col-span-2", children: [
|
|
90
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.Label, { children: "Fecha de cita" }),
|
|
91
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
92
|
+
import_ui.Input,
|
|
93
|
+
{
|
|
94
|
+
type: "datetime-local",
|
|
95
|
+
value: item.appointment_date || "",
|
|
96
|
+
onChange: (e) => handleUpdate(index, "appointment_date", e.target.value)
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
] }),
|
|
100
|
+
!hideFields.includes("requirements.comments") && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2 md:col-span-2", children: [
|
|
101
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.Label, { children: "Comentarios" }),
|
|
102
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
103
|
+
import_ui.Textarea,
|
|
104
|
+
{
|
|
105
|
+
value: item.comments || "",
|
|
106
|
+
onChange: (e) => handleUpdate(index, "comments", e.target.value)
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
] })
|
|
110
|
+
] })
|
|
111
|
+
] }, item.id)),
|
|
112
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ui.Button, { variant: "outline", className: "w-full flex items-center justify-center gap-2", onClick: handleAdd, children: [
|
|
113
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Plus, { className: "w-4 h-4" }),
|
|
114
|
+
"A\xF1adir documento"
|
|
115
|
+
] })
|
|
116
|
+
] })
|
|
117
|
+
] }) });
|
|
118
|
+
}
|
|
119
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
120
|
+
0 && (module.exports = {
|
|
121
|
+
RequirementsSection
|
|
122
|
+
});
|
|
123
|
+
//# sourceMappingURL=requirements.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/components/domain/resume/resume-editor/sections/requirements.tsx"],"sourcesContent":["import { CandidateProfile } from \"../../types\";\nimport { Input, Label, Button, Tabs, TabsList, TabsTrigger, TabsContent, Textarea } from \"../../../../ui\";\nimport { Plus, Trash2, FileCheck } from \"lucide-react\";\n\ninterface RequirementsProps {\n data: CandidateProfile;\n onChange: (partial: Partial<CandidateProfile>) => void;\n hideFields?: string[];\n}\n\nexport function RequirementsSection({ data, onChange, hideFields = [] }: RequirementsProps) {\n const documents = data.work_requirements?.documents || [];\n\n const handleUpdate = (index: number, field: string, value: any) => {\n const updated = [...documents];\n updated[index] = { ...updated[index], [field]: value };\n onChange({ work_requirements: { documents: updated } });\n };\n\n const handleAdd = () => {\n onChange({\n work_requirements: {\n documents: [\n ...documents,\n { id: `temp-doc-${Date.now()}`, document_type: \"\", document_status: \"existent\" }\n ]\n }\n });\n };\n\n const handleRemove = (index: number) => {\n onChange({\n work_requirements: {\n documents: documents.filter((_, i) => i !== index)\n }\n });\n };\n\n return (\n <div className=\"pt-2 pb-4\">\n <Tabs defaultValue=\"documents\" className=\"w-full\">\n <TabsList className=\"w-full\">\n <TabsTrigger value=\"documents\" className=\"flex-1\">Documentos</TabsTrigger>\n </TabsList>\n <TabsContent value=\"documents\" className=\"space-y-6 mt-4\">\n {documents.map((item, index) => (\n <div key={item.id} className=\"p-4 border border-border rounded-lg space-y-4 shadow-md\">\n <div className=\"flex items-center justify-between\">\n <FileCheck className=\"w-5 h-5 text-secondary\" />\n <Button\n variant=\"ghost\"\n size=\"sm\"\n className=\"h-7 px-2 text-muted-foreground hover:text-destructive hover:bg-destructive/10\"\n onClick={() => handleRemove(index)}\n >\n <Trash2 className=\"w-3.5 h-3.5\" />\n </Button>\n </div>\n\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n {!hideFields.includes(\"requirements.document_type\") && (\n <div className=\"space-y-2\">\n <Label>Tipo de documento</Label>\n <Input\n value={item.document_type || \"\"}\n onChange={(e) => handleUpdate(index, 'document_type', e.target.value)}\n />\n </div>\n )}\n {!hideFields.includes(\"requirements.document_status\") && (\n <div className=\"space-y-2\">\n <Label>Estado del documento</Label>\n <Input\n value={item.document_status || \"\"}\n onChange={(e) => handleUpdate(index, 'document_status', e.target.value)}\n />\n </div>\n )}\n {!hideFields.includes(\"requirements.appointment_date\") && (\n <div className=\"space-y-2 md:col-span-2\">\n <Label>Fecha de cita</Label>\n <Input\n type=\"datetime-local\"\n value={item.appointment_date || \"\"}\n onChange={(e) => handleUpdate(index, 'appointment_date', e.target.value)}\n />\n </div>\n )}\n {!hideFields.includes(\"requirements.comments\") && (\n <div className=\"space-y-2 md:col-span-2\">\n <Label>Comentarios</Label>\n <Textarea\n value={item.comments || \"\"}\n onChange={(e) => handleUpdate(index, 'comments', e.target.value)}\n />\n </div>\n )}\n </div>\n </div>\n ))}\n\n <Button variant=\"outline\" className=\"w-full flex items-center justify-center gap-2\" onClick={handleAdd}>\n <Plus className=\"w-4 h-4\" />\n Añadir documento\n </Button>\n </TabsContent>\n </Tabs>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA0CoB;AAzCpB,gBAAyF;AACzF,0BAAwC;AAQjC,SAAS,oBAAoB,EAAE,MAAM,UAAU,aAAa,CAAC,EAAE,GAAsB;AACxF,QAAM,YAAY,KAAK,mBAAmB,aAAa,CAAC;AAExD,QAAM,eAAe,CAAC,OAAe,OAAe,UAAe;AAC/D,UAAM,UAAU,CAAC,GAAG,SAAS;AAC7B,YAAQ,KAAK,IAAI,EAAE,GAAG,QAAQ,KAAK,GAAG,CAAC,KAAK,GAAG,MAAM;AACrD,aAAS,EAAE,mBAAmB,EAAE,WAAW,QAAQ,EAAE,CAAC;AAAA,EAC1D;AAEA,QAAM,YAAY,MAAM;AACpB,aAAS;AAAA,MACL,mBAAmB;AAAA,QACf,WAAW;AAAA,UACP,GAAG;AAAA,UACH,EAAE,IAAI,YAAY,KAAK,IAAI,CAAC,IAAI,eAAe,IAAI,iBAAiB,WAAW;AAAA,QACnF;AAAA,MACJ;AAAA,IACJ,CAAC;AAAA,EACL;AAEA,QAAM,eAAe,CAAC,UAAkB;AACpC,aAAS;AAAA,MACL,mBAAmB;AAAA,QACf,WAAW,UAAU,OAAO,CAAC,GAAG,MAAM,MAAM,KAAK;AAAA,MACrD;AAAA,IACJ,CAAC;AAAA,EACL;AAEA,SACI,4CAAC,SAAI,WAAU,aACX,uDAAC,kBAAK,cAAa,aAAY,WAAU,UACrC;AAAA,gDAAC,sBAAS,WAAU,UAChB,sDAAC,yBAAY,OAAM,aAAY,WAAU,UAAS,wBAAU,GAChE;AAAA,IACA,6CAAC,yBAAY,OAAM,aAAY,WAAU,kBACpC;AAAA,gBAAU,IAAI,CAAC,MAAM,UAClB,6CAAC,SAAkB,WAAU,2DACzB;AAAA,qDAAC,SAAI,WAAU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ACxB,UAAU,CAAC,MAAM,aAAa,OAAO,YAAY,EAAE,OAAO,KAAK;AAAA;AAAA,YACnE;AAAA,aACJ;AAAA,WAER;AAAA,WAnDM,KAAK,EAoDf,CACH;AAAA,MAED,6CAAC,oBAAO,SAAQ,WAAU,WAAU,iDAAgD,SAAS,WACzF;AAAA,oDAAC,4BAAK,WAAU,WAAU;AAAA,QAAE;AAAA,SAEhC;AAAA,OACJ;AAAA,KACJ,GACJ;AAER;","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { CandidateProfile } from '../../types.cjs';
|
|
3
|
+
import 'react';
|
|
4
|
+
|
|
5
|
+
interface RequirementsProps {
|
|
6
|
+
data: CandidateProfile;
|
|
7
|
+
onChange: (partial: Partial<CandidateProfile>) => void;
|
|
8
|
+
hideFields?: string[];
|
|
9
|
+
}
|
|
10
|
+
declare function RequirementsSection({ data, onChange, hideFields }: RequirementsProps): react_jsx_runtime.JSX.Element;
|
|
11
|
+
|
|
12
|
+
export { RequirementsSection };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { CandidateProfile } from '../../types.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
|
|
5
|
+
interface RequirementsProps {
|
|
6
|
+
data: CandidateProfile;
|
|
7
|
+
onChange: (partial: Partial<CandidateProfile>) => void;
|
|
8
|
+
hideFields?: string[];
|
|
9
|
+
}
|
|
10
|
+
declare function RequirementsSection({ data, onChange, hideFields }: RequirementsProps): react_jsx_runtime.JSX.Element;
|
|
11
|
+
|
|
12
|
+
export { RequirementsSection };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Input, Label, Button, Tabs, TabsList, TabsTrigger, TabsContent, Textarea } from "../../../../ui";
|
|
3
|
+
import { Plus, Trash2, FileCheck } from "lucide-react";
|
|
4
|
+
function RequirementsSection({ data, onChange, hideFields = [] }) {
|
|
5
|
+
const documents = data.work_requirements?.documents || [];
|
|
6
|
+
const handleUpdate = (index, field, value) => {
|
|
7
|
+
const updated = [...documents];
|
|
8
|
+
updated[index] = { ...updated[index], [field]: value };
|
|
9
|
+
onChange({ work_requirements: { documents: updated } });
|
|
10
|
+
};
|
|
11
|
+
const handleAdd = () => {
|
|
12
|
+
onChange({
|
|
13
|
+
work_requirements: {
|
|
14
|
+
documents: [
|
|
15
|
+
...documents,
|
|
16
|
+
{ id: `temp-doc-${Date.now()}`, document_type: "", document_status: "existent" }
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
const handleRemove = (index) => {
|
|
22
|
+
onChange({
|
|
23
|
+
work_requirements: {
|
|
24
|
+
documents: documents.filter((_, i) => i !== index)
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
return /* @__PURE__ */ jsx("div", { className: "pt-2 pb-4", children: /* @__PURE__ */ jsxs(Tabs, { defaultValue: "documents", className: "w-full", children: [
|
|
29
|
+
/* @__PURE__ */ jsx(TabsList, { className: "w-full", children: /* @__PURE__ */ jsx(TabsTrigger, { value: "documents", className: "flex-1", children: "Documentos" }) }),
|
|
30
|
+
/* @__PURE__ */ jsxs(TabsContent, { value: "documents", className: "space-y-6 mt-4", children: [
|
|
31
|
+
documents.map((item, index) => /* @__PURE__ */ jsxs("div", { className: "p-4 border border-border rounded-lg space-y-4 shadow-md", children: [
|
|
32
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
33
|
+
/* @__PURE__ */ jsx(FileCheck, { className: "w-5 h-5 text-secondary" }),
|
|
34
|
+
/* @__PURE__ */ jsx(
|
|
35
|
+
Button,
|
|
36
|
+
{
|
|
37
|
+
variant: "ghost",
|
|
38
|
+
size: "sm",
|
|
39
|
+
className: "h-7 px-2 text-muted-foreground hover:text-destructive hover:bg-destructive/10",
|
|
40
|
+
onClick: () => handleRemove(index),
|
|
41
|
+
children: /* @__PURE__ */ jsx(Trash2, { className: "w-3.5 h-3.5" })
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
] }),
|
|
45
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
46
|
+
!hideFields.includes("requirements.document_type") && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
47
|
+
/* @__PURE__ */ jsx(Label, { children: "Tipo de documento" }),
|
|
48
|
+
/* @__PURE__ */ jsx(
|
|
49
|
+
Input,
|
|
50
|
+
{
|
|
51
|
+
value: item.document_type || "",
|
|
52
|
+
onChange: (e) => handleUpdate(index, "document_type", e.target.value)
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] }),
|
|
56
|
+
!hideFields.includes("requirements.document_status") && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
57
|
+
/* @__PURE__ */ jsx(Label, { children: "Estado del documento" }),
|
|
58
|
+
/* @__PURE__ */ jsx(
|
|
59
|
+
Input,
|
|
60
|
+
{
|
|
61
|
+
value: item.document_status || "",
|
|
62
|
+
onChange: (e) => handleUpdate(index, "document_status", e.target.value)
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
] }),
|
|
66
|
+
!hideFields.includes("requirements.appointment_date") && /* @__PURE__ */ jsxs("div", { className: "space-y-2 md:col-span-2", children: [
|
|
67
|
+
/* @__PURE__ */ jsx(Label, { children: "Fecha de cita" }),
|
|
68
|
+
/* @__PURE__ */ jsx(
|
|
69
|
+
Input,
|
|
70
|
+
{
|
|
71
|
+
type: "datetime-local",
|
|
72
|
+
value: item.appointment_date || "",
|
|
73
|
+
onChange: (e) => handleUpdate(index, "appointment_date", e.target.value)
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
] }),
|
|
77
|
+
!hideFields.includes("requirements.comments") && /* @__PURE__ */ jsxs("div", { className: "space-y-2 md:col-span-2", children: [
|
|
78
|
+
/* @__PURE__ */ jsx(Label, { children: "Comentarios" }),
|
|
79
|
+
/* @__PURE__ */ jsx(
|
|
80
|
+
Textarea,
|
|
81
|
+
{
|
|
82
|
+
value: item.comments || "",
|
|
83
|
+
onChange: (e) => handleUpdate(index, "comments", e.target.value)
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
] })
|
|
87
|
+
] })
|
|
88
|
+
] }, item.id)),
|
|
89
|
+
/* @__PURE__ */ jsxs(Button, { variant: "outline", className: "w-full flex items-center justify-center gap-2", onClick: handleAdd, children: [
|
|
90
|
+
/* @__PURE__ */ jsx(Plus, { className: "w-4 h-4" }),
|
|
91
|
+
"A\xF1adir documento"
|
|
92
|
+
] })
|
|
93
|
+
] })
|
|
94
|
+
] }) });
|
|
95
|
+
}
|
|
96
|
+
export {
|
|
97
|
+
RequirementsSection
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=requirements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/components/domain/resume/resume-editor/sections/requirements.tsx"],"sourcesContent":["import { CandidateProfile } from \"../../types\";\nimport { Input, Label, Button, Tabs, TabsList, TabsTrigger, TabsContent, Textarea } from \"../../../../ui\";\nimport { Plus, Trash2, FileCheck } from \"lucide-react\";\n\ninterface RequirementsProps {\n data: CandidateProfile;\n onChange: (partial: Partial<CandidateProfile>) => void;\n hideFields?: string[];\n}\n\nexport function RequirementsSection({ data, onChange, hideFields = [] }: RequirementsProps) {\n const documents = data.work_requirements?.documents || [];\n\n const handleUpdate = (index: number, field: string, value: any) => {\n const updated = [...documents];\n updated[index] = { ...updated[index], [field]: value };\n onChange({ work_requirements: { documents: updated } });\n };\n\n const handleAdd = () => {\n onChange({\n work_requirements: {\n documents: [\n ...documents,\n { id: `temp-doc-${Date.now()}`, document_type: \"\", document_status: \"existent\" }\n ]\n }\n });\n };\n\n const handleRemove = (index: number) => {\n onChange({\n work_requirements: {\n documents: documents.filter((_, i) => i !== index)\n }\n });\n };\n\n return (\n <div className=\"pt-2 pb-4\">\n <Tabs defaultValue=\"documents\" className=\"w-full\">\n <TabsList className=\"w-full\">\n <TabsTrigger value=\"documents\" className=\"flex-1\">Documentos</TabsTrigger>\n </TabsList>\n <TabsContent value=\"documents\" className=\"space-y-6 mt-4\">\n {documents.map((item, index) => (\n <div key={item.id} className=\"p-4 border border-border rounded-lg space-y-4 shadow-md\">\n <div className=\"flex items-center justify-between\">\n <FileCheck className=\"w-5 h-5 text-secondary\" />\n <Button\n variant=\"ghost\"\n size=\"sm\"\n className=\"h-7 px-2 text-muted-foreground hover:text-destructive hover:bg-destructive/10\"\n onClick={() => handleRemove(index)}\n >\n <Trash2 className=\"w-3.5 h-3.5\" />\n </Button>\n </div>\n\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n {!hideFields.includes(\"requirements.document_type\") && (\n <div className=\"space-y-2\">\n <Label>Tipo de documento</Label>\n <Input\n value={item.document_type || \"\"}\n onChange={(e) => handleUpdate(index, 'document_type', e.target.value)}\n />\n </div>\n )}\n {!hideFields.includes(\"requirements.document_status\") && (\n <div className=\"space-y-2\">\n <Label>Estado del documento</Label>\n <Input\n value={item.document_status || \"\"}\n onChange={(e) => handleUpdate(index, 'document_status', e.target.value)}\n />\n </div>\n )}\n {!hideFields.includes(\"requirements.appointment_date\") && (\n <div className=\"space-y-2 md:col-span-2\">\n <Label>Fecha de cita</Label>\n <Input\n type=\"datetime-local\"\n value={item.appointment_date || \"\"}\n onChange={(e) => handleUpdate(index, 'appointment_date', e.target.value)}\n />\n </div>\n )}\n {!hideFields.includes(\"requirements.comments\") && (\n <div className=\"space-y-2 md:col-span-2\">\n <Label>Comentarios</Label>\n <Textarea\n value={item.comments || \"\"}\n onChange={(e) => handleUpdate(index, 'comments', e.target.value)}\n />\n </div>\n )}\n </div>\n </div>\n ))}\n\n <Button variant=\"outline\" className=\"w-full flex items-center justify-center gap-2\" onClick={handleAd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