@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
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 cmdNiels
|
|
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
|
|
10
|
+
furnished 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.
|
package/README.md
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# @cmdniels/uikit
|
|
2
|
+
|
|
3
|
+
A modern React UI component library built with TypeScript, Tailwind CSS, and Base UI.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @cmdniels/uikit
|
|
9
|
+
# or
|
|
10
|
+
npm install @cmdniels/uikit
|
|
11
|
+
# or
|
|
12
|
+
yarn add @cmdniels/uikit
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Peer Dependencies
|
|
16
|
+
|
|
17
|
+
Make sure you have React 18+ or React 19+ installed:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pnpm add react react-dom
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Setup
|
|
24
|
+
|
|
25
|
+
1. **Install the package:**
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pnpm add @cmdniels/uikit
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
2. **Create a `globals.css` file in your project root:**
|
|
32
|
+
|
|
33
|
+
```css
|
|
34
|
+
@import "tailwindcss";
|
|
35
|
+
@import "tw-animate-css";
|
|
36
|
+
@import "@cmdniels/uikit/tailwind.css";
|
|
37
|
+
|
|
38
|
+
@source "node_modules/@cmdniels/uikit/**/*.js";
|
|
39
|
+
|
|
40
|
+
:root {
|
|
41
|
+
--background: oklch(1 0 0);
|
|
42
|
+
--foreground: oklch(0.145 0 0);
|
|
43
|
+
--card: oklch(1 0 0);
|
|
44
|
+
--card-foreground: oklch(0.145 0 0);
|
|
45
|
+
--popover: oklch(1 0 0);
|
|
46
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
47
|
+
--primary: oklch(0.205 0 0);
|
|
48
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
49
|
+
--secondary: oklch(0.97 0 0);
|
|
50
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
51
|
+
--muted: oklch(0.97 0 0);
|
|
52
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
53
|
+
--accent: oklch(0.97 0 0);
|
|
54
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
55
|
+
--destructive: oklch(0.58 0.22 27);
|
|
56
|
+
--border: oklch(0.922 0 0);
|
|
57
|
+
--input: oklch(0.922 0 0);
|
|
58
|
+
--ring: oklch(0.708 0 0);
|
|
59
|
+
--radius: 0.625rem;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.dark {
|
|
63
|
+
--background: oklch(0.145 0 0);
|
|
64
|
+
--foreground: oklch(0.985 0 0);
|
|
65
|
+
--card: oklch(0.205 0 0);
|
|
66
|
+
--card-foreground: oklch(0.985 0 0);
|
|
67
|
+
--popover: oklch(0.205 0 0);
|
|
68
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
69
|
+
--primary: oklch(0.87 0 0);
|
|
70
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
71
|
+
--secondary: oklch(0.269 0 0);
|
|
72
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
73
|
+
--muted: oklch(0.269 0 0);
|
|
74
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
75
|
+
--accent: oklch(0.371 0 0);
|
|
76
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
77
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
78
|
+
--border: oklch(1 0 0 / 10%);
|
|
79
|
+
--input: oklch(1 0 0 / 15%);
|
|
80
|
+
--ring: oklch(0.556 0 0);
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
3. **Create a `postcss.config.mjs` file:**
|
|
85
|
+
|
|
86
|
+
```javascript
|
|
87
|
+
export default {
|
|
88
|
+
plugins: {
|
|
89
|
+
"@tailwindcss/postcss": {},
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
4. **Import the globals.css in your app and use the components:**
|
|
95
|
+
|
|
96
|
+
```tsx
|
|
97
|
+
import "./globals.css";
|
|
98
|
+
import { Button, Card, CardHeader, CardTitle, CardContent } from "@cmdniels/uikit";
|
|
99
|
+
import cn from "@cmdniels/uikit/cn";
|
|
100
|
+
|
|
101
|
+
export default function MyComponent() {
|
|
102
|
+
return (
|
|
103
|
+
<Card>
|
|
104
|
+
<CardHeader>
|
|
105
|
+
<CardTitle>Hello World</CardTitle>
|
|
106
|
+
</CardHeader>
|
|
107
|
+
<CardContent>
|
|
108
|
+
<Button>Click me</Button>
|
|
109
|
+
</CardContent>
|
|
110
|
+
</Card>
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Requirements
|
|
116
|
+
|
|
117
|
+
- React 18+ or React 19+
|
|
118
|
+
- All dependencies are included in the package
|
|
119
|
+
|
|
120
|
+
## Available Components
|
|
121
|
+
|
|
122
|
+
- **Layout**: Accordion, Card, Item, Separator, Table
|
|
123
|
+
- **Forms**: Button, ButtonGroup, Checkbox, Input, InputGroup, Label, Select, Switch, Textarea, Toggle
|
|
124
|
+
- **Data Entry**: Calendar, Combobox, DatePicker, Field, FileDropzone
|
|
125
|
+
- **Feedback**: Alert, AlertDialog, Error, Skeleton, Toaster (Sonner)
|
|
126
|
+
- **Navigation**: ContextMenu, DropdownMenu
|
|
127
|
+
- **Overlay**: Popover, Tooltip
|
|
128
|
+
- **Utilities**: AspectRatio, Badge, Sortable
|
|
129
|
+
- **Typography**: Complete set of typography components
|
|
130
|
+
|
|
131
|
+
## Development
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
# Install dependencies
|
|
135
|
+
pnpm install
|
|
136
|
+
|
|
137
|
+
# Start development server (Ladle)
|
|
138
|
+
pnpm dev
|
|
139
|
+
|
|
140
|
+
# Build the library
|
|
141
|
+
pnpm build
|
|
142
|
+
|
|
143
|
+
# Run linting
|
|
144
|
+
pnpm lint
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## License
|
|
148
|
+
|
|
149
|
+
MIT
|
package/out/cn.d.ts
ADDED
package/out/cn.js
ADDED
|
@@ -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 { Accordion as AccordionPrimitive } from "@base-ui/react/accordion";
|
|
15
|
+
import cn from "../../cn";
|
|
16
|
+
export default function Accordion(_a) {
|
|
17
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
18
|
+
return (_jsx(AccordionPrimitive.Root, Object.assign({ "data-slot": "accordion", className: cn("flex w-full flex-col", className) }, props)));
|
|
19
|
+
}
|
|
@@ -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 { Accordion as AccordionPrimitive } from "@base-ui/react/accordion";
|
|
15
|
+
import cn from "../../cn";
|
|
16
|
+
export default function AccordionContent(_a) {
|
|
17
|
+
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
18
|
+
return (_jsx(AccordionPrimitive.Panel, Object.assign({ "data-slot": "accordion-content", className: "overflow-hidden text-sm data-open:animate-accordion-down data-closed:animate-accordion-up" }, props, { children: _jsx("div", { className: cn("h-(--accordion-panel-height) pt-0 pb-4 data-ending-style:h-0 data-starting-style:h-0 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", className), children: children }) })));
|
|
19
|
+
}
|
|
@@ -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 { Accordion as AccordionPrimitive } from "@base-ui/react/accordion";
|
|
15
|
+
import cn from "../../cn";
|
|
16
|
+
export default function AccordionItem(_a) {
|
|
17
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
18
|
+
return (_jsx(AccordionPrimitive.Item, Object.assign({ "data-slot": "accordion-item", className: cn("not-last:border-b", className) }, 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 { Accordion as AccordionPrimitive } from "@base-ui/react/accordion";
|
|
15
|
+
import { IconChevronDown, IconChevronUp } from "@tabler/icons-react";
|
|
16
|
+
import cn from "../../cn";
|
|
17
|
+
export default function AccordionTrigger(_a) {
|
|
18
|
+
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
19
|
+
return (_jsx(AccordionPrimitive.Header, { className: "flex", children: _jsxs(AccordionPrimitive.Trigger, Object.assign({ "data-slot": "accordion-trigger", className: cn("group/accordion-trigger relative flex flex-1 items-start justify-between rounded-md border border-transparent py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:after:border-ring disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground", className) }, props, { children: [children, _jsx(IconChevronDown, { "data-slot": "accordion-trigger-icon", className: "pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden" }), _jsx(IconChevronUp, { "data-slot": "accordion-trigger-icon", className: "pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline" })] })) }));
|
|
20
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { alertVariants } from "./alertVariants";
|
|
2
|
+
import type { VariantProps } from "class-variance-authority";
|
|
3
|
+
import type { ComponentProps } from "react";
|
|
4
|
+
export default function Alert({ className, variant, ...props }: ComponentProps<"div"> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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 cn from "../../cn";
|
|
14
|
+
import { alertVariants } from "./alertVariants";
|
|
15
|
+
export default function Alert(_a) {
|
|
16
|
+
var { className, variant } = _a, props = __rest(_a, ["className", "variant"]);
|
|
17
|
+
return _jsx("div", Object.assign({ "data-slot": "alert", role: "alert", className: cn(alertVariants({ variant }), className) }, props));
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 cn from "../../cn";
|
|
14
|
+
export default function AlertAction(_a) {
|
|
15
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
16
|
+
return _jsx("div", Object.assign({ "data-slot": "alert-action", className: cn("absolute top-2.5 right-3", className) }, props));
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 cn from "../../cn";
|
|
14
|
+
export default function AlertDescription(_a) {
|
|
15
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
16
|
+
return (_jsx("div", Object.assign({ "data-slot": "alert-description", className: cn("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", className) }, props)));
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 cn from "../../cn";
|
|
14
|
+
export default function AlertTitle(_a) {
|
|
15
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
16
|
+
return (_jsx("div", Object.assign({ "data-slot": "alert-title", className: cn("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground", className) }, props)));
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
export const alertVariants = cva("group/alert relative grid w-full gap-0.5 rounded-lg border px-4 py-3 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4", {
|
|
3
|
+
variants: {
|
|
4
|
+
variant: {
|
|
5
|
+
default: "bg-card text-card-foreground",
|
|
6
|
+
destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current",
|
|
7
|
+
},
|
|
8
|
+
},
|
|
9
|
+
defaultVariants: {
|
|
10
|
+
variant: "default",
|
|
11
|
+
},
|
|
12
|
+
});
|
|
@@ -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 { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
15
|
+
export default function AlertDialog(_a) {
|
|
16
|
+
var props = __rest(_a, []);
|
|
17
|
+
return _jsx(AlertDialogPrimitive.Root, Object.assign({ "data-slot": "alert-dialog" }, props));
|
|
18
|
+
}
|
|
@@ -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 cn from "../../cn";
|
|
14
|
+
import Button from "../../components/button/Button";
|
|
15
|
+
export default function AlertDialogAction(_a) {
|
|
16
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
17
|
+
return _jsx(Button, Object.assign({ "data-slot": "alert-dialog-action", className: cn(className) }, props));
|
|
18
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
2
|
+
import Button from "../../components/button/Button";
|
|
3
|
+
import type { ComponentProps } from "react";
|
|
4
|
+
export default function AlertDialogCancel({ className, variant, size, ...props }: AlertDialogPrimitive.Close.Props & Pick<ComponentProps<typeof Button>, "variant" | "size">): 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 { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
15
|
+
import cn from "../../cn";
|
|
16
|
+
import Button from "../../components/button/Button";
|
|
17
|
+
export default function AlertDialogCancel(_a) {
|
|
18
|
+
var { className, variant = "outline", size = "default" } = _a, props = __rest(_a, ["className", "variant", "size"]);
|
|
19
|
+
return (_jsx(AlertDialogPrimitive.Close, Object.assign({ "data-slot": "alert-dialog-cancel", className: cn(className), render: _jsx(Button, { variant: variant, size: size }) }, props)));
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
15
|
+
import cn from "../../cn";
|
|
16
|
+
import AlertDialogOverlay from "./AlertDialogOverlay";
|
|
17
|
+
import AlertDialogPortal from "./AlertDialogPortal";
|
|
18
|
+
export default function AlertDialogContent(_a) {
|
|
19
|
+
var { className, size = "default" } = _a, props = __rest(_a, ["className", "size"]);
|
|
20
|
+
return (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsx(AlertDialogPrimitive.Popup, Object.assign({ "data-slot": "alert-dialog-content", "data-size": size, className: cn("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-1/2 gap-6 rounded-xl bg-background p-6 ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg 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) }, props))] }));
|
|
21
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
export default function AlertDialogDescription({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Description>): 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 { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
15
|
+
import cn from "../../cn";
|
|
16
|
+
export default function AlertDialogDescription(_a) {
|
|
17
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
18
|
+
return (_jsx(AlertDialogPrimitive.Description, Object.assign({ "data-slot": "alert-dialog-description", className: cn("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className) }, props)));
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 cn from "../../cn";
|
|
14
|
+
export default function AlertDialogFooter(_a) {
|
|
15
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
16
|
+
return (_jsx("div", Object.assign({ "data-slot": "alert-dialog-footer", className: cn("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", className) }, props)));
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 cn from "../../cn";
|
|
14
|
+
export default function AlertDialogHeader(_a) {
|
|
15
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
16
|
+
return (_jsx("div", Object.assign({ "data-slot": "alert-dialog-header", className: cn("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", className) }, props)));
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 cn from "../../cn";
|
|
14
|
+
export default function AlertDialogMedia(_a) {
|
|
15
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
16
|
+
return (_jsx("div", Object.assign({ "data-slot": "alert-dialog-media", className: cn("mb-2 inline-flex size-16 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8", className) }, props)));
|
|
17
|
+
}
|
|
@@ -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 { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
15
|
+
import cn from "../../cn";
|
|
16
|
+
export default function AlertDialogOverlay(_a) {
|
|
17
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
18
|
+
return (_jsx(AlertDialogPrimitive.Backdrop, Object.assign({ "data-slot": "alert-dialog-overlay", className: cn("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", className) }, props)));
|
|
19
|
+
}
|