@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,294 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var rich_text_editor_exports = {};
|
|
31
|
+
__export(rich_text_editor_exports, {
|
|
32
|
+
RichTextEditor: () => RichTextEditor
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(rich_text_editor_exports);
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
+
var import_react = __toESM(require("react"), 1);
|
|
37
|
+
var import_react2 = require("@tiptap/react");
|
|
38
|
+
var import_starter_kit = __toESM(require("@tiptap/starter-kit"), 1);
|
|
39
|
+
var import_extension_text_align = __toESM(require("@tiptap/extension-text-align"), 1);
|
|
40
|
+
var import_extension_color = __toESM(require("@tiptap/extension-color"), 1);
|
|
41
|
+
var import_extension_text_style = require("@tiptap/extension-text-style");
|
|
42
|
+
var import_extension_image = __toESM(require("@tiptap/extension-image"), 1);
|
|
43
|
+
var import_extension_link = __toESM(require("@tiptap/extension-link"), 1);
|
|
44
|
+
var import_extension_placeholder = __toESM(require("@tiptap/extension-placeholder"), 1);
|
|
45
|
+
var import_lucide_react = require("lucide-react");
|
|
46
|
+
var import_utils = require("../../../lib/utils");
|
|
47
|
+
function ToolbarButton({
|
|
48
|
+
onClick,
|
|
49
|
+
children,
|
|
50
|
+
title,
|
|
51
|
+
isActive = false
|
|
52
|
+
}) {
|
|
53
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
54
|
+
"button",
|
|
55
|
+
{
|
|
56
|
+
type: "button",
|
|
57
|
+
onClick,
|
|
58
|
+
title,
|
|
59
|
+
className: (0, import_utils.cn)(
|
|
60
|
+
"p-2 rounded transition-colors",
|
|
61
|
+
isActive ? "bg-primary text-primary-foreground" : "hover:bg-muted text-muted-foreground"
|
|
62
|
+
),
|
|
63
|
+
children
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
function RichTextEditor({
|
|
68
|
+
value,
|
|
69
|
+
onChange,
|
|
70
|
+
placeholder = "Escribe aqu\xED...",
|
|
71
|
+
height = 200,
|
|
72
|
+
className = "",
|
|
73
|
+
readOnly = false
|
|
74
|
+
}) {
|
|
75
|
+
const editor = (0, import_react2.useEditor)({
|
|
76
|
+
extensions: [
|
|
77
|
+
import_starter_kit.default,
|
|
78
|
+
import_extension_text_align.default.configure({
|
|
79
|
+
types: ["heading", "paragraph"]
|
|
80
|
+
}),
|
|
81
|
+
import_extension_color.default.configure({ types: [import_extension_text_style.TextStyle.name] }),
|
|
82
|
+
import_extension_text_style.TextStyle,
|
|
83
|
+
import_extension_image.default.configure({
|
|
84
|
+
HTMLAttributes: {
|
|
85
|
+
class: "max-w-full h-auto rounded-lg"
|
|
86
|
+
}
|
|
87
|
+
}),
|
|
88
|
+
import_extension_link.default.configure({
|
|
89
|
+
openOnClick: false
|
|
90
|
+
}),
|
|
91
|
+
import_extension_placeholder.default.configure({
|
|
92
|
+
placeholder
|
|
93
|
+
})
|
|
94
|
+
],
|
|
95
|
+
content: value,
|
|
96
|
+
editable: !readOnly,
|
|
97
|
+
immediatelyRender: false,
|
|
98
|
+
onUpdate: ({ editor: e }) => {
|
|
99
|
+
onChange(e.getHTML());
|
|
100
|
+
},
|
|
101
|
+
editorProps: {
|
|
102
|
+
attributes: {
|
|
103
|
+
class: "prose prose-sm sm:prose lg:prose-lg xl:prose-2xl mx-auto focus:outline-none max-w-none",
|
|
104
|
+
style: `min-height: ${height}px;`
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
import_react.default.useEffect(() => {
|
|
109
|
+
if (editor && editor.getHTML() !== value) {
|
|
110
|
+
editor.commands.setContent(value);
|
|
111
|
+
}
|
|
112
|
+
}, [value, editor]);
|
|
113
|
+
if (!editor) {
|
|
114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
115
|
+
"div",
|
|
116
|
+
{
|
|
117
|
+
className: (0, import_utils.cn)(
|
|
118
|
+
"border border-border rounded-lg overflow-hidden",
|
|
119
|
+
className
|
|
120
|
+
),
|
|
121
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-32 bg-muted rounded animate-pulse flex items-center justify-center text-muted-foreground", children: "Cargando editor..." })
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
126
|
+
"div",
|
|
127
|
+
{
|
|
128
|
+
"data-slot": "rich-text-editor",
|
|
129
|
+
className: (0, import_utils.cn)(
|
|
130
|
+
"border border-border rounded-lg overflow-hidden",
|
|
131
|
+
className
|
|
132
|
+
),
|
|
133
|
+
children: [
|
|
134
|
+
!readOnly && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "border-b border-border bg-muted/50 p-2 flex flex-wrap gap-1", children: [
|
|
135
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
136
|
+
ToolbarButton,
|
|
137
|
+
{
|
|
138
|
+
onClick: () => editor.chain().focus().toggleHeading({ level: 1 }).run(),
|
|
139
|
+
title: "T\xEDtulo 1",
|
|
140
|
+
isActive: editor.isActive("heading", { level: 1 }),
|
|
141
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Heading1, { className: "w-4 h-4" })
|
|
142
|
+
}
|
|
143
|
+
),
|
|
144
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
145
|
+
ToolbarButton,
|
|
146
|
+
{
|
|
147
|
+
onClick: () => editor.chain().focus().toggleHeading({ level: 2 }).run(),
|
|
148
|
+
title: "T\xEDtulo 2",
|
|
149
|
+
isActive: editor.isActive("heading", { level: 2 }),
|
|
150
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Heading2, { className: "w-4 h-4" })
|
|
151
|
+
}
|
|
152
|
+
),
|
|
153
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
154
|
+
ToolbarButton,
|
|
155
|
+
{
|
|
156
|
+
onClick: () => editor.chain().focus().toggleHeading({ level: 3 }).run(),
|
|
157
|
+
title: "T\xEDtulo 3",
|
|
158
|
+
isActive: editor.isActive("heading", { level: 3 }),
|
|
159
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Heading3, { className: "w-4 h-4" })
|
|
160
|
+
}
|
|
161
|
+
),
|
|
162
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-px h-6 bg-border mx-1" }),
|
|
163
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
164
|
+
ToolbarButton,
|
|
165
|
+
{
|
|
166
|
+
onClick: () => editor.chain().focus().toggleBold().run(),
|
|
167
|
+
title: "Negrita",
|
|
168
|
+
isActive: editor.isActive("bold"),
|
|
169
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Bold, { className: "w-4 h-4" })
|
|
170
|
+
}
|
|
171
|
+
),
|
|
172
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
173
|
+
ToolbarButton,
|
|
174
|
+
{
|
|
175
|
+
onClick: () => editor.chain().focus().toggleItalic().run(),
|
|
176
|
+
title: "Cursiva",
|
|
177
|
+
isActive: editor.isActive("italic"),
|
|
178
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Italic, { className: "w-4 h-4" })
|
|
179
|
+
}
|
|
180
|
+
),
|
|
181
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
182
|
+
ToolbarButton,
|
|
183
|
+
{
|
|
184
|
+
onClick: () => editor.chain().focus().toggleStrike().run(),
|
|
185
|
+
title: "Tachado",
|
|
186
|
+
isActive: editor.isActive("strike"),
|
|
187
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Strikethrough, { className: "w-4 h-4" })
|
|
188
|
+
}
|
|
189
|
+
),
|
|
190
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-px h-6 bg-border mx-1" }),
|
|
191
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
192
|
+
"input",
|
|
193
|
+
{
|
|
194
|
+
type: "color",
|
|
195
|
+
className: "w-8 h-8 border border-border rounded cursor-pointer",
|
|
196
|
+
onChange: (e) => {
|
|
197
|
+
editor.chain().focus().setColor(e.target.value).run();
|
|
198
|
+
},
|
|
199
|
+
title: "Color del texto"
|
|
200
|
+
}
|
|
201
|
+
) }),
|
|
202
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-px h-6 bg-border mx-1" }),
|
|
203
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
204
|
+
ToolbarButton,
|
|
205
|
+
{
|
|
206
|
+
onClick: () => editor.chain().focus().toggleBulletList().run(),
|
|
207
|
+
title: "Lista con vi\xF1etas",
|
|
208
|
+
isActive: editor.isActive("bulletList"),
|
|
209
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.List, { className: "w-4 h-4" })
|
|
210
|
+
}
|
|
211
|
+
),
|
|
212
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
213
|
+
ToolbarButton,
|
|
214
|
+
{
|
|
215
|
+
onClick: () => editor.chain().focus().toggleOrderedList().run(),
|
|
216
|
+
title: "Lista numerada",
|
|
217
|
+
isActive: editor.isActive("orderedList"),
|
|
218
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ListOrdered, { className: "w-4 h-4" })
|
|
219
|
+
}
|
|
220
|
+
),
|
|
221
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-px h-6 bg-border mx-1" }),
|
|
222
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
223
|
+
ToolbarButton,
|
|
224
|
+
{
|
|
225
|
+
onClick: () => editor.chain().focus().setTextAlign("left").run(),
|
|
226
|
+
title: "Alinear izquierda",
|
|
227
|
+
isActive: editor.isActive({ textAlign: "left" }),
|
|
228
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.AlignLeft, { className: "w-4 h-4" })
|
|
229
|
+
}
|
|
230
|
+
),
|
|
231
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
232
|
+
ToolbarButton,
|
|
233
|
+
{
|
|
234
|
+
onClick: () => editor.chain().focus().setTextAlign("center").run(),
|
|
235
|
+
title: "Centrar",
|
|
236
|
+
isActive: editor.isActive({ textAlign: "center" }),
|
|
237
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.AlignCenter, { className: "w-4 h-4" })
|
|
238
|
+
}
|
|
239
|
+
),
|
|
240
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
241
|
+
ToolbarButton,
|
|
242
|
+
{
|
|
243
|
+
onClick: () => editor.chain().focus().setTextAlign("right").run(),
|
|
244
|
+
title: "Alinear derecha",
|
|
245
|
+
isActive: editor.isActive({ textAlign: "right" }),
|
|
246
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.AlignRight, { className: "w-4 h-4" })
|
|
247
|
+
}
|
|
248
|
+
),
|
|
249
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-px h-6 bg-border mx-1" }),
|
|
250
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
251
|
+
ToolbarButton,
|
|
252
|
+
{
|
|
253
|
+
onClick: () => {
|
|
254
|
+
const url = prompt("Ingresa la URL:");
|
|
255
|
+
if (url) {
|
|
256
|
+
editor.chain().focus().setLink({ href: url }).run();
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
title: "Insertar enlace",
|
|
260
|
+
isActive: editor.isActive("link"),
|
|
261
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Link, { className: "w-4 h-4" })
|
|
262
|
+
}
|
|
263
|
+
),
|
|
264
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
265
|
+
ToolbarButton,
|
|
266
|
+
{
|
|
267
|
+
onClick: () => {
|
|
268
|
+
const url = prompt("Ingresa la URL de la imagen:");
|
|
269
|
+
if (url) {
|
|
270
|
+
editor.chain().focus().setImage({ src: url }).run();
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
title: "Insertar imagen",
|
|
274
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Image, { className: "w-4 h-4" })
|
|
275
|
+
}
|
|
276
|
+
)
|
|
277
|
+
] }),
|
|
278
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
279
|
+
import_react2.EditorContent,
|
|
280
|
+
{
|
|
281
|
+
editor,
|
|
282
|
+
className: "prose prose-sm max-w-none p-3 bg-card",
|
|
283
|
+
style: { minHeight: `${height}px` }
|
|
284
|
+
}
|
|
285
|
+
)
|
|
286
|
+
]
|
|
287
|
+
}
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
291
|
+
0 && (module.exports = {
|
|
292
|
+
RichTextEditor
|
|
293
|
+
});
|
|
294
|
+
//# sourceMappingURL=rich-text-editor.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/rich-text-editor/rich-text-editor.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { useEditor, EditorContent } from \"@tiptap/react\";\nimport StarterKit from \"@tiptap/starter-kit\";\nimport TextAlign from \"@tiptap/extension-text-align\";\nimport Color from \"@tiptap/extension-color\";\nimport { TextStyle } from \"@tiptap/extension-text-style\";\nimport ImageExtension from \"@tiptap/extension-image\";\nimport LinkExtension from \"@tiptap/extension-link\";\nimport Placeholder from \"@tiptap/extension-placeholder\";\nimport {\n Bold,\n Italic,\n Strikethrough,\n List,\n ListOrdered,\n Link,\n AlignLeft,\n AlignCenter,\n AlignRight,\n Image as ImageIcon,\n Heading1,\n Heading2,\n Heading3,\n} from \"lucide-react\";\n\nimport { cn } from \"../../../lib/utils\";\n\ninterface RichTextEditorProps {\n value: string;\n onChange: (content: string) => void;\n placeholder?: string;\n height?: number;\n className?: string;\n readOnly?: boolean;\n}\n\nfunction ToolbarButton({\n onClick,\n children,\n title,\n isActive = false,\n}: {\n onClick: () => void;\n children: React.ReactNode;\n title: string;\n isActive?: boolean;\n}) {\n return (\n <button\n type=\"button\"\n onClick={onClick}\n title={title}\n className={cn(\n \"p-2 rounded transition-colors\",\n isActive\n ? \"bg-primary text-primary-foreground\"\n : \"hover:bg-muted text-muted-foreground\"\n )}\n >\n {children}\n </button>\n );\n}\n\nfunction RichTextEditor({\n value,\n onChange,\n placeholder = \"Escribe aquí...\",\n height = 200,\n className = \"\",\n readOnly = false,\n}: RichTextEditorProps) {\n const editor = useEditor({\n extensions: [\n StarterKit,\n TextAlign.configure({\n types: [\"heading\", \"paragraph\"],\n }),\n Color.configure({ types: [TextStyle.name] }),\n TextStyle,\n ImageExtension.configure({\n HTMLAttributes: {\n class: \"max-w-full h-auto rounded-lg\",\n },\n }),\n LinkExtension.configure({\n openOnClick: false,\n }),\n Placeholder.configure({\n placeholder: placeholder,\n }),\n ],\n content: value,\n editable: !readOnly,\n immediatelyRender: false,\n onUpdate: ({ editor: e }) => {\n onChange(e.getHTML());\n },\n editorProps: {\n attributes: {\n class:\n \"prose prose-sm sm:prose lg:prose-lg xl:prose-2xl mx-auto focus:outline-none max-w-none\",\n style: `min-height: ${height}px;`,\n },\n },\n });\n\n React.useEffect(() => {\n if (editor && editor.getHTML() !== value) {\n editor.commands.setContent(value);\n }\n }, [value, editor]);\n\n if (!editor) {\n return (\n <div\n className={cn(\n \"border border-border rounded-lg overflow-hidden\",\n className\n )}\n >\n <div className=\"h-32 bg-muted rounded animate-pulse flex items-center justify-center text-muted-foreground\">\n Cargando editor...\n </div>\n </div>\n );\n }\n\n return (\n <div\n data-slot=\"rich-text-editor\"\n className={cn(\n \"border border-border rounded-lg overflow-hidden\",\n className\n )}\n >\n {!readOnly && (\n <div className=\"border-b border-border bg-muted/50 p-2 flex flex-wrap gap-1\">\n <ToolbarButton\n onClick={() =>\n editor.chain().focus().toggleHeading({ level: 1 }).run()\n }\n title=\"Título 1\"\n isActive={editor.isActive(\"heading\", { level: 1 })}\n >\n <Heading1 className=\"w-4 h-4\" />\n </ToolbarButton>\n <ToolbarButton\n onClick={() =>\n editor.chain().focus().toggleHeading({ level: 2 }).run()\n }\n title=\"Título 2\"\n isActive={editor.isActive(\"heading\", { level: 2 })}\n >\n <Heading2 className=\"w-4 h-4\" />\n </ToolbarButton>\n <ToolbarButton\n onClick={() =>\n editor.chain().focus().toggleHeading({ level: 3 }).run()\n }\n title=\"Título 3\"\n isActive={editor.isActive(\"heading\", { level: 3 })}\n >\n <Heading3 className=\"w-4 h-4\" />\n </ToolbarButton>\n <div className=\"w-px h-6 bg-border mx-1\" />\n\n <ToolbarButton\n onClick={() => editor.chain().focus().toggleBold().run()}\n title=\"Negrita\"\n isActive={editor.isActive(\"bold\")}\n >\n <Bold className=\"w-4 h-4\" />\n </ToolbarButton>\n <ToolbarButton\n onClick={() => editor.chain().focus().toggleItalic().run()}\n title=\"Cursiva\"\n isActive={editor.isActive(\"italic\")}\n >\n <Italic className=\"w-4 h-4\" />\n </ToolbarButton>\n <ToolbarButton\n onClick={() => editor.chain().focus().toggleStrike().run()}\n title=\"Tachado\"\n isActive={editor.isActive(\"strike\")}\n >\n <Strikethrough className=\"w-4 h-4\" />\n </ToolbarButton>\n <div className=\"w-px h-6 bg-border mx-1\" />\n\n <div className=\"relative\">\n <input\n type=\"color\"\n className=\"w-8 h-8 border border-border rounded cursor-pointer\"\n onChange={(e) => {\n editor.chain().focus().setColor(e.target.value).run();\n }}\n title=\"Color del texto\"\n />\n </div>\n\n <div className=\"w-px h-6 bg-border mx-1\" />\n\n <ToolbarButton\n onClick={() => editor.chain().focus().toggleBulletList().run()}\n title=\"Lista con viñetas\"\n isActive={editor.isActive(\"bulletList\")}\n >\n <List className=\"w-4 h-4\" />\n </ToolbarButton>\n <ToolbarButton\n onClick={() => editor.chain().focus().toggleOrderedList().run()}\n title=\"Lista numerada\"\n isActive={editor.isActive(\"orderedList\")}\n >\n <ListOrdered className=\"w-4 h-4\" />\n </ToolbarButton>\n <div className=\"w-px h-6 bg-border mx-1\" />\n\n <ToolbarButton\n onClick={() =>\n editor.chain().focus().setTextAlign(\"left\").run()\n }\n title=\"Alinear izquierda\"\n isActive={editor.isActive({ textAlign: \"left\" })}\n >\n <AlignLeft className=\"w-4 h-4\" />\n </ToolbarButton>\n <ToolbarButton\n onClick={() =>\n editor.chain().focus().setTextAlign(\"center\").run()\n }\n title=\"Centrar\"\n isActive={editor.isActive({ textAlign: \"center\" })}\n >\n <AlignCenter className=\"w-4 h-4\" />\n </ToolbarButton>\n <ToolbarButton\n onClick={() =>\n editor.chain().focus().setTextAlign(\"right\").run()\n }\n title=\"Alinear derecha\"\n isActive={editor.isActive({ textAlign: \"right\" })}\n >\n <AlignRight className=\"w-4 h-4\" />\n </ToolbarButton>\n <div className=\"w-px h-6 bg-border mx-1\" />\n\n <ToolbarButton\n onClick={() => {\n const url = prompt(\"Ingresa la URL:\");\n if (url) {\n editor.chain().focus().setLink({ href: url }).run();\n }\n }}\n title=\"Insertar enlace\"\n isActive={editor.isActive(\"link\")}\n >\n <Link className=\"w-4 h-4\" />\n </ToolbarButton>\n <ToolbarButton\n onClick={() => {\n const url = prompt(\"Ingresa la URL de la imagen:\");\n if (url) {\n editor.chain().focus().setImage({ src: url }).run();\n }\n }}\n title=\"Insertar imagen\"\n >\n <ImageIcon className=\"w-4 h-4\" />\n </ToolbarButton>\n </div>\n )}\n <EditorContent\n editor={editor}\n className=\"prose prose-sm max-w-none p-3 bg-card\"\n style={{ minHeight: `${height}px` }}\n />\n </div>\n );\n}\n\nexport { RichTextEditor };\nexport type { RichTextEditorProps };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkDI;AAhDJ,mBAAkB;AAClB,IAAAA,gBAAyC;AACzC,yBAAuB;AACvB,kCAAsB;AACtB,6BA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AAAA,cAEhC,sDAAC,4BAAK,WAAU,WAAU;AAAA;AAAA,UAC5B;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,SAAS,MAAM;AACb,sBAAM,MAAM,OAAO,8BAA8B;AACjD,oBAAI,KAAK;AACP,yBAAO,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC,EAAE,IAAI;AAAA,gBACpD;AAAA,cACF;AAAA,cACA,OAAM;AAAA,cAEN,sDAAC,oBAAAC,OAAA,EAAU,WAAU,WAAU;AAAA;AAAA,UACjC;AAAA,WACF;AAAA,QAEF;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,WAAU;AAAA,YACV,OAAO,EAAE,WAAW,GAAG,MAAM,KAAK;AAAA;AAAA,QACpC;AAAA;AAAA;AAAA,EACF;AAEJ;","names":["import_react","StarterKit","TextAlign","Color","ImageExtension","LinkExtension","Placeholder","React","ImageIcon"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
interface RichTextEditorProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (content: string) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
height?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare function RichTextEditor({ value, onChange, placeholder, height, className, readOnly, }: RichTextEditorProps): react_jsx_runtime.JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { RichTextEditor, type RichTextEditorProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
interface RichTextEditorProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (content: string) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
height?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare function RichTextEditor({ value, onChange, placeholder, height, className, readOnly, }: RichTextEditorProps): react_jsx_runtime.JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { RichTextEditor, type RichTextEditorProps };
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { useEditor, EditorContent } from "@tiptap/react";
|
|
5
|
+
import StarterKit from "@tiptap/starter-kit";
|
|
6
|
+
import TextAlign from "@tiptap/extension-text-align";
|
|
7
|
+
import Color from "@tiptap/extension-color";
|
|
8
|
+
import { TextStyle } from "@tiptap/extension-text-style";
|
|
9
|
+
import ImageExtension from "@tiptap/extension-image";
|
|
10
|
+
import LinkExtension from "@tiptap/extension-link";
|
|
11
|
+
import Placeholder from "@tiptap/extension-placeholder";
|
|
12
|
+
import {
|
|
13
|
+
Bold,
|
|
14
|
+
Italic,
|
|
15
|
+
Strikethrough,
|
|
16
|
+
List,
|
|
17
|
+
ListOrdered,
|
|
18
|
+
Link,
|
|
19
|
+
AlignLeft,
|
|
20
|
+
AlignCenter,
|
|
21
|
+
AlignRight,
|
|
22
|
+
Image as ImageIcon,
|
|
23
|
+
Heading1,
|
|
24
|
+
Heading2,
|
|
25
|
+
Heading3
|
|
26
|
+
} from "lucide-react";
|
|
27
|
+
import { cn } from "../../../lib/utils";
|
|
28
|
+
function ToolbarButton({
|
|
29
|
+
onClick,
|
|
30
|
+
children,
|
|
31
|
+
title,
|
|
32
|
+
isActive = false
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ jsx(
|
|
35
|
+
"button",
|
|
36
|
+
{
|
|
37
|
+
type: "button",
|
|
38
|
+
onClick,
|
|
39
|
+
title,
|
|
40
|
+
className: cn(
|
|
41
|
+
"p-2 rounded transition-colors",
|
|
42
|
+
isActive ? "bg-primary text-primary-foreground" : "hover:bg-muted text-muted-foreground"
|
|
43
|
+
),
|
|
44
|
+
children
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
function RichTextEditor({
|
|
49
|
+
value,
|
|
50
|
+
onChange,
|
|
51
|
+
placeholder = "Escribe aqu\xED...",
|
|
52
|
+
height = 200,
|
|
53
|
+
className = "",
|
|
54
|
+
readOnly = false
|
|
55
|
+
}) {
|
|
56
|
+
const editor = useEditor({
|
|
57
|
+
extensions: [
|
|
58
|
+
StarterKit,
|
|
59
|
+
TextAlign.configure({
|
|
60
|
+
types: ["heading", "paragraph"]
|
|
61
|
+
}),
|
|
62
|
+
Color.configure({ types: [TextStyle.name] }),
|
|
63
|
+
TextStyle,
|
|
64
|
+
ImageExtension.configure({
|
|
65
|
+
HTMLAttributes: {
|
|
66
|
+
class: "max-w-full h-auto rounded-lg"
|
|
67
|
+
}
|
|
68
|
+
}),
|
|
69
|
+
LinkExtension.configure({
|
|
70
|
+
openOnClick: false
|
|
71
|
+
}),
|
|
72
|
+
Placeholder.configure({
|
|
73
|
+
placeholder
|
|
74
|
+
})
|
|
75
|
+
],
|
|
76
|
+
content: value,
|
|
77
|
+
editable: !readOnly,
|
|
78
|
+
immediatelyRender: false,
|
|
79
|
+
onUpdate: ({ editor: e }) => {
|
|
80
|
+
onChange(e.getHTML());
|
|
81
|
+
},
|
|
82
|
+
editorProps: {
|
|
83
|
+
attributes: {
|
|
84
|
+
class: "prose prose-sm sm:prose lg:prose-lg xl:prose-2xl mx-auto focus:outline-none max-w-none",
|
|
85
|
+
style: `min-height: ${height}px;`
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
React.useEffect(() => {
|
|
90
|
+
if (editor && editor.getHTML() !== value) {
|
|
91
|
+
editor.commands.setContent(value);
|
|
92
|
+
}
|
|
93
|
+
}, [value, editor]);
|
|
94
|
+
if (!editor) {
|
|
95
|
+
return /* @__PURE__ */ jsx(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
className: cn(
|
|
99
|
+
"border border-border rounded-lg overflow-hidden",
|
|
100
|
+
className
|
|
101
|
+
),
|
|
102
|
+
children: /* @__PURE__ */ jsx("div", { className: "h-32 bg-muted rounded animate-pulse flex items-center justify-center text-muted-foreground", children: "Cargando editor..." })
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
return /* @__PURE__ */ jsxs(
|
|
107
|
+
"div",
|
|
108
|
+
{
|
|
109
|
+
"data-slot": "rich-text-editor",
|
|
110
|
+
className: cn(
|
|
111
|
+
"border border-border rounded-lg overflow-hidden",
|
|
112
|
+
className
|
|
113
|
+
),
|
|
114
|
+
children: [
|
|
115
|
+
!readOnly && /* @__PURE__ */ jsxs("div", { className: "border-b border-border bg-muted/50 p-2 flex flex-wrap gap-1", children: [
|
|
116
|
+
/* @__PURE__ */ jsx(
|
|
117
|
+
ToolbarButton,
|
|
118
|
+
{
|
|
119
|
+
onClick: () => editor.chain().focus().toggleHeading({ level: 1 }).run(),
|
|
120
|
+
title: "T\xEDtulo 1",
|
|
121
|
+
isActive: editor.isActive("heading", { level: 1 }),
|
|
122
|
+
children: /* @__PURE__ */ jsx(Heading1, { className: "w-4 h-4" })
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
/* @__PURE__ */ jsx(
|
|
126
|
+
ToolbarButton,
|
|
127
|
+
{
|
|
128
|
+
onClick: () => editor.chain().focus().toggleHeading({ level: 2 }).run(),
|
|
129
|
+
title: "T\xEDtulo 2",
|
|
130
|
+
isActive: editor.isActive("heading", { level: 2 }),
|
|
131
|
+
children: /* @__PURE__ */ jsx(Heading2, { className: "w-4 h-4" })
|
|
132
|
+
}
|
|
133
|
+
),
|
|
134
|
+
/* @__PURE__ */ jsx(
|
|
135
|
+
ToolbarButton,
|
|
136
|
+
{
|
|
137
|
+
onClick: () => editor.chain().focus().toggleHeading({ level: 3 }).run(),
|
|
138
|
+
title: "T\xEDtulo 3",
|
|
139
|
+
isActive: editor.isActive("heading", { level: 3 }),
|
|
140
|
+
children: /* @__PURE__ */ jsx(Heading3, { className: "w-4 h-4" })
|
|
141
|
+
}
|
|
142
|
+
),
|
|
143
|
+
/* @__PURE__ */ jsx("div", { className: "w-px h-6 bg-border mx-1" }),
|
|
144
|
+
/* @__PURE__ */ jsx(
|
|
145
|
+
ToolbarButton,
|
|
146
|
+
{
|
|
147
|
+
onClick: () => editor.chain().focus().toggleBold().run(),
|
|
148
|
+
title: "Negrita",
|
|
149
|
+
isActive: editor.isActive("bold"),
|
|
150
|
+
children: /* @__PURE__ */ jsx(Bold, { className: "w-4 h-4" })
|
|
151
|
+
}
|
|
152
|
+
),
|
|
153
|
+
/* @__PURE__ */ jsx(
|
|
154
|
+
ToolbarButton,
|
|
155
|
+
{
|
|
156
|
+
onClick: () => editor.chain().focus().toggleItalic().run(),
|
|
157
|
+
title: "Cursiva",
|
|
158
|
+
isActive: editor.isActive("italic"),
|
|
159
|
+
children: /* @__PURE__ */ jsx(Italic, { className: "w-4 h-4" })
|
|
160
|
+
}
|
|
161
|
+
),
|
|
162
|
+
/* @__PURE__ */ jsx(
|
|
163
|
+
ToolbarButton,
|
|
164
|
+
{
|
|
165
|
+
onClick: () => editor.chain().focus().toggleStrike().run(),
|
|
166
|
+
title: "Tachado",
|
|
167
|
+
isActive: editor.isActive("strike"),
|
|
168
|
+
children: /* @__PURE__ */ jsx(Strikethrough, { className: "w-4 h-4" })
|
|
169
|
+
}
|
|
170
|
+
),
|
|
171
|
+
/* @__PURE__ */ jsx("div", { className: "w-px h-6 bg-border mx-1" }),
|
|
172
|
+
/* @__PURE__ */ jsx("div", { className: "relative", children: /* @__PURE__ */ jsx(
|
|
173
|
+
"input",
|
|
174
|
+
{
|
|
175
|
+
type: "color",
|
|
176
|
+
className: "w-8 h-8 border border-border rounded cursor-pointer",
|
|
177
|
+
onChange: (e) => {
|
|
178
|
+
editor.chain().focus().setColor(e.target.value).run();
|
|
179
|
+
},
|
|
180
|
+
title: "Color del texto"
|
|
181
|
+
}
|
|
182
|
+
) }),
|
|
183
|
+
/* @__PURE__ */ jsx("div", { className: "w-px h-6 bg-border mx-1" }),
|
|
184
|
+
/* @__PURE__ */ jsx(
|
|
185
|
+
ToolbarButton,
|
|
186
|
+
{
|
|
187
|
+
onClick: () => editor.chain().focus().toggleBulletList().run(),
|
|
188
|
+
title: "Lista con vi\xF1etas",
|
|
189
|
+
isActive: editor.isActive("bulletList"),
|
|
190
|
+
children: /* @__PURE__ */ jsx(List, { className: "w-4 h-4" })
|
|
191
|
+
}
|
|
192
|
+
),
|
|
193
|
+
/* @__PURE__ */ jsx(
|
|
194
|
+
ToolbarButton,
|
|
195
|
+
{
|
|
196
|
+
onClick: () => editor.chain().focus().toggleOrderedList().run(),
|
|
197
|
+
title: "Lista numerada",
|
|
198
|
+
isActive: editor.isActive("orderedList"),
|
|
199
|
+
children: /* @__PURE__ */ jsx(ListOrdered, { className: "w-4 h-4" })
|
|
200
|
+
}
|
|
201
|
+
),
|
|
202
|
+
/* @__PURE__ */ jsx("div", { className: "w-px h-6 bg-border mx-1" }),
|
|
203
|
+
/* @__PURE__ */ jsx(
|
|
204
|
+
ToolbarButton,
|
|
205
|
+
{
|
|
206
|
+
onClick: () => editor.chain().focus().setTextAlign("left").run(),
|
|
207
|
+
title: "Alinear izquierda",
|
|
208
|
+
isActive: editor.isActive({ textAlign: "left" }),
|
|
209
|
+
children: /* @__PURE__ */ jsx(AlignLeft, { className: "w-4 h-4" })
|
|
210
|
+
}
|
|
211
|
+
),
|
|
212
|
+
/* @__PURE__ */ jsx(
|
|
213
|
+
ToolbarButton,
|
|
214
|
+
{
|
|
215
|
+
onClick: () => editor.chain().focus().setTextAlign("center").run(),
|
|
216
|
+
title: "Centrar",
|
|
217
|
+
isActive: editor.isActive({ textAlign: "center" }),
|
|
218
|
+
children: /* @__PURE__ */ jsx(AlignCenter, { className: "w-4 h-4" })
|
|
219
|
+
}
|
|
220
|
+
),
|
|
221
|
+
/* @__PURE__ */ jsx(
|
|
222
|
+
ToolbarButton,
|
|
223
|
+
{
|
|
224
|
+
onClick: () => editor.chain().focus().setTextAlign("right").run(),
|
|
225
|
+
title: "Alinear derecha",
|
|
226
|
+
isActive: editor.isActive({ textAlign: "right" }),
|
|
227
|
+
children: /* @__PURE__ */ jsx(AlignRight, { className: "w-4 h-4" })
|
|
228
|
+
}
|
|
229
|
+
),
|
|
230
|
+
/* @__PURE__ */ jsx("div", { className: "w-px h-6 bg-border mx-1" }),
|
|
231
|
+
/* @__PURE__ */ jsx(
|
|
232
|
+
ToolbarButton,
|
|
233
|
+
{
|
|
234
|
+
onClick: () => {
|
|
235
|
+
const url = prompt("Ingresa la URL:");
|
|
236
|
+
if (url) {
|
|
237
|
+
editor.chain().focus().setLink({ href: url }).run();
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
title: "Insertar enlace",
|
|
241
|
+
isActive: editor.isActive("link"),
|
|
242
|
+
children: /* @__PURE__ */ jsx(Link, { className: "w-4 h-4" })
|
|
243
|
+
}
|
|
244
|
+
),
|
|
245
|
+
/* @__PURE__ */ jsx(
|
|
246
|
+
ToolbarButton,
|
|
247
|
+
{
|
|
248
|
+
onClick: () => {
|
|
249
|
+
const url = prompt("Ingresa la URL de la imagen:");
|
|
250
|
+
if (url) {
|
|
251
|
+
editor.chain().focus().setImage({ src: url }).run();
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
title: "Insertar imagen",
|
|
255
|
+
children: /* @__PURE__ */ jsx(ImageIcon, { className: "w-4 h-4" })
|
|
256
|
+
}
|
|
257
|
+
)
|
|
258
|
+
] }),
|
|
259
|
+
/* @__PURE__ */ jsx(
|
|
260
|
+
EditorContent,
|
|
261
|
+
{
|
|
262
|
+
editor,
|
|
263
|
+
className: "prose prose-sm max-w-none p-3 bg-card",
|
|
264
|
+
style: { minHeight: `${height}px` }
|
|
265
|
+
}
|
|
266
|
+
)
|
|
267
|
+
]
|
|
268
|
+
}
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
export {
|
|
272
|
+
RichTextEditor
|
|
273
|
+
};
|
|
274
|
+
//# sourceMappingURL=rich-text-editor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/rich-text-editor/rich-text-editor.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { useEditor, EditorContent } from \"@tiptap/react\";\nimport StarterKit from \"@tiptap/starter-kit\";\nimport TextAlign from \"@tiptap/extension-text-align\";\nimport Color from \"@tiptap/extension-color\";\nimport { TextStyle } from \"@tiptap/extension-text-style\";\nimport ImageExtension from \"@tiptap/extension-image\";\nimport LinkExtension from \"@tiptap/extension-link\";\nimport Placeholder from \"@tiptap/extension-placeholder\";\nimport {\n Bold,\n Italic,\n Strikethrough,\n List,\n ListOrdered,\n Link,\n AlignLeft,\n AlignCenter,\n AlignRight,\n Image as ImageIcon,\n Heading1,\n Heading2,\n Heading3,\n} from \"lucide-react\";\n\nimport { cn } from \"../../../lib/utils\";\n\ninterface RichTextEditorProps {\n value: string;\n onChange: (content: string) => void;\n placeholder?: string;\n height?: number;\n className?: string;\n readOnly?: boolean;\n}\n\nfunction ToolbarButton({\n onClick,\n children,\n title,\n isActive = false,\n}: {\n onClick: () => void;\n children: React.ReactNode;\n title: string;\n isActive?: boolean;\n}) {\n return (\n <button\n type=\"button\"\n onClick={onClick}\n title={title}\n className={cn(\n \"p-2 rounded transition-colors\",\n isActive\n ? \"bg-primary text-primary-foreground\"\n : \"hover:bg-muted text-muted-foreground\"\n )}\n >\n {children}\n </button>\n );\n}\n\nfunction RichTextEditor({\n value,\n onChange,\n placeholder = \"Escribe aquí...\",\n height = 200,\n className = \"\",\n readOnly = false,\n}: RichTextEditorProps) {\n const editor = useEditor({\n extensions: [\n StarterKit,\n TextAlign.configure({\n types: [\"heading\", \"paragraph\"],\n }),\n Color.configure({ types: [TextStyle.name] }),\n TextStyle,\n ImageExtension.configure({\n HTMLAttributes: {\n class: \"max-w-full h-auto rounded-lg\",\n },\n }),\n LinkExtension.configure({\n openOnClick: false,\n }),\n Placeholder.configure({\n placeholder: placeholder,\n }),\n ],\n content: value,\n editable: !readOnly,\n immediatelyRender: false,\n onUpdate: ({ editor: e }) => {\n onChange(e.getHTML());\n },\n editorProps: {\n attributes: {\n class:\n \"prose prose-sm sm:prose lg:prose-lg xl:prose-2xl mx-auto focus:outline-none max-w-none\",\n style: `min-height: ${height}px;`,\n },\n },\n });\n\n React.useEffect(() => {\n if (editor && editor.getHTML() !== value) {\n editor.commands.setContent(value);\n }\n }, [value, editor]);\n\n if (!editor) {\n return (\n <div\n className={cn(\n \"border border-border rounded-lg overflow-hidden\",\n className\n )}\n >\n <div className=\"h-32 bg-muted rounded animate-pulse flex items-center justify-center text-muted-foreground\">\n Cargando editor...\n </div>\n </div>\n );\n }\n\n return (\n <div\n data-slot=\"rich-text-editor\"\n className={cn(\n \"border border-border rounded-lg overflow-hidden\",\n className\n )}\n >\n {!readOnly && (\n <div className=\"border-b border-border bg-muted/50 p-2 flex flex-wrap gap-1\">\n <ToolbarButton\n onClick={() =>\n editor.chain().focus().toggleHeading({ level: 1 }).run()\n }\n title=\"Título 1\"\n isActive={editor.isActive(\"heading\", { level: 1 })}\n >\n <Heading1 className=\"w-4 h-4\" />\n </ToolbarButton>\n <ToolbarButton\n onClick={() =>\n editor.chain().focus().toggleHeading({ level: 2 }).run()\n }\n title=\"Título 2\"\n isActive={editor.isActive(\"heading\", { level: 2 })}\n >\n <Heading2 className=\"w-4 h-4\" />\n </ToolbarButton>\n <ToolbarButton\n onClick={() =>\n editor.chain().focus().toggleHeading({ level: 3 }).run()\n }\n title=\"Título 3\"\n isActive={editor.isActive(\"heading\", { level: 3 })}\n >\n <Heading3 className=\"w-4 h-4\" />\n </ToolbarButton>\n <div className=\"w-px h-6 bg-border mx-1\" />\n\n <ToolbarButton\n onClick={() => editor.chain().focus().toggleBold().run()}\n title=\"Negrita\"\n isActive={editor.isActive(\"bold\")}\n >\n <Bold className=\"w-4 h-4\" />\n </ToolbarButton>\n <ToolbarButton\n onClick={() => editor.chain().focus().toggleItalic().run()}\n title=\"Cursiva\"\n isActive={editor.isActive(\"italic\")}\n >\n <Italic className=\"w-4 h-4\" />\n </ToolbarButton>\n <ToolbarButton\n onClick={() => editor.chain().focus().toggleStrike().run()}\n title=\"Tachado\"\n isActive={editor.isActive(\"strike\")}\n >\n <Strikethrough className=\"w-4 h-4\" />\n </ToolbarButton>\n <div className=\"w-px h-6 bg-border mx-1\" />\n\n <div className=\"relative\">\n <input\n type=\"color\"\n className=\"w-8 h-8 border border-border rounded cursor-pointer\"\n onChange={(e) => {\n editor.chain().focus().setColor(e.target.value).run();\n }}\n title=\"Color del texto\"\n />\n </div>\n\n <div className=\"w-px h-6 bg-border mx-1\" />\n\n <ToolbarButton\n onClick={() => editor.chain().focus().toggleBulletList().run()}\n title=\"Lista con viñetas\"\n isActive={editor.isActive(\"bulletList\")}\n >\n <List className=\"w-4 h-4\" />\n </ToolbarButton>\n <ToolbarButton\n onClick={() => editor.chain().focus().toggleOrderedList().run()}\n title=\"Lista numerada\"\n isActive={editor.isActive(\"orderedList\")}\n >\n <ListOrdered className=\"w-4 h-4\" />\n </ToolbarButton>\n <div className=\"w-px h-6 bg-border mx-1\" />\n\n <ToolbarButton\n onClick={() =>\n editor.chain().focus().setTextAlign(\"left\").run()\n }\n title=\"Alinear izquierda\"\n isActive={editor.isActive({ textAlign: \"left\" })}\n >\n <AlignLeft className=\"w-4 h-4\" />\n </ToolbarButton>\n <ToolbarButton\n onClick={() =>\n editor.chain().focus().setTextAlign(\"center\").run()\n }\n title=\"Centrar\"\n isActive={editor.isActive({ textAlign: \"center\" })}\n >\n <AlignCenter className=\"w-4 h-4\" />\n </ToolbarButton>\n <ToolbarButton\n onClick={() =>\n editor.chain().focus().setTextAlign(\"right\").run()\n }\n title=\"Alinear derecha\"\n isActive={editor.isActive({ textAlign: \"right\" })}\n >\n <AlignRight className=\"w-4 h-4\" />\n </ToolbarButton>\n <div className=\"w-px h-6 bg-border mx-1\" />\n\n <ToolbarButton\n onClick={() => {\n const url = prompt(\"Ingresa la URL:\");\n if (url) {\n editor.chain().focus().setLink({ href: url }).run();\n }\n }}\n title=\"Insertar enlace\"\n isActive={editor.isActive(\"link\")}\n >\n <Link className=\"w-4 h-4\" />\n </ToolbarButton>\n <ToolbarButton\n onClick={() => {\n const url = prompt(\"Ingresa la URL de la imagen:\");\n if (url) {\n editor.chain().focus().setImage({ src: url }).run();\n }\n }}\n title=\"Insertar imagen\"\n >\n <ImageIcon className=\"w-4 h-4\" />\n </ToolbarButton>\n </div>\n )}\n <EditorContent\n editor={editor}\n className=\"prose prose-sm max-w-none p-3 bg-card\"\n style={{ minHeight: `${height}px` }}\n />\n </div>\n );\n}\n\nexport { RichTextEditor };\nexport type { RichTextEditorProps };\n"],"mappings":";AAkDI,cAyFI,YAzFJ;AAhDJ,OAAO,WAAW;AAClB,SAAS,WAAW,qBAAqB;AACzC,OAAO,gBAAgB;AACvB,OAAO,eAAe;AACtB,OAAO,WAAW;AAClB,SAAS,iBAAiB;AAC1B,OAAO,oBAAoB;AAC3B,OAAO,mBAAmB;AAC1B,OAAO,iBAAiB;AACxB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,UAAU;AAWnB,SAAS,cAAc;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW;AACb,GAKG;AACD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA,WACI,uCACA;AAAA,MACN;AAAA,MAEC;AAAA;AAAA,EACH;AAEJ;AAEA,SAAS,eAAe;AAAA,EACtB;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd,SAAS;AAAA,EACT,YAAY;A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