@cmdniels/uikit 1.0.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/README.md +149 -0
- package/out/cn.d.ts +2 -0
- package/out/cn.js +5 -0
- package/out/components/accordion/Accordion.d.ts +2 -0
- package/out/components/accordion/Accordion.js +19 -0
- package/out/components/accordion/AccordionContent.d.ts +2 -0
- package/out/components/accordion/AccordionContent.js +19 -0
- package/out/components/accordion/AccordionItem.d.ts +2 -0
- package/out/components/accordion/AccordionItem.js +19 -0
- package/out/components/accordion/AccordionTrigger.d.ts +2 -0
- package/out/components/accordion/AccordionTrigger.js +20 -0
- package/out/components/alert/Alert.d.ts +4 -0
- package/out/components/alert/Alert.js +18 -0
- package/out/components/alert/AlertAction.d.ts +2 -0
- package/out/components/alert/AlertAction.js +17 -0
- package/out/components/alert/AlertDescription.d.ts +2 -0
- package/out/components/alert/AlertDescription.js +17 -0
- package/out/components/alert/AlertTitle.d.ts +2 -0
- package/out/components/alert/AlertTitle.js +17 -0
- package/out/components/alert/alertVariants.d.ts +3 -0
- package/out/components/alert/alertVariants.js +12 -0
- package/out/components/alert-dialog/AlertDialog.d.ts +2 -0
- package/out/components/alert-dialog/AlertDialog.js +18 -0
- package/out/components/alert-dialog/AlertDialogAction.d.ts +3 -0
- package/out/components/alert-dialog/AlertDialogAction.js +18 -0
- package/out/components/alert-dialog/AlertDialogCancel.d.ts +4 -0
- package/out/components/alert-dialog/AlertDialogCancel.js +20 -0
- package/out/components/alert-dialog/AlertDialogContent.d.ts +4 -0
- package/out/components/alert-dialog/AlertDialogContent.js +21 -0
- package/out/components/alert-dialog/AlertDialogDescription.d.ts +3 -0
- package/out/components/alert-dialog/AlertDialogDescription.js +19 -0
- package/out/components/alert-dialog/AlertDialogFooter.d.ts +2 -0
- package/out/components/alert-dialog/AlertDialogFooter.js +17 -0
- package/out/components/alert-dialog/AlertDialogHeader.d.ts +2 -0
- package/out/components/alert-dialog/AlertDialogHeader.js +17 -0
- package/out/components/alert-dialog/AlertDialogMedia.d.ts +2 -0
- package/out/components/alert-dialog/AlertDialogMedia.js +17 -0
- package/out/components/alert-dialog/AlertDialogOverlay.d.ts +2 -0
- package/out/components/alert-dialog/AlertDialogOverlay.js +19 -0
- package/out/components/alert-dialog/AlertDialogPortal.d.ts +2 -0
- package/out/components/alert-dialog/AlertDialogPortal.js +18 -0
- package/out/components/alert-dialog/AlertDialogTitle.d.ts +3 -0
- package/out/components/alert-dialog/AlertDialogTitle.js +19 -0
- package/out/components/alert-dialog/AlertDialogTrigger.d.ts +2 -0
- package/out/components/alert-dialog/AlertDialogTrigger.js +18 -0
- package/out/components/aspect-ratio/AspectRatio.d.ts +4 -0
- package/out/components/aspect-ratio/AspectRatio.js +19 -0
- package/out/components/badge/Badge.d.ts +4 -0
- package/out/components/badge/Badge.js +29 -0
- package/out/components/badge/badgeVariants.d.ts +3 -0
- package/out/components/badge/badgeVariants.js +16 -0
- package/out/components/button/Button.d.ts +4 -0
- package/out/components/button/Button.js +19 -0
- package/out/components/button/buttonVariants.d.ts +4 -0
- package/out/components/button/buttonVariants.js +28 -0
- package/out/components/button-group/ButtonGroup.d.ts +4 -0
- package/out/components/button-group/ButtonGroup.js +18 -0
- package/out/components/button-group/ButtonGroupSeparator.d.ts +3 -0
- package/out/components/button-group/ButtonGroupSeparator.js +18 -0
- package/out/components/button-group/ButtonGroupText.d.ts +2 -0
- package/out/components/button-group/ButtonGroupText.js +27 -0
- package/out/components/button-group/buttonGroupVariants.d.ts +4 -0
- package/out/components/button-group/buttonGroupVariants.js +13 -0
- package/out/components/calendar/Calendar.d.ts +6 -0
- package/out/components/calendar/Calendar.js +43 -0
- package/out/components/calendar/CalendarDayButton.d.ts +3 -0
- package/out/components/calendar/CalendarDayButton.js +29 -0
- package/out/components/card/Card.d.ts +4 -0
- package/out/components/card/Card.js +17 -0
- package/out/components/card/CardAction.d.ts +2 -0
- package/out/components/card/CardAction.js +17 -0
- package/out/components/card/CardContent.d.ts +2 -0
- package/out/components/card/CardContent.js +17 -0
- package/out/components/card/CardDescription.d.ts +2 -0
- package/out/components/card/CardDescription.js +17 -0
- package/out/components/card/CardFooter.d.ts +2 -0
- package/out/components/card/CardFooter.js +17 -0
- package/out/components/card/CardHeader.d.ts +2 -0
- package/out/components/card/CardHeader.js +17 -0
- package/out/components/card/CardTitle.d.ts +2 -0
- package/out/components/card/CardTitle.js +17 -0
- package/out/components/checkbox/Checkbox.d.ts +2 -0
- package/out/components/checkbox/Checkbox.js +20 -0
- package/out/components/combobox/Combobox.d.ts +3 -0
- package/out/components/combobox/Combobox.js +4 -0
- package/out/components/combobox/ComboboxChip.d.ts +4 -0
- package/out/components/combobox/ComboboxChip.js +21 -0
- package/out/components/combobox/ComboboxChips.d.ts +3 -0
- package/out/components/combobox/ComboboxChips.js +19 -0
- package/out/components/combobox/ComboboxChipsInput.d.ts +2 -0
- package/out/components/combobox/ComboboxChipsInput.js +19 -0
- package/out/components/combobox/ComboboxClear.d.ts +2 -0
- package/out/components/combobox/ComboboxClear.js +21 -0
- package/out/components/combobox/ComboboxCollection.d.ts +2 -0
- package/out/components/combobox/ComboboxCollection.js +18 -0
- package/out/components/combobox/ComboboxContent.d.ts +2 -0
- package/out/components/combobox/ComboboxContent.js +19 -0
- package/out/components/combobox/ComboboxEmpty.d.ts +2 -0
- package/out/components/combobox/ComboboxEmpty.js +19 -0
- package/out/components/combobox/ComboboxGroup.d.ts +2 -0
- package/out/components/combobox/ComboboxGroup.js +19 -0
- package/out/components/combobox/ComboboxInput.d.ts +5 -0
- package/out/components/combobox/ComboboxInput.js +25 -0
- package/out/components/combobox/ComboboxItem.d.ts +2 -0
- package/out/components/combobox/ComboboxItem.js +20 -0
- package/out/components/combobox/ComboboxLabel.d.ts +2 -0
- package/out/components/combobox/ComboboxLabel.js +19 -0
- package/out/components/combobox/ComboboxList.d.ts +2 -0
- package/out/components/combobox/ComboboxList.js +19 -0
- package/out/components/combobox/ComboboxSeparator.d.ts +2 -0
- package/out/components/combobox/ComboboxSeparator.js +19 -0
- package/out/components/combobox/ComboboxTrigger.d.ts +2 -0
- package/out/components/combobox/ComboboxTrigger.js +20 -0
- package/out/components/combobox/ComboboxValue.d.ts +2 -0
- package/out/components/combobox/ComboboxValue.js +18 -0
- package/out/components/combobox/useComboboxAnchor.d.ts +1 -0
- package/out/components/combobox/useComboboxAnchor.js +4 -0
- package/out/components/context-menu/ContextMenu.d.ts +2 -0
- package/out/components/context-menu/ContextMenu.js +18 -0
- package/out/components/context-menu/ContextMenuCheckboxItem.d.ts +2 -0
- package/out/components/context-menu/ContextMenuCheckboxItem.js +20 -0
- package/out/components/context-menu/ContextMenuContent.d.ts +2 -0
- package/out/components/context-menu/ContextMenuContent.js +19 -0
- package/out/components/context-menu/ContextMenuGroup.d.ts +2 -0
- package/out/components/context-menu/ContextMenuGroup.js +18 -0
- package/out/components/context-menu/ContextMenuItem.d.ts +5 -0
- package/out/components/context-menu/ContextMenuItem.js +19 -0
- package/out/components/context-menu/ContextMenuLabel.d.ts +4 -0
- package/out/components/context-menu/ContextMenuLabel.js +19 -0
- package/out/components/context-menu/ContextMenuPortal.d.ts +2 -0
- package/out/components/context-menu/ContextMenuPortal.js +18 -0
- package/out/components/context-menu/ContextMenuRadioGroup.d.ts +2 -0
- package/out/components/context-menu/ContextMenuRadioGroup.js +18 -0
- package/out/components/context-menu/ContextMenuRadioItem.d.ts +2 -0
- package/out/components/context-menu/ContextMenuRadioItem.js +20 -0
- package/out/components/context-menu/ContextMenuSeparator.d.ts +2 -0
- package/out/components/context-menu/ContextMenuSeparator.js +19 -0
- package/out/components/context-menu/ContextMenuShortcut.d.ts +2 -0
- package/out/components/context-menu/ContextMenuShortcut.js +18 -0
- package/out/components/context-menu/ContextMenuSub.d.ts +2 -0
- package/out/components/context-menu/ContextMenuSub.js +18 -0
- package/out/components/context-menu/ContextMenuSubContent.d.ts +3 -0
- package/out/components/context-menu/ContextMenuSubContent.js +18 -0
- package/out/components/context-menu/ContextMenuSubTrigger.d.ts +4 -0
- package/out/components/context-menu/ContextMenuSubTrigger.js +20 -0
- package/out/components/context-menu/ContextMenuTrigger.d.ts +2 -0
- package/out/components/context-menu/ContextMenuTrigger.js +19 -0
- package/out/components/copy-input/CopyInput.d.ts +3 -0
- package/out/components/copy-input/CopyInput.js +32 -0
- package/out/components/date-picker/DatePicker.d.ts +5 -0
- package/out/components/date-picker/DatePicker.js +57 -0
- package/out/components/dropdown-menu/DropdownMenu.d.ts +2 -0
- package/out/components/dropdown-menu/DropdownMenu.js +18 -0
- package/out/components/dropdown-menu/DropdownMenuCheckboxItem.d.ts +2 -0
- package/out/components/dropdown-menu/DropdownMenuCheckboxItem.js +20 -0
- package/out/components/dropdown-menu/DropdownMenuContent.d.ts +2 -0
- package/out/components/dropdown-menu/DropdownMenuContent.js +19 -0
- package/out/components/dropdown-menu/DropdownMenuGroup.d.ts +2 -0
- package/out/components/dropdown-menu/DropdownMenuGroup.js +18 -0
- package/out/components/dropdown-menu/DropdownMenuItem.d.ts +5 -0
- package/out/components/dropdown-menu/DropdownMenuItem.js +19 -0
- package/out/components/dropdown-menu/DropdownMenuLabel.d.ts +4 -0
- package/out/components/dropdown-menu/DropdownMenuLabel.js +19 -0
- package/out/components/dropdown-menu/DropdownMenuPortal.d.ts +2 -0
- package/out/components/dropdown-menu/DropdownMenuPortal.js +18 -0
- package/out/components/dropdown-menu/DropdownMenuRadioGroup.d.ts +2 -0
- package/out/components/dropdown-menu/DropdownMenuRadioGroup.js +18 -0
- package/out/components/dropdown-menu/DropdownMenuRadioItem.d.ts +2 -0
- package/out/components/dropdown-menu/DropdownMenuRadioItem.js +20 -0
- package/out/components/dropdown-menu/DropdownMenuSeparator.d.ts +2 -0
- package/out/components/dropdown-menu/DropdownMenuSeparator.js +19 -0
- package/out/components/dropdown-menu/DropdownMenuShortcut.d.ts +2 -0
- package/out/components/dropdown-menu/DropdownMenuShortcut.js +18 -0
- package/out/components/dropdown-menu/DropdownMenuSub.d.ts +2 -0
- package/out/components/dropdown-menu/DropdownMenuSub.js +18 -0
- package/out/components/dropdown-menu/DropdownMenuSubContent.d.ts +3 -0
- package/out/components/dropdown-menu/DropdownMenuSubContent.js +19 -0
- package/out/components/dropdown-menu/DropdownMenuSubTrigger.d.ts +4 -0
- package/out/components/dropdown-menu/DropdownMenuSubTrigger.js +20 -0
- package/out/components/dropdown-menu/DropdownMenuTrigger.d.ts +2 -0
- package/out/components/dropdown-menu/DropdownMenuTrigger.js +18 -0
- package/out/components/error/Error.d.ts +4 -0
- package/out/components/error/Error.js +15 -0
- package/out/components/field/Field.d.ts +4 -0
- package/out/components/field/Field.js +19 -0
- package/out/components/field/FieldContent.d.ts +2 -0
- package/out/components/field/FieldContent.js +18 -0
- package/out/components/field/FieldDescription.d.ts +2 -0
- package/out/components/field/FieldDescription.js +18 -0
- package/out/components/field/FieldError.d.ts +6 -0
- package/out/components/field/FieldError.js +36 -0
- package/out/components/field/FieldGroup.d.ts +2 -0
- package/out/components/field/FieldGroup.js +18 -0
- package/out/components/field/FieldLabel.d.ts +3 -0
- package/out/components/field/FieldLabel.js +19 -0
- package/out/components/field/FieldLegend.d.ts +4 -0
- package/out/components/field/FieldLegend.js +18 -0
- package/out/components/field/FieldSeparator.d.ts +4 -0
- package/out/components/field/FieldSeparator.js +19 -0
- package/out/components/field/FieldSet.d.ts +2 -0
- package/out/components/field/FieldSet.js +18 -0
- package/out/components/field/FieldTitle.d.ts +2 -0
- package/out/components/field/FieldTitle.js +18 -0
- package/out/components/field/fieldVariants.d.ts +4 -0
- package/out/components/field/fieldVariants.js +14 -0
- package/out/components/file-dropzone/FileDropzone.d.ts +7 -0
- package/out/components/file-dropzone/FileDropzone.js +40 -0
- package/out/components/input/Input.d.ts +2 -0
- package/out/components/input/Input.js +18 -0
- package/out/components/input-group/InputGroup.d.ts +2 -0
- package/out/components/input-group/InputGroup.js +18 -0
- package/out/components/input-group/InputGroupAddon.d.ts +4 -0
- package/out/components/input-group/InputGroupAddon.js +25 -0
- package/out/components/input-group/InputGroupButton.d.ts +7 -0
- package/out/components/input-group/InputGroupButton.js +20 -0
- package/out/components/input-group/InputGroupInput.d.ts +2 -0
- package/out/components/input-group/InputGroupInput.js +19 -0
- package/out/components/input-group/InputGroupText.d.ts +2 -0
- package/out/components/input-group/InputGroupText.js +18 -0
- package/out/components/input-group/InputGroupTextarea.d.ts +2 -0
- package/out/components/input-group/InputGroupTextarea.js +19 -0
- package/out/components/input-group/inputGroupAddonVariants.d.ts +4 -0
- package/out/components/input-group/inputGroupAddonVariants.js +15 -0
- package/out/components/input-group/inputGroupButtonVariants.d.ts +4 -0
- package/out/components/input-group/inputGroupButtonVariants.js +15 -0
- package/out/components/item/Item.d.ts +5 -0
- package/out/components/item/Item.js +31 -0
- package/out/components/item/ItemActions.d.ts +3 -0
- package/out/components/item/ItemActions.js +18 -0
- package/out/components/item/ItemContent.d.ts +3 -0
- package/out/components/item/ItemContent.js +18 -0
- package/out/components/item/ItemDescription.d.ts +3 -0
- package/out/components/item/ItemDescription.js +18 -0
- package/out/components/item/ItemFooter.d.ts +3 -0
- package/out/components/item/ItemFooter.js +18 -0
- package/out/components/item/ItemGroup.d.ts +3 -0
- package/out/components/item/ItemGroup.js +18 -0
- package/out/components/item/ItemHeader.d.ts +3 -0
- package/out/components/item/ItemHeader.js +18 -0
- package/out/components/item/ItemMedia.d.ts +5 -0
- package/out/components/item/ItemMedia.js +19 -0
- package/out/components/item/ItemSeparator.d.ts +4 -0
- package/out/components/item/ItemSeparator.js +19 -0
- package/out/components/item/ItemTitle.d.ts +3 -0
- package/out/components/item/ItemTitle.js +18 -0
- package/out/components/item/itemMediaVariants.d.ts +4 -0
- package/out/components/item/itemMediaVariants.js +14 -0
- package/out/components/item/itemVariants.d.ts +5 -0
- package/out/components/item/itemVariants.js +20 -0
- package/out/components/label/Label.d.ts +2 -0
- package/out/components/label/Label.js +18 -0
- package/out/components/link-input/LinkInput.d.ts +3 -0
- package/out/components/link-input/LinkInput.js +41 -0
- package/out/components/popover/Popover.d.ts +2 -0
- package/out/components/popover/Popover.js +18 -0
- package/out/components/popover/PopoverContent.d.ts +2 -0
- package/out/components/popover/PopoverContent.js +19 -0
- package/out/components/popover/PopoverDescription.d.ts +2 -0
- package/out/components/popover/PopoverDescription.js +19 -0
- package/out/components/popover/PopoverHeader.d.ts +2 -0
- package/out/components/popover/PopoverHeader.js +17 -0
- package/out/components/popover/PopoverTitle.d.ts +2 -0
- package/out/components/popover/PopoverTitle.js +19 -0
- package/out/components/popover/PopoverTrigger.d.ts +2 -0
- package/out/components/popover/PopoverTrigger.js +18 -0
- package/out/components/select/Select.d.ts +3 -0
- package/out/components/select/Select.js +4 -0
- package/out/components/select/SelectContent.d.ts +2 -0
- package/out/components/select/SelectContent.js +21 -0
- package/out/components/select/SelectGroup.d.ts +2 -0
- package/out/components/select/SelectGroup.js +19 -0
- package/out/components/select/SelectItem.d.ts +2 -0
- package/out/components/select/SelectItem.js +20 -0
- package/out/components/select/SelectLabel.d.ts +2 -0
- package/out/components/select/SelectLabel.js +19 -0
- package/out/components/select/SelectScrollDownButton.d.ts +3 -0
- package/out/components/select/SelectScrollDownButton.js +20 -0
- package/out/components/select/SelectScrollUpButton.d.ts +3 -0
- package/out/components/select/SelectScrollUpButton.js +20 -0
- package/out/components/select/SelectSeparator.d.ts +2 -0
- package/out/components/select/SelectSeparator.js +19 -0
- package/out/components/select/SelectTrigger.d.ts +4 -0
- package/out/components/select/SelectTrigger.js +20 -0
- package/out/components/select/SelectValue.d.ts +2 -0
- package/out/components/select/SelectValue.js +19 -0
- package/out/components/separator/Separator.d.ts +2 -0
- package/out/components/separator/Separator.js +19 -0
- package/out/components/skeleton/Skeleton.d.ts +2 -0
- package/out/components/skeleton/Skeleton.js +17 -0
- package/out/components/sonner/Toaster.d.ts +2 -0
- package/out/components/sonner/Toaster.js +37 -0
- package/out/components/sortable/Sortable.d.ts +48 -0
- package/out/components/sortable/Sortable.js +263 -0
- package/out/components/switch/Switch.d.ts +4 -0
- package/out/components/switch/Switch.js +19 -0
- package/out/components/table/Table.d.ts +2 -0
- package/out/components/table/Table.js +18 -0
- package/out/components/table/TableBody.d.ts +2 -0
- package/out/components/table/TableBody.js +18 -0
- package/out/components/table/TableCaption.d.ts +2 -0
- package/out/components/table/TableCaption.js +18 -0
- package/out/components/table/TableCell.d.ts +2 -0
- package/out/components/table/TableCell.js +18 -0
- package/out/components/table/TableFooter.d.ts +2 -0
- package/out/components/table/TableFooter.js +18 -0
- package/out/components/table/TableHead.d.ts +2 -0
- package/out/components/table/TableHead.js +18 -0
- package/out/components/table/TableHeader.d.ts +2 -0
- package/out/components/table/TableHeader.js +18 -0
- package/out/components/table/TableRow.d.ts +2 -0
- package/out/components/table/TableRow.js +18 -0
- package/out/components/textarea/Textarea.d.ts +2 -0
- package/out/components/textarea/Textarea.js +17 -0
- package/out/components/toggle/Toggle.d.ts +4 -0
- package/out/components/toggle/Toggle.js +20 -0
- package/out/components/toggle/toggleVariants.d.ts +4 -0
- package/out/components/toggle/toggleVariants.js +18 -0
- package/out/components/tooltip/Tooltip.d.ts +3 -0
- package/out/components/tooltip/Tooltip.js +20 -0
- package/out/components/tooltip/TooltipContent.d.ts +3 -0
- package/out/components/tooltip/TooltipContent.js +20 -0
- package/out/components/tooltip/TooltipProvider.d.ts +3 -0
- package/out/components/tooltip/TooltipProvider.js +19 -0
- package/out/components/tooltip/TooltipTrigger.d.ts +3 -0
- package/out/components/tooltip/TooltipTrigger.js +19 -0
- package/out/components/typography/TypographyA.d.ts +2 -0
- package/out/components/typography/TypographyA.js +20 -0
- package/out/components/typography/TypographyBlockquote.d.ts +2 -0
- package/out/components/typography/TypographyBlockquote.js +20 -0
- package/out/components/typography/TypographyFigure.d.ts +2 -0
- package/out/components/typography/TypographyFigure.js +20 -0
- package/out/components/typography/TypographyFigureCaption.d.ts +2 -0
- package/out/components/typography/TypographyFigureCaption.js +20 -0
- package/out/components/typography/TypographyH1.d.ts +2 -0
- package/out/components/typography/TypographyH1.js +20 -0
- package/out/components/typography/TypographyH2.d.ts +2 -0
- package/out/components/typography/TypographyH2.js +20 -0
- package/out/components/typography/TypographyH3.d.ts +2 -0
- package/out/components/typography/TypographyH3.js +20 -0
- package/out/components/typography/TypographyH4.d.ts +2 -0
- package/out/components/typography/TypographyH4.js +20 -0
- package/out/components/typography/TypographyH5.d.ts +2 -0
- package/out/components/typography/TypographyH5.js +20 -0
- package/out/components/typography/TypographyH6.d.ts +2 -0
- package/out/components/typography/TypographyH6.js +20 -0
- package/out/components/typography/TypographyHr.d.ts +2 -0
- package/out/components/typography/TypographyHr.js +19 -0
- package/out/components/typography/TypographyImage.d.ts +2 -0
- package/out/components/typography/TypographyImage.js +21 -0
- package/out/components/typography/TypographyImg.d.ts +23 -0
- package/out/components/typography/TypographyImg.js +21 -0
- package/out/components/typography/TypographyInlineCode.d.ts +2 -0
- package/out/components/typography/TypographyInlineCode.js +25 -0
- package/out/components/typography/TypographyLi.d.ts +2 -0
- package/out/components/typography/TypographyLi.js +20 -0
- package/out/components/typography/TypographyLink.d.ts +4 -0
- package/out/components/typography/TypographyLink.js +21 -0
- package/out/components/typography/TypographyList.d.ts +2 -0
- package/out/components/typography/TypographyList.js +20 -0
- package/out/components/typography/TypographyOl.d.ts +2 -0
- package/out/components/typography/TypographyOl.js +20 -0
- package/out/components/typography/TypographyP.d.ts +2 -0
- package/out/components/typography/TypographyP.js +20 -0
- package/out/components/typography/TypographyPre.d.ts +2 -0
- package/out/components/typography/TypographyPre.js +20 -0
- package/out/components/typography/TypographyStrong.d.ts +3 -0
- package/out/components/typography/TypographyStrong.js +20 -0
- package/out/components/typography/TypographyTable.d.ts +2 -0
- package/out/components/typography/TypographyTable.js +20 -0
- package/out/components/typography/TypographyTd.d.ts +2 -0
- package/out/components/typography/TypographyTd.js +20 -0
- package/out/components/typography/TypographyTh.d.ts +2 -0
- package/out/components/typography/TypographyTh.js +20 -0
- package/out/components/typography/TypographyTr.d.ts +2 -0
- package/out/components/typography/TypographyTr.js +20 -0
- package/out/index.d.ts +176 -0
- package/out/index.js +211 -0
- package/package.json +77 -0
- package/tailwind.css +144 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
import DropdownMenuContent from "./DropdownMenuContent";
|
|
16
|
+
export default function DropdownMenuSubContent(_a) {
|
|
17
|
+
var { align = "start", alignOffset = -3, side = "right", sideOffset = 0, className } = _a, props = __rest(_a, ["align", "alignOffset", "side", "sideOffset", "className"]);
|
|
18
|
+
return (_jsx(DropdownMenuContent, Object.assign({ "data-slot": "dropdown-menu-sub-content", className: cn("w-auto min-w-24 rounded-md bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className), align: align, alignOffset: alignOffset, side: side, sideOffset: sideOffset }, props)));
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
15
|
+
import { IconChevronRight } from "@tabler/icons-react";
|
|
16
|
+
import cn from "../../cn";
|
|
17
|
+
export default function DropdownMenuSubTrigger(_a) {
|
|
18
|
+
var { className, inset, children } = _a, props = __rest(_a, ["className", "inset", "children"]);
|
|
19
|
+
return (_jsxs(MenuPrimitive.SubmenuTrigger, Object.assign({ "data-slot": "dropdown-menu-sub-trigger", "data-inset": inset, className: cn("flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className) }, props, { children: [children, _jsx(IconChevronRight, { className: "ml-auto" })] })));
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
15
|
+
export default function DropdownMenuTrigger(_a) {
|
|
16
|
+
var props = __rest(_a, []);
|
|
17
|
+
return _jsx(MenuPrimitive.Trigger, Object.assign({ "data-slot": "dropdown-menu-trigger" }, props));
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { IconAlertCircle } from "@tabler/icons-react";
|
|
4
|
+
import { useRouter } from "next/navigation";
|
|
5
|
+
import Alert from "../../components/alert/Alert";
|
|
6
|
+
import AlertDescription from "../../components/alert/AlertDescription";
|
|
7
|
+
import AlertTitle from "../../components/alert/AlertTitle";
|
|
8
|
+
import Button from "../../components/button/Button";
|
|
9
|
+
export default function Error({ title, message }) {
|
|
10
|
+
const router = useRouter();
|
|
11
|
+
const handleClick = () => {
|
|
12
|
+
router.replace("/");
|
|
13
|
+
};
|
|
14
|
+
return (_jsx("div", { className: "flex size-full shrink-0 grow flex-col items-center justify-center px-4", children: _jsxs("div", { className: "flex flex-col items-center justify-center gap-8 md:max-w-2xl", children: [_jsxs(Alert, { variant: "destructive", children: [_jsx(IconAlertCircle, { size: 16 }), _jsx(AlertTitle, { children: title }), _jsx(AlertDescription, { children: message })] }), _jsx(Button, { variant: "default", onClick: handleClick, children: "Go to Home" })] }) }));
|
|
15
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import fieldVariants from "./fieldVariants";
|
|
2
|
+
import type { VariantProps } from "class-variance-authority";
|
|
3
|
+
import type { ComponentProps } from "react";
|
|
4
|
+
export default function Field({ className, orientation, ...props }: ComponentProps<"div"> & VariantProps<typeof fieldVariants>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
import fieldVariants from "./fieldVariants";
|
|
16
|
+
export default function Field(_a) {
|
|
17
|
+
var { className, orientation = "vertical" } = _a, props = __rest(_a, ["className", "orientation"]);
|
|
18
|
+
return (_jsx("div", Object.assign({ role: "group", "data-slot": "field", "data-orientation": orientation, className: cn(fieldVariants({ orientation }), className) }, props)));
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
export default function FieldContent(_a) {
|
|
16
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
17
|
+
return (_jsx("div", Object.assign({ "data-slot": "field-content", className: cn("group/field-content flex flex-1 flex-col gap-1 leading-snug", className) }, props)));
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
export default function FieldDescription(_a) {
|
|
16
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
17
|
+
return (_jsx("p", Object.assign({ "data-slot": "field-description", className: cn("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-[orientation=horizontal]/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className) }, props)));
|
|
18
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import { useMemo } from "react";
|
|
15
|
+
import cn from "../../cn";
|
|
16
|
+
export default function FieldError(_a) {
|
|
17
|
+
var { className, children, errors } = _a, props = __rest(_a, ["className", "children", "errors"]);
|
|
18
|
+
const content = useMemo(() => {
|
|
19
|
+
var _a;
|
|
20
|
+
if (children) {
|
|
21
|
+
return children;
|
|
22
|
+
}
|
|
23
|
+
if (!(errors === null || errors === void 0 ? void 0 : errors.length)) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
const uniqueErrors = [...new Map(errors.map((error) => [error === null || error === void 0 ? void 0 : error.message, error])).values()];
|
|
27
|
+
if ((uniqueErrors === null || uniqueErrors === void 0 ? void 0 : uniqueErrors.length) === 1) {
|
|
28
|
+
return (_a = uniqueErrors[0]) === null || _a === void 0 ? void 0 : _a.message;
|
|
29
|
+
}
|
|
30
|
+
return (_jsx("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map((error, index) => (error === null || error === void 0 ? void 0 : error.message) && _jsx("li", { children: error.message }, index)) }));
|
|
31
|
+
}, [children, errors]);
|
|
32
|
+
if (!content) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return (_jsx("div", Object.assign({ role: "alert", "data-slot": "field-error", className: cn("text-sm font-normal text-destructive", className) }, props, { children: content })));
|
|
36
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
export default function FieldGroup(_a) {
|
|
16
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
17
|
+
return (_jsx("div", Object.assign({ "data-slot": "field-group", className: cn("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4", className) }, props)));
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
import Label from "../../components/label/Label";
|
|
16
|
+
export default function FieldLabel(_a) {
|
|
17
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
18
|
+
return (_jsx(Label, Object.assign({ "data-slot": "field-label", className: cn("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border *:data-[slot=field]:p-3 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", className) }, props)));
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
export default function FieldLegend(_a) {
|
|
16
|
+
var { className, variant = "legend" } = _a, props = __rest(_a, ["className", "variant"]);
|
|
17
|
+
return (_jsx("legend", Object.assign({ "data-slot": "field-legend", "data-variant": variant, className: cn("mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", className) }, props)));
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
import Separator from "../../components/separator/Separator";
|
|
16
|
+
export default function FieldSeparator(_a) {
|
|
17
|
+
var { children, className } = _a, props = __rest(_a, ["children", "className"]);
|
|
18
|
+
return (_jsxs("div", Object.assign({ "data-slot": "field-separator", "data-content": Boolean(children), className: cn("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", className) }, props, { children: [_jsx(Separator, { className: "absolute inset-0 top-1/2" }), children && (_jsx("span", { className: "relative mx-auto block w-fit bg-background px-2 text-muted-foreground", "data-slot": "field-separator-content", children: children }))] })));
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
export default function FieldSet(_a) {
|
|
16
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
17
|
+
return (_jsx("fieldset", Object.assign({ "data-slot": "field-set", className: cn("flex flex-col gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", className) }, props)));
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
export default function FieldTitle(_a) {
|
|
16
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
17
|
+
return (_jsx("div", Object.assign({ "data-slot": "field-label", className: cn("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50", className) }, props)));
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
const fieldVariants = cva("group/field flex w-full gap-3 data-[invalid=true]:text-destructive", {
|
|
3
|
+
variants: {
|
|
4
|
+
orientation: {
|
|
5
|
+
vertical: "flex-col [&>*]:w-full [&>.sr-only]:w-auto",
|
|
6
|
+
horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
|
|
7
|
+
responsive: "flex-col @md/field-group:flex-row @md/field-group:items-center @md/field-group:has-[>[data-slot=field-content]]:items-start [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
defaultVariants: {
|
|
11
|
+
orientation: "vertical",
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
export default fieldVariants;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
export default function FileDropzone({ fileInputRef, onFileUpload, accept, maxSize, }: {
|
|
3
|
+
fileInputRef: RefObject<HTMLInputElement | null>;
|
|
4
|
+
onFileUpload(file: File): void;
|
|
5
|
+
accept?: string;
|
|
6
|
+
maxSize?: string;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { IconUpload } from "@tabler/icons-react";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import cn from "../../cn";
|
|
5
|
+
export default function FileDropzone({ fileInputRef, onFileUpload, accept = "*/*", maxSize = "10MB", }) {
|
|
6
|
+
const [isDragActive, setIsDragActive] = useState(false);
|
|
7
|
+
const handleFileSelect = (files) => {
|
|
8
|
+
if (files === null || files === void 0 ? void 0 : files[0]) {
|
|
9
|
+
onFileUpload(files[0]);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const handleBoxClick = () => {
|
|
13
|
+
var _a;
|
|
14
|
+
(_a = fileInputRef.current) === null || _a === void 0 ? void 0 : _a.click();
|
|
15
|
+
};
|
|
16
|
+
const handleDragEnter = (e) => {
|
|
17
|
+
e.preventDefault();
|
|
18
|
+
e.stopPropagation();
|
|
19
|
+
setIsDragActive(true);
|
|
20
|
+
};
|
|
21
|
+
const handleDragLeave = (e) => {
|
|
22
|
+
e.preventDefault();
|
|
23
|
+
e.stopPropagation();
|
|
24
|
+
setIsDragActive(false);
|
|
25
|
+
};
|
|
26
|
+
const handleDragOver = (e) => {
|
|
27
|
+
e.preventDefault();
|
|
28
|
+
e.stopPropagation();
|
|
29
|
+
};
|
|
30
|
+
const handleDrop = (e) => {
|
|
31
|
+
e.preventDefault();
|
|
32
|
+
e.stopPropagation();
|
|
33
|
+
setIsDragActive(false);
|
|
34
|
+
const files = Array.from(e.dataTransfer.files);
|
|
35
|
+
if (files.length > 0) {
|
|
36
|
+
onFileUpload(files[0]);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
return (_jsxs("div", { className: cn("flex cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-neutral-300 p-8 text-center transition-colors dark:border-neutral-700", isDragActive ? "border bg-neutral-100 dark:bg-neutral-900" : "border-dashed"), onClick: handleBoxClick, onDragEnter: handleDragEnter, onDragLeave: handleDragLeave, onDragOver: handleDragOver, onDrop: handleDrop, children: [_jsx("div", { className: "mb-2", children: _jsx(IconUpload, { className: cn("size-8 ", isDragActive ? "text-neutral-700 dark:text-neutral-300" : "text-neutral-500") }) }), _jsx("p", { className: "text-sm font-medium text-neutral-700 dark:text-neutral-300", children: isDragActive ? "Drop file here" : "Choose a file or drag and drop" }), _jsxs("p", { className: "mt-1 text-xs text-neutral-500", children: ["(", maxSize, " max)"] }), _jsx("input", { type: "file", ref: fileInputRef, className: "hidden", accept: accept, onChange: (e) => handleFileSelect(e.target.files) })] }));
|
|
40
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { Input as InputPrimitive } from "@base-ui/react/input";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
export default function Input(_a) {
|
|
16
|
+
var { className, type } = _a, props = __rest(_a, ["className", "type"]);
|
|
17
|
+
return (_jsx(InputPrimitive, Object.assign({ type: type, "data-slot": "input", className: cn("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", className) }, props)));
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
export default function InputGroup(_a) {
|
|
16
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
17
|
+
return (_jsx("div", Object.assign({ "data-slot": "input-group", role: "group", className: cn("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-[3px] has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 [[data-slot=combobox-content]_&]:focus-within:border-inherit [[data-slot=combobox-content]_&]:focus-within:ring-0", className) }, props)));
|
|
18
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import inputGroupAddonVariants from "./inputGroupAddonVariants";
|
|
2
|
+
import type { VariantProps } from "class-variance-authority";
|
|
3
|
+
import type { ComponentProps } from "react";
|
|
4
|
+
export default function InputGroupAddon({ className, align, ...props }: ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
import inputGroupAddonVariants from "./inputGroupAddonVariants";
|
|
16
|
+
export default function InputGroupAddon(_a) {
|
|
17
|
+
var { className, align = "inline-start" } = _a, props = __rest(_a, ["className", "align"]);
|
|
18
|
+
return (_jsx("div", Object.assign({ role: "group", "data-slot": "input-group-addon", "data-align": align, className: cn(inputGroupAddonVariants({ align }), className), onClick: (e) => {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
if (e.target.closest("button")) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
(_b = (_a = e.currentTarget.parentElement) === null || _a === void 0 ? void 0 : _a.querySelector("input")) === null || _b === void 0 ? void 0 : _b.focus();
|
|
24
|
+
} }, props)));
|
|
25
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import Button from "../../components/button/Button";
|
|
2
|
+
import inputGroupButtonVariants from "./inputGroupButtonVariants";
|
|
3
|
+
import type { VariantProps } from "class-variance-authority";
|
|
4
|
+
import type { ComponentProps } from "react";
|
|
5
|
+
export default function InputGroupButton({ className, type, variant, size, ...props }: Omit<ComponentProps<typeof Button>, "size" | "type"> & VariantProps<typeof inputGroupButtonVariants> & {
|
|
6
|
+
type?: "button" | "submit" | "reset";
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
import Button from "../../components/button/Button";
|
|
16
|
+
import inputGroupButtonVariants from "./inputGroupButtonVariants";
|
|
17
|
+
export default function InputGroupButton(_a) {
|
|
18
|
+
var { className, type = "button", variant = "ghost", size = "xs" } = _a, props = __rest(_a, ["className", "type", "variant", "size"]);
|
|
19
|
+
return (_jsx(Button, Object.assign({ type: type, "data-size": size, variant: variant, className: cn(inputGroupButtonVariants({ size }), className) }, props)));
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
import Input from "../../components/input/Input";
|
|
16
|
+
export default function InputGroupInput(_a) {
|
|
17
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
18
|
+
return (_jsx(Input, Object.assign({ "data-slot": "input-group-control", className: cn("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", className) }, props)));
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
export default function InputGroupText(_a) {
|
|
16
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
17
|
+
return (_jsx("span", Object.assign({ className: cn("flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", className) }, props)));
|
|
18
|
+
}
|