@ginia/ui 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/domain/resume/resume-editor/resume-editor.cjs +13 -5
- package/dist/components/domain/resume/resume-editor/resume-editor.cjs.map +1 -1
- package/dist/components/domain/resume/resume-editor/resume-editor.d.cts +1 -1
- package/dist/components/domain/resume/resume-editor/resume-editor.d.ts +1 -1
- package/dist/components/domain/resume/resume-editor/resume-editor.js +19 -6
- package/dist/components/domain/resume/resume-editor/resume-editor.js.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/academic-info.cjs +1 -1
- package/dist/components/domain/resume/resume-editor/sections/academic-info.cjs.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/academic-info.js +1 -1
- package/dist/components/domain/resume/resume-editor/sections/academic-info.js.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/activities.cjs +25 -11
- package/dist/components/domain/resume/resume-editor/sections/activities.cjs.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/activities.js +25 -11
- package/dist/components/domain/resume/resume-editor/sections/activities.js.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/certifications.cjs +27 -12
- package/dist/components/domain/resume/resume-editor/sections/certifications.cjs.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/certifications.js +27 -12
- package/dist/components/domain/resume/resume-editor/sections/certifications.js.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/education.cjs +25 -11
- package/dist/components/domain/resume/resume-editor/sections/education.cjs.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/education.js +25 -11
- package/dist/components/domain/resume/resume-editor/sections/education.js.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/experience.cjs +25 -11
- package/dist/components/domain/resume/resume-editor/sections/experience.cjs.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/experience.js +25 -11
- package/dist/components/domain/resume/resume-editor/sections/experience.js.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/personal-info.cjs +1 -1
- package/dist/components/domain/resume/resume-editor/sections/personal-info.cjs.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/personal-info.js +1 -1
- package/dist/components/domain/resume/resume-editor/sections/personal-info.js.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/preferences.cjs +2 -2
- package/dist/components/domain/resume/resume-editor/sections/preferences.cjs.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/preferences.js +2 -2
- package/dist/components/domain/resume/resume-editor/sections/preferences.js.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/requirements.cjs +19 -11
- package/dist/components/domain/resume/resume-editor/sections/requirements.cjs.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/requirements.js +29 -12
- package/dist/components/domain/resume/resume-editor/sections/requirements.js.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/skills.cjs +30 -10
- package/dist/components/domain/resume/resume-editor/sections/skills.cjs.map +1 -1
- package/dist/components/domain/resume/resume-editor/sections/skills.js +30 -10
- package/dist/components/domain/resume/resume-editor/sections/skills.js.map +1 -1
- package/dist/components/domain/resume/resume-preview/resume-preview.cjs +27 -11
- package/dist/components/domain/resume/resume-preview/resume-preview.cjs.map +1 -1
- package/dist/components/domain/resume/resume-preview/resume-preview.js +27 -11
- package/dist/components/domain/resume/resume-preview/resume-preview.js.map +1 -1
- package/dist/components/domain/resume/resume-preview/sections/contact-skills.cjs +31 -15
- package/dist/components/domain/resume/resume-preview/sections/contact-skills.cjs.map +1 -1
- package/dist/components/domain/resume/resume-preview/sections/contact-skills.js +31 -15
- package/dist/components/domain/resume/resume-preview/sections/contact-skills.js.map +1 -1
- package/dist/components/domain/resume/resume-preview/sections/experience-education.cjs +131 -73
- package/dist/components/domain/resume/resume-preview/sections/experience-education.cjs.map +1 -1
- package/dist/components/domain/resume/resume-preview/sections/experience-education.d.cts +1 -1
- package/dist/components/domain/resume/resume-preview/sections/experience-education.d.ts +1 -1
- package/dist/components/domain/resume/resume-preview/sections/experience-education.js +131 -73
- package/dist/components/domain/resume/resume-preview/sections/experience-education.js.map +1 -1
- package/dist/components/domain/resume/resume-preview/sections/footer-preview.cjs +2 -2
- package/dist/components/domain/resume/resume-preview/sections/footer-preview.cjs.map +1 -1
- package/dist/components/domain/resume/resume-preview/sections/footer-preview.js +2 -2
- package/dist/components/domain/resume/resume-preview/sections/footer-preview.js.map +1 -1
- package/dist/components/domain/resume/resume-preview/sections/header-preview.cjs +7 -7
- package/dist/components/domain/resume/resume-preview/sections/header-preview.cjs.map +1 -1
- package/dist/components/domain/resume/resume-preview/sections/header-preview.js +7 -7
- package/dist/components/domain/resume/resume-preview/sections/header-preview.js.map +1 -1
- package/dist/components/domain/resume/resume.cjs +46 -29
- package/dist/components/domain/resume/resume.cjs.map +1 -1
- package/dist/components/domain/resume/resume.js +46 -29
- package/dist/components/domain/resume/resume.js.map +1 -1
- package/dist/components/ui/accordion/accordion.cjs +1 -3
- package/dist/components/ui/accordion/accordion.cjs.map +1 -1
- package/dist/components/ui/accordion/accordion.js +1 -3
- package/dist/components/ui/accordion/accordion.js.map +1 -1
- package/dist/components/ui/alert/alert.cjs +12 -25
- package/dist/components/ui/alert/alert.cjs.map +1 -1
- package/dist/components/ui/alert/alert.js +12 -25
- package/dist/components/ui/alert/alert.js.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.cjs +12 -46
- package/dist/components/ui/alert-dialog/alert-dialog.cjs.map +1 -1
- package/dist/components/ui/alert-dialog/alert-dialog.js +12 -46
- package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/ui/autocomplete/autocomplete.cjs +12 -12
- package/dist/components/ui/autocomplete/autocomplete.cjs.map +1 -1
- package/dist/components/ui/autocomplete/autocomplete.js +12 -12
- package/dist/components/ui/autocomplete/autocomplete.js.map +1 -1
- package/dist/components/ui/avatar/avatar.cjs +1 -4
- package/dist/components/ui/avatar/avatar.cjs.map +1 -1
- package/dist/components/ui/avatar/avatar.js +1 -4
- package/dist/components/ui/avatar/avatar.js.map +1 -1
- package/dist/components/ui/badge/badge.cjs +1 -8
- package/dist/components/ui/badge/badge.cjs.map +1 -1
- package/dist/components/ui/badge/badge.js +1 -8
- package/dist/components/ui/badge/badge.js.map +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.cjs +6 -19
- package/dist/components/ui/breadcrumb/breadcrumb.cjs.map +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.js +6 -19
- package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/ui/button/button.cjs.map +1 -1
- package/dist/components/ui/button/button.js.map +1 -1
- package/dist/components/ui/calendar/calendar.cjs +1 -6
- package/dist/components/ui/calendar/calendar.cjs.map +1 -1
- package/dist/components/ui/calendar/calendar.js +1 -6
- package/dist/components/ui/calendar/calendar.js.map +1 -1
- package/dist/components/ui/card/card.cjs +7 -17
- package/dist/components/ui/card/card.cjs.map +1 -1
- package/dist/components/ui/card/card.js +7 -17
- package/dist/components/ui/card/card.js.map +1 -1
- package/dist/components/ui/carousel/carousel.cjs +4 -11
- package/dist/components/ui/carousel/carousel.cjs.map +1 -1
- package/dist/components/ui/carousel/carousel.js +4 -11
- package/dist/components/ui/carousel/carousel.js.map +1 -1
- package/dist/components/ui/checkbox/checkbox.cjs +1 -7
- package/dist/components/ui/checkbox/checkbox.cjs.map +1 -1
- package/dist/components/ui/checkbox/checkbox.js +1 -7
- package/dist/components/ui/checkbox/checkbox.js.map +1 -1
- package/dist/components/ui/collapsible/collapsible.cjs.map +1 -1
- package/dist/components/ui/collapsible/collapsible.js.map +1 -1
- package/dist/components/ui/combobox/combobox.cjs +1 -3
- package/dist/components/ui/combobox/combobox.cjs.map +1 -1
- package/dist/components/ui/combobox/combobox.js +1 -3
- package/dist/components/ui/combobox/combobox.js.map +1 -1
- package/dist/components/ui/command/command.cjs +7 -24
- package/dist/components/ui/command/command.cjs.map +1 -1
- package/dist/components/ui/command/command.js +7 -24
- package/dist/components/ui/command/command.js.map +1 -1
- package/dist/components/ui/context-menu/context-menu.cjs +4 -18
- package/dist/components/ui/context-menu/context-menu.cjs.map +1 -1
- package/dist/components/ui/context-menu/context-menu.js +4 -18
- package/dist/components/ui/context-menu/context-menu.js.map +1 -1
- package/dist/components/ui/date-picker/date-picker.cjs +21 -57
- package/dist/components/ui/date-picker/date-picker.cjs.map +1 -1
- package/dist/components/ui/date-picker/date-picker.js +22 -62
- package/dist/components/ui/date-picker/date-picker.js.map +1 -1
- package/dist/components/ui/dialog/dialog.cjs +12 -29
- package/dist/components/ui/dialog/dialog.cjs.map +1 -1
- package/dist/components/ui/dialog/dialog.js +12 -29
- package/dist/components/ui/dialog/dialog.js.map +1 -1
- package/dist/components/ui/drawer/drawer.cjs +9 -23
- package/dist/components/ui/drawer/drawer.cjs.map +1 -1
- package/dist/components/ui/drawer/drawer.js +9 -23
- package/dist/components/ui/drawer/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.cjs +3 -16
- package/dist/components/ui/dropdown-menu/dropdown-menu.cjs.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +3 -16
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/ui/form/form.cjs +7 -24
- package/dist/components/ui/form/form.cjs.map +1 -1
- package/dist/components/ui/form/form.js +7 -24
- package/dist/components/ui/form/form.js.map +1 -1
- package/dist/components/ui/hover-card/hover-card.cjs +2 -6
- package/dist/components/ui/hover-card/hover-card.cjs.map +1 -1
- package/dist/components/ui/hover-card/hover-card.js +2 -6
- package/dist/components/ui/hover-card/hover-card.js.map +1 -1
- package/dist/components/ui/icon/icon.cjs +1 -1
- package/dist/components/ui/icon/icon.cjs.map +1 -1
- package/dist/components/ui/icon/icon.js +1 -1
- package/dist/components/ui/icon/icon.js.map +1 -1
- package/dist/components/ui/input/input.cjs +1 -1
- package/dist/components/ui/input/input.cjs.map +1 -1
- package/dist/components/ui/input/input.js +1 -1
- package/dist/components/ui/input/input.js.map +1 -1
- package/dist/components/ui/input-field/input-field.cjs +1 -1
- package/dist/components/ui/input-field/input-field.cjs.map +1 -1
- package/dist/components/ui/input-field/input-field.js +1 -1
- package/dist/components/ui/input-field/input-field.js.map +1 -1
- package/dist/components/ui/input-otp/input-otp.cjs +5 -15
- package/dist/components/ui/input-otp/input-otp.cjs.map +1 -1
- package/dist/components/ui/input-otp/input-otp.js +5 -15
- package/dist/components/ui/input-otp/input-otp.js.map +1 -1
- package/dist/components/ui/label/label.cjs +2 -5
- package/dist/components/ui/label/label.cjs.map +1 -1
- package/dist/components/ui/label/label.js +2 -5
- package/dist/components/ui/label/label.js.map +1 -1
- package/dist/components/ui/loading-state/loading-state.cjs +3 -8
- package/dist/components/ui/loading-state/loading-state.cjs.map +1 -1
- package/dist/components/ui/loading-state/loading-state.d.cts +1 -1
- package/dist/components/ui/loading-state/loading-state.d.ts +1 -1
- package/dist/components/ui/loading-state/loading-state.js +3 -8
- package/dist/components/ui/loading-state/loading-state.js.map +1 -1
- package/dist/components/ui/menubar/menubar.cjs +5 -21
- package/dist/components/ui/menubar/menubar.cjs.map +1 -1
- package/dist/components/ui/menubar/menubar.js +5 -21
- package/dist/components/ui/menubar/menubar.js.map +1 -1
- package/dist/components/ui/month-year-picker/month-year-picker.cjs +5 -23
- package/dist/components/ui/month-year-picker/month-year-picker.cjs.map +1 -1
- package/dist/components/ui/month-year-picker/month-year-picker.js +6 -28
- package/dist/components/ui/month-year-picker/month-year-picker.js.map +1 -1
- package/dist/components/ui/multi-select/multi-select.cjs +12 -29
- package/dist/components/ui/multi-select/multi-select.cjs.map +1 -1
- package/dist/components/ui/multi-select/multi-select.js +12 -29
- package/dist/components/ui/multi-select/multi-select.js.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.cjs +7 -13
- package/dist/components/ui/navigation-menu/navigation-menu.cjs.map +1 -1
- package/dist/components/ui/navigation-menu/navigation-menu.js +7 -13
- package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination/pagination.cjs +4 -18
- package/dist/components/ui/pagination/pagination.cjs.map +1 -1
- package/dist/components/ui/pagination/pagination.js +4 -18
- package/dist/components/ui/pagination/pagination.js.map +1 -1
- package/dist/components/ui/popover/popover.cjs.map +1 -1
- package/dist/components/ui/popover/popover.js.map +1 -1
- package/dist/components/ui/progress/progress.cjs +2 -2
- package/dist/components/ui/progress/progress.cjs.map +1 -1
- package/dist/components/ui/progress/progress.js +2 -2
- package/dist/components/ui/progress/progress.js.map +1 -1
- package/dist/components/ui/radio-group/radio-group.cjs +1 -8
- package/dist/components/ui/radio-group/radio-group.cjs.map +1 -1
- package/dist/components/ui/radio-group/radio-group.js +1 -8
- package/dist/components/ui/radio-group/radio-group.js.map +1 -1
- package/dist/components/ui/resizable/resizable.cjs +3 -6
- package/dist/components/ui/resizable/resizable.cjs.map +1 -1
- package/dist/components/ui/resizable/resizable.js +4 -11
- package/dist/components/ui/resizable/resizable.js.map +1 -1
- package/dist/components/ui/rich-text-editor/rich-text-editor.cjs +25 -37
- package/dist/components/ui/rich-text-editor/rich-text-editor.cjs.map +1 -1
- package/dist/components/ui/rich-text-editor/rich-text-editor.js +25 -37
- package/dist/components/ui/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.cjs.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/ui/section-loader/section-loader.cjs +4 -15
- package/dist/components/ui/section-loader/section-loader.cjs.map +1 -1
- package/dist/components/ui/section-loader/section-loader.js +4 -15
- package/dist/components/ui/section-loader/section-loader.js.map +1 -1
- package/dist/components/ui/select/select.cjs +11 -29
- package/dist/components/ui/select/select.cjs.map +1 -1
- package/dist/components/ui/select/select.js +11 -29
- package/dist/components/ui/select/select.js.map +1 -1
- package/dist/components/ui/separator/separator.cjs +14 -16
- package/dist/components/ui/separator/separator.cjs.map +1 -1
- package/dist/components/ui/separator/separator.js +14 -16
- package/dist/components/ui/separator/separator.js.map +1 -1
- package/dist/components/ui/sheet/sheet.cjs +10 -24
- package/dist/components/ui/sheet/sheet.cjs.map +1 -1
- package/dist/components/ui/sheet/sheet.js +10 -24
- package/dist/components/ui/sheet/sheet.js.map +1 -1
- package/dist/components/ui/skeleton/skeleton.cjs +2 -11
- package/dist/components/ui/skeleton/skeleton.cjs.map +1 -1
- package/dist/components/ui/skeleton/skeleton.js +2 -11
- package/dist/components/ui/skeleton/skeleton.js.map +1 -1
- package/dist/components/ui/slider/slider.cjs +1 -4
- package/dist/components/ui/slider/slider.cjs.map +1 -1
- package/dist/components/ui/slider/slider.js +1 -4
- package/dist/components/ui/slider/slider.js.map +1 -1
- package/dist/components/ui/sonner/sonner.cjs.map +1 -1
- package/dist/components/ui/sonner/sonner.js.map +1 -1
- package/dist/components/ui/spinner/spinner.cjs +1 -1
- package/dist/components/ui/spinner/spinner.cjs.map +1 -1
- package/dist/components/ui/spinner/spinner.js +1 -1
- package/dist/components/ui/spinner/spinner.js.map +1 -1
- package/dist/components/ui/switch/switch.cjs.map +1 -1
- package/dist/components/ui/switch/switch.js.map +1 -1
- package/dist/components/ui/table/table.cjs +6 -28
- package/dist/components/ui/table/table.cjs.map +1 -1
- package/dist/components/ui/table/table.js +6 -28
- package/dist/components/ui/table/table.js.map +1 -1
- package/dist/components/ui/tabs/tabs.cjs.map +1 -1
- package/dist/components/ui/tabs/tabs.js.map +1 -1
- package/dist/components/ui/textarea/textarea.cjs +1 -4
- package/dist/components/ui/textarea/textarea.cjs.map +1 -1
- package/dist/components/ui/textarea/textarea.js +1 -4
- package/dist/components/ui/textarea/textarea.js.map +1 -1
- package/dist/components/ui/toast/toast.cjs +3 -12
- package/dist/components/ui/toast/toast.cjs.map +1 -1
- package/dist/components/ui/toast/toast.js +3 -12
- package/dist/components/ui/toast/toast.js.map +1 -1
- package/dist/components/ui/toggle/toggle.cjs.map +1 -1
- package/dist/components/ui/toggle/toggle.js.map +1 -1
- package/dist/components/ui/toggle-group/toggle-group.cjs +1 -4
- package/dist/components/ui/toggle-group/toggle-group.cjs.map +1 -1
- package/dist/components/ui/toggle-group/toggle-group.js +1 -4
- package/dist/components/ui/toggle-group/toggle-group.js.map +1 -1
- package/dist/components/ui/tooltip/tooltip.cjs.map +1 -1
- package/dist/components/ui/tooltip/tooltip.js.map +1 -1
- package/package.json +1 -1
|
@@ -15,10 +15,7 @@ function Pagination({ className, ...props }) {
|
|
|
15
15
|
}
|
|
16
16
|
);
|
|
17
17
|
}
|
|
18
|
-
function PaginationContent({
|
|
19
|
-
className,
|
|
20
|
-
...props
|
|
21
|
-
}) {
|
|
18
|
+
function PaginationContent({ className, ...props }) {
|
|
22
19
|
return /* @__PURE__ */ jsx(
|
|
23
20
|
"ul",
|
|
24
21
|
{
|
|
@@ -28,18 +25,10 @@ function PaginationContent({
|
|
|
28
25
|
}
|
|
29
26
|
);
|
|
30
27
|
}
|
|
31
|
-
function PaginationItem({
|
|
32
|
-
className,
|
|
33
|
-
...props
|
|
34
|
-
}) {
|
|
28
|
+
function PaginationItem({ className, ...props }) {
|
|
35
29
|
return /* @__PURE__ */ jsx("li", { "data-slot": "pagination-item", className: cn("", className), ...props });
|
|
36
30
|
}
|
|
37
|
-
function PaginationLink({
|
|
38
|
-
className,
|
|
39
|
-
isActive,
|
|
40
|
-
size = "icon",
|
|
41
|
-
...props
|
|
42
|
-
}) {
|
|
31
|
+
function PaginationLink({ className, isActive, size = "icon", ...props }) {
|
|
43
32
|
return /* @__PURE__ */ jsx(
|
|
44
33
|
"a",
|
|
45
34
|
{
|
|
@@ -88,10 +77,7 @@ function PaginationNext({
|
|
|
88
77
|
}
|
|
89
78
|
);
|
|
90
79
|
}
|
|
91
|
-
function PaginationEllipsis({
|
|
92
|
-
className,
|
|
93
|
-
...props
|
|
94
|
-
}) {
|
|
80
|
+
function PaginationEllipsis({ className, ...props }) {
|
|
95
81
|
return /* @__PURE__ */ jsxs(
|
|
96
82
|
"span",
|
|
97
83
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/ui/pagination/pagination.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from \"lucide-react\";\n\nimport { cn } from \"../../../lib/utils\";\nimport { Button, buttonVariants } from \"../button\";\n\nfunction Pagination({ className, ...props }: React.ComponentProps<\"nav\">) {\n return (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n data-slot=\"pagination\"\n className={cn(\"mx-auto flex w-full justify-center\", className)}\n {...props}\n />\n );\n}\n\nfunction PaginationContent({
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/pagination/pagination.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from \"lucide-react\";\n\nimport { cn } from \"../../../lib/utils\";\nimport { Button, buttonVariants } from \"../button\";\n\nfunction Pagination({ className, ...props }: React.ComponentProps<\"nav\">) {\n return (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n data-slot=\"pagination\"\n className={cn(\"mx-auto flex w-full justify-center\", className)}\n {...props}\n />\n );\n}\n\nfunction PaginationContent({ className, ...props }: React.ComponentProps<\"ul\">) {\n return (\n <ul\n data-slot=\"pagination-content\"\n className={cn(\"flex flex-row items-center gap-1\", className)}\n {...props}\n />\n );\n}\n\nfunction PaginationItem({ className, ...props }: React.ComponentProps<\"li\">) {\n return <li data-slot=\"pagination-item\" className={cn(\"\", className)} {...props} />;\n}\n\ntype PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<React.ComponentProps<typeof Button>, \"size\"> &\n React.ComponentProps<\"a\">;\n\nfunction PaginationLink({ className, isActive, size = \"icon\", ...props }: PaginationLinkProps) {\n return (\n <a\n aria-current={isActive ? \"page\" : undefined}\n data-slot=\"pagination-link\"\n className={cn(buttonVariants({ variant: isActive ? \"default\" : \"ghost\", size }), className)}\n {...props}\n />\n );\n}\n\nfunction PaginationPrevious({\n className,\n size = \"default\",\n ...props\n}: React.ComponentProps<typeof PaginationLink>) {\n return (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size={size}\n className={cn(\"gap-1 pl-2.5\", className)}\n {...props}\n >\n <ChevronLeft className=\"h-4 w-4\" />\n <span>Previous</span>\n </PaginationLink>\n );\n}\n\nfunction PaginationNext({\n className,\n size = \"default\",\n ...props\n}: React.ComponentProps<typeof PaginationLink>) {\n return (\n <PaginationLink\n aria-label=\"Go to next page\"\n size={size}\n className={cn(\"gap-1 pr-2.5\", className)}\n {...props}\n >\n <span>Next</span>\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n );\n}\n\nfunction PaginationEllipsis({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n aria-hidden\n data-slot=\"pagination-ellipsis\"\n className={cn(\"flex h-9 w-9 items-center justify-center\", className)}\n {...props}\n >\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n );\n}\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n"],"mappings":";AAUI,cA8CA,YA9CA;AAPJ,SAAS,aAAa,cAAc,sBAAsB;AAE1D,SAAS,UAAU;AACnB,SAAiB,sBAAsB;AAEvC,SAAS,WAAW,EAAE,WAAW,GAAG,MAAM,GAAgC;AACxE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,cAAW;AAAA,MACX,aAAU;AAAA,MACV,WAAW,GAAG,sCAAsC,SAAS;AAAA,MAC5D,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,SAAS,kBAAkB,EAAE,WAAW,GAAG,MAAM,GAA+B;AAC9E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,oCAAoC,SAAS;AAAA,MAC1D,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,SAAS,eAAe,EAAE,WAAW,GAAG,MAAM,GAA+B;AAC3E,SAAO,oBAAC,QAAG,aAAU,mBAAkB,WAAW,GAAG,IAAI,SAAS,GAAI,GAAG,OAAO;AAClF;AAOA,SAAS,eAAe,EAAE,WAAW,UAAU,OAAO,QAAQ,GAAG,MAAM,GAAwB;AAC7F,SACE;AAAA,IAAC;AAAA;AAAA,MACC,gBAAc,WAAW,SAAS;AAAA,MAClC,aAAU;AAAA,MACV,WAAW,GAAG,eAAe,EAAE,SAAS,WAAW,YAAY,SAAS,KAAK,CAAC,GAAG,SAAS;AAAA,MACzF,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,SAAS,mBAAmB;AAAA,EAC1B;AAAA,EACA,OAAO;AAAA,EACP,GAAG;AACL,GAAgD;AAC9C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAW;AAAA,MACX;AAAA,MACA,WAAW,GAAG,gBAAgB,SAAS;AAAA,MACtC,GAAG;AAAA,MAEJ;AAAA,4BAAC,eAAY,WAAU,WAAU;AAAA,QACjC,oBAAC,UAAK,sBAAQ;AAAA;AAAA;AAAA,EAChB;AAEJ;AAEA,SAAS,eAAe;AAAA,EACtB;AAAA,EACA,OAAO;AAAA,EACP,GAAG;AACL,GAAgD;AAC9C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAW;AAAA,MACX;AAAA,MACA,WAAW,GAAG,gBAAgB,SAAS;AAAA,MACtC,GAAG;AAAA,MAEJ;AAAA,4BAAC,UAAK,kBAAI;AAAA,QACV,oBAAC,gBAAa,WAAU,WAAU;AAAA;AAAA;AAAA,EACpC;AAEJ;AAEA,SAAS,mBAAmB,EAAE,WAAW,GAAG,MAAM,GAAiC;AACjF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW;AAAA,MACX,aAAU;AAAA,MACV,WAAW,GAAG,4CAA4C,SAAS;AAAA,MAClE,GAAG;AAAA,MAEJ;AAAA,4BAAC,kBAAe,WAAU,WAAU;AAAA,QACpC,oBAAC,UAAK,WAAU,WAAU,wBAAU;AAAA;AAAA;AAAA,EACtC;AAEJ;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/ui/popover/popover.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\n\nimport { cn } from \"../../../lib/utils\";\n\nconst Popover: typeof PopoverPrimitive.Root = PopoverPrimitive.Root;\n\nconst PopoverTrigger: typeof PopoverPrimitive.Trigger = PopoverPrimitive.Trigger;\n\nconst PopoverContent = React.forwardRef<\n
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/popover/popover.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\n\nimport { cn } from \"../../../lib/utils\";\n\nconst Popover: typeof PopoverPrimitive.Root = PopoverPrimitive.Root;\n\nconst PopoverTrigger: typeof PopoverPrimitive.Trigger = PopoverPrimitive.Trigger;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverTrigger, PopoverContent };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBI;AAdJ,YAAuB;AACvB,uBAAkC;AAElC,mBAAmB;AAEnB,MAAM,UAAwC,iBAAiB;AAE/D,MAAM,iBAAkD,iBAAiB;AAEzE,MAAM,iBAAiB,MAAM,WAG3B,CAAC,EAAE,WAAW,QAAQ,UAAU,aAAa,GAAG,GAAG,MAAM,GAAG,QAC5D,4CAAC,iBAAiB,QAAjB,EACC;AAAA,EAAC,iBAAiB;AAAA,EAAjB;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA,eAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN,GACF,CACD;AACD,eAAe,cAAc,iBAAiB,QAAQ;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/ui/popover/popover.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\n\nimport { cn } from \"../../../lib/utils\";\n\nconst Popover: typeof PopoverPrimitive.Root = PopoverPrimitive.Root;\n\nconst PopoverTrigger: typeof PopoverPrimitive.Trigger = PopoverPrimitive.Trigger;\n\nconst PopoverContent = React.forwardRef<\n
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/popover/popover.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\n\nimport { cn } from \"../../../lib/utils\";\n\nconst Popover: typeof PopoverPrimitive.Root = PopoverPrimitive.Root;\n\nconst PopoverTrigger: typeof PopoverPrimitive.Trigger = PopoverPrimitive.Trigger;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverTrigger, PopoverContent };\n"],"mappings":";AAgBI;AAdJ,YAAY,WAAW;AACvB,YAAY,sBAAsB;AAElC,SAAS,UAAU;AAEnB,MAAM,UAAwC,iBAAiB;AAE/D,MAAM,iBAAkD,iBAAiB;AAEzE,MAAM,iBAAiB,MAAM,WAG3B,CAAC,EAAE,WAAW,QAAQ,UAAU,aAAa,GAAG,GAAG,MAAM,GAAG,QAC5D,oBAAC,iBAAiB,QAAjB,EACC;AAAA,EAAC,iBAAiB;AAAA,EAAjB;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN,GACF,CACD;AACD,eAAe,cAAc,iBAAiB,QAAQ;","names":[]}
|
|
@@ -50,7 +50,7 @@ function Progress({
|
|
|
50
50
|
"div",
|
|
51
51
|
{
|
|
52
52
|
className: (0, import_utils.cn)(
|
|
53
|
-
"w-full
|
|
53
|
+
"w-full overflow-hidden rounded-full bg-gray-200",
|
|
54
54
|
sizeClasses[size],
|
|
55
55
|
className
|
|
56
56
|
),
|
|
@@ -67,7 +67,7 @@ function Progress({
|
|
|
67
67
|
)
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
|
-
showText && text && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-gray-500
|
|
70
|
+
showText && text && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "mt-1 text-center text-xs text-gray-500", children: text })
|
|
71
71
|
] });
|
|
72
72
|
}
|
|
73
73
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/ui/progress/progress.tsx"],"sourcesContent":["import { cn } from \"../../../lib/utils\";\n\ninterface ProgressProps {\n
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/progress/progress.tsx"],"sourcesContent":["import { cn } from \"../../../lib/utils\";\n\ninterface ProgressProps {\n className?: string;\n value?: number;\n max?: number;\n size?: \"sm\" | \"md\" | \"lg\";\n variant?: \"default\" | \"success\" | \"warning\" | \"destructive\";\n animated?: boolean;\n text?: string;\n showText?: boolean;\n}\n\nconst sizeClasses = {\n sm: \"h-1\",\n md: \"h-2\",\n lg: \"h-3\",\n};\n\nconst variantClasses = {\n default: \"bg-primary\",\n success: \"bg-green-500\",\n warning: \"bg-yellow-500\",\n destructive: \"bg-red-500\",\n};\n\nfunction Progress({\n className,\n value = 0,\n max = 100,\n size = \"md\",\n variant = \"default\",\n animated = false,\n text,\n showText = false,\n}: ProgressProps) {\n const percentage = Math.min(Math.max((value / max) * 100, 0), 100);\n\n return (\n <div className=\"w-full\">\n <div\n className={cn(\n \"w-full overflow-hidden rounded-full bg-gray-200\",\n sizeClasses[size],\n className,\n )}\n >\n <div\n className={cn(\n \"h-full transition-all duration-300 ease-in-out\",\n variantClasses[variant],\n animated && \"animate-pulse\",\n )}\n style={{ width: `${percentage}%` }}\n />\n </div>\n {showText && text && <p className=\"mt-1 text-center text-xs text-gray-500\">{text}</p>}\n </div>\n );\n}\n\nexport { Progress };\nexport type { ProgressProps };\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAuCI;AAvCJ,mBAAmB;AAanB,MAAM,cAAc;AAAA,EAClB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEA,MAAM,iBAAiB;AAAA,EACrB,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,aAAa;AACf;AAEA,SAAS,SAAS;AAAA,EAChB;AAAA,EACA,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,OAAO;AAAA,EACP,UAAU;AAAA,EACV,WAAW;AAAA,EACX;AAAA,EACA,WAAW;AACb,GAAkB;AAChB,QAAM,aAAa,KAAK,IAAI,KAAK,IAAK,QAAQ,MAAO,KAAK,CAAC,GAAG,GAAG;AAEjE,SACE,6CAAC,SAAI,WAAU,UACb;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,eAAW;AAAA,UACT;AAAA,UACA,YAAY,IAAI;AAAA,UAChB;AAAA,QACF;AAAA,QAEA;AAAA,UAAC;AAAA;AAAA,YACC,eAAW;AAAA,cACT;AAAA,cACA,eAAe,OAAO;AAAA,cACtB,YAAY;AAAA,YACd;AAAA,YACA,OAAO,EAAE,OAAO,GAAG,UAAU,IAAI;AAAA;AAAA,QACnC;AAAA;AAAA,IACF;AAAA,IACC,YAAY,QAAQ,4CAAC,OAAE,WAAU,0CAA0C,gBAAK;AAAA,KACnF;AAEJ;","names":[]}
|
|
@@ -27,7 +27,7 @@ function Progress({
|
|
|
27
27
|
"div",
|
|
28
28
|
{
|
|
29
29
|
className: cn(
|
|
30
|
-
"w-full
|
|
30
|
+
"w-full overflow-hidden rounded-full bg-gray-200",
|
|
31
31
|
sizeClasses[size],
|
|
32
32
|
className
|
|
33
33
|
),
|
|
@@ -44,7 +44,7 @@ function Progress({
|
|
|
44
44
|
)
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
|
-
showText && text && /* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500
|
|
47
|
+
showText && text && /* @__PURE__ */ jsx("p", { className: "mt-1 text-center text-xs text-gray-500", children: text })
|
|
48
48
|
] });
|
|
49
49
|
}
|
|
50
50
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/ui/progress/progress.tsx"],"sourcesContent":["import { cn } from \"../../../lib/utils\";\n\ninterface ProgressProps {\n
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/progress/progress.tsx"],"sourcesContent":["import { cn } from \"../../../lib/utils\";\n\ninterface ProgressProps {\n className?: string;\n value?: number;\n max?: number;\n size?: \"sm\" | \"md\" | \"lg\";\n variant?: \"default\" | \"success\" | \"warning\" | \"destructive\";\n animated?: boolean;\n text?: string;\n showText?: boolean;\n}\n\nconst sizeClasses = {\n sm: \"h-1\",\n md: \"h-2\",\n lg: \"h-3\",\n};\n\nconst variantClasses = {\n default: \"bg-primary\",\n success: \"bg-green-500\",\n warning: \"bg-yellow-500\",\n destructive: \"bg-red-500\",\n};\n\nfunction Progress({\n className,\n value = 0,\n max = 100,\n size = \"md\",\n variant = \"default\",\n animated = false,\n text,\n showText = false,\n}: ProgressProps) {\n const percentage = Math.min(Math.max((value / max) * 100, 0), 100);\n\n return (\n <div className=\"w-full\">\n <div\n className={cn(\n \"w-full overflow-hidden rounded-full bg-gray-200\",\n sizeClasses[size],\n className,\n )}\n >\n <div\n className={cn(\n \"h-full transition-all duration-300 ease-in-out\",\n variantClasses[variant],\n animated && \"animate-pulse\",\n )}\n style={{ width: `${percentage}%` }}\n />\n </div>\n {showText && text && <p className=\"mt-1 text-center text-xs text-gray-500\">{text}</p>}\n </div>\n );\n}\n\nexport { Progress };\nexport type { ProgressProps };\n"],"mappings":"AAuCI,SAQI,KARJ;AAvCJ,SAAS,UAAU;AAanB,MAAM,cAAc;AAAA,EAClB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEA,MAAM,iBAAiB;AAAA,EACrB,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,aAAa;AACf;AAEA,SAAS,SAAS;AAAA,EAChB;AAAA,EACA,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,OAAO;AAAA,EACP,UAAU;AAAA,EACV,WAAW;AAAA,EACX;AAAA,EACA,WAAW;AACb,GAAkB;AAChB,QAAM,aAAa,KAAK,IAAI,KAAK,IAAK,QAAQ,MAAO,KAAK,CAAC,GAAG,GAAG;AAEjE,SACE,qBAAC,SAAI,WAAU,UACb;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,WAAW;AAAA,UACT;AAAA,UACA,YAAY,IAAI;AAAA,UAChB;AAAA,QACF;AAAA,QAEA;AAAA,UAAC;AAAA;AAAA,YACC,WAAW;AAAA,cACT;AAAA,cACA,eAAe,OAAO;AAAA,cACtB,YAAY;AAAA,YACd;AAAA,YACA,OAAO,EAAE,OAAO,GAAG,UAAU,IAAI;AAAA;AAAA,QACnC;AAAA;AAAA,IACF;AAAA,IACC,YAAY,QAAQ,oBAAC,OAAE,WAAU,0CAA0C,gBAAK;AAAA,KACnF;AAEJ;","names":[]}
|
|
@@ -39,14 +39,7 @@ var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
|
|
|
39
39
|
var import_lucide_react = require("lucide-react");
|
|
40
40
|
var import_utils = require("../../../lib/utils");
|
|
41
41
|
const RadioGroup = React.forwardRef(({ className, ...props }, ref) => {
|
|
42
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
|
-
RadioGroupPrimitive.Root,
|
|
44
|
-
{
|
|
45
|
-
className: (0, import_utils.cn)("grid gap-2", className),
|
|
46
|
-
...props,
|
|
47
|
-
ref
|
|
48
|
-
}
|
|
49
|
-
);
|
|
42
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RadioGroupPrimitive.Root, { className: (0, import_utils.cn)("grid gap-2", className), ...props, ref });
|
|
50
43
|
});
|
|
51
44
|
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
52
45
|
const RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/ui/radio-group/radio-group.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as RadioGroupPrimitive from \"@radix-ui/react-radio-group\";\nimport { Circle } from \"lucide-react\";\n\nimport { cn } from \"../../../lib/utils\";\n\nconst RadioGroup = React.forwardRef<\n
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/radio-group/radio-group.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as RadioGroupPrimitive from \"@radix-ui/react-radio-group\";\nimport { Circle } from \"lucide-react\";\n\nimport { cn } from \"../../../lib/utils\";\n\nconst RadioGroup = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => {\n return <RadioGroupPrimitive.Root className={cn(\"grid gap-2\", className)} {...props} ref={ref} />;\n});\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n \"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n <Circle className=\"h-2.5 w-2.5 fill-current text-current\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n );\n});\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\nexport { RadioGroup, RadioGroupItem };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYS;AAVT,YAAuB;AACvB,0BAAqC;AACrC,0BAAuB;AAEvB,mBAAmB;AAEnB,MAAM,aAAa,MAAM,WAGvB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAAQ;AAClC,SAAO,4CAAC,oBAAoB,MAApB,EAAyB,eAAW,iBAAG,cAAc,SAAS,GAAI,GAAG,OAAO,KAAU;AAChG,CAAC;AACD,WAAW,cAAc,oBAAoB,KAAK;AAElD,MAAM,iBAAiB,MAAM,WAG3B,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAAQ;AAClC,SACE;AAAA,IAAC,oBAAoB;AAAA,IAApB;AAAA,MACC;AAAA,MACA,eAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEJ,sDAAC,oBAAoB,WAApB,EAA8B,WAAU,oCACvC,sDAAC,8BAAO,WAAU,yCAAwC,GAC5D;AAAA;AAAA,EACF;AAEJ,CAAC;AACD,eAAe,cAAc,oBAAoB,KAAK;","names":[]}
|
|
@@ -5,14 +5,7 @@ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
|
5
5
|
import { Circle } from "lucide-react";
|
|
6
6
|
import { cn } from "../../../lib/utils";
|
|
7
7
|
const RadioGroup = React.forwardRef(({ className, ...props }, ref) => {
|
|
8
|
-
return /* @__PURE__ */ jsx(
|
|
9
|
-
RadioGroupPrimitive.Root,
|
|
10
|
-
{
|
|
11
|
-
className: cn("grid gap-2", className),
|
|
12
|
-
...props,
|
|
13
|
-
ref
|
|
14
|
-
}
|
|
15
|
-
);
|
|
8
|
+
return /* @__PURE__ */ jsx(RadioGroupPrimitive.Root, { className: cn("grid gap-2", className), ...props, ref });
|
|
16
9
|
});
|
|
17
10
|
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
18
11
|
const RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/ui/radio-group/radio-group.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as RadioGroupPrimitive from \"@radix-ui/react-radio-group\";\nimport { Circle } from \"lucide-react\";\n\nimport { cn } from \"../../../lib/utils\";\n\nconst RadioGroup = React.forwardRef<\n
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/radio-group/radio-group.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as RadioGroupPrimitive from \"@radix-ui/react-radio-group\";\nimport { Circle } from \"lucide-react\";\n\nimport { cn } from \"../../../lib/utils\";\n\nconst RadioGroup = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => {\n return <RadioGroupPrimitive.Root className={cn(\"grid gap-2\", className)} {...props} ref={ref} />;\n});\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n \"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n <Circle className=\"h-2.5 w-2.5 fill-current text-current\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n );\n});\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\nexport { RadioGroup, RadioGroupItem };\n"],"mappings":";AAYS;AAVT,YAAY,WAAW;AACvB,YAAY,yBAAyB;AACrC,SAAS,cAAc;AAEvB,SAAS,UAAU;AAEnB,MAAM,aAAa,MAAM,WAGvB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAAQ;AAClC,SAAO,oBAAC,oBAAoB,MAApB,EAAyB,WAAW,GAAG,cAAc,SAAS,GAAI,GAAG,OAAO,KAAU;AAChG,CAAC;AACD,WAAW,cAAc,oBAAoB,KAAK;AAElD,MAAM,iBAAiB,MAAM,WAG3B,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAAQ;AAClC,SACE;AAAA,IAAC,oBAAoB;AAAA,IAApB;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEJ,8BAAC,oBAAoB,WAApB,EAA8B,WAAU,oCACvC,8BAAC,UAAO,WAAU,yCAAwC,GAC5D;AAAA;AAAA,EACF;AAEJ,CAAC;AACD,eAAe,cAAc,oBAAoB,KAAK;","names":[]}
|
|
@@ -36,10 +36,7 @@ function ResizablePanelGroup({
|
|
|
36
36
|
import_react_resizable_panels.Group,
|
|
37
37
|
{
|
|
38
38
|
"data-slot": "resizable-panel-group",
|
|
39
|
-
className: (0, import_utils.cn)(
|
|
40
|
-
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
41
|
-
className
|
|
42
|
-
),
|
|
39
|
+
className: (0, import_utils.cn)("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
|
|
43
40
|
...props
|
|
44
41
|
}
|
|
45
42
|
);
|
|
@@ -57,11 +54,11 @@ function ResizableHandle({
|
|
|
57
54
|
{
|
|
58
55
|
"data-slot": "resizable-handle",
|
|
59
56
|
className: (0, import_utils.cn)(
|
|
60
|
-
"
|
|
57
|
+
"focus-visible:outline-hidden relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
61
58
|
className
|
|
62
59
|
),
|
|
63
60
|
...props,
|
|
64
|
-
children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "
|
|
61
|
+
children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.GripVerticalIcon, { className: "size-2.5" }) })
|
|
65
62
|
}
|
|
66
63
|
);
|
|
67
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/ui/resizable/resizable.tsx"],"sourcesContent":["\"use client\";\n\nimport { GripVerticalIcon } from \"lucide-react\";\nimport {
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/resizable/resizable.tsx"],"sourcesContent":["\"use client\";\n\nimport { GripVerticalIcon } from \"lucide-react\";\nimport { Group, Panel, Separator } from \"react-resizable-panels\";\n\nimport { cn } from \"../../../lib/utils\";\n\nfunction ResizablePanelGroup({\n className,\n ...props\n}: React.ComponentProps<typeof Group> & { direction: \"horizontal\" | \"vertical\" }) {\n return (\n <Group\n data-slot=\"resizable-panel-group\"\n className={cn(\"flex h-full w-full data-[panel-group-direction=vertical]:flex-col\", className)}\n {...(props as any)}\n />\n );\n}\n\nfunction ResizablePanel({ ...props }: React.ComponentProps<typeof Panel>) {\n return <Panel data-slot=\"resizable-panel\" {...props} />;\n}\n\nfunction ResizableHandle({\n withHandle,\n className,\n ...props\n}: React.ComponentProps<typeof Separator> & {\n withHandle?: boolean;\n}) {\n return (\n <Separator\n data-slot=\"resizable-handle\"\n className={cn(\n \"focus-visible:outline-hidden relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90\",\n className,\n )}\n {...props}\n >\n {withHandle && (\n <div className=\"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border\">\n <GripVerticalIcon className=\"size-2.5\" />\n </div>\n )}\n </Separator>\n );\n}\n\nexport { ResizablePanelGroup, ResizablePanel, ResizableHandle };\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYI;AAVJ,0BAAiC;AACjC,oCAAwC;AAExC,mBAAmB;AAEnB,SAAS,oBAAoB;AAAA,EAC3B;AAAA,EACA,GAAG;AACL,GAAkF;AAChF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,eAAW,iBAAG,qEAAqE,SAAS;AAAA,MAC3F,GAAI;AAAA;AAAA,EACP;AAEJ;AAEA,SAAS,eAAe,EAAE,GAAG,MAAM,GAAuC;AACxE,SAAO,4CAAC,uCAAM,aAAU,mBAAmB,GAAG,OAAO;AACvD;AAEA,SAAS,gBAAgB;AAAA,EACvB;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAEG;AACD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,eAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH,wBACC,4CAAC,SAAI,WAAU,6EACb,sDAAC,wCAAiB,WAAU,YAAW,GACzC;AAAA;AAAA,EAEJ;AAEJ;","names":[]}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { GripVerticalIcon } from "lucide-react";
|
|
4
|
-
import {
|
|
5
|
-
Group,
|
|
6
|
-
Panel,
|
|
7
|
-
Separator
|
|
8
|
-
} from "react-resizable-panels";
|
|
4
|
+
import { Group, Panel, Separator } from "react-resizable-panels";
|
|
9
5
|
import { cn } from "../../../lib/utils";
|
|
10
6
|
function ResizablePanelGroup({
|
|
11
7
|
className,
|
|
@@ -15,10 +11,7 @@ function ResizablePanelGroup({
|
|
|
15
11
|
Group,
|
|
16
12
|
{
|
|
17
13
|
"data-slot": "resizable-panel-group",
|
|
18
|
-
className: cn(
|
|
19
|
-
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
20
|
-
className
|
|
21
|
-
),
|
|
14
|
+
className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
|
|
22
15
|
...props
|
|
23
16
|
}
|
|
24
17
|
);
|
|
@@ -36,11 +29,11 @@ function ResizableHandle({
|
|
|
36
29
|
{
|
|
37
30
|
"data-slot": "resizable-handle",
|
|
38
31
|
className: cn(
|
|
39
|
-
"
|
|
32
|
+
"focus-visible:outline-hidden relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
40
33
|
className
|
|
41
34
|
),
|
|
42
35
|
...props,
|
|
43
|
-
children: withHandle && /* @__PURE__ */ jsx("div", { className: "
|
|
36
|
+
children: withHandle && /* @__PURE__ */ jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx(GripVerticalIcon, { className: "size-2.5" }) })
|
|
44
37
|
}
|
|
45
38
|
);
|
|
46
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/ui/resizable/resizable.tsx"],"sourcesContent":["\"use client\";\n\nimport { GripVerticalIcon } from \"lucide-react\";\nimport {
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ui/resizable/resizable.tsx"],"sourcesContent":["\"use client\";\n\nimport { GripVerticalIcon } from \"lucide-react\";\nimport { Group, Panel, Separator } from \"react-resizable-panels\";\n\nimport { cn } from \"../../../lib/utils\";\n\nfunction ResizablePanelGroup({\n className,\n ...props\n}: React.ComponentProps<typeof Group> & { direction: \"horizontal\" | \"vertical\" }) {\n return (\n <Group\n data-slot=\"resizable-panel-group\"\n className={cn(\"flex h-full w-full data-[panel-group-direction=vertical]:flex-col\", className)}\n {...(props as any)}\n />\n );\n}\n\nfunction ResizablePanel({ ...props }: React.ComponentProps<typeof Panel>) {\n return <Panel data-slot=\"resizable-panel\" {...props} />;\n}\n\nfunction ResizableHandle({\n withHandle,\n className,\n ...props\n}: React.ComponentProps<typeof Separator> & {\n withHandle?: boolean;\n}) {\n return (\n <Separator\n data-slot=\"resizable-handle\"\n className={cn(\n \"focus-visible:outline-hidden relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90\",\n className,\n )}\n {...props}\n >\n {withHandle && (\n <div className=\"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border\">\n <GripVerticalIcon className=\"size-2.5\" />\n </div>\n )}\n </Separator>\n );\n}\n\nexport { ResizablePanelGroup, ResizablePanel, ResizableHandle };\n"],"mappings":";AAYI;AAVJ,SAAS,wBAAwB;AACjC,SAAS,OAAO,OAAO,iBAAiB;AAExC,SAAS,UAAU;AAEnB,SAAS,oBAAoB;AAAA,EAC3B;AAAA,EACA,GAAG;AACL,GAAkF;AAChF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,qEAAqE,SAAS;AAAA,MAC3F,GAAI;AAAA;AAAA,EACP;AAEJ;AAEA,SAAS,eAAe,EAAE,GAAG,MAAM,GAAuC;AACxE,SAAO,oBAAC,SAAM,aAAU,mBAAmB,GAAG,OAAO;AACvD;AAEA,SAAS,gBAAgB;AAAA,EACvB;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAEG;AACD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH,wBACC,oBAAC,SAAI,WAAU,6EACb,8BAAC,oBAAiB,WAAU,YAAW,GACzC;AAAA;AAAA,EAEJ;AAEJ;","names":[]}
|
|
@@ -57,8 +57,8 @@ function ToolbarButton({
|
|
|
57
57
|
onClick,
|
|
58
58
|
title,
|
|
59
59
|
className: (0, import_utils.cn)(
|
|
60
|
-
"p-2
|
|
61
|
-
isActive ? "bg-primary text-primary-foreground" : "hover:bg-muted
|
|
60
|
+
"rounded p-2 transition-colors",
|
|
61
|
+
isActive ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-muted"
|
|
62
62
|
),
|
|
63
63
|
children
|
|
64
64
|
}
|
|
@@ -111,34 +111,22 @@ function RichTextEditor({
|
|
|
111
111
|
}
|
|
112
112
|
}, [value, editor]);
|
|
113
113
|
if (!editor) {
|
|
114
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
115
|
-
"div",
|
|
116
|
-
{
|
|
117
|
-
className: (0, import_utils.cn)(
|
|
118
|
-
"border border-border rounded-lg overflow-hidden",
|
|
119
|
-
className
|
|
120
|
-
),
|
|
121
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-32 bg-muted rounded animate-pulse flex items-center justify-center text-muted-foreground", children: "Cargando editor..." })
|
|
122
|
-
}
|
|
123
|
-
);
|
|
114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_utils.cn)("overflow-hidden rounded-lg border border-border", className), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex h-32 animate-pulse items-center justify-center rounded bg-muted text-muted-foreground", children: "Cargando editor..." }) });
|
|
124
115
|
}
|
|
125
116
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
126
117
|
"div",
|
|
127
118
|
{
|
|
128
119
|
"data-slot": "rich-text-editor",
|
|
129
|
-
className: (0, import_utils.cn)(
|
|
130
|
-
"border border-border rounded-lg overflow-hidden",
|
|
131
|
-
className
|
|
132
|
-
),
|
|
120
|
+
className: (0, import_utils.cn)("overflow-hidden rounded-lg border border-border", className),
|
|
133
121
|
children: [
|
|
134
|
-
!readOnly && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "border-b border-border bg-muted/50 p-2
|
|
122
|
+
!readOnly && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-wrap gap-1 border-b border-border bg-muted/50 p-2", children: [
|
|
135
123
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
136
124
|
ToolbarButton,
|
|
137
125
|
{
|
|
138
126
|
onClick: () => editor.chain().focus().toggleHeading({ level: 1 }).run(),
|
|
139
127
|
title: "T\xEDtulo 1",
|
|
140
128
|
isActive: editor.isActive("heading", { level: 1 }),
|
|
141
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Heading1, { className: "
|
|
129
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Heading1, { className: "h-4 w-4" })
|
|
142
130
|
}
|
|
143
131
|
),
|
|
144
132
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -147,7 +135,7 @@ function RichTextEditor({
|
|
|
147
135
|
onClick: () => editor.chain().focus().toggleHeading({ level: 2 }).run(),
|
|
148
136
|
title: "T\xEDtulo 2",
|
|
149
137
|
isActive: editor.isActive("heading", { level: 2 }),
|
|
150
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Heading2, { className: "
|
|
138
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Heading2, { className: "h-4 w-4" })
|
|
151
139
|
}
|
|
152
140
|
),
|
|
153
141
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -156,17 +144,17 @@ function RichTextEditor({
|
|
|
156
144
|
onClick: () => editor.chain().focus().toggleHeading({ level: 3 }).run(),
|
|
157
145
|
title: "T\xEDtulo 3",
|
|
158
146
|
isActive: editor.isActive("heading", { level: 3 }),
|
|
159
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Heading3, { className: "
|
|
147
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Heading3, { className: "h-4 w-4" })
|
|
160
148
|
}
|
|
161
149
|
),
|
|
162
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "
|
|
150
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mx-1 h-6 w-px bg-border" }),
|
|
163
151
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
164
152
|
ToolbarButton,
|
|
165
153
|
{
|
|
166
154
|
onClick: () => editor.chain().focus().toggleBold().run(),
|
|
167
155
|
title: "Negrita",
|
|
168
156
|
isActive: editor.isActive("bold"),
|
|
169
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Bold, { className: "
|
|
157
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Bold, { className: "h-4 w-4" })
|
|
170
158
|
}
|
|
171
159
|
),
|
|
172
160
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -175,7 +163,7 @@ function RichTextEditor({
|
|
|
175
163
|
onClick: () => editor.chain().focus().toggleItalic().run(),
|
|
176
164
|
title: "Cursiva",
|
|
177
165
|
isActive: editor.isActive("italic"),
|
|
178
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Italic, { className: "
|
|
166
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Italic, { className: "h-4 w-4" })
|
|
179
167
|
}
|
|
180
168
|
),
|
|
181
169
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -184,29 +172,29 @@ function RichTextEditor({
|
|
|
184
172
|
onClick: () => editor.chain().focus().toggleStrike().run(),
|
|
185
173
|
title: "Tachado",
|
|
186
174
|
isActive: editor.isActive("strike"),
|
|
187
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Strikethrough, { className: "
|
|
175
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Strikethrough, { className: "h-4 w-4" })
|
|
188
176
|
}
|
|
189
177
|
),
|
|
190
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "
|
|
178
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mx-1 h-6 w-px bg-border" }),
|
|
191
179
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
192
180
|
"input",
|
|
193
181
|
{
|
|
194
182
|
type: "color",
|
|
195
|
-
className: "
|
|
183
|
+
className: "h-8 w-8 cursor-pointer rounded border border-border",
|
|
196
184
|
onChange: (e) => {
|
|
197
185
|
editor.chain().focus().setColor(e.target.value).run();
|
|
198
186
|
},
|
|
199
187
|
title: "Color del texto"
|
|
200
188
|
}
|
|
201
189
|
) }),
|
|
202
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "
|
|
190
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mx-1 h-6 w-px bg-border" }),
|
|
203
191
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
204
192
|
ToolbarButton,
|
|
205
193
|
{
|
|
206
194
|
onClick: () => editor.chain().focus().toggleBulletList().run(),
|
|
207
195
|
title: "Lista con vi\xF1etas",
|
|
208
196
|
isActive: editor.isActive("bulletList"),
|
|
209
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.List, { className: "
|
|
197
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.List, { className: "h-4 w-4" })
|
|
210
198
|
}
|
|
211
199
|
),
|
|
212
200
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -215,17 +203,17 @@ function RichTextEditor({
|
|
|
215
203
|
onClick: () => editor.chain().focus().toggleOrderedList().run(),
|
|
216
204
|
title: "Lista numerada",
|
|
217
205
|
isActive: editor.isActive("orderedList"),
|
|
218
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ListOrdered, { className: "
|
|
206
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ListOrdered, { className: "h-4 w-4" })
|
|
219
207
|
}
|
|
220
208
|
),
|
|
221
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "
|
|
209
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mx-1 h-6 w-px bg-border" }),
|
|
222
210
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
223
211
|
ToolbarButton,
|
|
224
212
|
{
|
|
225
213
|
onClick: () => editor.chain().focus().setTextAlign("left").run(),
|
|
226
214
|
title: "Alinear izquierda",
|
|
227
215
|
isActive: editor.isActive({ textAlign: "left" }),
|
|
228
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.AlignLeft, { className: "
|
|
216
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.AlignLeft, { className: "h-4 w-4" })
|
|
229
217
|
}
|
|
230
218
|
),
|
|
231
219
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -234,7 +222,7 @@ function RichTextEditor({
|
|
|
234
222
|
onClick: () => editor.chain().focus().setTextAlign("center").run(),
|
|
235
223
|
title: "Centrar",
|
|
236
224
|
isActive: editor.isActive({ textAlign: "center" }),
|
|
237
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.AlignCenter, { className: "
|
|
225
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.AlignCenter, { className: "h-4 w-4" })
|
|
238
226
|
}
|
|
239
227
|
),
|
|
240
228
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -243,10 +231,10 @@ function RichTextEditor({
|
|
|
243
231
|
onClick: () => editor.chain().focus().setTextAlign("right").run(),
|
|
244
232
|
title: "Alinear derecha",
|
|
245
233
|
isActive: editor.isActive({ textAlign: "right" }),
|
|
246
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.AlignRight, { className: "
|
|
234
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.AlignRight, { className: "h-4 w-4" })
|
|
247
235
|
}
|
|
248
236
|
),
|
|
249
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "
|
|
237
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mx-1 h-6 w-px bg-border" }),
|
|
250
238
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
251
239
|
ToolbarButton,
|
|
252
240
|
{
|
|
@@ -258,7 +246,7 @@ function RichTextEditor({
|
|
|
258
246
|
},
|
|
259
247
|
title: "Insertar enlace",
|
|
260
248
|
isActive: editor.isActive("link"),
|
|
261
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Link, { className: "
|
|
249
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Link, { className: "h-4 w-4" })
|
|
262
250
|
}
|
|
263
251
|
),
|
|
264
252
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -271,7 +259,7 @@ function RichTextEditor({
|
|
|
271
259
|
}
|
|
272
260
|
},
|
|
273
261
|
title: "Insertar imagen",
|
|
274
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Image, { className: "
|
|
262
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Image, { className: "h-4 w-4" })
|
|
275
263
|
}
|
|
276
264
|
)
|
|
277
265
|
] }),
|
|
@@ -279,7 +267,7 @@ function RichTextEditor({
|
|
|
279
267
|
import_react2.EditorContent,
|
|
280
268
|
{
|
|
281
269
|
editor,
|
|
282
|
-
className: "prose prose-sm max-w-none p-3
|
|
270
|
+
className: "prose prose-sm max-w-none bg-card p-3",
|
|
283
271
|
style: { minHeight: `${height}px` }
|
|
284
272
|
}
|
|
285
273
|
)
|