@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,210 @@
|
|
|
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 autocomplete_exports = {};
|
|
31
|
+
__export(autocomplete_exports, {
|
|
32
|
+
Autocomplete: () => Autocomplete
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(autocomplete_exports);
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
+
var React = __toESM(require("react"), 1);
|
|
37
|
+
var import_lucide_react = require("lucide-react");
|
|
38
|
+
var import_utils = require("../../../lib/utils");
|
|
39
|
+
var import_button = require("../button");
|
|
40
|
+
var import_popover = require("../popover");
|
|
41
|
+
function Autocomplete({
|
|
42
|
+
value,
|
|
43
|
+
onValueChange,
|
|
44
|
+
placeholder = "Search...",
|
|
45
|
+
className,
|
|
46
|
+
disabled = false,
|
|
47
|
+
options,
|
|
48
|
+
loading = false,
|
|
49
|
+
onSearch,
|
|
50
|
+
searchQuery,
|
|
51
|
+
onSearchChange,
|
|
52
|
+
emptyText = "No results were found",
|
|
53
|
+
createNewText,
|
|
54
|
+
onCreateNew,
|
|
55
|
+
icon,
|
|
56
|
+
instructionText = "Enter two characters to search"
|
|
57
|
+
}) {
|
|
58
|
+
const [open, setOpen] = React.useState(false);
|
|
59
|
+
const [selectedOption, setSelectedOption] = React.useState(null);
|
|
60
|
+
React.useEffect(() => {
|
|
61
|
+
if (selectedOption) {
|
|
62
|
+
onSearchChange(selectedOption.name);
|
|
63
|
+
} else if (value && !selectedOption) {
|
|
64
|
+
onSearchChange("");
|
|
65
|
+
}
|
|
66
|
+
}, [selectedOption, value, onSearchChange]);
|
|
67
|
+
React.useEffect(() => {
|
|
68
|
+
if (searchQuery.trim() && searchQuery.length >= 2) {
|
|
69
|
+
onSearch(searchQuery);
|
|
70
|
+
}
|
|
71
|
+
}, [searchQuery, onSearch]);
|
|
72
|
+
const handleInputChange = (newValue) => {
|
|
73
|
+
onSearchChange(newValue);
|
|
74
|
+
setSelectedOption(null);
|
|
75
|
+
onValueChange?.("", void 0);
|
|
76
|
+
};
|
|
77
|
+
const handleSelect = (option) => {
|
|
78
|
+
setSelectedOption(option);
|
|
79
|
+
onSearchChange(option.name);
|
|
80
|
+
onValueChange?.(option.id, option);
|
|
81
|
+
setOpen(false);
|
|
82
|
+
};
|
|
83
|
+
const handleCreateNew = () => {
|
|
84
|
+
if (searchQuery.trim() && onCreateNew) {
|
|
85
|
+
onCreateNew();
|
|
86
|
+
setOpen(false);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
const handleClear = () => {
|
|
90
|
+
setSelectedOption(null);
|
|
91
|
+
onSearchChange("");
|
|
92
|
+
onValueChange?.("", void 0);
|
|
93
|
+
};
|
|
94
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative", children: [
|
|
95
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_popover.Popover, { open, onOpenChange: setOpen, children: [
|
|
96
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popover.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
97
|
+
import_button.Button,
|
|
98
|
+
{
|
|
99
|
+
variant: "outline",
|
|
100
|
+
role: "combobox",
|
|
101
|
+
"aria-expanded": open,
|
|
102
|
+
"data-slot": "autocomplete",
|
|
103
|
+
className: (0, import_utils.cn)(
|
|
104
|
+
"w-full justify-between h-11 px-3 py-2 text-left font-normal",
|
|
105
|
+
"border-2 border-input rounded-lg",
|
|
106
|
+
"hover:bg-muted hover:text-foreground hover:border-muted-foreground/30",
|
|
107
|
+
"focus:border-primary focus:ring-2 focus:ring-primary/20",
|
|
108
|
+
"transition-all duration-200",
|
|
109
|
+
disabled && "opacity-50 cursor-not-allowed",
|
|
110
|
+
className
|
|
111
|
+
),
|
|
112
|
+
disabled,
|
|
113
|
+
children: [
|
|
114
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: [
|
|
115
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "shrink-0 text-muted-foreground", children: icon }),
|
|
116
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
117
|
+
"span",
|
|
118
|
+
{
|
|
119
|
+
className: (0, import_utils.cn)(
|
|
120
|
+
"truncate",
|
|
121
|
+
searchQuery ? "text-foreground" : "text-muted-foreground"
|
|
122
|
+
),
|
|
123
|
+
children: searchQuery || placeholder
|
|
124
|
+
}
|
|
125
|
+
)
|
|
126
|
+
] }),
|
|
127
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ChevronsUpDown, { className: "h-4 w-4 shrink-0 text-muted-foreground" })
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
) }),
|
|
131
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
132
|
+
import_popover.PopoverContent,
|
|
133
|
+
{
|
|
134
|
+
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
135
|
+
align: "start",
|
|
136
|
+
side: "bottom",
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "p-3 border-b", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
139
|
+
"input",
|
|
140
|
+
{
|
|
141
|
+
type: "text",
|
|
142
|
+
placeholder,
|
|
143
|
+
value: searchQuery,
|
|
144
|
+
onChange: (e) => handleInputChange(e.target.value),
|
|
145
|
+
className: "w-full border-0 focus:ring-0 focus:outline-none text-sm bg-transparent",
|
|
146
|
+
autoFocus: true
|
|
147
|
+
}
|
|
148
|
+
) }),
|
|
149
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "max-h-[200px] overflow-y-auto", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-center py-6", children: [
|
|
150
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Loader2, { className: "h-4 w-4 animate-spin text-muted-foreground" }),
|
|
151
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "ml-2 text-sm text-muted-foreground", children: "Buscando..." })
|
|
152
|
+
] }) : searchQuery.length < 2 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "p-3 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-sm text-muted-foreground", children: instructionText || "Escribe al menos 2 caracteres" }) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
153
|
+
options.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
154
|
+
"div",
|
|
155
|
+
{
|
|
156
|
+
onClick: () => handleSelect(option),
|
|
157
|
+
className: "flex items-center justify-between px-3 py-2 cursor-pointer hover:bg-muted border-b border-border/50",
|
|
158
|
+
children: [
|
|
159
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "truncate", children: option.name }),
|
|
160
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
161
|
+
import_lucide_react.Check,
|
|
162
|
+
{
|
|
163
|
+
className: (0, import_utils.cn)(
|
|
164
|
+
"h-4 w-4 shrink-0",
|
|
165
|
+
selectedOption?.id === option.id ? "opacity-100 text-primary" : "opacity-0"
|
|
166
|
+
)
|
|
167
|
+
}
|
|
168
|
+
)
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
option.id
|
|
172
|
+
)) }),
|
|
173
|
+
options.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "py-3 px-4 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-sm text-muted-foreground", children: emptyText }) }),
|
|
174
|
+
createNewText && onCreateNew && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
175
|
+
"div",
|
|
176
|
+
{
|
|
177
|
+
onClick: handleCreateNew,
|
|
178
|
+
className: "flex items-center gap-2 px-3 py-2 cursor-pointer hover:bg-muted text-primary bg-muted/50",
|
|
179
|
+
children: [
|
|
180
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-muted-foreground", children: "+" }),
|
|
181
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: createNewText })
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
)
|
|
185
|
+
] }) })
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
)
|
|
189
|
+
] }),
|
|
190
|
+
selectedOption && !disabled && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
191
|
+
import_button.Button,
|
|
192
|
+
{
|
|
193
|
+
type: "button",
|
|
194
|
+
variant: "ghost",
|
|
195
|
+
size: "sm",
|
|
196
|
+
onClick: handleClear,
|
|
197
|
+
className: "absolute right-8 top-1/2 -translate-y-1/2 h-6 w-6 p-0 hover:bg-muted",
|
|
198
|
+
children: [
|
|
199
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sr-only", children: "Limpiar selecci\xF3n" }),
|
|
200
|
+
"\xD7"
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
)
|
|
204
|
+
] });
|
|
205
|
+
}
|
|
206
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
207
|
+
0 && (module.exports = {
|
|
208
|
+
Autocomplete
|
|
209
|
+
});
|
|
210
|
+
//# sourceMappingURL=autocomplete.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/autocomplete/autocomplete.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Check, ChevronsUpDown, Loader2 } from \"lucide-react\";\n\nimport { cn } from \"../../../lib/utils\";\nimport { Button } from \"../button\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"../popover\";\n\nexport interface AutocompleteOption {\n id: string;\n name: string;\n [key: string]: unknown;\n}\n\ninterface AutocompleteProps {\n value?: string;\n onValueChange?: (value: string, option?: AutocompleteOption) => void;\n placeholder?: string;\n className?: string;\n disabled?: boolean;\n options: AutocompleteOption[];\n loading?: boolean;\n onSearch: (query: string) => void;\n searchQuery: string;\n onSearchChange: (query: string) => void;\n emptyText?: string;\n createNewText?: string;\n onCreateNew?: () => void;\n icon?: React.ReactNode;\n instructionText?: string;\n}\n\nfunction Autocomplete({\n value,\n onValueChange,\n placeholder = \"Search...\",\n className,\n disabled = false,\n options,\n loading = false,\n onSearch,\n searchQuery,\n onSearchChange,\n emptyText = \"No results were found\",\n createNewText,\n onCreateNew,\n icon,\n instructionText = \"Enter two characters to search\",\n}: AutocompleteProps) {\n const [open, setOpen] = React.useState(false);\n const [selectedOption, setSelectedOption] =\n React.useState<AutocompleteOption | null>(null);\n\n React.useEffect(() => {\n if (selectedOption) {\n onSearchChange(selectedOption.name);\n } else if (value && !selectedOption) {\n onSearchChange(\"\");\n }\n }, [selectedOption, value, onSearchChange]);\n\n React.useEffect(() => {\n if (searchQuery.trim() && searchQuery.length >= 2) {\n onSearch(searchQuery);\n }\n }, [searchQuery, onSearch]);\n\n const handleInputChange = (newValue: string) => {\n onSearchChange(newValue);\n setSelectedOption(null);\n onValueChange?.(\"\", undefined);\n };\n\n const handleSelect = (option: AutocompleteOption) => {\n setSelectedOption(option);\n onSearchChange(option.name);\n onValueChange?.(option.id, option);\n setOpen(false);\n };\n\n const handleCreateNew = () => {\n if (searchQuery.trim() && onCreateNew) {\n onCreateNew();\n setOpen(false);\n }\n };\n\n const handleClear = () => {\n setSelectedOption(null);\n onSearchChange(\"\");\n onValueChange?.(\"\", undefined);\n };\n\n return (\n <div className=\"relative\">\n <Popover open={open} onOpenChange={setOpen}>\n <PopoverTrigger asChild>\n <Button\n variant=\"outline\"\n role=\"combobox\"\n aria-expanded={open}\n data-slot=\"autocomplete\"\n className={cn(\n \"w-full justify-between h-11 px-3 py-2 text-left font-normal\",\n \"border-2 border-input rounded-lg\",\n \"hover:bg-muted hover:text-foreground hover:border-muted-foreground/30\",\n \"focus:border-primary focus:ring-2 focus:ring-primary/20\",\n \"transition-all duration-200\",\n disabled && \"opacity-50 cursor-not-allowed\",\n className\n )}\n disabled={disabled}\n >\n <div className=\"flex items-center gap-2 min-w-0 flex-1\">\n {icon && (\n <span className=\"shrink-0 text-muted-foreground\">{icon}</span>\n )}\n <span\n className={cn(\n \"truncate\",\n searchQuery ? \"text-foreground\" : \"text-muted-foreground\"\n )}\n >\n {searchQuery || placeholder}\n </span>\n </div>\n <ChevronsUpDown className=\"h-4 w-4 shrink-0 text-muted-foreground\" />\n </Button>\n </PopoverTrigger>\n <PopoverContent\n className=\"w-[var(--radix-popover-trigger-width)] p-0\"\n align=\"start\"\n side=\"bottom\"\n >\n <div className=\"p-3 border-b\">\n <input\n type=\"text\"\n placeholder={placeholder}\n value={searchQuery}\n onChange={(e) => handleInputChange(e.target.value)}\n className=\"w-full border-0 focus:ring-0 focus:outline-none text-sm bg-transparent\"\n autoFocus\n />\n </div>\n <div className=\"max-h-[200px] overflow-y-auto\">\n {loading ? (\n <div className=\"flex items-center justify-center py-6\">\n <Loader2 className=\"h-4 w-4 animate-spin text-muted-foreground\" />\n <span className=\"ml-2 text-sm text-muted-foreground\">\n Buscando...\n </span>\n </div>\n ) : searchQuery.length < 2 ? (\n <div className=\"p-3 text-center\">\n <div className=\"text-sm text-muted-foreground\">\n {instructionText || \"Escribe al menos 2 caracteres\"}\n </div>\n </div>\n ) : (\n <div>\n {options.length > 0 && (\n <div>\n {options.map((option) => (\n <div\n key={option.id}\n onClick={() => handleSelect(option)}\n className=\"flex items-center justify-between px-3 py-2 cursor-pointer hover:bg-muted border-b border-border/50\"\n >\n <span className=\"truncate\">{option.name}</span>\n <Check\n className={cn(\n \"h-4 w-4 shrink-0\",\n selectedOption?.id === option.id\n ? \"opacity-100 text-primary\"\n : \"opacity-0\"\n )}\n />\n </div>\n ))}\n </div>\n )}\n\n {options.length === 0 && (\n <div className=\"py-3 px-4 text-center\">\n <div className=\"text-sm text-muted-foreground\">\n {emptyText}\n </div>\n </div>\n )}\n\n {createNewText && onCreateNew && (\n <div\n onClick={handleCreateNew}\n className=\"flex items-center gap-2 px-3 py-2 cursor-pointer hover:bg-muted text-primary bg-muted/50\"\n >\n <span className=\"text-muted-foreground\">+</span>\n <span>{createNewText}</span>\n </div>\n )}\n </div>\n )}\n </div>\n </PopoverContent>\n </Popover>\n\n {selectedOption && !disabled && (\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n onClick={handleClear}\n className=\"absolute right-8 top-1/2 -translate-y-1/2 h-6 w-6 p-0 hover:bg-muted\"\n >\n <span className=\"sr-only\">Limpiar selección</span>\n ×\n </Button>\n )}\n\n </div>\n );\n}\n\nexport { Autocomplete };\nexport type { AutocompleteProps };\n"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
interface AutocompleteOption {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
interface AutocompleteProps {
|
|
10
|
+
value?: string;
|
|
11
|
+
onValueChange?: (value: string, option?: AutocompleteOption) => void;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
options: AutocompleteOption[];
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
onSearch: (query: string) => void;
|
|
18
|
+
searchQuery: string;
|
|
19
|
+
onSearchChange: (query: string) => void;
|
|
20
|
+
emptyText?: string;
|
|
21
|
+
createNewText?: string;
|
|
22
|
+
onCreateNew?: () => void;
|
|
23
|
+
icon?: React.ReactNode;
|
|
24
|
+
instructionText?: string;
|
|
25
|
+
}
|
|
26
|
+
declare function Autocomplete({ value, onValueChange, placeholder, className, disabled, options, loading, onSearch, searchQuery, onSearchChange, emptyText, createNewText, onCreateNew, icon, instructionText, }: AutocompleteProps): react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
export { Autocomplete, type AutocompleteOption, type AutocompleteProps };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
interface AutocompleteOption {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
interface AutocompleteProps {
|
|
10
|
+
value?: string;
|
|
11
|
+
onValueChange?: (value: string, option?: AutocompleteOption) => void;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
options: AutocompleteOption[];
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
onSearch: (query: string) => void;
|
|
18
|
+
searchQuery: string;
|
|
19
|
+
onSearchChange: (query: string) => void;
|
|
20
|
+
emptyText?: string;
|
|
21
|
+
createNewText?: string;
|
|
22
|
+
onCreateNew?: () => void;
|
|
23
|
+
icon?: React.ReactNode;
|
|
24
|
+
instructionText?: string;
|
|
25
|
+
}
|
|
26
|
+
declare function Autocomplete({ value, onValueChange, placeholder, className, disabled, options, loading, onSearch, searchQuery, onSearchChange, emptyText, createNewText, onCreateNew, icon, instructionText, }: AutocompleteProps): react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
export { Autocomplete, type AutocompleteOption, type AutocompleteProps };
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Check, ChevronsUpDown, Loader2 } from "lucide-react";
|
|
5
|
+
import { cn } from "../../../lib/utils";
|
|
6
|
+
import { Button } from "../button";
|
|
7
|
+
import { Popover, PopoverContent, PopoverTrigger } from "../popover";
|
|
8
|
+
function Autocomplete({
|
|
9
|
+
value,
|
|
10
|
+
onValueChange,
|
|
11
|
+
placeholder = "Search...",
|
|
12
|
+
className,
|
|
13
|
+
disabled = false,
|
|
14
|
+
options,
|
|
15
|
+
loading = false,
|
|
16
|
+
onSearch,
|
|
17
|
+
searchQuery,
|
|
18
|
+
onSearchChange,
|
|
19
|
+
emptyText = "No results were found",
|
|
20
|
+
createNewText,
|
|
21
|
+
onCreateNew,
|
|
22
|
+
icon,
|
|
23
|
+
instructionText = "Enter two characters to search"
|
|
24
|
+
}) {
|
|
25
|
+
const [open, setOpen] = React.useState(false);
|
|
26
|
+
const [selectedOption, setSelectedOption] = React.useState(null);
|
|
27
|
+
React.useEffect(() => {
|
|
28
|
+
if (selectedOption) {
|
|
29
|
+
onSearchChange(selectedOption.name);
|
|
30
|
+
} else if (value && !selectedOption) {
|
|
31
|
+
onSearchChange("");
|
|
32
|
+
}
|
|
33
|
+
}, [selectedOption, value, onSearchChange]);
|
|
34
|
+
React.useEffect(() => {
|
|
35
|
+
if (searchQuery.trim() && searchQuery.length >= 2) {
|
|
36
|
+
onSearch(searchQuery);
|
|
37
|
+
}
|
|
38
|
+
}, [searchQuery, onSearch]);
|
|
39
|
+
const handleInputChange = (newValue) => {
|
|
40
|
+
onSearchChange(newValue);
|
|
41
|
+
setSelectedOption(null);
|
|
42
|
+
onValueChange?.("", void 0);
|
|
43
|
+
};
|
|
44
|
+
const handleSelect = (option) => {
|
|
45
|
+
setSelectedOption(option);
|
|
46
|
+
onSearchChange(option.name);
|
|
47
|
+
onValueChange?.(option.id, option);
|
|
48
|
+
setOpen(false);
|
|
49
|
+
};
|
|
50
|
+
const handleCreateNew = () => {
|
|
51
|
+
if (searchQuery.trim() && onCreateNew) {
|
|
52
|
+
onCreateNew();
|
|
53
|
+
setOpen(false);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const handleClear = () => {
|
|
57
|
+
setSelectedOption(null);
|
|
58
|
+
onSearchChange("");
|
|
59
|
+
onValueChange?.("", void 0);
|
|
60
|
+
};
|
|
61
|
+
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
62
|
+
/* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
63
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
64
|
+
Button,
|
|
65
|
+
{
|
|
66
|
+
variant: "outline",
|
|
67
|
+
role: "combobox",
|
|
68
|
+
"aria-expanded": open,
|
|
69
|
+
"data-slot": "autocomplete",
|
|
70
|
+
className: cn(
|
|
71
|
+
"w-full justify-between h-11 px-3 py-2 text-left font-normal",
|
|
72
|
+
"border-2 border-input rounded-lg",
|
|
73
|
+
"hover:bg-muted hover:text-foreground hover:border-muted-foreground/30",
|
|
74
|
+
"focus:border-primary focus:ring-2 focus:ring-primary/20",
|
|
75
|
+
"transition-all duration-200",
|
|
76
|
+
disabled && "opacity-50 cursor-not-allowed",
|
|
77
|
+
className
|
|
78
|
+
),
|
|
79
|
+
disabled,
|
|
80
|
+
children: [
|
|
81
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: [
|
|
82
|
+
icon && /* @__PURE__ */ jsx("span", { className: "shrink-0 text-muted-foreground", children: icon }),
|
|
83
|
+
/* @__PURE__ */ jsx(
|
|
84
|
+
"span",
|
|
85
|
+
{
|
|
86
|
+
className: cn(
|
|
87
|
+
"truncate",
|
|
88
|
+
searchQuery ? "text-foreground" : "text-muted-foreground"
|
|
89
|
+
),
|
|
90
|
+
children: searchQuery || placeholder
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
] }),
|
|
94
|
+
/* @__PURE__ */ jsx(ChevronsUpDown, { className: "h-4 w-4 shrink-0 text-muted-foreground" })
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
) }),
|
|
98
|
+
/* @__PURE__ */ jsxs(
|
|
99
|
+
PopoverContent,
|
|
100
|
+
{
|
|
101
|
+
className: "w-[var(--radix-popover-trigger-width)] p-0",
|
|
102
|
+
align: "start",
|
|
103
|
+
side: "bottom",
|
|
104
|
+
children: [
|
|
105
|
+
/* @__PURE__ */ jsx("div", { className: "p-3 border-b", children: /* @__PURE__ */ jsx(
|
|
106
|
+
"input",
|
|
107
|
+
{
|
|
108
|
+
type: "text",
|
|
109
|
+
placeholder,
|
|
110
|
+
value: searchQuery,
|
|
111
|
+
onChange: (e) => handleInputChange(e.target.value),
|
|
112
|
+
className: "w-full border-0 focus:ring-0 focus:outline-none text-sm bg-transparent",
|
|
113
|
+
autoFocus: true
|
|
114
|
+
}
|
|
115
|
+
) }),
|
|
116
|
+
/* @__PURE__ */ jsx("div", { className: "max-h-[200px] overflow-y-auto", children: loading ? /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center py-6", children: [
|
|
117
|
+
/* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin text-muted-foreground" }),
|
|
118
|
+
/* @__PURE__ */ jsx("span", { className: "ml-2 text-sm text-muted-foreground", children: "Buscando..." })
|
|
119
|
+
] }) : searchQuery.length < 2 ? /* @__PURE__ */ jsx("div", { className: "p-3 text-center", children: /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: instructionText || "Escribe al menos 2 caracteres" }) }) : /* @__PURE__ */ jsxs("div", { children: [
|
|
120
|
+
options.length > 0 && /* @__PURE__ */ jsx("div", { children: options.map((option) => /* @__PURE__ */ jsxs(
|
|
121
|
+
"div",
|
|
122
|
+
{
|
|
123
|
+
onClick: () => handleSelect(option),
|
|
124
|
+
className: "flex items-center justify-between px-3 py-2 cursor-pointer hover:bg-muted border-b border-border/50",
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ jsx("span", { className: "truncate", children: option.name }),
|
|
127
|
+
/* @__PURE__ */ jsx(
|
|
128
|
+
Check,
|
|
129
|
+
{
|
|
130
|
+
className: cn(
|
|
131
|
+
"h-4 w-4 shrink-0",
|
|
132
|
+
selectedOption?.id === option.id ? "opacity-100 text-primary" : "opacity-0"
|
|
133
|
+
)
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
option.id
|
|
139
|
+
)) }),
|
|
140
|
+
options.length === 0 && /* @__PURE__ */ jsx("div", { className: "py-3 px-4 text-center", children: /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: emptyText }) }),
|
|
141
|
+
createNewText && onCreateNew && /* @__PURE__ */ jsxs(
|
|
142
|
+
"div",
|
|
143
|
+
{
|
|
144
|
+
onClick: handleCreateNew,
|
|
145
|
+
className: "flex items-center gap-2 px-3 py-2 cursor-pointer hover:bg-muted text-primary bg-muted/50",
|
|
146
|
+
children: [
|
|
147
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "+" }),
|
|
148
|
+
/* @__PURE__ */ jsx("span", { children: createNewText })
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
)
|
|
152
|
+
] }) })
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
)
|
|
156
|
+
] }),
|
|
157
|
+
selectedOption && !disabled && /* @__PURE__ */ jsxs(
|
|
158
|
+
Button,
|
|
159
|
+
{
|
|
160
|
+
type: "button",
|
|
161
|
+
variant: "ghost",
|
|
162
|
+
size: "sm",
|
|
163
|
+
onClick: handleClear,
|
|
164
|
+
className: "absolute right-8 top-1/2 -translate-y-1/2 h-6 w-6 p-0 hover:bg-muted",
|
|
165
|
+
children: [
|
|
166
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Limpiar selecci\xF3n" }),
|
|
167
|
+
"\xD7"
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
)
|
|
171
|
+
] });
|
|
172
|
+
}
|
|
173
|
+
export {
|
|
174
|
+
Autocomplete
|
|
175
|
+
};
|
|
176
|
+
//# sourceMappingURL=autocomplete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/autocomplete/autocomplete.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Check, ChevronsUpDown, Loader2 } from \"lucide-react\";\n\nimport { cn } from \"../../../lib/utils\";\nimport { Button } from \"../button\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"../popover\";\n\nexport interface AutocompleteOption {\n id: string;\n name: string;\n [key: string]: unknown;\n}\n\ninterface AutocompleteProps {\n value?: string;\n onValueChange?: (value: string, option?: AutocompleteOption) => void;\n placeholder?: string;\n className?: string;\n disabled?: boolean;\n options: AutocompleteOption[];\n loading?: boolean;\n onSearch: (query: string) => void;\n searchQuery: string;\n onSearchChange: (query: string) => void;\n emptyText?: string;\n createNewText?: string;\n onCreateNew?: () => void;\n icon?: React.ReactNode;\n instructionText?: string;\n}\n\nfunction Autocomplete({\n value,\n onValueChange,\n placeholder = \"Search...\",\n className,\n disabled = false,\n options,\n loading = false,\n onSearch,\n searchQuery,\n onSearchChange,\n emptyText = \"No results were found\",\n createNewText,\n onCreateNew,\n icon,\n instructionText = \"Enter two characters to search\",\n}: AutocompleteProps) {\n const [open, setOpen] = React.useState(false);\n const [selectedOption, setSelectedOption] =\n React.useState<AutocompleteOption | null>(null);\n\n React.useEffect(() => {\n if (selectedOption) {\n onSearchChange(selectedOption.name);\n } else if (value && !selectedOption) {\n onSearchChange(\"\");\n }\n }, [selectedOption, value, onSearchChange]);\n\n React.useEffect(() => {\n if (searchQuery.trim() && searchQuery.length >= 2) {\n onSearch(searchQuery);\n }\n }, [searchQuery, onSearch]);\n\n const handleInputChange = (newValue: string) => {\n onSearchChange(newValue);\n setSelectedOption(null);\n onValueChange?.(\"\", undefined);\n };\n\n const handleSelect = (option: AutocompleteOption) => {\n setSelectedOption(option);\n onSearchChange(option.name);\n onValueChange?.(option.id, option);\n setOpen(false);\n };\n\n const handleCreateNew = () => {\n if (searchQuery.trim() && onCreateNew) {\n onCreateNew();\n setOpen(false);\n }\n };\n\n const handleClear = () => {\n setSelectedOption(null);\n onSearchChange(\"\");\n onValueChange?.(\"\", undefined);\n };\n\n return (\n <div className=\"relative\">\n <Popover open={open} onOpenChange={setOpen}>\n <PopoverTrigger asChild>\n <Button\n variant=\"outline\"\n role=\"combobox\"\n aria-expanded={open}\n data-slot=\"autocomplete\"\n className={cn(\n \"w-full justify-between h-11 px-3 py-2 text-left font-normal\",\n \"border-2 border-input rounded-lg\",\n \"hover:bg-muted hover:text-foreground hover:border-muted-foreground/30\",\n \"focus:border-primary focus:ring-2 focus:ring-primary/20\",\n \"transition-all duration-200\",\n disabled && \"opacity-50 cursor-not-allowed\",\n className\n )}\n disabled={disabled}\n >\n <div className=\"flex items-center gap-2 min-w-0 flex-1\">\n {icon && (\n <span className=\"shrink-0 text-muted-foreground\">{icon}</span>\n )}\n <span\n className={cn(\n \"truncate\",\n searchQuery ? \"text-foreground\" : \"text-muted-foreground\"\n )}\n >\n {searchQuery || placeholder}\n </span>\n </div>\n <ChevronsUpDown className=\"h-4 w-4 shrink-0 text-muted-foreground\" />\n </Button>\n </PopoverTrigger>\n <PopoverContent\n className=\"w-[var(--radix-popover-trigger-width)] p-0\"\n align=\"start\"\n side=\"bottom\"\n >\n <div className=\"p-3 border-b\">\n <input\n type=\"text\"\n placeholder={placeholder}\n value={searchQuery}\n onChange={(e) => handleInputChange(e.target.value)}\n className=\"w-full border-0 focus:ring-0 focus:outline-none text-sm bg-transparent\"\n autoFocus\n />\n </div>\n <div className=\"max-h-[200px] overflow-y-auto\">\n {loading ? (\n <div className=\"flex items-center justify-center py-6\">\n <Loader2 className=\"h-4 w-4 animate-spin text-muted-foreground\" />\n <span className=\"ml-2 text-sm text-muted-foreground\">\n Buscando...\n </span>\n </div>\n ) : searchQuery.length < 2 ? (\n <div className=\"p-3 text-center\">\n <div className=\"text-sm text-muted-foreground\">\n {instructionText || \"Escribe al menos 2 caracteres\"}\n </div>\n </div>\n ) : (\n <div>\n {options.length > 0 && (\n <div>\n {options.map((option) => (\n <div\n key={option.id}\n onClick={() => handleSelect(option)}\n className=\"flex items-center justify-between px-3 py-2 cursor-pointer hover:bg-muted border-b border-border/50\"\n >\n <span className=\"truncate\">{option.name}</span>\n <Check\n className={cn(\n \"h-4 w-4 shrink-0\",\n selectedOption?.id === option.id\n ? \"opacity-100 text-primary\"\n : \"opacity-0\"\n )}\n />\n </div>\n ))}\n </div>\n )}\n\n {options.length === 0 && (\n <div className=\"py-3 px-4 text-center\">\n <div className=\"text-sm text-muted-foreground\">\n {emptyText}\n </div>\n </div>\n )}\n\n {createNewText && onCreateNew && (\n <div\n onClick={handleCreateNew}\n className=\"flex items-center gap-2 px-3 py-2 cursor-pointer hover:bg-muted text-primary bg-muted/50\"\n >\n <span className=\"text-muted-foreground\">+</span>\n <span>{createNewText}</span>\n </div>\n )}\n </div>\n )}\n </div>\n </PopoverContent>\n </Popover>\n\n {selectedOption && !disabled && (\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n onClick={handleClear}\n className=\"absolute right-8 top-1/2 -translate-y-1/2 h-6 w-6 p-0 hover:bg-muted\"\n >\n <span className=\"sr-only\">Limpiar selección</span>\n ×\n </Button>\n )}\n\n </div>\n );\n}\n\nexport { Autocomplete };\nexport type { AutocompleteProps };\n"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var autocomplete_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(autocomplete_exports);
|
|
18
|
+
__reExport(autocomplete_exports, require("./autocomplete"), module.exports);
|
|
19
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
+
0 && (module.exports = {
|
|
21
|
+
...require("./autocomplete")
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/autocomplete/index.ts"],"sourcesContent":["export * from \"./autocomplete\";\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iCAAc,2BAAd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/autocomplete/index.ts"],"sourcesContent":["export * from \"./autocomplete\";\n"],"mappings":"AAAA,cAAc;","names":[]}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 avatar_exports = {};
|
|
31
|
+
__export(avatar_exports, {
|
|
32
|
+
Avatar: () => Avatar,
|
|
33
|
+
AvatarFallback: () => AvatarFallback,
|
|
34
|
+
AvatarImage: () => AvatarImage
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(avatar_exports);
|
|
37
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
|
+
var React = __toESM(require("react"), 1);
|
|
39
|
+
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
|
|
40
|
+
var import_utils = require("../../../lib/utils");
|
|
41
|
+
const Avatar = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
42
|
+
AvatarPrimitive.Root,
|
|
43
|
+
{
|
|
44
|
+
ref,
|
|
45
|
+
className: (0, import_utils.cn)(
|
|
46
|
+
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
|
|
47
|
+
className
|
|
48
|
+
),
|
|
49
|
+
...props
|
|
50
|
+
}
|
|
51
|
+
));
|
|
52
|
+
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
53
|
+
const AvatarImage = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
54
|
+
AvatarPrimitive.Image,
|
|
55
|
+
{
|
|
56
|
+
ref,
|
|
57
|
+
className: (0, import_utils.cn)("aspect-square h-full w-full", className),
|
|
58
|
+
...props
|
|
59
|
+
}
|
|
60
|
+
));
|
|
61
|
+
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
62
|
+
const AvatarFallback = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
63
|
+
AvatarPrimitive.Fallback,
|
|
64
|
+
{
|
|
65
|
+
ref,
|
|
66
|
+
className: (0, import_utils.cn)(
|
|
67
|
+
"flex h-full w-full items-center justify-center rounded-full bg-muted",
|
|
68
|
+
className
|
|
69
|
+
),
|
|
70
|
+
...props
|
|
71
|
+
}
|
|
72
|
+
));
|
|
73
|
+
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
74
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
75
|
+
0 && (module.exports = {
|
|
76
|
+
Avatar,
|
|
77
|
+
AvatarFallback,
|
|
78
|
+
AvatarImage
|
|
79
|
+
});
|
|
80
|
+
//# sourceMappingURL=avatar.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/avatar/avatar.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\";\n\nimport { cn } from \"../../../lib/utils\";\n\nconst Avatar = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Root\n ref={ref}\n className={cn(\n \"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full\",\n className\n )}\n {...props}\n />\n));\nAvatar.displayName = AvatarPrimitive.Root.displayName;\n\nconst AvatarImage = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Image>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Image\n ref={ref}\n className={cn(\"aspect-square h-full w-full\", className)}\n {...props}\n />\n));\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\n\nconst AvatarFallback = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Fallback>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={cn(\n \"flex h-full w-full items-center justify-center rounded-full bg-muted\",\n className\n )}\n {...props}\n />\n));\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\n\nexport { Avatar, AvatarImage, AvatarFallback };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWI;AATJ,YAAuB;AACvB,sBAAiC;AAEjC,mBAAmB;AAEnB,MAAM,SAAS,MAAM,WAGnB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QACxB;AAAA,EAAC,gBAAgB;AAAA,EAAhB;AAAA,IACG;AAAA,IACA,eAAW;AAAA,MACP;AAAA,MACA;AAAA,IACJ;AAAA,IACC,GAAG;AAAA;AACR,CACH;AACD,OAAO,cAAc,gBAAgB,KAAK;AAE1C,MAAM,cAAc,MAAM,WAGxB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QACxB;AAAA,EAAC,gBAAgB;AAAA,EAAhB;AAAA,IACG;AAAA,IACA,eAAW,iBAAG,+BAA+B,SAAS;AAAA,IACrD,GAAG;AAAA;AACR,CACH;AACD,YAAY,cAAc,gBAAgB,MAAM;AAEhD,MAAM,iBAAiB,MAAM,WAG3B,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QACxB;AAAA,EAAC,gBAAgB;AAAA,EAAhB;AAAA,IACG;AAAA,IACA,eAAW;AAAA,MACP;AAAA,MACA;AAAA,IACJ;AAAA,IACC,GAAG;AAAA;AACR,CACH;AACD,eAAe,cAAc,gBAAgB,SAAS;","names":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
3
|
+
|
|
4
|
+
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
6
|
+
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
|
|
8
|
+
export { Avatar, AvatarFallback, AvatarImage };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
3
|
+
|
|
4
|
+
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
6
|
+
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
|
|
8
|
+
export { Avatar, AvatarFallback, AvatarImage };
|