@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,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 AlertDialogPortal(_a) {
|
|
16
|
+
var props = __rest(_a, []);
|
|
17
|
+
return _jsx(AlertDialogPrimitive.Portal, Object.assign({ "data-slot": "alert-dialog-portal" }, props));
|
|
18
|
+
}
|
|
@@ -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 AlertDialogTitle({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Title>): 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 AlertDialogTitle(_a) {
|
|
17
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
18
|
+
return (_jsx(AlertDialogPrimitive.Title, Object.assign({ "data-slot": "alert-dialog-title", className: cn("text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", 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 { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
|
|
15
|
+
export default function AlertDialogTrigger(_a) {
|
|
16
|
+
var props = __rest(_a, []);
|
|
17
|
+
return _jsx(AlertDialogPrimitive.Trigger, Object.assign({ "data-slot": "alert-dialog-trigger" }, props));
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 AspectRatio(_a) {
|
|
15
|
+
var { ratio, className } = _a, props = __rest(_a, ["ratio", "className"]);
|
|
16
|
+
return (_jsx("div", Object.assign({ "data-slot": "aspect-ratio", style: {
|
|
17
|
+
"--ratio": ratio,
|
|
18
|
+
}, className: cn("relative aspect-(--ratio)", className) }, props)));
|
|
19
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
+
import { badgeVariants } from "./badgeVariants";
|
|
3
|
+
import type { VariantProps } from "class-variance-authority";
|
|
4
|
+
export default function Badge({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { mergeProps } from "@base-ui/react/merge-props";
|
|
13
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
import { badgeVariants } from "./badgeVariants";
|
|
16
|
+
export default function Badge(_a) {
|
|
17
|
+
var { className, variant = "default", render } = _a, props = __rest(_a, ["className", "variant", "render"]);
|
|
18
|
+
return useRender({
|
|
19
|
+
defaultTagName: "span",
|
|
20
|
+
props: mergeProps({
|
|
21
|
+
className: cn(badgeVariants({ className, variant })),
|
|
22
|
+
}, props),
|
|
23
|
+
render,
|
|
24
|
+
state: {
|
|
25
|
+
slot: "badge",
|
|
26
|
+
variant,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
export const badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
3
|
+
variants: {
|
|
4
|
+
variant: {
|
|
5
|
+
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
6
|
+
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
7
|
+
destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
|
|
8
|
+
outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
|
|
9
|
+
ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
|
|
10
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
variant: "default",
|
|
15
|
+
},
|
|
16
|
+
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Button as ButtonPrimitive } from "@base-ui/react/button";
|
|
2
|
+
import { buttonVariants } from "./buttonVariants";
|
|
3
|
+
import type { VariantProps } from "class-variance-authority";
|
|
4
|
+
export default function Button({ className, variant, size, ...props }: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { Button as ButtonPrimitive } from "@base-ui/react/button";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
import { buttonVariants } from "./buttonVariants";
|
|
16
|
+
export default function Button(_a) {
|
|
17
|
+
var { className, variant = "default", size = "default" } = _a, props = __rest(_a, ["className", "variant", "size"]);
|
|
18
|
+
return (_jsx(ButtonPrimitive, Object.assign({ "data-slot": "button", className: cn(buttonVariants({ variant, size, className })) }, props)));
|
|
19
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const buttonVariants: (props?: ({
|
|
2
|
+
variant?: "link" | "default" | "destructive" | "none" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
3
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
export const buttonVariants = cva("group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
3
|
+
variants: {
|
|
4
|
+
variant: {
|
|
5
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
6
|
+
outline: "border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
|
|
7
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
|
|
8
|
+
ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
|
|
9
|
+
destructive: "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
|
|
10
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
11
|
+
none: "text-primary",
|
|
12
|
+
},
|
|
13
|
+
size: {
|
|
14
|
+
default: "h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
15
|
+
xs: "h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
16
|
+
sm: "h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
|
|
17
|
+
lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
|
|
18
|
+
icon: "size-9",
|
|
19
|
+
"icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
|
|
20
|
+
"icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
|
|
21
|
+
"icon-lg": "size-10",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
variant: "default",
|
|
26
|
+
size: "default",
|
|
27
|
+
},
|
|
28
|
+
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import buttonGroupVariants from "./buttonGroupVariants";
|
|
2
|
+
import type { VariantProps } from "class-variance-authority";
|
|
3
|
+
import type { ComponentProps } from "react";
|
|
4
|
+
export default function ButtonGroup({ className, orientation, ...props }: ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>): 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 buttonGroupVariants from "./buttonGroupVariants";
|
|
15
|
+
export default function ButtonGroup(_a) {
|
|
16
|
+
var { className, orientation } = _a, props = __rest(_a, ["className", "orientation"]);
|
|
17
|
+
return (_jsx("div", Object.assign({ role: "group", "data-slot": "button-group", "data-orientation": orientation, className: cn(buttonGroupVariants({ orientation }), className) }, 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 Separator from "../../components/separator/Separator";
|
|
15
|
+
export default function ButtonGroupSeparator(_a) {
|
|
16
|
+
var { className, orientation = "vertical" } = _a, props = __rest(_a, ["className", "orientation"]);
|
|
17
|
+
return (_jsx(Separator, Object.assign({ "data-slot": "button-group-separator", orientation: orientation, className: cn("relative self-stretch bg-input data-[orientation=horizontal]:mx-px data-[orientation=horizontal]:w-auto data-[orientation=vertical]:my-px data-[orientation=vertical]:h-auto", className) }, props)));
|
|
18
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { mergeProps } from "@base-ui/react/merge-props";
|
|
13
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
14
|
+
import cn from "../../cn";
|
|
15
|
+
export default function ButtonGroupText(_a) {
|
|
16
|
+
var { className, render } = _a, props = __rest(_a, ["className", "render"]);
|
|
17
|
+
return useRender({
|
|
18
|
+
defaultTagName: "div",
|
|
19
|
+
props: mergeProps({
|
|
20
|
+
className: cn("flex items-center gap-2 rounded-md border bg-muted px-2.5 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", className),
|
|
21
|
+
}, props),
|
|
22
|
+
render,
|
|
23
|
+
state: {
|
|
24
|
+
slot: "button-group-text",
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
const buttonGroupVariants = cva("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
|
|
3
|
+
variants: {
|
|
4
|
+
orientation: {
|
|
5
|
+
horizontal: "[&>[data-slot]]:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-md! [&>[data-slot]~[data-slot]]:rounded-l-none [&>[data-slot]~[data-slot]]:border-l-0",
|
|
6
|
+
vertical: "flex-col [&>[data-slot]]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-md! [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0",
|
|
7
|
+
},
|
|
8
|
+
},
|
|
9
|
+
defaultVariants: {
|
|
10
|
+
orientation: "horizontal",
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
export default buttonGroupVariants;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ComponentProps } from "react";
|
|
2
|
+
import { DayPicker } from "react-day-picker";
|
|
3
|
+
import type Button from "../../components/button/Button";
|
|
4
|
+
export default function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: ComponentProps<typeof DayPicker> & {
|
|
5
|
+
buttonVariant?: ComponentProps<typeof Button>["variant"];
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* eslint-disable better-tailwindcss/no-unregistered-classes */
|
|
2
|
+
"use client";
|
|
3
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
4
|
+
var t = {};
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
8
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
10
|
+
t[p[i]] = s[p[i]];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
import { IconChevronLeft, IconChevronRight, IconChevronDown } from "@tabler/icons-react";
|
|
16
|
+
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
17
|
+
import cn from "../../cn";
|
|
18
|
+
import { buttonVariants } from "../../components/button/buttonVariants";
|
|
19
|
+
import CalendarDayButton from "./CalendarDayButton";
|
|
20
|
+
export default function Calendar(_a) {
|
|
21
|
+
var { className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, components } = _a, props = __rest(_a, ["className", "classNames", "showOutsideDays", "captionLayout", "buttonVariant", "formatters", "components"]);
|
|
22
|
+
const defaultClassNames = getDefaultClassNames();
|
|
23
|
+
return (_jsx(DayPicker, Object.assign({ showOutsideDays: showOutsideDays, className: cn("group/calendar in-data[slot=card-content]:bg-transparent in-data[slot=popover-content]:bg-transparent bg-background p-3 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(8)]", String.raw `rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw `rtl:**:[.rdp-button\_previous>svg]:rotate-180`, className), captionLayout: captionLayout, formatters: Object.assign({ formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }) }, formatters), classNames: Object.assign({ root: cn("w-fit", defaultClassNames.root), months: cn("relative flex flex-col gap-4 md:flex-row", defaultClassNames.months), month: cn("flex w-full flex-col gap-4", defaultClassNames.month), nav: cn("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", defaultClassNames.nav), button_previous: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", defaultClassNames.button_previous), button_next: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", defaultClassNames.button_next), month_caption: cn("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)", defaultClassNames.month_caption), dropdowns: cn("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium", defaultClassNames.dropdowns), dropdown_root: cn("cn-calendar-dropdown-root relative rounded-(--cell-radius)", defaultClassNames.dropdown_root), dropdown: cn("absolute inset-0 bg-popover opacity-0", defaultClassNames.dropdown), caption_label: cn("font-medium select-none", captionLayout === "label"
|
|
24
|
+
? "text-sm"
|
|
25
|
+
: "cn-calendar-caption-label flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground", defaultClassNames.caption_label), table: "w-full border-collapse", weekdays: cn("flex", defaultClassNames.weekdays), weekday: cn("flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal text-muted-foreground select-none", defaultClassNames.weekday), week: cn("mt-2 flex w-full", defaultClassNames.week), week_number_header: cn("w-(--cell-size) select-none", defaultClassNames.week_number_header), week_number: cn("text-[0.8rem] text-muted-foreground select-none", defaultClassNames.week_number), day: cn("group/day relative aspect-square size-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius)", props.showWeekNumber
|
|
26
|
+
? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)"
|
|
27
|
+
: "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)", defaultClassNames.day), range_start: cn("relative isolate -z-0 rounded-l-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:right-0 after:w-4 after:bg-muted", defaultClassNames.range_start), range_middle: cn("rounded-none", defaultClassNames.range_middle), range_end: cn("relative isolate -z-0 rounded-r-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:left-0 after:w-4 after:bg-muted", defaultClassNames.range_end), today: cn("rounded-(--cell-radius) bg-muted text-foreground data-[selected=true]:rounded-none", defaultClassNames.today), outside: cn("text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside), disabled: cn("text-muted-foreground opacity-50", defaultClassNames.disabled), hidden: cn("invisible", defaultClassNames.hidden) }, classNames), components: Object.assign({ Root: (_a) => {
|
|
28
|
+
var { className: rootClassName, rootRef } = _a, rootProps = __rest(_a, ["className", "rootRef"]);
|
|
29
|
+
return (_jsx("div", Object.assign({ "data-slot": "calendar", ref: rootRef, className: cn(rootClassName) }, rootProps)));
|
|
30
|
+
}, Chevron: (_a) => {
|
|
31
|
+
var { className: chevronClassName, orientation } = _a, chevronProps = __rest(_a, ["className", "orientation"]);
|
|
32
|
+
if (orientation === "left") {
|
|
33
|
+
return _jsx(IconChevronLeft, Object.assign({ className: cn("size-4", chevronClassName) }, chevronProps));
|
|
34
|
+
}
|
|
35
|
+
if (orientation === "right") {
|
|
36
|
+
return _jsx(IconChevronRight, Object.assign({ className: cn("size-4", chevronClassName) }, chevronProps));
|
|
37
|
+
}
|
|
38
|
+
return _jsx(IconChevronDown, Object.assign({ className: cn("size-4", chevronClassName) }, chevronProps));
|
|
39
|
+
}, DayButton: CalendarDayButton, WeekNumber: (_a) => {
|
|
40
|
+
var { children } = _a, weekNumberProps = __rest(_a, ["children"]);
|
|
41
|
+
return (_jsx("td", Object.assign({}, weekNumberProps, { children: _jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: children }) })));
|
|
42
|
+
} }, components) }, props)));
|
|
43
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { useRef, useEffect } from "react";
|
|
15
|
+
import { getDefaultClassNames } from "react-day-picker";
|
|
16
|
+
import cn from "../../cn";
|
|
17
|
+
import Button from "../../components/button/Button";
|
|
18
|
+
export default function CalendarDayButton(_a) {
|
|
19
|
+
var { className, day, modifiers } = _a, props = __rest(_a, ["className", "day", "modifiers"]);
|
|
20
|
+
const defaultClassNames = getDefaultClassNames();
|
|
21
|
+
const ref = useRef(null);
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
var _a;
|
|
24
|
+
if (modifiers.focused) {
|
|
25
|
+
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
26
|
+
}
|
|
27
|
+
}, [modifiers.focused]);
|
|
28
|
+
return (_jsx(Button, Object.assign({ variant: "ghost", size: "icon", "data-day": day.date.toLocaleDateString(), "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle, "data-range-start": modifiers.range_start, "data-range-end": modifiers.range_end, "data-range-middle": modifiers.range_middle, className: cn("relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius) data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius) data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-foreground [&>span]:text-xs [&>span]:opacity-70", defaultClassNames.day, className) }, props)));
|
|
29
|
+
}
|
|
@@ -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 Card(_a) {
|
|
15
|
+
var { className, size = "default" } = _a, props = __rest(_a, ["className", "size"]);
|
|
16
|
+
return (_jsx("div", Object.assign({ "data-slot": "card", "data-size": size, className: cn("group/card flex flex-col gap-6 overflow-hidden rounded-xl bg-card py-6 text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl", 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 CardAction(_a) {
|
|
15
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
16
|
+
return (_jsx("div", Object.assign({ "data-slot": "card-action", className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-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 CardContent(_a) {
|
|
15
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
16
|
+
return _jsx("div", Object.assign({ "data-slot": "card-content", className: cn("px-6 group-data-[size=sm]/card:px-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 CardDescription(_a) {
|
|
15
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
16
|
+
return _jsx("div", Object.assign({ "data-slot": "card-description", className: cn("text-sm text-muted-foreground", 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 CardFooter(_a) {
|
|
15
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
16
|
+
return (_jsx("div", Object.assign({ "data-slot": "card-footer", className: cn("flex items-center rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-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 CardHeader(_a) {
|
|
15
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
16
|
+
return (_jsx("div", Object.assign({ "data-slot": "card-header", className: cn("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-6 group-data-[size=sm]/card:px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-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 CardTitle(_a) {
|
|
15
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
16
|
+
return (_jsx("div", Object.assign({ "data-slot": "card-title", className: cn("text-base leading-normal font-medium group-data-[size=sm]/card:text-sm", className) }, props)));
|
|
17
|
+
}
|
|
@@ -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 { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
|
|
15
|
+
import { IconCheck } from "@tabler/icons-react";
|
|
16
|
+
import cn from "../../cn";
|
|
17
|
+
export default function Checkbox(_a) {
|
|
18
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
19
|
+
return (_jsx(CheckboxPrimitive.Root, Object.assign({ "data-slot": "checkbox", className: cn("peer relative flex size-4 shrink-0 items-center justify-center rounded-lg border border-input shadow-xs transition-shadow outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary", className) }, props, { children: _jsx(CheckboxPrimitive.Indicator, { "data-slot": "checkbox-indicator", className: "grid place-content-center text-current transition-none [&>svg]:size-3.5", children: _jsx(IconCheck, {}) }) })));
|
|
20
|
+
}
|