brutx-ui-vue 0.5.7 → 0.6.0
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/LICENSE +21 -0
- package/dist/Calendar-B-Z2anQm.js +68 -0
- package/dist/Calendar-DR3TKZ9f.cjs +1 -0
- package/dist/SubmitButton-C_oe6_T1.cjs +1 -0
- package/dist/SubmitButton-NWn4lPox.js +166 -0
- package/dist/brutalism-plugin.cjs +1 -0
- package/dist/brutalism-plugin.js +180 -1
- package/dist/brutx-ui-vue.css +2 -1
- package/dist/calendar.cjs +1 -0
- package/dist/calendar.js +2 -1
- package/dist/chunk-C6qsp3rV.cjs +1 -0
- package/dist/components/accordion/Accordion.vue.d.ts +7 -11
- package/dist/components/accordion/Accordion.vue.d.ts.map +1 -1
- package/dist/components/accordion/AccordionContent.vue.d.ts +7 -11
- package/dist/components/accordion/AccordionContent.vue.d.ts.map +1 -1
- package/dist/components/accordion/AccordionItem.vue.d.ts +7 -11
- package/dist/components/accordion/AccordionItem.vue.d.ts.map +1 -1
- package/dist/components/accordion/AccordionTrigger.vue.d.ts +9 -12
- package/dist/components/accordion/AccordionTrigger.vue.d.ts.map +1 -1
- package/dist/components/activity-log-page/ActivityLogPage.vue.d.ts +12 -14
- package/dist/components/activity-log-page/ActivityLogPage.vue.d.ts.map +1 -1
- package/dist/components/alert/Alert.vue.d.ts +8 -12
- package/dist/components/alert/Alert.vue.d.ts.map +1 -1
- package/dist/components/alert/AlertDescription.vue.d.ts +7 -11
- package/dist/components/alert/AlertDescription.vue.d.ts.map +1 -1
- package/dist/components/alert/AlertTitle.vue.d.ts +7 -11
- package/dist/components/alert/AlertTitle.vue.d.ts.map +1 -1
- package/dist/components/alert-dialog/AlertDialogAction.vue.d.ts +7 -11
- package/dist/components/alert-dialog/AlertDialogAction.vue.d.ts.map +1 -1
- package/dist/components/alert-dialog/AlertDialogCancel.vue.d.ts +7 -11
- package/dist/components/alert-dialog/AlertDialogCancel.vue.d.ts.map +1 -1
- package/dist/components/alert-dialog/AlertDialogContent.vue.d.ts +7 -11
- package/dist/components/alert-dialog/AlertDialogContent.vue.d.ts.map +1 -1
- package/dist/components/alert-dialog/AlertDialogDescription.vue.d.ts +7 -11
- package/dist/components/alert-dialog/AlertDialogDescription.vue.d.ts.map +1 -1
- package/dist/components/alert-dialog/AlertDialogFooter.vue.d.ts +7 -11
- package/dist/components/alert-dialog/AlertDialogFooter.vue.d.ts.map +1 -1
- package/dist/components/alert-dialog/AlertDialogHeader.vue.d.ts +7 -11
- package/dist/components/alert-dialog/AlertDialogHeader.vue.d.ts.map +1 -1
- package/dist/components/alert-dialog/AlertDialogTitle.vue.d.ts +7 -11
- package/dist/components/alert-dialog/AlertDialogTitle.vue.d.ts.map +1 -1
- package/dist/components/auth-card/AuthCard.vue.d.ts +3 -2
- package/dist/components/auth-card/AuthCard.vue.d.ts.map +1 -1
- package/dist/components/avatar/Avatar.vue.d.ts +7 -11
- package/dist/components/avatar/Avatar.vue.d.ts.map +1 -1
- package/dist/components/avatar/AvatarFallback.vue.d.ts +7 -11
- package/dist/components/avatar/AvatarFallback.vue.d.ts.map +1 -1
- package/dist/components/avatar/AvatarImage.vue.d.ts +2 -1
- package/dist/components/avatar/AvatarImage.vue.d.ts.map +1 -1
- package/dist/components/badge/Badge.vue.d.ts +8 -12
- package/dist/components/badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/before-after/BeforeAfter.vue.d.ts +3 -2
- package/dist/components/before-after/BeforeAfter.vue.d.ts.map +1 -1
- package/dist/components/blog-card/BlogCard.vue.d.ts +8 -12
- package/dist/components/blog-card/BlogCard.vue.d.ts.map +1 -1
- package/dist/components/blog-list-page/BlogListPage.vue.d.ts +12 -14
- package/dist/components/blog-list-page/BlogListPage.vue.d.ts.map +1 -1
- package/dist/components/breadcrumb/Breadcrumb.vue.d.ts +8 -12
- package/dist/components/breadcrumb/Breadcrumb.vue.d.ts.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbEllipsis.vue.d.ts +8 -12
- package/dist/components/breadcrumb/BreadcrumbEllipsis.vue.d.ts.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbItem.vue.d.ts +8 -12
- package/dist/components/breadcrumb/BreadcrumbItem.vue.d.ts.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbLink.vue.d.ts +7 -11
- package/dist/components/breadcrumb/BreadcrumbLink.vue.d.ts.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbList.vue.d.ts +8 -12
- package/dist/components/breadcrumb/BreadcrumbList.vue.d.ts.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbPage.vue.d.ts +8 -12
- package/dist/components/breadcrumb/BreadcrumbPage.vue.d.ts.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbSeparator.vue.d.ts +8 -12
- package/dist/components/breadcrumb/BreadcrumbSeparator.vue.d.ts.map +1 -1
- package/dist/components/brutalist-hero/BrutalistHero.vue.d.ts +3 -2
- package/dist/components/brutalist-hero/BrutalistHero.vue.d.ts.map +1 -1
- package/dist/components/button/Button.vue.d.ts +7 -11
- package/dist/components/button/Button.vue.d.ts.map +1 -1
- package/dist/components/calendar/Calendar.vue.d.ts +2 -1
- package/dist/components/calendar/Calendar.vue.d.ts.map +1 -1
- package/dist/components/card/Card.vue.d.ts +8 -12
- package/dist/components/card/Card.vue.d.ts.map +1 -1
- package/dist/components/card/CardContent.vue.d.ts +7 -11
- package/dist/components/card/CardContent.vue.d.ts.map +1 -1
- package/dist/components/card/CardDescription.vue.d.ts +7 -11
- package/dist/components/card/CardDescription.vue.d.ts.map +1 -1
- package/dist/components/card/CardFooter.vue.d.ts +7 -11
- package/dist/components/card/CardFooter.vue.d.ts.map +1 -1
- package/dist/components/card/CardHeader.vue.d.ts +7 -11
- package/dist/components/card/CardHeader.vue.d.ts.map +1 -1
- package/dist/components/card/CardTitle.vue.d.ts +7 -11
- package/dist/components/card/CardTitle.vue.d.ts.map +1 -1
- package/dist/components/card-3d/Card3D.vue.d.ts +8 -16
- package/dist/components/card-3d/Card3D.vue.d.ts.map +1 -1
- package/dist/components/carousel/Carousel.vue.d.ts +8 -16
- package/dist/components/carousel/Carousel.vue.d.ts.map +1 -1
- package/dist/components/carousel/CarouselItem.vue.d.ts +7 -11
- package/dist/components/carousel/CarouselItem.vue.d.ts.map +1 -1
- package/dist/components/chart-section/ChartSection.vue.d.ts +12 -14
- package/dist/components/chart-section/ChartSection.vue.d.ts.map +1 -1
- package/dist/components/chat-bubble/ChatBubble.vue.d.ts +8 -12
- package/dist/components/chat-bubble/ChatBubble.vue.d.ts.map +1 -1
- package/dist/components/checkbox/Checkbox.vue.d.ts +2 -1
- package/dist/components/checkbox/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/code-block/CodeBlock.vue.d.ts +8 -12
- package/dist/components/code-block/CodeBlock.vue.d.ts.map +1 -1
- package/dist/components/combobox/Combobox.vue.d.ts +3 -2
- package/dist/components/combobox/Combobox.vue.d.ts.map +1 -1
- package/dist/components/combobox/ComboboxMulti.vue.d.ts +3 -2
- package/dist/components/combobox/ComboboxMulti.vue.d.ts.map +1 -1
- package/dist/components/command/Command.vue.d.ts +7 -11
- package/dist/components/command/Command.vue.d.ts.map +1 -1
- package/dist/components/command/CommandDialog.vue.d.ts +7 -11
- package/dist/components/command/CommandDialog.vue.d.ts.map +1 -1
- package/dist/components/command/CommandEmpty.vue.d.ts +7 -11
- package/dist/components/command/CommandEmpty.vue.d.ts.map +1 -1
- package/dist/components/command/CommandGroup.vue.d.ts +7 -11
- package/dist/components/command/CommandGroup.vue.d.ts.map +1 -1
- package/dist/components/command/CommandInput.vue.d.ts +4 -3
- package/dist/components/command/CommandInput.vue.d.ts.map +1 -1
- package/dist/components/command/CommandItem.vue.d.ts +8 -16
- package/dist/components/command/CommandItem.vue.d.ts.map +1 -1
- package/dist/components/command/CommandList.vue.d.ts +7 -11
- package/dist/components/command/CommandList.vue.d.ts.map +1 -1
- package/dist/components/command/CommandSeparator.vue.d.ts +2 -1
- package/dist/components/command/CommandSeparator.vue.d.ts.map +1 -1
- package/dist/components/command/CommandShortcut.vue.d.ts +7 -11
- package/dist/components/command/CommandShortcut.vue.d.ts.map +1 -1
- package/dist/components/cookie-consent/CookieConsent.vue.d.ts +8 -12
- package/dist/components/cookie-consent/CookieConsent.vue.d.ts.map +1 -1
- package/dist/components/copy-to-clipboard/CopyToClipboard.vue.d.ts +10 -14
- package/dist/components/copy-to-clipboard/CopyToClipboard.vue.d.ts.map +1 -1
- package/dist/components/counter/Counter.vue.d.ts +3 -5
- package/dist/components/counter/Counter.vue.d.ts.map +1 -1
- package/dist/components/dashboard-shell/DashboardShell.vue.d.ts +12 -14
- package/dist/components/dashboard-shell/DashboardShell.vue.d.ts.map +1 -1
- package/dist/components/dashboard-stats/DashboardStats.vue.d.ts +3 -2
- package/dist/components/dashboard-stats/DashboardStats.vue.d.ts.map +1 -1
- package/dist/components/data-table-section/DataTableSection.vue.d.ts +12 -14
- package/dist/components/data-table-section/DataTableSection.vue.d.ts.map +1 -1
- package/dist/components/dialog/DialogContent.vue.d.ts +7 -11
- package/dist/components/dialog/DialogContent.vue.d.ts.map +1 -1
- package/dist/components/dialog/DialogDescription.vue.d.ts +7 -11
- package/dist/components/dialog/DialogDescription.vue.d.ts.map +1 -1
- package/dist/components/dialog/DialogFooter.vue.d.ts +7 -11
- package/dist/components/dialog/DialogFooter.vue.d.ts.map +1 -1
- package/dist/components/dialog/DialogHeader.vue.d.ts +7 -11
- package/dist/components/dialog/DialogHeader.vue.d.ts.map +1 -1
- package/dist/components/dialog/DialogOverlay.vue.d.ts +2 -1
- package/dist/components/dialog/DialogOverlay.vue.d.ts.map +1 -1
- package/dist/components/dialog/DialogTitle.vue.d.ts +7 -11
- package/dist/components/dialog/DialogTitle.vue.d.ts.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +7 -11
- package/dist/components/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuContent.vue.d.ts +7 -11
- package/dist/components/dropdown-menu/DropdownMenuContent.vue.d.ts.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuItem.vue.d.ts +7 -11
- package/dist/components/dropdown-menu/DropdownMenuItem.vue.d.ts.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuLabel.vue.d.ts +7 -11
- package/dist/components/dropdown-menu/DropdownMenuLabel.vue.d.ts.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +7 -11
- package/dist/components/dropdown-menu/DropdownMenuRadioItem.vue.d.ts.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuSeparator.vue.d.ts +2 -1
- package/dist/components/dropdown-menu/DropdownMenuSeparator.vue.d.ts.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuShortcut.vue.d.ts +7 -11
- package/dist/components/dropdown-menu/DropdownMenuShortcut.vue.d.ts.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuSubContent.vue.d.ts +7 -11
- package/dist/components/dropdown-menu/DropdownMenuSubContent.vue.d.ts.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +7 -11
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts.map +1 -1
- package/dist/components/empty-state/EmptyState.vue.d.ts +3 -2
- package/dist/components/empty-state/EmptyState.vue.d.ts.map +1 -1
- package/dist/components/error-card/ErrorCard.vue.d.ts +8 -12
- package/dist/components/error-card/ErrorCard.vue.d.ts.map +1 -1
- package/dist/components/faq-section/FaqSection.vue.d.ts +12 -14
- package/dist/components/faq-section/FaqSection.vue.d.ts.map +1 -1
- package/dist/components/feedback-form/FeedbackForm.vue.d.ts +12 -14
- package/dist/components/feedback-form/FeedbackForm.vue.d.ts.map +1 -1
- package/dist/components/file-card/FileCard.vue.d.ts +8 -12
- package/dist/components/file-card/FileCard.vue.d.ts.map +1 -1
- package/dist/components/footer-section/FooterSection.vue.d.ts +12 -14
- package/dist/components/footer-section/FooterSection.vue.d.ts.map +1 -1
- package/dist/components/form/Form.vue.d.ts +8 -12
- package/dist/components/form/Form.vue.d.ts.map +1 -1
- package/dist/components/form/FormControl.vue.d.ts +12 -16
- package/dist/components/form/FormControl.vue.d.ts.map +1 -1
- package/dist/components/form/FormDescription.vue.d.ts +7 -11
- package/dist/components/form/FormDescription.vue.d.ts.map +1 -1
- package/dist/components/form/FormField.vue.d.ts +7 -11
- package/dist/components/form/FormField.vue.d.ts.map +1 -1
- package/dist/components/form/FormItem.vue.d.ts +7 -11
- package/dist/components/form/FormItem.vue.d.ts.map +1 -1
- package/dist/components/form/FormLabel.vue.d.ts +7 -11
- package/dist/components/form/FormLabel.vue.d.ts.map +1 -1
- package/dist/components/form/FormMessage.vue.d.ts +2 -1
- package/dist/components/form/FormMessage.vue.d.ts.map +1 -1
- package/dist/components/gallery-section/GallerySection.vue.d.ts +12 -14
- package/dist/components/gallery-section/GallerySection.vue.d.ts.map +1 -1
- package/dist/components/glitch-text/GlitchText.vue.d.ts +8 -16
- package/dist/components/glitch-text/GlitchText.vue.d.ts.map +1 -1
- package/dist/components/hardcore-input/HardcoreInput.vue.d.ts +9 -13
- package/dist/components/hardcore-input/HardcoreInput.vue.d.ts.map +1 -1
- package/dist/components/header-section/HeaderSection.vue.d.ts +12 -14
- package/dist/components/header-section/HeaderSection.vue.d.ts.map +1 -1
- package/dist/components/input/Input.vue.d.ts +4 -3
- package/dist/components/input/Input.vue.d.ts.map +1 -1
- package/dist/components/kanban/KanbanBoard.vue.d.ts +8 -10
- package/dist/components/kanban/KanbanBoard.vue.d.ts.map +1 -1
- package/dist/components/kbd/Kbd.vue.d.ts +8 -12
- package/dist/components/kbd/Kbd.vue.d.ts.map +1 -1
- package/dist/components/label/Label.vue.d.ts +7 -11
- package/dist/components/label/Label.vue.d.ts.map +1 -1
- package/dist/components/loading-page/LoadingPage.vue.d.ts +12 -14
- package/dist/components/loading-page/LoadingPage.vue.d.ts.map +1 -1
- package/dist/components/marquee/Marquee.vue.d.ts +10 -13
- package/dist/components/marquee/Marquee.vue.d.ts.map +1 -1
- package/dist/components/not-found-page/NotFoundPage.vue.d.ts +12 -14
- package/dist/components/not-found-page/NotFoundPage.vue.d.ts.map +1 -1
- package/dist/components/number-input/NumberInput.vue.d.ts +2 -1
- package/dist/components/number-input/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/overview-page/OverviewPage.vue.d.ts +12 -14
- package/dist/components/overview-page/OverviewPage.vue.d.ts.map +1 -1
- package/dist/components/pagination/Pagination.vue.d.ts +3 -2
- package/dist/components/pagination/Pagination.vue.d.ts.map +1 -1
- package/dist/components/popover/PopoverContent.vue.d.ts +7 -11
- package/dist/components/popover/PopoverContent.vue.d.ts.map +1 -1
- package/dist/components/pricing-section/PricingSection.vue.d.ts +3 -2
- package/dist/components/pricing-section/PricingSection.vue.d.ts.map +1 -1
- package/dist/components/profile-page/ProfilePage.vue.d.ts +12 -14
- package/dist/components/profile-page/ProfilePage.vue.d.ts.map +1 -1
- package/dist/components/progress/Progress.vue.d.ts +2 -1
- package/dist/components/progress/Progress.vue.d.ts.map +1 -1
- package/dist/components/quick-actions/QuickActions.vue.d.ts +8 -12
- package/dist/components/quick-actions/QuickActions.vue.d.ts.map +1 -1
- package/dist/components/radio-group/RadioGroup.vue.d.ts +7 -11
- package/dist/components/radio-group/RadioGroup.vue.d.ts.map +1 -1
- package/dist/components/radio-group/RadioGroupItem.vue.d.ts +2 -1
- package/dist/components/radio-group/RadioGroupItem.vue.d.ts.map +1 -1
- package/dist/components/saas-pricing/SaaSPricing.vue.d.ts +3 -2
- package/dist/components/saas-pricing/SaaSPricing.vue.d.ts.map +1 -1
- package/dist/components/scratch-card/ScratchCard.vue.d.ts +8 -18
- package/dist/components/scratch-card/ScratchCard.vue.d.ts.map +1 -1
- package/dist/components/scroll-area/ScrollArea.vue.d.ts +7 -11
- package/dist/components/scroll-area/ScrollArea.vue.d.ts.map +1 -1
- package/dist/components/scroll-area/ScrollBar.vue.d.ts +2 -1
- package/dist/components/scroll-area/ScrollBar.vue.d.ts.map +1 -1
- package/dist/components/search-widget/SearchWidget.vue.d.ts +8 -12
- package/dist/components/search-widget/SearchWidget.vue.d.ts.map +1 -1
- package/dist/components/select/SelectContent.vue.d.ts +7 -11
- package/dist/components/select/SelectContent.vue.d.ts.map +1 -1
- package/dist/components/select/SelectItem.vue.d.ts +7 -11
- package/dist/components/select/SelectItem.vue.d.ts.map +1 -1
- package/dist/components/select/SelectLabel.vue.d.ts +7 -11
- package/dist/components/select/SelectLabel.vue.d.ts.map +1 -1
- package/dist/components/select/SelectScrollDownButton.vue.d.ts +2 -1
- package/dist/components/select/SelectScrollDownButton.vue.d.ts.map +1 -1
- package/dist/components/select/SelectScrollUpButton.vue.d.ts +2 -1
- package/dist/components/select/SelectScrollUpButton.vue.d.ts.map +1 -1
- package/dist/components/select/SelectSeparator.vue.d.ts +2 -1
- package/dist/components/select/SelectSeparator.vue.d.ts.map +1 -1
- package/dist/components/select/SelectTrigger.vue.d.ts +7 -11
- package/dist/components/select/SelectTrigger.vue.d.ts.map +1 -1
- package/dist/components/separator/Separator.vue.d.ts +7 -11
- package/dist/components/separator/Separator.vue.d.ts.map +1 -1
- package/dist/components/settings-page/SettingsPage.vue.d.ts +17 -17
- package/dist/components/settings-page/SettingsPage.vue.d.ts.map +1 -1
- package/dist/components/sheet/SheetContent.vue.d.ts +7 -11
- package/dist/components/sheet/SheetContent.vue.d.ts.map +1 -1
- package/dist/components/sheet/SheetDescription.vue.d.ts +7 -11
- package/dist/components/sheet/SheetDescription.vue.d.ts.map +1 -1
- package/dist/components/sheet/SheetFooter.vue.d.ts +7 -11
- package/dist/components/sheet/SheetFooter.vue.d.ts.map +1 -1
- package/dist/components/sheet/SheetHeader.vue.d.ts +7 -11
- package/dist/components/sheet/SheetHeader.vue.d.ts.map +1 -1
- package/dist/components/sheet/SheetTitle.vue.d.ts +7 -11
- package/dist/components/sheet/SheetTitle.vue.d.ts.map +1 -1
- package/dist/components/skeleton/Skeleton.vue.d.ts +8 -12
- package/dist/components/skeleton/Skeleton.vue.d.ts.map +1 -1
- package/dist/components/skeleton/SkeletonAvatar.vue.d.ts +3 -2
- package/dist/components/skeleton/SkeletonAvatar.vue.d.ts.map +1 -1
- package/dist/components/skeleton/SkeletonCard.vue.d.ts +3 -2
- package/dist/components/skeleton/SkeletonCard.vue.d.ts.map +1 -1
- package/dist/components/skeleton/SkeletonTable.vue.d.ts +3 -2
- package/dist/components/skeleton/SkeletonTable.vue.d.ts.map +1 -1
- package/dist/components/skeleton/SkeletonText.vue.d.ts +3 -2
- package/dist/components/skeleton/SkeletonText.vue.d.ts.map +1 -1
- package/dist/components/sketchy-chart/SketchyChart.vue.d.ts +4 -3
- package/dist/components/sketchy-chart/SketchyChart.vue.d.ts.map +1 -1
- package/dist/components/slider/Slider.vue.d.ts +2 -1
- package/dist/components/slider/Slider.vue.d.ts.map +1 -1
- package/dist/components/spinner/BarsSpinner.vue.d.ts +3 -2
- package/dist/components/spinner/BarsSpinner.vue.d.ts.map +1 -1
- package/dist/components/spinner/BlockSpinner.vue.d.ts +3 -2
- package/dist/components/spinner/BlockSpinner.vue.d.ts.map +1 -1
- package/dist/components/spinner/DotsSpinner.vue.d.ts +3 -2
- package/dist/components/spinner/DotsSpinner.vue.d.ts.map +1 -1
- package/dist/components/spinner/Spinner.vue.d.ts +3 -2
- package/dist/components/spinner/Spinner.vue.d.ts.map +1 -1
- package/dist/components/stepper/Stepper.vue.d.ts +8 -10
- package/dist/components/stepper/Stepper.vue.d.ts.map +1 -1
- package/dist/components/stepper-section/StepperSection.vue.d.ts +14 -15
- package/dist/components/stepper-section/StepperSection.vue.d.ts.map +1 -1
- package/dist/components/submit-button/SubmitButton.vue.d.ts +8 -12
- package/dist/components/submit-button/SubmitButton.vue.d.ts.map +1 -1
- package/dist/components/success-card/SuccessCard.vue.d.ts +8 -12
- package/dist/components/success-card/SuccessCard.vue.d.ts.map +1 -1
- package/dist/components/switch/Switch.vue.d.ts +2 -1
- package/dist/components/switch/Switch.vue.d.ts.map +1 -1
- package/dist/components/table/Table.vue.d.ts +7 -11
- package/dist/components/table/Table.vue.d.ts.map +1 -1
- package/dist/components/table/TableBody.vue.d.ts +7 -11
- package/dist/components/table/TableBody.vue.d.ts.map +1 -1
- package/dist/components/table/TableCaption.vue.d.ts +7 -11
- package/dist/components/table/TableCaption.vue.d.ts.map +1 -1
- package/dist/components/table/TableCell.vue.d.ts +7 -11
- package/dist/components/table/TableCell.vue.d.ts.map +1 -1
- package/dist/components/table/TableFooter.vue.d.ts +8 -12
- package/dist/components/table/TableFooter.vue.d.ts.map +1 -1
- package/dist/components/table/TableHead.vue.d.ts +8 -12
- package/dist/components/table/TableHead.vue.d.ts.map +1 -1
- package/dist/components/table/TableHeader.vue.d.ts +8 -12
- package/dist/components/table/TableHeader.vue.d.ts.map +1 -1
- package/dist/components/table/TableRow.vue.d.ts +7 -11
- package/dist/components/table/TableRow.vue.d.ts.map +1 -1
- package/dist/components/tabs/TabsContent.vue.d.ts +7 -11
- package/dist/components/tabs/TabsContent.vue.d.ts.map +1 -1
- package/dist/components/tabs/TabsList.vue.d.ts +7 -11
- package/dist/components/tabs/TabsList.vue.d.ts.map +1 -1
- package/dist/components/tabs/TabsTrigger.vue.d.ts +7 -11
- package/dist/components/tabs/TabsTrigger.vue.d.ts.map +1 -1
- package/dist/components/tabs-nav/TabsNav.vue.d.ts +12 -14
- package/dist/components/tabs-nav/TabsNav.vue.d.ts.map +1 -1
- package/dist/components/tags-input/TagsInput.vue.d.ts +7 -11
- package/dist/components/tags-input/TagsInput.vue.d.ts.map +1 -1
- package/dist/components/tags-input/TagsInputInput.vue.d.ts +2 -1
- package/dist/components/tags-input/TagsInputInput.vue.d.ts.map +1 -1
- package/dist/components/tags-input/TagsInputItem.vue.d.ts +7 -11
- package/dist/components/tags-input/TagsInputItem.vue.d.ts.map +1 -1
- package/dist/components/tags-input/TagsInputItemDelete.vue.d.ts +7 -11
- package/dist/components/tags-input/TagsInputItemDelete.vue.d.ts.map +1 -1
- package/dist/components/tags-input/TagsInputItemText.vue.d.ts +7 -11
- package/dist/components/tags-input/TagsInputItemText.vue.d.ts.map +1 -1
- package/dist/components/testimonial-card/TestimonialCard.vue.d.ts +8 -12
- package/dist/components/testimonial-card/TestimonialCard.vue.d.ts.map +1 -1
- package/dist/components/textarea/Textarea.vue.d.ts +4 -3
- package/dist/components/textarea/Textarea.vue.d.ts.map +1 -1
- package/dist/components/timeline/Timeline.vue.d.ts +8 -12
- package/dist/components/timeline/Timeline.vue.d.ts.map +1 -1
- package/dist/components/timeline/TimelineConnector.vue.d.ts +3 -2
- package/dist/components/timeline/TimelineConnector.vue.d.ts.map +1 -1
- package/dist/components/timeline/TimelineContent.vue.d.ts +8 -12
- package/dist/components/timeline/TimelineContent.vue.d.ts.map +1 -1
- package/dist/components/timeline/TimelineDot.vue.d.ts +8 -12
- package/dist/components/timeline/TimelineDot.vue.d.ts.map +1 -1
- package/dist/components/timeline/TimelineItem.vue.d.ts +8 -12
- package/dist/components/timeline/TimelineItem.vue.d.ts.map +1 -1
- package/dist/components/timeline/TimelineSeparator.vue.d.ts +8 -12
- package/dist/components/timeline/TimelineSeparator.vue.d.ts.map +1 -1
- package/dist/components/toast/Toast.vue.d.ts +8 -12
- package/dist/components/toast/Toast.vue.d.ts.map +1 -1
- package/dist/components/toast/ToastContainer.vue.d.ts +8 -12
- package/dist/components/toast/ToastContainer.vue.d.ts.map +1 -1
- package/dist/components/toggle/Toggle.vue.d.ts +7 -11
- package/dist/components/toggle/Toggle.vue.d.ts.map +1 -1
- package/dist/components/toggle-group/ToggleGroup.vue.d.ts +7 -11
- package/dist/components/toggle-group/ToggleGroup.vue.d.ts.map +1 -1
- package/dist/components/toggle-group/ToggleGroupItem.vue.d.ts +7 -11
- package/dist/components/toggle-group/ToggleGroupItem.vue.d.ts.map +1 -1
- package/dist/components/tooltip/TooltipContent.vue.d.ts +7 -11
- package/dist/components/tooltip/TooltipContent.vue.d.ts.map +1 -1
- package/dist/components/tree-view/TreeView.vue.d.ts +3 -2
- package/dist/components/tree-view/TreeView.vue.d.ts.map +1 -1
- package/dist/components/tree-view/TreeViewNode.vue.d.ts +3 -2
- package/dist/components/tree-view/TreeViewNode.vue.d.ts.map +1 -1
- package/dist/components/upload-card/UploadCard.vue.d.ts +8 -16
- package/dist/components/upload-card/UploadCard.vue.d.ts.map +1 -1
- package/dist/components/waitlist-page/WaitlistPage.vue.d.ts +3 -2
- package/dist/components/waitlist-page/WaitlistPage.vue.d.ts.map +1 -1
- package/dist/hooks.cjs +1 -0
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +2 -1
- package/dist/index.cjs +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7215 -237
- package/dist/locales-BMYalx31.js +269 -0
- package/dist/locales-DiBVeg7W.cjs +1 -0
- package/dist/locales.cjs +1 -0
- package/dist/locales.d.ts +1 -1
- package/dist/locales.js +3 -1
- package/dist/styles.css +2 -395
- package/dist/submit-button.cjs +1 -0
- package/dist/submit-button.js +2 -1
- package/dist/useClipboard-BvxAWMPy.js +140 -0
- package/dist/useClipboard-oL-L6_yd.cjs +1 -0
- package/dist/utils-BC5WDCkH.cjs +1 -0
- package/dist/utils-BkwM-_ON.js +1734 -0
- package/dist/zh-CN-CCWu7zWc.cjs +1 -0
- package/dist/zh-CN-DEG7QBBG.js +256 -0
- package/package.json +130 -118
- package/dist/Calendar.vue_vue_type_style_index_0_lang-CMFX82jP.mjs +0 -105
- package/dist/Calendar.vue_vue_type_style_index_0_lang-v6LWuqeT.js +0 -11
- package/dist/SubmitButton.vue_vue_type_script_setup_true_lang-BQCqiTee.mjs +0 -180
- package/dist/SubmitButton.vue_vue_type_script_setup_true_lang-CWUulXPL.js +0 -6
- package/dist/brutalism-plugin.mjs +0 -192
- package/dist/calendar.mjs +0 -4
- package/dist/createLucideIcon-CNpc7efV.js +0 -21
- package/dist/createLucideIcon-DueZHQL7.mjs +0 -2347
- package/dist/hooks.mjs +0 -6
- package/dist/index.mjs +0 -11735
- package/dist/locales.mjs +0 -296
- package/dist/submit-button.mjs +0 -4
- package/dist/useClipboard-BGB80TJX.mjs +0 -120
- package/dist/useClipboard-BHgbLbIr.js +0 -1
- package/dist/zh-CN-D3WsMIZA.js +0 -1
- package/dist/zh-CN-MmfMs-GP.mjs +0 -282
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 lidaixingchen
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is furnished
|
|
10
|
+
to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { t as e } from "./utils-BkwM-_ON.js";
|
|
2
|
+
import { computed as t, createBlock as n, createElementVNode as r, createVNode as i, defineComponent as a, mergeProps as o, normalizeClass as s, openBlock as c, toDisplayString as l, toHandlers as u, unref as d, withCtx as f } from "vue";
|
|
3
|
+
import { ChevronLeft as p, ChevronRight as m } from "@lucide/vue";
|
|
4
|
+
import { DatePicker as h } from "v-calendar";
|
|
5
|
+
//#region src/components/calendar/Calendar.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var g = { class: "font-black text-xs sm:text-sm tracking-tight uppercase text-brutal-fg" }, _ = /* @__PURE__ */ a({
|
|
7
|
+
__name: "Calendar",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { default: void 0 },
|
|
10
|
+
isRange: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !1
|
|
13
|
+
},
|
|
14
|
+
disabled: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
class: { default: void 0 }
|
|
19
|
+
},
|
|
20
|
+
emits: ["update:modelValue"],
|
|
21
|
+
setup(a, { emit: _ }) {
|
|
22
|
+
let v = a, y = _, b = t(() => e("p-2 sm:p-3", "bg-brutal-bg text-brutal-fg", "border-3 border-brutal", "shadow-brutal", "w-fit max-w-full overflow-x-auto", v.disabled ? "opacity-50 pointer-events-none" : "", v.class)), x = t(() => v.isRange && Array.isArray(v.modelValue) && v.modelValue.length === 2 ? {
|
|
23
|
+
start: v.modelValue[0],
|
|
24
|
+
end: v.modelValue[1]
|
|
25
|
+
} : v.isRange ? null : v.modelValue instanceof Date ? v.modelValue : null);
|
|
26
|
+
function S(e) {
|
|
27
|
+
v.disabled || (v.isRange ? e && typeof e == "object" && "start" in e && "end" in e ? y("update:modelValue", [e.start, e.end]) : y("update:modelValue", null) : e instanceof Date || e === null ? y("update:modelValue", e) : y("update:modelValue", null));
|
|
28
|
+
}
|
|
29
|
+
let C = t(() => ({ highlight: {
|
|
30
|
+
class: "brutal-selected",
|
|
31
|
+
contentClass: "brutal-selected-content"
|
|
32
|
+
} })), w = t(() => ({ highlight: {
|
|
33
|
+
class: "brutal-range",
|
|
34
|
+
contentClass: "brutal-range-content"
|
|
35
|
+
} })), T = t(() => e("flex h-6 w-6 sm:h-8 sm:w-8 items-center justify-center text-[10px] sm:text-xs font-semibold transition-all duration-100 hover:bg-brutal-secondary hover:text-brutal-fg hover:font-bold hover:shadow-brutal-sm cursor-pointer border-3 border-brutal/10", "active:translate-y-[var(--brutal-pressed-offset,2px)] active:shadow-none transition-all")), E = t(() => "text-brutal-muted-foreground opacity-40"), D = t(() => "opacity-40 cursor-not-allowed");
|
|
36
|
+
function O(t) {
|
|
37
|
+
let n = !t.inMonth;
|
|
38
|
+
return e(T.value, t.isToday ? "bg-brutal-secondary text-brutal-fg font-black border-3 border-brutal" : "", n ? E.value : "", t.isDisabled ? D.value : "");
|
|
39
|
+
}
|
|
40
|
+
return (t, _) => (c(), n(d(h), {
|
|
41
|
+
"model-value": x.value,
|
|
42
|
+
mode: "date",
|
|
43
|
+
"is-range": a.isRange,
|
|
44
|
+
class: s(b.value),
|
|
45
|
+
"select-attribute": C.value,
|
|
46
|
+
"drag-attribute": w.value,
|
|
47
|
+
"trim-weeks": "",
|
|
48
|
+
"first-day-of-week": 1,
|
|
49
|
+
popover: !1,
|
|
50
|
+
"onUpdate:modelValue": S,
|
|
51
|
+
onDrag: S
|
|
52
|
+
}, {
|
|
53
|
+
"header-prev-button": f(() => [i(d(p), { class: "w-4 h-4" })]),
|
|
54
|
+
"header-title": f(({ title: e }) => [r("span", g, l(e), 1)]),
|
|
55
|
+
"header-next-button": f(() => [i(d(m), { class: "w-4 h-4" })]),
|
|
56
|
+
"day-content": f(({ day: t, dayProps: n, dayEvents: i }) => [r("div", o(n, u(i, !0), { class: d(e)(n.class, O(t)) }), l(t.label), 17)]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, [
|
|
59
|
+
"model-value",
|
|
60
|
+
"is-range",
|
|
61
|
+
"class",
|
|
62
|
+
"select-attribute",
|
|
63
|
+
"drag-attribute"
|
|
64
|
+
]));
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
//#endregion
|
|
68
|
+
export { _ as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./utils-BC5WDCkH.cjs");let t=require("vue"),n=require("@lucide/vue"),r=require("v-calendar");var i={class:`font-black text-xs sm:text-sm tracking-tight uppercase text-brutal-fg`},a=(0,t.defineComponent)({__name:`Calendar`,props:{modelValue:{default:void 0},isRange:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},class:{default:void 0}},emits:[`update:modelValue`],setup(a,{emit:o}){let s=a,c=o,l=(0,t.computed)(()=>e.t(`p-2 sm:p-3`,`bg-brutal-bg text-brutal-fg`,`border-3 border-brutal`,`shadow-brutal`,`w-fit max-w-full overflow-x-auto`,s.disabled?`opacity-50 pointer-events-none`:``,s.class)),u=(0,t.computed)(()=>s.isRange&&Array.isArray(s.modelValue)&&s.modelValue.length===2?{start:s.modelValue[0],end:s.modelValue[1]}:s.isRange?null:s.modelValue instanceof Date?s.modelValue:null);function d(e){s.disabled||(s.isRange?e&&typeof e==`object`&&`start`in e&&`end`in e?c(`update:modelValue`,[e.start,e.end]):c(`update:modelValue`,null):e instanceof Date||e===null?c(`update:modelValue`,e):c(`update:modelValue`,null))}let f=(0,t.computed)(()=>({highlight:{class:`brutal-selected`,contentClass:`brutal-selected-content`}})),p=(0,t.computed)(()=>({highlight:{class:`brutal-range`,contentClass:`brutal-range-content`}})),m=(0,t.computed)(()=>e.t(`flex h-6 w-6 sm:h-8 sm:w-8 items-center justify-center text-[10px] sm:text-xs font-semibold transition-all duration-100 hover:bg-brutal-secondary hover:text-brutal-fg hover:font-bold hover:shadow-brutal-sm cursor-pointer border-3 border-brutal/10`,`active:translate-y-[var(--brutal-pressed-offset,2px)] active:shadow-none transition-all`)),h=(0,t.computed)(()=>`text-brutal-muted-foreground opacity-40`),g=(0,t.computed)(()=>`opacity-40 cursor-not-allowed`);function _(t){let n=!t.inMonth;return e.t(m.value,t.isToday?`bg-brutal-secondary text-brutal-fg font-black border-3 border-brutal`:``,n?h.value:``,t.isDisabled?g.value:``)}return(o,s)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.DatePicker),{"model-value":u.value,mode:`date`,"is-range":a.isRange,class:(0,t.normalizeClass)(l.value),"select-attribute":f.value,"drag-attribute":p.value,"trim-weeks":``,"first-day-of-week":1,popover:!1,"onUpdate:modelValue":d,onDrag:d},{"header-prev-button":(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.ChevronLeft),{class:`w-4 h-4`})]),"header-title":(0,t.withCtx)(({title:e})=>[(0,t.createElementVNode)(`span`,i,(0,t.toDisplayString)(e),1)]),"header-next-button":(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n.ChevronRight),{class:`w-4 h-4`})]),"day-content":(0,t.withCtx)(({day:n,dayProps:r,dayEvents:i})=>[(0,t.createElementVNode)(`div`,(0,t.mergeProps)(r,(0,t.toHandlers)(i,!0),{class:(0,t.unref)(e.t)(r.class,_(n))}),(0,t.toDisplayString)(n.label),17)]),_:1},8,[`model-value`,`is-range`,`class`,`select-attribute`,`drag-attribute`]))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./utils-BC5WDCkH.cjs"),t=require("./zh-CN-CCWu7zWc.cjs");let n=require("vue"),r=require("@lucide/vue");var i=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,a=e.n,o=(e,t)=>n=>{if(t?.variants==null)return a(e,n?.class,n?.className);let{variants:r,defaultVariants:o}=t,s=Object.keys(r).map(e=>{let t=n?.[e],a=o?.[e];if(t===null)return null;let s=i(t)||i(a);return r[e][s]}),c=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return a(e,s,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...o,...c}[t]):{...o,...c}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},s=o([`inline-flex items-center justify-center gap-2`,`border-3 border-brutal`,`font-black tracking-wide`,`transition-all duration-150`,`focus:outline focus:outline-[3px] focus:outline-brutal-ring focus:outline-offset-2`,`disabled:opacity-50 disabled:pointer-events-none`,`active:translate-y-[var(--brutal-pressed-offset,2px)] active:shadow-none`],{variants:{variant:{default:[`bg-brutal-bg text-brutal-fg`,`shadow-brutal`,`hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5`],primary:[`bg-brutal-primary text-brutal-fg`,`shadow-brutal`,`hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5`],secondary:[`bg-brutal-secondary text-brutal-fg`,`shadow-brutal`,`hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5`],accent:[`bg-brutal-accent text-brutal-fg`,`shadow-brutal`,`hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5`],danger:[`bg-brutal-destructive text-brutal-fg`,`shadow-brutal`,`hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5`],success:[`bg-brutal-success text-brutal-fg`,`shadow-brutal`,`hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5`],outline:[`bg-transparent text-brutal-fg`,`shadow-brutal`,`hover:bg-brutal-fg hover:text-brutal-bg`,`hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5`],ghost:[`bg-transparent text-brutal-fg border-transparent`,`shadow-none`,`hover:bg-brutal-muted hover:border-brutal`],link:[`bg-transparent text-brutal-fg border-transparent`,`shadow-none underline-offset-4`,`hover:underline`]},size:{sm:`h-9 px-3 py-1 text-sm`,default:`h-11 px-5 py-2 text-base`,lg:`h-14 px-8 py-3 text-lg`,xl:`h-16 px-10 py-4 text-xl`,icon:`h-11 w-11 p-0`}},defaultVariants:{variant:`default`,size:`default`}}),c=Symbol(`brutx-ui-locale`);function l(e){(0,n.provide)(c,e)}function u(e,t){let n=t.split(`.`),r=e;for(let e of n){if(typeof r!=`object`||!r)return;r=r[e]}return typeof r==`string`?r:void 0}function d(e,t){return t?Object.entries(t).reduce((e,[t,n])=>e.split(`{${t}}`).join(String(n)),e):e}function f(){let e=(0,n.inject)(c,void 0),r=(0,n.computed)(()=>(e?(0,n.unref)(e):void 0)??t.t);function i(e,n){let i=u(r.value,e);if(i!==void 0)return d(i,n);let a=u(t.t,e);return a===void 0?e:d(a,n)}return{locale:r,t:i}}var p=[`disabled`],m=(0,n.defineComponent)({__name:`SubmitButton`,props:{variant:{default:`default`},size:{default:`default`},pendingText:{default:void 0},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},class:{default:void 0}},setup(t){let i=t,{t:a}=f(),o=(0,n.computed)(()=>i.pendingText??a(`submitButton.submitting`)),c=(0,n.computed)(()=>i.disabled||i.loading),l=(0,n.computed)(()=>e.t(s({variant:i.variant,size:i.size}),i.class));return(e,i)=>((0,n.openBlock)(),(0,n.createElementBlock)(`button`,{type:`submit`,class:(0,n.normalizeClass)(l.value),disabled:c.value},[t.loading?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(r.Loader2),{key:0,class:`h-4 w-4 animate-spin`})):(0,n.createCommentVNode)(``,!0),t.loading&&o.value?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},[(0,n.createTextVNode)((0,n.toDisplayString)(o.value),1)],64)):(0,n.renderSlot)(e.$slots,`default`,{key:2})],10,p))}});Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return m}});
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { n as e, t } from "./utils-BkwM-_ON.js";
|
|
2
|
+
import { t as n } from "./zh-CN-DEG7QBBG.js";
|
|
3
|
+
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, defineComponent as l, inject as u, normalizeClass as d, openBlock as f, provide as p, renderSlot as m, toDisplayString as h, unref as g } from "vue";
|
|
4
|
+
import { Loader2 as _ } from "@lucide/vue";
|
|
5
|
+
//#region ../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
|
|
6
|
+
var v = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = e, b = (e, t) => (n) => {
|
|
7
|
+
if (t?.variants == null) return y(e, n?.class, n?.className);
|
|
8
|
+
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
9
|
+
let t = n?.[e], a = i?.[e];
|
|
10
|
+
if (t === null) return null;
|
|
11
|
+
let o = v(t) || v(a);
|
|
12
|
+
return r[e][o];
|
|
13
|
+
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
14
|
+
let [n, r] = t;
|
|
15
|
+
return r === void 0 || (e[n] = r), e;
|
|
16
|
+
}, {});
|
|
17
|
+
return y(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
18
|
+
let { class: n, className: r, ...a } = t;
|
|
19
|
+
return Object.entries(a).every((e) => {
|
|
20
|
+
let [t, n] = e;
|
|
21
|
+
return Array.isArray(n) ? n.includes({
|
|
22
|
+
...i,
|
|
23
|
+
...o
|
|
24
|
+
}[t]) : {
|
|
25
|
+
...i,
|
|
26
|
+
...o
|
|
27
|
+
}[t] === n;
|
|
28
|
+
}) ? [
|
|
29
|
+
...e,
|
|
30
|
+
n,
|
|
31
|
+
r
|
|
32
|
+
] : e;
|
|
33
|
+
}, []), n?.class, n?.className);
|
|
34
|
+
}, x = b([
|
|
35
|
+
"inline-flex items-center justify-center gap-2",
|
|
36
|
+
"border-3 border-brutal",
|
|
37
|
+
"font-black tracking-wide",
|
|
38
|
+
"transition-all duration-150",
|
|
39
|
+
"focus:outline focus:outline-[3px] focus:outline-brutal-ring focus:outline-offset-2",
|
|
40
|
+
"disabled:opacity-50 disabled:pointer-events-none",
|
|
41
|
+
"active:translate-y-[var(--brutal-pressed-offset,2px)] active:shadow-none"
|
|
42
|
+
], {
|
|
43
|
+
variants: {
|
|
44
|
+
variant: {
|
|
45
|
+
default: [
|
|
46
|
+
"bg-brutal-bg text-brutal-fg",
|
|
47
|
+
"shadow-brutal",
|
|
48
|
+
"hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5"
|
|
49
|
+
],
|
|
50
|
+
primary: [
|
|
51
|
+
"bg-brutal-primary text-brutal-fg",
|
|
52
|
+
"shadow-brutal",
|
|
53
|
+
"hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5"
|
|
54
|
+
],
|
|
55
|
+
secondary: [
|
|
56
|
+
"bg-brutal-secondary text-brutal-fg",
|
|
57
|
+
"shadow-brutal",
|
|
58
|
+
"hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5"
|
|
59
|
+
],
|
|
60
|
+
accent: [
|
|
61
|
+
"bg-brutal-accent text-brutal-fg",
|
|
62
|
+
"shadow-brutal",
|
|
63
|
+
"hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5"
|
|
64
|
+
],
|
|
65
|
+
danger: [
|
|
66
|
+
"bg-brutal-destructive text-brutal-fg",
|
|
67
|
+
"shadow-brutal",
|
|
68
|
+
"hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5"
|
|
69
|
+
],
|
|
70
|
+
success: [
|
|
71
|
+
"bg-brutal-success text-brutal-fg",
|
|
72
|
+
"shadow-brutal",
|
|
73
|
+
"hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5"
|
|
74
|
+
],
|
|
75
|
+
outline: [
|
|
76
|
+
"bg-transparent text-brutal-fg",
|
|
77
|
+
"shadow-brutal",
|
|
78
|
+
"hover:bg-brutal-fg hover:text-brutal-bg",
|
|
79
|
+
"hover:shadow-brutal-lg hover:-translate-x-0.5 hover:-translate-y-0.5"
|
|
80
|
+
],
|
|
81
|
+
ghost: [
|
|
82
|
+
"bg-transparent text-brutal-fg border-transparent",
|
|
83
|
+
"shadow-none",
|
|
84
|
+
"hover:bg-brutal-muted hover:border-brutal"
|
|
85
|
+
],
|
|
86
|
+
link: [
|
|
87
|
+
"bg-transparent text-brutal-fg border-transparent",
|
|
88
|
+
"shadow-none underline-offset-4",
|
|
89
|
+
"hover:underline"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
size: {
|
|
93
|
+
sm: "h-9 px-3 py-1 text-sm",
|
|
94
|
+
default: "h-11 px-5 py-2 text-base",
|
|
95
|
+
lg: "h-14 px-8 py-3 text-lg",
|
|
96
|
+
xl: "h-16 px-10 py-4 text-xl",
|
|
97
|
+
icon: "h-11 w-11 p-0"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
defaultVariants: {
|
|
101
|
+
variant: "default",
|
|
102
|
+
size: "default"
|
|
103
|
+
}
|
|
104
|
+
}), S = Symbol("brutx-ui-locale");
|
|
105
|
+
function C(e) {
|
|
106
|
+
p(S, e);
|
|
107
|
+
}
|
|
108
|
+
function w(e, t) {
|
|
109
|
+
let n = t.split("."), r = e;
|
|
110
|
+
for (let e of n) {
|
|
111
|
+
if (typeof r != "object" || !r) return;
|
|
112
|
+
r = r[e];
|
|
113
|
+
}
|
|
114
|
+
return typeof r == "string" ? r : void 0;
|
|
115
|
+
}
|
|
116
|
+
function T(e, t) {
|
|
117
|
+
return t ? Object.entries(t).reduce((e, [t, n]) => e.split(`{${t}}`).join(String(n)), e) : e;
|
|
118
|
+
}
|
|
119
|
+
function E() {
|
|
120
|
+
let e = u(S, void 0), t = i(() => (e ? g(e) : void 0) ?? n);
|
|
121
|
+
function r(e, r) {
|
|
122
|
+
let i = w(t.value, e);
|
|
123
|
+
if (i !== void 0) return T(i, r);
|
|
124
|
+
let a = w(n, e);
|
|
125
|
+
return a === void 0 ? e : T(a, r);
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
locale: t,
|
|
129
|
+
t: r
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/components/submit-button/SubmitButton.vue?vue&type=script&setup=true&lang.ts
|
|
134
|
+
var D = ["disabled"], O = /* @__PURE__ */ l({
|
|
135
|
+
__name: "SubmitButton",
|
|
136
|
+
props: {
|
|
137
|
+
variant: { default: "default" },
|
|
138
|
+
size: { default: "default" },
|
|
139
|
+
pendingText: { default: void 0 },
|
|
140
|
+
loading: {
|
|
141
|
+
type: Boolean,
|
|
142
|
+
default: !1
|
|
143
|
+
},
|
|
144
|
+
disabled: {
|
|
145
|
+
type: Boolean,
|
|
146
|
+
default: !1
|
|
147
|
+
},
|
|
148
|
+
class: { default: void 0 }
|
|
149
|
+
},
|
|
150
|
+
setup(e) {
|
|
151
|
+
let n = e, { t: l } = E(), u = i(() => n.pendingText ?? l("submitButton.submitting")), p = i(() => n.disabled || n.loading), v = i(() => t(x({
|
|
152
|
+
variant: n.variant,
|
|
153
|
+
size: n.size
|
|
154
|
+
}), n.class));
|
|
155
|
+
return (t, n) => (f(), s("button", {
|
|
156
|
+
type: "submit",
|
|
157
|
+
class: d(v.value),
|
|
158
|
+
disabled: p.value
|
|
159
|
+
}, [e.loading ? (f(), a(g(_), {
|
|
160
|
+
key: 0,
|
|
161
|
+
class: "h-4 w-4 animate-spin"
|
|
162
|
+
})) : o("", !0), e.loading && u.value ? (f(), s(r, { key: 1 }, [c(h(u.value), 1)], 64)) : m(t.$slots, "default", { key: 2 })], 10, D));
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
//#endregion
|
|
166
|
+
export { x as a, E as i, S as n, b as o, C as r, O as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=require("./chunk-C6qsp3rV.cjs").t(((e,t)=>{function n(e,t){return{handler:e,config:t}}n.withOptions=function(e,t=()=>({})){function n(n){return{handler:e(n),config:t(n)}}return n.__isOptionsFunction=!0,n},t.exports=n}))()(function({addUtilities:e,addComponents:t,theme:n}){e({".nb-border":{borderWidth:`var(--brutal-border-width, 3px)`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`},".nb-border-2":{borderWidth:`2px`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`},".nb-border-4":{borderWidth:`4px`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`},".nb-shadow":{boxShadow:`var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)`},".nb-shadow-sm":{boxShadow:`calc(var(--brutal-shadow-offset-x, 4px) / 2) calc(var(--brutal-shadow-offset-y, 4px) / 2) 0px 0px var(--brutal-shadow-color, #000000)`},".nb-shadow-lg":{boxShadow:`calc(var(--brutal-shadow-offset-x, 4px) * 1.5) calc(var(--brutal-shadow-offset-y, 4px) * 1.5) 0px 0px var(--brutal-shadow-color, #000000)`},".nb-shadow-xl":{boxShadow:`calc(var(--brutal-shadow-offset-x, 4px) * 2) calc(var(--brutal-shadow-offset-y, 4px) * 2) 0px 0px var(--brutal-shadow-color, #000000)`},".nb-press":{transform:`translateY(var(--brutal-pressed-offset, 2px))`,boxShadow:`none`},".nb-press-sm":{transform:`translateY(calc(var(--brutal-pressed-offset, 2px) / 2))`,boxShadow:`none`},".nb-press-lg":{transform:`translateY(calc(var(--brutal-pressed-offset, 2px) * 1.5))`,boxShadow:`none`},".nb-font":{fontWeight:`900`,letterSpacing:`0.025em`},".nb-font-bold":{fontWeight:`800`,letterSpacing:`0.02em`},".nb-font-medium":{fontWeight:`700`,letterSpacing:`0.015em`},".nb-no-radius":{borderRadius:`var(--brutal-radius, 0px)`},".nb-transition":{transitionProperty:`transform, box-shadow`,transitionTimingFunction:`cubic-bezier(0.4, 0, 0.2, 1)`,transitionDuration:`150ms`}}),e({".nb-hover":{"&:hover":{transform:`translate(calc(var(--brutal-shadow-offset-x, 4px) / -2), calc(var(--brutal-shadow-offset-y, 4px) / -2))`,boxShadow:`calc(var(--brutal-shadow-offset-x, 4px) * 1.5) calc(var(--brutal-shadow-offset-y, 4px) * 1.5) 0px 0px var(--brutal-shadow-color, #000000)`}},".nb-active":{"&:active":{transform:`translateY(var(--brutal-pressed-offset, 2px))`,boxShadow:`none`}},".nb-focus":{"&:focus":{outline:`3px solid var(--brutal-ring, #000000)`,outlineOffset:`2px`},"&:focus-visible":{outline:`3px solid var(--brutal-ring, #000000)`,outlineOffset:`2px`}},".nb-disabled":{"&:disabled":{opacity:`0.5`,cursor:`not-allowed`,pointerEvents:`none`}}}),t({".nb-btn":{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,borderWidth:`var(--brutal-border-width, 3px)`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`,backgroundColor:`var(--brutal-bg, #ffffff)`,boxShadow:`var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)`,fontWeight:`900`,letterSpacing:`0.025em`,borderRadius:`var(--brutal-radius, 0px)`,transitionProperty:`transform, box-shadow`,transitionTimingFunction:`cubic-bezier(0.4, 0, 0.2, 1)`,transitionDuration:`150ms`,cursor:`pointer`,"&:hover":{transform:`translate(calc(var(--brutal-shadow-offset-x, 4px) / -2), calc(var(--brutal-shadow-offset-y, 4px) / -2))`,boxShadow:`calc(var(--brutal-shadow-offset-x, 4px) * 1.5) calc(var(--brutal-shadow-offset-y, 4px) * 1.5) 0px 0px var(--brutal-shadow-color, #000000)`},"&:active":{transform:`translateY(var(--brutal-pressed-offset, 2px))`,boxShadow:`none`},"&:disabled":{opacity:`0.5`,cursor:`not-allowed`,pointerEvents:`none`}},".nb-card":{borderWidth:`var(--brutal-border-width, 3px)`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`,backgroundColor:`var(--brutal-bg, #ffffff)`,boxShadow:`var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)`,borderRadius:`var(--brutal-radius, 0px)`,padding:`1rem`},".nb-input":{borderWidth:`var(--brutal-border-width, 3px)`,borderStyle:`solid`,borderColor:`var(--brutal-border-color, #000000)`,backgroundColor:`var(--brutal-bg, #ffffff)`,borderRadius:`var(--brutal-radius, 0px)`,fontWeight:`500`,"&:focus":{outline:`2px solid var(--brutal-ring, #000000)`,outlineOffset:`2px`,boxShadow:`var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)`},"&::placeholder":{color:`var(--brutal-placeholder, #9CA3AF)`,fontWeight:`400`}}})},{theme:{extend:{colors:{brutal:{bg:`var(--brutal-bg)`,fg:`var(--brutal-fg)`,primary:`var(--brutal-primary)`,secondary:`var(--brutal-secondary)`,accent:`var(--brutal-accent)`,destructive:`var(--brutal-destructive)`,success:`var(--brutal-success)`,muted:`var(--brutal-muted)`,"muted-foreground":`var(--brutal-muted-foreground)`,ring:`var(--brutal-ring)`,info:`var(--brutal-info)`,overlay:`var(--brutal-overlay)`,placeholder:`var(--brutal-placeholder)`}},boxShadow:{brutal:`var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)`,"brutal-sm":`calc(var(--brutal-shadow-offset-x, 4px) / 2) calc(var(--brutal-shadow-offset-y, 4px) / 2) 0px 0px var(--brutal-shadow-color, #000000)`,"brutal-lg":`calc(var(--brutal-shadow-offset-x, 4px) * 1.5) calc(var(--brutal-shadow-offset-y, 4px) * 1.5) 0px 0px var(--brutal-shadow-color, #000000)`,"brutal-xl":`calc(var(--brutal-shadow-offset-x, 4px) * 2) calc(var(--brutal-shadow-offset-y, 4px) * 2) 0px 0px var(--brutal-shadow-color, #000000)`},borderWidth:{3:`3px`},borderRadius:{brutal:`var(--brutal-radius, 0px)`},borderColor:{brutal:`var(--brutal-border-color, #000000)`}}}});module.exports=e;
|
package/dist/brutalism-plugin.js
CHANGED
|
@@ -1 +1,180 @@
|
|
|
1
|
-
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var e = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), t = /* @__PURE__ */ e(((e, t) => {
|
|
3
|
+
function n(e, t) {
|
|
4
|
+
return {
|
|
5
|
+
handler: e,
|
|
6
|
+
config: t
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
n.withOptions = function(e, t = () => ({})) {
|
|
10
|
+
function n(n) {
|
|
11
|
+
return {
|
|
12
|
+
handler: e(n),
|
|
13
|
+
config: t(n)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
return n.__isOptionsFunction = !0, n;
|
|
17
|
+
}, t.exports = n;
|
|
18
|
+
})), n = /* @__PURE__ */ e(((e, n) => {
|
|
19
|
+
n.exports = t()(function({ addUtilities: e, addComponents: t, theme: n }) {
|
|
20
|
+
e({
|
|
21
|
+
".nb-border": {
|
|
22
|
+
borderWidth: "var(--brutal-border-width, 3px)",
|
|
23
|
+
borderStyle: "solid",
|
|
24
|
+
borderColor: "var(--brutal-border-color, #000000)"
|
|
25
|
+
},
|
|
26
|
+
".nb-border-2": {
|
|
27
|
+
borderWidth: "2px",
|
|
28
|
+
borderStyle: "solid",
|
|
29
|
+
borderColor: "var(--brutal-border-color, #000000)"
|
|
30
|
+
},
|
|
31
|
+
".nb-border-4": {
|
|
32
|
+
borderWidth: "4px",
|
|
33
|
+
borderStyle: "solid",
|
|
34
|
+
borderColor: "var(--brutal-border-color, #000000)"
|
|
35
|
+
},
|
|
36
|
+
".nb-shadow": { boxShadow: "var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)" },
|
|
37
|
+
".nb-shadow-sm": { boxShadow: "calc(var(--brutal-shadow-offset-x, 4px) / 2) calc(var(--brutal-shadow-offset-y, 4px) / 2) 0px 0px var(--brutal-shadow-color, #000000)" },
|
|
38
|
+
".nb-shadow-lg": { boxShadow: "calc(var(--brutal-shadow-offset-x, 4px) * 1.5) calc(var(--brutal-shadow-offset-y, 4px) * 1.5) 0px 0px var(--brutal-shadow-color, #000000)" },
|
|
39
|
+
".nb-shadow-xl": { boxShadow: "calc(var(--brutal-shadow-offset-x, 4px) * 2) calc(var(--brutal-shadow-offset-y, 4px) * 2) 0px 0px var(--brutal-shadow-color, #000000)" },
|
|
40
|
+
".nb-press": {
|
|
41
|
+
transform: "translateY(var(--brutal-pressed-offset, 2px))",
|
|
42
|
+
boxShadow: "none"
|
|
43
|
+
},
|
|
44
|
+
".nb-press-sm": {
|
|
45
|
+
transform: "translateY(calc(var(--brutal-pressed-offset, 2px) / 2))",
|
|
46
|
+
boxShadow: "none"
|
|
47
|
+
},
|
|
48
|
+
".nb-press-lg": {
|
|
49
|
+
transform: "translateY(calc(var(--brutal-pressed-offset, 2px) * 1.5))",
|
|
50
|
+
boxShadow: "none"
|
|
51
|
+
},
|
|
52
|
+
".nb-font": {
|
|
53
|
+
fontWeight: "900",
|
|
54
|
+
letterSpacing: "0.025em"
|
|
55
|
+
},
|
|
56
|
+
".nb-font-bold": {
|
|
57
|
+
fontWeight: "800",
|
|
58
|
+
letterSpacing: "0.02em"
|
|
59
|
+
},
|
|
60
|
+
".nb-font-medium": {
|
|
61
|
+
fontWeight: "700",
|
|
62
|
+
letterSpacing: "0.015em"
|
|
63
|
+
},
|
|
64
|
+
".nb-no-radius": { borderRadius: "var(--brutal-radius, 0px)" },
|
|
65
|
+
".nb-transition": {
|
|
66
|
+
transitionProperty: "transform, box-shadow",
|
|
67
|
+
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
68
|
+
transitionDuration: "150ms"
|
|
69
|
+
}
|
|
70
|
+
}), e({
|
|
71
|
+
".nb-hover": { "&:hover": {
|
|
72
|
+
transform: "translate(calc(var(--brutal-shadow-offset-x, 4px) / -2), calc(var(--brutal-shadow-offset-y, 4px) / -2))",
|
|
73
|
+
boxShadow: "calc(var(--brutal-shadow-offset-x, 4px) * 1.5) calc(var(--brutal-shadow-offset-y, 4px) * 1.5) 0px 0px var(--brutal-shadow-color, #000000)"
|
|
74
|
+
} },
|
|
75
|
+
".nb-active": { "&:active": {
|
|
76
|
+
transform: "translateY(var(--brutal-pressed-offset, 2px))",
|
|
77
|
+
boxShadow: "none"
|
|
78
|
+
} },
|
|
79
|
+
".nb-focus": {
|
|
80
|
+
"&:focus": {
|
|
81
|
+
outline: "3px solid var(--brutal-ring, #000000)",
|
|
82
|
+
outlineOffset: "2px"
|
|
83
|
+
},
|
|
84
|
+
"&:focus-visible": {
|
|
85
|
+
outline: "3px solid var(--brutal-ring, #000000)",
|
|
86
|
+
outlineOffset: "2px"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
".nb-disabled": { "&:disabled": {
|
|
90
|
+
opacity: "0.5",
|
|
91
|
+
cursor: "not-allowed",
|
|
92
|
+
pointerEvents: "none"
|
|
93
|
+
} }
|
|
94
|
+
}), t({
|
|
95
|
+
".nb-btn": {
|
|
96
|
+
display: "inline-flex",
|
|
97
|
+
alignItems: "center",
|
|
98
|
+
justifyContent: "center",
|
|
99
|
+
borderWidth: "var(--brutal-border-width, 3px)",
|
|
100
|
+
borderStyle: "solid",
|
|
101
|
+
borderColor: "var(--brutal-border-color, #000000)",
|
|
102
|
+
backgroundColor: "var(--brutal-bg, #ffffff)",
|
|
103
|
+
boxShadow: "var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)",
|
|
104
|
+
fontWeight: "900",
|
|
105
|
+
letterSpacing: "0.025em",
|
|
106
|
+
borderRadius: "var(--brutal-radius, 0px)",
|
|
107
|
+
transitionProperty: "transform, box-shadow",
|
|
108
|
+
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
109
|
+
transitionDuration: "150ms",
|
|
110
|
+
cursor: "pointer",
|
|
111
|
+
"&:hover": {
|
|
112
|
+
transform: "translate(calc(var(--brutal-shadow-offset-x, 4px) / -2), calc(var(--brutal-shadow-offset-y, 4px) / -2))",
|
|
113
|
+
boxShadow: "calc(var(--brutal-shadow-offset-x, 4px) * 1.5) calc(var(--brutal-shadow-offset-y, 4px) * 1.5) 0px 0px var(--brutal-shadow-color, #000000)"
|
|
114
|
+
},
|
|
115
|
+
"&:active": {
|
|
116
|
+
transform: "translateY(var(--brutal-pressed-offset, 2px))",
|
|
117
|
+
boxShadow: "none"
|
|
118
|
+
},
|
|
119
|
+
"&:disabled": {
|
|
120
|
+
opacity: "0.5",
|
|
121
|
+
cursor: "not-allowed",
|
|
122
|
+
pointerEvents: "none"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
".nb-card": {
|
|
126
|
+
borderWidth: "var(--brutal-border-width, 3px)",
|
|
127
|
+
borderStyle: "solid",
|
|
128
|
+
borderColor: "var(--brutal-border-color, #000000)",
|
|
129
|
+
backgroundColor: "var(--brutal-bg, #ffffff)",
|
|
130
|
+
boxShadow: "var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)",
|
|
131
|
+
borderRadius: "var(--brutal-radius, 0px)",
|
|
132
|
+
padding: "1rem"
|
|
133
|
+
},
|
|
134
|
+
".nb-input": {
|
|
135
|
+
borderWidth: "var(--brutal-border-width, 3px)",
|
|
136
|
+
borderStyle: "solid",
|
|
137
|
+
borderColor: "var(--brutal-border-color, #000000)",
|
|
138
|
+
backgroundColor: "var(--brutal-bg, #ffffff)",
|
|
139
|
+
borderRadius: "var(--brutal-radius, 0px)",
|
|
140
|
+
fontWeight: "500",
|
|
141
|
+
"&:focus": {
|
|
142
|
+
outline: "2px solid var(--brutal-ring, #000000)",
|
|
143
|
+
outlineOffset: "2px",
|
|
144
|
+
boxShadow: "var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)"
|
|
145
|
+
},
|
|
146
|
+
"&::placeholder": {
|
|
147
|
+
color: "var(--brutal-placeholder, #9CA3AF)",
|
|
148
|
+
fontWeight: "400"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
}, { theme: { extend: {
|
|
153
|
+
colors: { brutal: {
|
|
154
|
+
bg: "var(--brutal-bg)",
|
|
155
|
+
fg: "var(--brutal-fg)",
|
|
156
|
+
primary: "var(--brutal-primary)",
|
|
157
|
+
secondary: "var(--brutal-secondary)",
|
|
158
|
+
accent: "var(--brutal-accent)",
|
|
159
|
+
destructive: "var(--brutal-destructive)",
|
|
160
|
+
success: "var(--brutal-success)",
|
|
161
|
+
muted: "var(--brutal-muted)",
|
|
162
|
+
"muted-foreground": "var(--brutal-muted-foreground)",
|
|
163
|
+
ring: "var(--brutal-ring)",
|
|
164
|
+
info: "var(--brutal-info)",
|
|
165
|
+
overlay: "var(--brutal-overlay)",
|
|
166
|
+
placeholder: "var(--brutal-placeholder)"
|
|
167
|
+
} },
|
|
168
|
+
boxShadow: {
|
|
169
|
+
brutal: "var(--brutal-shadow-offset-x, 4px) var(--brutal-shadow-offset-y, 4px) 0px 0px var(--brutal-shadow-color, #000000)",
|
|
170
|
+
"brutal-sm": "calc(var(--brutal-shadow-offset-x, 4px) / 2) calc(var(--brutal-shadow-offset-y, 4px) / 2) 0px 0px var(--brutal-shadow-color, #000000)",
|
|
171
|
+
"brutal-lg": "calc(var(--brutal-shadow-offset-x, 4px) * 1.5) calc(var(--brutal-shadow-offset-y, 4px) * 1.5) 0px 0px var(--brutal-shadow-color, #000000)",
|
|
172
|
+
"brutal-xl": "calc(var(--brutal-shadow-offset-x, 4px) * 2) calc(var(--brutal-shadow-offset-y, 4px) * 2) 0px 0px var(--brutal-shadow-color, #000000)"
|
|
173
|
+
},
|
|
174
|
+
borderWidth: { 3: "3px" },
|
|
175
|
+
borderRadius: { brutal: "var(--brutal-radius, 0px)" },
|
|
176
|
+
borderColor: { brutal: "var(--brutal-border-color, #000000)" }
|
|
177
|
+
} } });
|
|
178
|
+
}));
|
|
179
|
+
//#endregion
|
|
180
|
+
export default n();
|