@cmdniels/uikit 1.5.10 → 2.0.1
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/README.md +1 -1
- package/out/cn.d.ts +1 -0
- package/out/cn.d.ts.map +1 -0
- package/out/cn.js +1 -0
- package/out/cn.js.map +1 -0
- package/out/components/accordion/Accordion.d.ts +1 -0
- package/out/components/accordion/Accordion.d.ts.map +1 -0
- package/out/components/accordion/Accordion.js +3 -15
- package/out/components/accordion/Accordion.js.map +1 -0
- package/out/components/accordion/AccordionContent.d.ts +1 -0
- package/out/components/accordion/AccordionContent.d.ts.map +1 -0
- package/out/components/accordion/AccordionContent.js +3 -15
- package/out/components/accordion/AccordionContent.js.map +1 -0
- package/out/components/accordion/AccordionItem.d.ts +1 -0
- package/out/components/accordion/AccordionItem.d.ts.map +1 -0
- package/out/components/accordion/AccordionItem.js +3 -15
- package/out/components/accordion/AccordionItem.js.map +1 -0
- package/out/components/accordion/AccordionTrigger.d.ts +1 -0
- package/out/components/accordion/AccordionTrigger.d.ts.map +1 -0
- package/out/components/accordion/AccordionTrigger.js +3 -15
- package/out/components/accordion/AccordionTrigger.js.map +1 -0
- package/out/components/alert/Alert.d.ts +2 -1
- package/out/components/alert/Alert.d.ts.map +1 -0
- package/out/components/alert/Alert.js +4 -15
- package/out/components/alert/Alert.js.map +1 -0
- package/out/components/alert/AlertAction.d.ts +1 -0
- package/out/components/alert/AlertAction.d.ts.map +1 -0
- package/out/components/alert/AlertAction.js +3 -14
- package/out/components/alert/AlertAction.js.map +1 -0
- package/out/components/alert/AlertDescription.d.ts +1 -0
- package/out/components/alert/AlertDescription.d.ts.map +1 -0
- package/out/components/alert/AlertDescription.js +3 -14
- package/out/components/alert/AlertDescription.js.map +1 -0
- package/out/components/alert/AlertTitle.d.ts +1 -0
- package/out/components/alert/AlertTitle.d.ts.map +1 -0
- package/out/components/alert/AlertTitle.js +3 -14
- package/out/components/alert/AlertTitle.js.map +1 -0
- package/out/components/alert/alertVariants.d.ts +3 -1
- package/out/components/alert/alertVariants.d.ts.map +1 -0
- package/out/components/alert/alertVariants.js +3 -1
- package/out/components/alert/alertVariants.js.map +1 -0
- package/out/components/alert-dialog/AlertDialog.d.ts +1 -0
- package/out/components/alert-dialog/AlertDialog.d.ts.map +1 -0
- package/out/components/alert-dialog/AlertDialog.js +3 -15
- package/out/components/alert-dialog/AlertDialog.js.map +1 -0
- package/out/components/alert-dialog/AlertDialogAction.d.ts +1 -0
- package/out/components/alert-dialog/AlertDialogAction.d.ts.map +1 -0
- package/out/components/alert-dialog/AlertDialogAction.js +3 -14
- package/out/components/alert-dialog/AlertDialogAction.js.map +1 -0
- package/out/components/alert-dialog/AlertDialogCancel.d.ts +1 -0
- package/out/components/alert-dialog/AlertDialogCancel.d.ts.map +1 -0
- package/out/components/alert-dialog/AlertDialogCancel.js +3 -15
- package/out/components/alert-dialog/AlertDialogCancel.js.map +1 -0
- package/out/components/alert-dialog/AlertDialogContent.d.ts +1 -0
- package/out/components/alert-dialog/AlertDialogContent.d.ts.map +1 -0
- package/out/components/alert-dialog/AlertDialogContent.js +3 -15
- package/out/components/alert-dialog/AlertDialogContent.js.map +1 -0
- package/out/components/alert-dialog/AlertDialogDescription.d.ts +1 -0
- package/out/components/alert-dialog/AlertDialogDescription.d.ts.map +1 -0
- package/out/components/alert-dialog/AlertDialogDescription.js +3 -15
- package/out/components/alert-dialog/AlertDialogDescription.js.map +1 -0
- package/out/components/alert-dialog/AlertDialogFooter.d.ts +1 -0
- package/out/components/alert-dialog/AlertDialogFooter.d.ts.map +1 -0
- package/out/components/alert-dialog/AlertDialogFooter.js +3 -14
- package/out/components/alert-dialog/AlertDialogFooter.js.map +1 -0
- package/out/components/alert-dialog/AlertDialogHeader.d.ts +1 -0
- package/out/components/alert-dialog/AlertDialogHeader.d.ts.map +1 -0
- package/out/components/alert-dialog/AlertDialogHeader.js +3 -14
- package/out/components/alert-dialog/AlertDialogHeader.js.map +1 -0
- package/out/components/alert-dialog/AlertDialogMedia.d.ts +1 -0
- package/out/components/alert-dialog/AlertDialogMedia.d.ts.map +1 -0
- package/out/components/alert-dialog/AlertDialogMedia.js +3 -14
- package/out/components/alert-dialog/AlertDialogMedia.js.map +1 -0
- package/out/components/alert-dialog/AlertDialogOverlay.d.ts +1 -0
- package/out/components/alert-dialog/AlertDialogOverlay.d.ts.map +1 -0
- package/out/components/alert-dialog/AlertDialogOverlay.js +3 -15
- package/out/components/alert-dialog/AlertDialogOverlay.js.map +1 -0
- package/out/components/alert-dialog/AlertDialogPortal.d.ts +1 -0
- package/out/components/alert-dialog/AlertDialogPortal.d.ts.map +1 -0
- package/out/components/alert-dialog/AlertDialogPortal.js +3 -15
- package/out/components/alert-dialog/AlertDialogPortal.js.map +1 -0
- package/out/components/alert-dialog/AlertDialogTitle.d.ts +1 -0
- package/out/components/alert-dialog/AlertDialogTitle.d.ts.map +1 -0
- package/out/components/alert-dialog/AlertDialogTitle.js +3 -15
- package/out/components/alert-dialog/AlertDialogTitle.js.map +1 -0
- package/out/components/alert-dialog/AlertDialogTrigger.d.ts +1 -0
- package/out/components/alert-dialog/AlertDialogTrigger.d.ts.map +1 -0
- package/out/components/alert-dialog/AlertDialogTrigger.js +3 -15
- package/out/components/alert-dialog/AlertDialogTrigger.js.map +1 -0
- package/out/components/aspect-ratio/AspectRatio.d.ts +1 -0
- package/out/components/aspect-ratio/AspectRatio.d.ts.map +1 -0
- package/out/components/aspect-ratio/AspectRatio.js +4 -15
- package/out/components/aspect-ratio/AspectRatio.js.map +1 -0
- package/out/components/badge/Badge.d.ts +2 -1
- package/out/components/badge/Badge.d.ts.map +1 -0
- package/out/components/badge/Badge.js +3 -14
- package/out/components/badge/Badge.js.map +1 -0
- package/out/components/badge/badgeVariants.d.ts +3 -1
- package/out/components/badge/badgeVariants.d.ts.map +1 -0
- package/out/components/badge/badgeVariants.js +3 -1
- package/out/components/badge/badgeVariants.js.map +1 -0
- package/out/components/bubble/Bubble.d.ts +7 -0
- package/out/components/bubble/Bubble.d.ts.map +1 -0
- package/out/components/bubble/Bubble.js +7 -0
- package/out/components/bubble/Bubble.js.map +1 -0
- package/out/components/bubble/BubbleContent.d.ts +3 -0
- package/out/components/bubble/BubbleContent.d.ts.map +1 -0
- package/out/components/bubble/BubbleContent.js +16 -0
- package/out/components/bubble/BubbleContent.js.map +1 -0
- package/out/components/bubble/BubbleGroup.d.ts +3 -0
- package/out/components/bubble/BubbleGroup.d.ts.map +1 -0
- package/out/components/bubble/BubbleGroup.js +6 -0
- package/out/components/bubble/BubbleGroup.js.map +1 -0
- package/out/components/bubble/BubbleReactions.d.ts +6 -0
- package/out/components/bubble/BubbleReactions.d.ts.map +1 -0
- package/out/components/bubble/BubbleReactions.js +7 -0
- package/out/components/bubble/BubbleReactions.js.map +1 -0
- package/out/components/bubble/bubbleReactionsVariants.d.ts +6 -0
- package/out/components/bubble/bubbleReactionsVariants.d.ts.map +1 -0
- package/out/components/bubble/bubbleReactionsVariants.js +19 -0
- package/out/components/bubble/bubbleReactionsVariants.js.map +1 -0
- package/out/components/bubble/bubbleVariants.d.ts +5 -0
- package/out/components/bubble/bubbleVariants.d.ts.map +1 -0
- package/out/components/bubble/bubbleVariants.js +19 -0
- package/out/components/bubble/bubbleVariants.js.map +1 -0
- package/out/components/button/Button.d.ts +2 -1
- package/out/components/button/Button.d.ts.map +1 -0
- package/out/components/button/Button.js +4 -15
- package/out/components/button/Button.js.map +1 -0
- package/out/components/button/buttonVariants.d.ts +3 -1
- package/out/components/button/buttonVariants.d.ts.map +1 -0
- package/out/components/button/buttonVariants.js +4 -2
- package/out/components/button/buttonVariants.js.map +1 -0
- package/out/components/button-group/ButtonGroup.d.ts +1 -0
- package/out/components/button-group/ButtonGroup.d.ts.map +1 -0
- package/out/components/button-group/ButtonGroup.js +3 -14
- package/out/components/button-group/ButtonGroup.js.map +1 -0
- package/out/components/button-group/ButtonGroupSeparator.d.ts +1 -0
- package/out/components/button-group/ButtonGroupSeparator.d.ts.map +1 -0
- package/out/components/button-group/ButtonGroupSeparator.js +3 -14
- package/out/components/button-group/ButtonGroupSeparator.js.map +1 -0
- package/out/components/button-group/ButtonGroupText.d.ts +1 -0
- package/out/components/button-group/ButtonGroupText.d.ts.map +1 -0
- package/out/components/button-group/ButtonGroupText.js +2 -13
- package/out/components/button-group/ButtonGroupText.js.map +1 -0
- package/out/components/button-group/buttonGroupVariants.d.ts +1 -0
- package/out/components/button-group/buttonGroupVariants.d.ts.map +1 -0
- package/out/components/button-group/buttonGroupVariants.js +1 -0
- package/out/components/button-group/buttonGroupVariants.js.map +1 -0
- package/out/components/calendar/Calendar.d.ts +1 -0
- package/out/components/calendar/Calendar.d.ts.map +1 -0
- package/out/components/calendar/Calendar.js +47 -30
- package/out/components/calendar/Calendar.js.map +1 -0
- package/out/components/calendar/CalendarDayButton.d.ts +1 -0
- package/out/components/calendar/CalendarDayButton.d.ts.map +1 -0
- package/out/components/calendar/CalendarDayButton.js +4 -17
- package/out/components/calendar/CalendarDayButton.js.map +1 -0
- package/out/components/card/Card.d.ts +1 -0
- package/out/components/card/Card.d.ts.map +1 -0
- package/out/components/card/Card.js +3 -14
- package/out/components/card/Card.js.map +1 -0
- package/out/components/card/CardAction.d.ts +1 -0
- package/out/components/card/CardAction.d.ts.map +1 -0
- package/out/components/card/CardAction.js +3 -14
- package/out/components/card/CardAction.js.map +1 -0
- package/out/components/card/CardContent.d.ts +1 -0
- package/out/components/card/CardContent.d.ts.map +1 -0
- package/out/components/card/CardContent.js +3 -14
- package/out/components/card/CardContent.js.map +1 -0
- package/out/components/card/CardDescription.d.ts +1 -0
- package/out/components/card/CardDescription.d.ts.map +1 -0
- package/out/components/card/CardDescription.js +3 -14
- package/out/components/card/CardDescription.js.map +1 -0
- package/out/components/card/CardFooter.d.ts +1 -0
- package/out/components/card/CardFooter.d.ts.map +1 -0
- package/out/components/card/CardFooter.js +3 -14
- package/out/components/card/CardFooter.js.map +1 -0
- package/out/components/card/CardHeader.d.ts +1 -0
- package/out/components/card/CardHeader.d.ts.map +1 -0
- package/out/components/card/CardHeader.js +3 -14
- package/out/components/card/CardHeader.js.map +1 -0
- package/out/components/card/CardTitle.d.ts +1 -0
- package/out/components/card/CardTitle.d.ts.map +1 -0
- package/out/components/card/CardTitle.js +3 -14
- package/out/components/card/CardTitle.js.map +1 -0
- package/out/components/checkbox/Checkbox.d.ts +1 -0
- package/out/components/checkbox/Checkbox.d.ts.map +1 -0
- package/out/components/checkbox/Checkbox.js +3 -15
- package/out/components/checkbox/Checkbox.js.map +1 -0
- package/out/components/combobox/Combobox.d.ts +3 -1
- package/out/components/combobox/Combobox.d.ts.map +1 -0
- package/out/components/combobox/Combobox.js +3 -46
- package/out/components/combobox/Combobox.js.map +1 -0
- package/out/components/combobox/ComboboxChip.d.ts +1 -0
- package/out/components/combobox/ComboboxChip.d.ts.map +1 -0
- package/out/components/combobox/ComboboxChip.js +3 -15
- package/out/components/combobox/ComboboxChip.js.map +1 -0
- package/out/components/combobox/ComboboxChips.d.ts +1 -0
- package/out/components/combobox/ComboboxChips.d.ts.map +1 -0
- package/out/components/combobox/ComboboxChips.js +3 -15
- package/out/components/combobox/ComboboxChips.js.map +1 -0
- package/out/components/combobox/ComboboxChipsInput.d.ts +1 -0
- package/out/components/combobox/ComboboxChipsInput.d.ts.map +1 -0
- package/out/components/combobox/ComboboxChipsInput.js +3 -15
- package/out/components/combobox/ComboboxChipsInput.js.map +1 -0
- package/out/components/combobox/ComboboxClear.d.ts +1 -0
- package/out/components/combobox/ComboboxClear.d.ts.map +1 -0
- package/out/components/combobox/ComboboxClear.js +3 -15
- package/out/components/combobox/ComboboxClear.js.map +1 -0
- package/out/components/combobox/ComboboxCollection.d.ts +1 -0
- package/out/components/combobox/ComboboxCollection.d.ts.map +1 -0
- package/out/components/combobox/ComboboxCollection.js +3 -15
- package/out/components/combobox/ComboboxCollection.js.map +1 -0
- package/out/components/combobox/ComboboxContent.d.ts +1 -0
- package/out/components/combobox/ComboboxContent.d.ts.map +1 -0
- package/out/components/combobox/ComboboxContent.js +3 -15
- package/out/components/combobox/ComboboxContent.js.map +1 -0
- package/out/components/combobox/ComboboxEmpty.d.ts +1 -0
- package/out/components/combobox/ComboboxEmpty.d.ts.map +1 -0
- package/out/components/combobox/ComboboxEmpty.js +3 -15
- package/out/components/combobox/ComboboxEmpty.js.map +1 -0
- package/out/components/combobox/ComboboxGroup.d.ts +1 -0
- package/out/components/combobox/ComboboxGroup.d.ts.map +1 -0
- package/out/components/combobox/ComboboxGroup.js +3 -15
- package/out/components/combobox/ComboboxGroup.js.map +1 -0
- package/out/components/combobox/ComboboxInput.d.ts +1 -0
- package/out/components/combobox/ComboboxInput.d.ts.map +1 -0
- package/out/components/combobox/ComboboxInput.js +3 -15
- package/out/components/combobox/ComboboxInput.js.map +1 -0
- package/out/components/combobox/ComboboxItem.d.ts +1 -0
- package/out/components/combobox/ComboboxItem.d.ts.map +1 -0
- package/out/components/combobox/ComboboxItem.js +3 -15
- package/out/components/combobox/ComboboxItem.js.map +1 -0
- package/out/components/combobox/ComboboxLabel.d.ts +1 -0
- package/out/components/combobox/ComboboxLabel.d.ts.map +1 -0
- package/out/components/combobox/ComboboxLabel.js +3 -15
- package/out/components/combobox/ComboboxLabel.js.map +1 -0
- package/out/components/combobox/ComboboxList.d.ts +1 -0
- package/out/components/combobox/ComboboxList.d.ts.map +1 -0
- package/out/components/combobox/ComboboxList.js +3 -15
- package/out/components/combobox/ComboboxList.js.map +1 -0
- package/out/components/combobox/ComboboxSeparator.d.ts +1 -0
- package/out/components/combobox/ComboboxSeparator.d.ts.map +1 -0
- package/out/components/combobox/ComboboxSeparator.js +3 -15
- package/out/components/combobox/ComboboxSeparator.js.map +1 -0
- package/out/components/combobox/ComboboxTrigger.d.ts +1 -0
- package/out/components/combobox/ComboboxTrigger.d.ts.map +1 -0
- package/out/components/combobox/ComboboxTrigger.js +3 -15
- package/out/components/combobox/ComboboxTrigger.js.map +1 -0
- package/out/components/combobox/ComboboxValue.d.ts +1 -0
- package/out/components/combobox/ComboboxValue.d.ts.map +1 -0
- package/out/components/combobox/ComboboxValue.js +3 -15
- package/out/components/combobox/ComboboxValue.js.map +1 -0
- package/out/components/combobox/useComboboxAnchor.d.ts +1 -0
- package/out/components/combobox/useComboboxAnchor.d.ts.map +1 -0
- package/out/components/combobox/useComboboxAnchor.js +1 -0
- package/out/components/combobox/useComboboxAnchor.js.map +1 -0
- package/out/components/command/Command.d.ts +3 -3
- package/out/components/command/Command.d.ts.map +1 -0
- package/out/components/command/Command.js +3 -16
- package/out/components/command/Command.js.map +1 -0
- package/out/components/command/CommandDialog.d.ts +4 -4
- package/out/components/command/CommandDialog.d.ts.map +1 -0
- package/out/components/command/CommandDialog.js +3 -15
- package/out/components/command/CommandDialog.js.map +1 -0
- package/out/components/command/CommandEmpty.d.ts +3 -3
- package/out/components/command/CommandEmpty.d.ts.map +1 -0
- package/out/components/command/CommandEmpty.js +3 -16
- package/out/components/command/CommandEmpty.js.map +1 -0
- package/out/components/command/CommandInput.d.ts +4 -3
- package/out/components/command/CommandInput.d.ts.map +1 -0
- package/out/components/command/CommandInput.js +4 -16
- package/out/components/command/CommandInput.js.map +1 -0
- package/out/components/command/CommandItem.d.ts +4 -3
- package/out/components/command/CommandItem.d.ts.map +1 -0
- package/out/components/command/CommandItem.js +5 -18
- package/out/components/command/CommandItem.js.map +1 -0
- package/out/components/command/CommandList.d.ts +4 -3
- package/out/components/command/CommandList.d.ts.map +1 -0
- package/out/components/command/CommandList.js +4 -16
- package/out/components/command/CommandList.js.map +1 -0
- package/out/components/context-menu/ContextMenu.d.ts +1 -0
- package/out/components/context-menu/ContextMenu.d.ts.map +1 -0
- package/out/components/context-menu/ContextMenu.js +3 -15
- package/out/components/context-menu/ContextMenu.js.map +1 -0
- package/out/components/context-menu/ContextMenuCheckboxItem.d.ts +1 -0
- package/out/components/context-menu/ContextMenuCheckboxItem.d.ts.map +1 -0
- package/out/components/context-menu/ContextMenuCheckboxItem.js +3 -15
- package/out/components/context-menu/ContextMenuCheckboxItem.js.map +1 -0
- package/out/components/context-menu/ContextMenuContent.d.ts +1 -0
- package/out/components/context-menu/ContextMenuContent.d.ts.map +1 -0
- package/out/components/context-menu/ContextMenuContent.js +3 -15
- package/out/components/context-menu/ContextMenuContent.js.map +1 -0
- package/out/components/context-menu/ContextMenuGroup.d.ts +1 -0
- package/out/components/context-menu/ContextMenuGroup.d.ts.map +1 -0
- package/out/components/context-menu/ContextMenuGroup.js +3 -15
- package/out/components/context-menu/ContextMenuGroup.js.map +1 -0
- package/out/components/context-menu/ContextMenuItem.d.ts +2 -1
- package/out/components/context-menu/ContextMenuItem.d.ts.map +1 -0
- package/out/components/context-menu/ContextMenuItem.js +3 -15
- package/out/components/context-menu/ContextMenuItem.js.map +1 -0
- package/out/components/context-menu/ContextMenuLabel.d.ts +1 -0
- package/out/components/context-menu/ContextMenuLabel.d.ts.map +1 -0
- package/out/components/context-menu/ContextMenuLabel.js +3 -15
- package/out/components/context-menu/ContextMenuLabel.js.map +1 -0
- package/out/components/context-menu/ContextMenuPortal.d.ts +1 -0
- package/out/components/context-menu/ContextMenuPortal.d.ts.map +1 -0
- package/out/components/context-menu/ContextMenuPortal.js +3 -15
- package/out/components/context-menu/ContextMenuPortal.js.map +1 -0
- package/out/components/context-menu/ContextMenuRadioGroup.d.ts +1 -0
- package/out/components/context-menu/ContextMenuRadioGroup.d.ts.map +1 -0
- package/out/components/context-menu/ContextMenuRadioGroup.js +3 -15
- package/out/components/context-menu/ContextMenuRadioGroup.js.map +1 -0
- package/out/components/context-menu/ContextMenuRadioItem.d.ts +1 -0
- package/out/components/context-menu/ContextMenuRadioItem.d.ts.map +1 -0
- package/out/components/context-menu/ContextMenuRadioItem.js +3 -15
- package/out/components/context-menu/ContextMenuRadioItem.js.map +1 -0
- package/out/components/context-menu/ContextMenuSeparator.d.ts +1 -0
- package/out/components/context-menu/ContextMenuSeparator.d.ts.map +1 -0
- package/out/components/context-menu/ContextMenuSeparator.js +3 -15
- package/out/components/context-menu/ContextMenuSeparator.js.map +1 -0
- package/out/components/context-menu/ContextMenuShortcut.d.ts +1 -0
- package/out/components/context-menu/ContextMenuShortcut.d.ts.map +1 -0
- package/out/components/context-menu/ContextMenuShortcut.js +3 -15
- package/out/components/context-menu/ContextMenuShortcut.js.map +1 -0
- package/out/components/context-menu/ContextMenuSub.d.ts +1 -0
- package/out/components/context-menu/ContextMenuSub.d.ts.map +1 -0
- package/out/components/context-menu/ContextMenuSub.js +3 -15
- package/out/components/context-menu/ContextMenuSub.js.map +1 -0
- package/out/components/context-menu/ContextMenuSubContent.d.ts +1 -0
- package/out/components/context-menu/ContextMenuSubContent.d.ts.map +1 -0
- package/out/components/context-menu/ContextMenuSubContent.js +3 -15
- package/out/components/context-menu/ContextMenuSubContent.js.map +1 -0
- package/out/components/context-menu/ContextMenuSubTrigger.d.ts +1 -0
- package/out/components/context-menu/ContextMenuSubTrigger.d.ts.map +1 -0
- package/out/components/context-menu/ContextMenuSubTrigger.js +3 -15
- package/out/components/context-menu/ContextMenuSubTrigger.js.map +1 -0
- package/out/components/context-menu/ContextMenuTrigger.d.ts +1 -0
- package/out/components/context-menu/ContextMenuTrigger.d.ts.map +1 -0
- package/out/components/context-menu/ContextMenuTrigger.js +3 -15
- package/out/components/context-menu/ContextMenuTrigger.js.map +1 -0
- package/out/components/copy-input/CopyInput.d.ts +1 -0
- package/out/components/copy-input/CopyInput.d.ts.map +1 -0
- package/out/components/copy-input/CopyInput.js +8 -21
- package/out/components/copy-input/CopyInput.js.map +1 -0
- package/out/components/date-picker/DatePicker.d.ts +1 -0
- package/out/components/date-picker/DatePicker.d.ts.map +1 -0
- package/out/components/date-picker/DatePicker.js +5 -17
- package/out/components/date-picker/DatePicker.js.map +1 -0
- package/out/components/dialog/Dialog.d.ts +1 -0
- package/out/components/dialog/Dialog.d.ts.map +1 -0
- package/out/components/dialog/Dialog.js +3 -15
- package/out/components/dialog/Dialog.js.map +1 -0
- package/out/components/dialog/DialogClose.d.ts +1 -0
- package/out/components/dialog/DialogClose.d.ts.map +1 -0
- package/out/components/dialog/DialogClose.js +3 -15
- package/out/components/dialog/DialogClose.js.map +1 -0
- package/out/components/dialog/DialogContent.d.ts +1 -0
- package/out/components/dialog/DialogContent.d.ts.map +1 -0
- package/out/components/dialog/DialogContent.js +3 -15
- package/out/components/dialog/DialogContent.js.map +1 -0
- package/out/components/dialog/DialogDescription.d.ts +1 -0
- package/out/components/dialog/DialogDescription.d.ts.map +1 -0
- package/out/components/dialog/DialogDescription.js +3 -15
- package/out/components/dialog/DialogDescription.js.map +1 -0
- package/out/components/dialog/DialogFooter.d.ts +3 -2
- package/out/components/dialog/DialogFooter.d.ts.map +1 -0
- package/out/components/dialog/DialogFooter.js +3 -15
- package/out/components/dialog/DialogFooter.js.map +1 -0
- package/out/components/dialog/DialogHeader.d.ts +3 -2
- package/out/components/dialog/DialogHeader.d.ts.map +1 -0
- package/out/components/dialog/DialogHeader.js +3 -15
- package/out/components/dialog/DialogHeader.js.map +1 -0
- package/out/components/dialog/DialogOverlay.d.ts +1 -0
- package/out/components/dialog/DialogOverlay.d.ts.map +1 -0
- package/out/components/dialog/DialogOverlay.js +3 -15
- package/out/components/dialog/DialogOverlay.js.map +1 -0
- package/out/components/dialog/DialogPortal.d.ts +1 -0
- package/out/components/dialog/DialogPortal.d.ts.map +1 -0
- package/out/components/dialog/DialogPortal.js +3 -15
- package/out/components/dialog/DialogPortal.js.map +1 -0
- package/out/components/dialog/DialogTitle.d.ts +1 -0
- package/out/components/dialog/DialogTitle.d.ts.map +1 -0
- package/out/components/dialog/DialogTitle.js +3 -15
- package/out/components/dialog/DialogTitle.js.map +1 -0
- package/out/components/dialog/DialogTrigger.d.ts +1 -0
- package/out/components/dialog/DialogTrigger.d.ts.map +1 -0
- package/out/components/dialog/DialogTrigger.js +3 -15
- package/out/components/dialog/DialogTrigger.js.map +1 -0
- package/out/components/dropdown-menu/DropdownMenu.d.ts +1 -0
- package/out/components/dropdown-menu/DropdownMenu.d.ts.map +1 -0
- package/out/components/dropdown-menu/DropdownMenu.js +3 -15
- package/out/components/dropdown-menu/DropdownMenu.js.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuCheckboxItem.d.ts +1 -0
- package/out/components/dropdown-menu/DropdownMenuCheckboxItem.d.ts.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuCheckboxItem.js +3 -15
- package/out/components/dropdown-menu/DropdownMenuCheckboxItem.js.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuContent.d.ts +1 -0
- package/out/components/dropdown-menu/DropdownMenuContent.d.ts.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuContent.js +3 -15
- package/out/components/dropdown-menu/DropdownMenuContent.js.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuGroup.d.ts +1 -0
- package/out/components/dropdown-menu/DropdownMenuGroup.d.ts.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuGroup.js +3 -15
- package/out/components/dropdown-menu/DropdownMenuGroup.js.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuItem.d.ts +1 -0
- package/out/components/dropdown-menu/DropdownMenuItem.d.ts.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuItem.js +3 -15
- package/out/components/dropdown-menu/DropdownMenuItem.js.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuLabel.d.ts +1 -0
- package/out/components/dropdown-menu/DropdownMenuLabel.d.ts.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuLabel.js +3 -15
- package/out/components/dropdown-menu/DropdownMenuLabel.js.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuPortal.d.ts +1 -0
- package/out/components/dropdown-menu/DropdownMenuPortal.d.ts.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuPortal.js +3 -15
- package/out/components/dropdown-menu/DropdownMenuPortal.js.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuRadioGroup.d.ts +1 -0
- package/out/components/dropdown-menu/DropdownMenuRadioGroup.d.ts.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuRadioGroup.js +3 -15
- package/out/components/dropdown-menu/DropdownMenuRadioGroup.js.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuRadioItem.d.ts +1 -0
- package/out/components/dropdown-menu/DropdownMenuRadioItem.d.ts.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuRadioItem.js +3 -15
- package/out/components/dropdown-menu/DropdownMenuRadioItem.js.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuSeparator.d.ts +1 -0
- package/out/components/dropdown-menu/DropdownMenuSeparator.d.ts.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuSeparator.js +3 -15
- package/out/components/dropdown-menu/DropdownMenuSeparator.js.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuShortcut.d.ts +1 -0
- package/out/components/dropdown-menu/DropdownMenuShortcut.d.ts.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuShortcut.js +3 -15
- package/out/components/dropdown-menu/DropdownMenuShortcut.js.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuSub.d.ts +1 -0
- package/out/components/dropdown-menu/DropdownMenuSub.d.ts.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuSub.js +3 -15
- package/out/components/dropdown-menu/DropdownMenuSub.js.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuSubContent.d.ts +1 -0
- package/out/components/dropdown-menu/DropdownMenuSubContent.d.ts.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuSubContent.js +3 -15
- package/out/components/dropdown-menu/DropdownMenuSubContent.js.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuSubTrigger.d.ts +1 -0
- package/out/components/dropdown-menu/DropdownMenuSubTrigger.d.ts.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuSubTrigger.js +3 -15
- package/out/components/dropdown-menu/DropdownMenuSubTrigger.js.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuTrigger.d.ts +1 -0
- package/out/components/dropdown-menu/DropdownMenuTrigger.d.ts.map +1 -0
- package/out/components/dropdown-menu/DropdownMenuTrigger.js +3 -15
- package/out/components/dropdown-menu/DropdownMenuTrigger.js.map +1 -0
- package/out/components/empty/Empty.d.ts +1 -0
- package/out/components/empty/Empty.d.ts.map +1 -0
- package/out/components/empty/Empty.js +3 -14
- package/out/components/empty/Empty.js.map +1 -0
- package/out/components/empty/EmptyContent.d.ts +1 -0
- package/out/components/empty/EmptyContent.d.ts.map +1 -0
- package/out/components/empty/EmptyContent.js +3 -14
- package/out/components/empty/EmptyContent.js.map +1 -0
- package/out/components/empty/EmptyDescription.d.ts +1 -0
- package/out/components/empty/EmptyDescription.d.ts.map +1 -0
- package/out/components/empty/EmptyDescription.js +3 -14
- package/out/components/empty/EmptyDescription.js.map +1 -0
- package/out/components/empty/EmptyHeader.d.ts +1 -0
- package/out/components/empty/EmptyHeader.d.ts.map +1 -0
- package/out/components/empty/EmptyHeader.js +3 -14
- package/out/components/empty/EmptyHeader.js.map +1 -0
- package/out/components/empty/EmptyMedia.d.ts +2 -1
- package/out/components/empty/EmptyMedia.d.ts.map +1 -0
- package/out/components/empty/EmptyMedia.js +4 -15
- package/out/components/empty/EmptyMedia.js.map +1 -0
- package/out/components/empty/EmptyTitle.d.ts +1 -0
- package/out/components/empty/EmptyTitle.d.ts.map +1 -0
- package/out/components/empty/EmptyTitle.js +3 -14
- package/out/components/empty/EmptyTitle.js.map +1 -0
- package/out/components/empty/emptyMediaVariants.d.ts +3 -1
- package/out/components/empty/emptyMediaVariants.d.ts.map +1 -0
- package/out/components/empty/emptyMediaVariants.js +3 -1
- package/out/components/empty/emptyMediaVariants.js.map +1 -0
- package/out/components/error/Error.d.ts +2 -1
- package/out/components/error/Error.d.ts.map +1 -0
- package/out/components/error/Error.js +3 -21
- package/out/components/error/Error.js.map +1 -0
- package/out/components/field/Field.d.ts +1 -0
- package/out/components/field/Field.d.ts.map +1 -0
- package/out/components/field/Field.js +3 -15
- package/out/components/field/Field.js.map +1 -0
- package/out/components/field/FieldContent.d.ts +1 -0
- package/out/components/field/FieldContent.d.ts.map +1 -0
- package/out/components/field/FieldContent.js +3 -15
- package/out/components/field/FieldContent.js.map +1 -0
- package/out/components/field/FieldDescription.d.ts +1 -0
- package/out/components/field/FieldDescription.d.ts.map +1 -0
- package/out/components/field/FieldDescription.js +3 -15
- package/out/components/field/FieldDescription.js.map +1 -0
- package/out/components/field/FieldError.d.ts +1 -0
- package/out/components/field/FieldError.d.ts.map +1 -0
- package/out/components/field/FieldError.js +8 -21
- package/out/components/field/FieldError.js.map +1 -0
- package/out/components/field/FieldGroup.d.ts +1 -0
- package/out/components/field/FieldGroup.d.ts.map +1 -0
- package/out/components/field/FieldGroup.js +3 -15
- package/out/components/field/FieldGroup.js.map +1 -0
- package/out/components/field/FieldLabel.d.ts +1 -0
- package/out/components/field/FieldLabel.d.ts.map +1 -0
- package/out/components/field/FieldLabel.js +3 -15
- package/out/components/field/FieldLabel.js.map +1 -0
- package/out/components/field/FieldLegend.d.ts +1 -0
- package/out/components/field/FieldLegend.d.ts.map +1 -0
- package/out/components/field/FieldLegend.js +3 -15
- package/out/components/field/FieldLegend.js.map +1 -0
- package/out/components/field/FieldSeparator.d.ts +1 -0
- package/out/components/field/FieldSeparator.d.ts.map +1 -0
- package/out/components/field/FieldSeparator.js +3 -15
- package/out/components/field/FieldSeparator.js.map +1 -0
- package/out/components/field/FieldSet.d.ts +1 -0
- package/out/components/field/FieldSet.d.ts.map +1 -0
- package/out/components/field/FieldSet.js +3 -15
- package/out/components/field/FieldSet.js.map +1 -0
- package/out/components/field/FieldTitle.d.ts +1 -0
- package/out/components/field/FieldTitle.d.ts.map +1 -0
- package/out/components/field/FieldTitle.js +3 -15
- package/out/components/field/FieldTitle.js.map +1 -0
- package/out/components/field/fieldVariants.d.ts +1 -0
- package/out/components/field/fieldVariants.d.ts.map +1 -0
- package/out/components/field/fieldVariants.js +1 -0
- package/out/components/field/fieldVariants.js.map +1 -0
- package/out/components/file-dropzone/FileDropzone.d.ts +3 -1
- package/out/components/file-dropzone/FileDropzone.d.ts.map +1 -0
- package/out/components/file-dropzone/FileDropzone.js +5 -5
- package/out/components/file-dropzone/FileDropzone.js.map +1 -0
- package/out/components/input/Input.d.ts +2 -1
- package/out/components/input/Input.d.ts.map +1 -0
- package/out/components/input/Input.js +3 -14
- package/out/components/input/Input.js.map +1 -0
- package/out/components/input-group/InputGroup.d.ts +1 -0
- package/out/components/input-group/InputGroup.d.ts.map +1 -0
- package/out/components/input-group/InputGroup.js +3 -15
- package/out/components/input-group/InputGroup.js.map +1 -0
- package/out/components/input-group/InputGroupAddon.d.ts +1 -0
- package/out/components/input-group/InputGroupAddon.d.ts.map +1 -0
- package/out/components/input-group/InputGroupAddon.js +5 -18
- package/out/components/input-group/InputGroupAddon.js.map +1 -0
- package/out/components/input-group/InputGroupButton.d.ts +1 -0
- package/out/components/input-group/InputGroupButton.d.ts.map +1 -0
- package/out/components/input-group/InputGroupButton.js +3 -15
- package/out/components/input-group/InputGroupButton.js.map +1 -0
- package/out/components/input-group/InputGroupInput.d.ts +1 -0
- package/out/components/input-group/InputGroupInput.d.ts.map +1 -0
- package/out/components/input-group/InputGroupInput.js +3 -15
- package/out/components/input-group/InputGroupInput.js.map +1 -0
- package/out/components/input-group/InputGroupText.d.ts +1 -0
- package/out/components/input-group/InputGroupText.d.ts.map +1 -0
- package/out/components/input-group/InputGroupText.js +3 -15
- package/out/components/input-group/InputGroupText.js.map +1 -0
- package/out/components/input-group/InputGroupTextArea.d.ts +1 -0
- package/out/components/input-group/InputGroupTextArea.d.ts.map +1 -0
- package/out/components/input-group/InputGroupTextArea.js +3 -15
- package/out/components/input-group/InputGroupTextArea.js.map +1 -0
- package/out/components/input-group/inputGroupAddonVariants.d.ts +1 -0
- package/out/components/input-group/inputGroupAddonVariants.d.ts.map +1 -0
- package/out/components/input-group/inputGroupAddonVariants.js +1 -0
- package/out/components/input-group/inputGroupAddonVariants.js.map +1 -0
- package/out/components/input-group/inputGroupButtonVariants.d.ts +1 -0
- package/out/components/input-group/inputGroupButtonVariants.d.ts.map +1 -0
- package/out/components/input-group/inputGroupButtonVariants.js +1 -0
- package/out/components/input-group/inputGroupButtonVariants.js.map +1 -0
- package/out/components/item/Item.d.ts +1 -0
- package/out/components/item/Item.d.ts.map +1 -0
- package/out/components/item/Item.js +2 -13
- package/out/components/item/Item.js.map +1 -0
- package/out/components/item/ItemActions.d.ts +1 -0
- package/out/components/item/ItemActions.d.ts.map +1 -0
- package/out/components/item/ItemActions.js +3 -14
- package/out/components/item/ItemActions.js.map +1 -0
- package/out/components/item/ItemContent.d.ts +1 -0
- package/out/components/item/ItemContent.d.ts.map +1 -0
- package/out/components/item/ItemContent.js +3 -14
- package/out/components/item/ItemContent.js.map +1 -0
- package/out/components/item/ItemDescription.d.ts +1 -0
- package/out/components/item/ItemDescription.d.ts.map +1 -0
- package/out/components/item/ItemDescription.js +3 -14
- package/out/components/item/ItemDescription.js.map +1 -0
- package/out/components/item/ItemFooter.d.ts +1 -0
- package/out/components/item/ItemFooter.d.ts.map +1 -0
- package/out/components/item/ItemFooter.js +3 -14
- package/out/components/item/ItemFooter.js.map +1 -0
- package/out/components/item/ItemGroup.d.ts +1 -0
- package/out/components/item/ItemGroup.d.ts.map +1 -0
- package/out/components/item/ItemGroup.js +3 -14
- package/out/components/item/ItemGroup.js.map +1 -0
- package/out/components/item/ItemHeader.d.ts +1 -0
- package/out/components/item/ItemHeader.d.ts.map +1 -0
- package/out/components/item/ItemHeader.js +3 -14
- package/out/components/item/ItemHeader.js.map +1 -0
- package/out/components/item/ItemMedia.d.ts +1 -0
- package/out/components/item/ItemMedia.d.ts.map +1 -0
- package/out/components/item/ItemMedia.js +3 -14
- package/out/components/item/ItemMedia.js.map +1 -0
- package/out/components/item/ItemSeparator.d.ts +1 -0
- package/out/components/item/ItemSeparator.d.ts.map +1 -0
- package/out/components/item/ItemSeparator.js +3 -14
- package/out/components/item/ItemSeparator.js.map +1 -0
- package/out/components/item/ItemTitle.d.ts +1 -0
- package/out/components/item/ItemTitle.d.ts.map +1 -0
- package/out/components/item/ItemTitle.js +3 -14
- package/out/components/item/ItemTitle.js.map +1 -0
- package/out/components/item/itemMediaVariants.d.ts +1 -0
- package/out/components/item/itemMediaVariants.d.ts.map +1 -0
- package/out/components/item/itemMediaVariants.js +1 -0
- package/out/components/item/itemMediaVariants.js.map +1 -0
- package/out/components/item/itemVariants.d.ts +1 -0
- package/out/components/item/itemVariants.d.ts.map +1 -0
- package/out/components/item/itemVariants.js +1 -0
- package/out/components/item/itemVariants.js.map +1 -0
- package/out/components/kbd/Kbd.d.ts +3 -0
- package/out/components/kbd/Kbd.d.ts.map +1 -0
- package/out/components/kbd/Kbd.js +6 -0
- package/out/components/kbd/Kbd.js.map +1 -0
- package/out/components/kbd/KbdGroup.d.ts +3 -0
- package/out/components/kbd/KbdGroup.d.ts.map +1 -0
- package/out/components/kbd/KbdGroup.js +6 -0
- package/out/components/kbd/KbdGroup.js.map +1 -0
- package/out/components/label/Label.d.ts +1 -0
- package/out/components/label/Label.d.ts.map +1 -0
- package/out/components/label/Label.js +3 -15
- package/out/components/label/Label.js.map +1 -0
- package/out/components/link-input/LinkInput.d.ts +1 -0
- package/out/components/link-input/LinkInput.d.ts.map +1 -0
- package/out/components/link-input/LinkInput.js +8 -22
- package/out/components/link-input/LinkInput.js.map +1 -0
- package/out/components/message/Message.d.ts +5 -0
- package/out/components/message/Message.d.ts.map +1 -0
- package/out/components/message/Message.js +6 -0
- package/out/components/message/Message.js.map +1 -0
- package/out/components/message/MessageAvatar.d.ts +3 -0
- package/out/components/message/MessageAvatar.d.ts.map +1 -0
- package/out/components/message/MessageAvatar.js +6 -0
- package/out/components/message/MessageAvatar.js.map +1 -0
- package/out/components/message/MessageContent.d.ts +3 -0
- package/out/components/message/MessageContent.d.ts.map +1 -0
- package/out/components/message/MessageContent.js +6 -0
- package/out/components/message/MessageContent.js.map +1 -0
- package/out/components/message/MessageFooter.d.ts +3 -0
- package/out/components/message/MessageFooter.d.ts.map +1 -0
- package/out/components/message/MessageFooter.js +6 -0
- package/out/components/message/MessageFooter.js.map +1 -0
- package/out/components/message/MessageGroup.d.ts +3 -0
- package/out/components/message/MessageGroup.d.ts.map +1 -0
- package/out/components/message/MessageGroup.js +6 -0
- package/out/components/message/MessageGroup.js.map +1 -0
- package/out/components/message/MessageHeader.d.ts +3 -0
- package/out/components/message/MessageHeader.d.ts.map +1 -0
- package/out/components/message/MessageHeader.js +6 -0
- package/out/components/message/MessageHeader.js.map +1 -0
- package/out/components/pagination/Pagination.d.ts +3 -0
- package/out/components/pagination/Pagination.d.ts.map +1 -0
- package/out/components/pagination/Pagination.js +6 -0
- package/out/components/pagination/Pagination.js.map +1 -0
- package/out/components/pagination/PaginationContent.d.ts +3 -0
- package/out/components/pagination/PaginationContent.d.ts.map +1 -0
- package/out/components/pagination/PaginationContent.js +6 -0
- package/out/components/pagination/PaginationContent.js.map +1 -0
- package/out/components/pagination/PaginationEllipsis.d.ts +3 -0
- package/out/components/pagination/PaginationEllipsis.d.ts.map +1 -0
- package/out/components/pagination/PaginationEllipsis.js +7 -0
- package/out/components/pagination/PaginationEllipsis.js.map +1 -0
- package/out/components/pagination/PaginationItem.d.ts +3 -0
- package/out/components/pagination/PaginationItem.d.ts.map +1 -0
- package/out/components/pagination/PaginationItem.js +5 -0
- package/out/components/pagination/PaginationItem.js.map +1 -0
- package/out/components/pagination/PaginationLink.d.ts +8 -0
- package/out/components/pagination/PaginationLink.d.ts.map +1 -0
- package/out/components/pagination/PaginationLink.js +7 -0
- package/out/components/pagination/PaginationLink.js.map +1 -0
- package/out/components/pagination/PaginationNext.d.ts +6 -0
- package/out/components/pagination/PaginationNext.d.ts.map +1 -0
- package/out/components/pagination/PaginationNext.js +8 -0
- package/out/components/pagination/PaginationNext.js.map +1 -0
- package/out/components/pagination/PaginationPrevious.d.ts +6 -0
- package/out/components/pagination/PaginationPrevious.d.ts.map +1 -0
- package/out/components/pagination/PaginationPrevious.js +8 -0
- package/out/components/pagination/PaginationPrevious.js.map +1 -0
- package/out/components/popover/Popover.d.ts +1 -0
- package/out/components/popover/Popover.d.ts.map +1 -0
- package/out/components/popover/Popover.js +3 -15
- package/out/components/popover/Popover.js.map +1 -0
- package/out/components/popover/PopoverContent.d.ts +1 -0
- package/out/components/popover/PopoverContent.d.ts.map +1 -0
- package/out/components/popover/PopoverContent.js +3 -15
- package/out/components/popover/PopoverContent.js.map +1 -0
- package/out/components/popover/PopoverDescription.d.ts +1 -0
- package/out/components/popover/PopoverDescription.d.ts.map +1 -0
- package/out/components/popover/PopoverDescription.js +3 -15
- package/out/components/popover/PopoverDescription.js.map +1 -0
- package/out/components/popover/PopoverHeader.d.ts +1 -0
- package/out/components/popover/PopoverHeader.d.ts.map +1 -0
- package/out/components/popover/PopoverHeader.js +3 -14
- package/out/components/popover/PopoverHeader.js.map +1 -0
- package/out/components/popover/PopoverTitle.d.ts +1 -0
- package/out/components/popover/PopoverTitle.d.ts.map +1 -0
- package/out/components/popover/PopoverTitle.js +3 -15
- package/out/components/popover/PopoverTitle.js.map +1 -0
- package/out/components/popover/PopoverTrigger.d.ts +1 -0
- package/out/components/popover/PopoverTrigger.d.ts.map +1 -0
- package/out/components/popover/PopoverTrigger.js +3 -15
- package/out/components/popover/PopoverTrigger.js.map +1 -0
- package/out/components/radio-group/RadioGroup.d.ts +1 -0
- package/out/components/radio-group/RadioGroup.d.ts.map +1 -0
- package/out/components/radio-group/RadioGroup.js +3 -15
- package/out/components/radio-group/RadioGroup.js.map +1 -0
- package/out/components/radio-group/RadioGroupItem.d.ts +1 -0
- package/out/components/radio-group/RadioGroupItem.d.ts.map +1 -0
- package/out/components/radio-group/RadioGroupItem.js +3 -15
- package/out/components/radio-group/RadioGroupItem.js.map +1 -0
- package/out/components/scroll-area/ScrollArea.d.ts +1 -0
- package/out/components/scroll-area/ScrollArea.d.ts.map +1 -0
- package/out/components/scroll-area/ScrollArea.js +3 -15
- package/out/components/scroll-area/ScrollArea.js.map +1 -0
- package/out/components/scroll-area/ScrollBar.d.ts +1 -0
- package/out/components/scroll-area/ScrollBar.d.ts.map +1 -0
- package/out/components/scroll-area/ScrollBar.js +3 -15
- package/out/components/scroll-area/ScrollBar.js.map +1 -0
- package/out/components/select/Select.d.ts +1 -0
- package/out/components/select/Select.d.ts.map +1 -0
- package/out/components/select/Select.js +3 -15
- package/out/components/select/Select.js.map +1 -0
- package/out/components/select/SelectContent.d.ts +1 -0
- package/out/components/select/SelectContent.d.ts.map +1 -0
- package/out/components/select/SelectContent.js +3 -15
- package/out/components/select/SelectContent.js.map +1 -0
- package/out/components/select/SelectGroup.d.ts +1 -0
- package/out/components/select/SelectGroup.d.ts.map +1 -0
- package/out/components/select/SelectGroup.js +3 -15
- package/out/components/select/SelectGroup.js.map +1 -0
- package/out/components/select/SelectItem.d.ts +1 -0
- package/out/components/select/SelectItem.d.ts.map +1 -0
- package/out/components/select/SelectItem.js +3 -15
- package/out/components/select/SelectItem.js.map +1 -0
- package/out/components/select/SelectLabel.d.ts +1 -0
- package/out/components/select/SelectLabel.d.ts.map +1 -0
- package/out/components/select/SelectLabel.js +3 -15
- package/out/components/select/SelectLabel.js.map +1 -0
- package/out/components/select/SelectScrollDownButton.d.ts +1 -0
- package/out/components/select/SelectScrollDownButton.d.ts.map +1 -0
- package/out/components/select/SelectScrollDownButton.js +3 -15
- package/out/components/select/SelectScrollDownButton.js.map +1 -0
- package/out/components/select/SelectScrollUpButton.d.ts +1 -0
- package/out/components/select/SelectScrollUpButton.d.ts.map +1 -0
- package/out/components/select/SelectScrollUpButton.js +3 -15
- package/out/components/select/SelectScrollUpButton.js.map +1 -0
- package/out/components/select/SelectSeparator.d.ts +1 -0
- package/out/components/select/SelectSeparator.d.ts.map +1 -0
- package/out/components/select/SelectSeparator.js +3 -15
- package/out/components/select/SelectSeparator.js.map +1 -0
- package/out/components/select/SelectTrigger.d.ts +1 -0
- package/out/components/select/SelectTrigger.d.ts.map +1 -0
- package/out/components/select/SelectTrigger.js +3 -15
- package/out/components/select/SelectTrigger.js.map +1 -0
- package/out/components/select/SelectValue.d.ts +1 -0
- package/out/components/select/SelectValue.d.ts.map +1 -0
- package/out/components/select/SelectValue.js +3 -15
- package/out/components/select/SelectValue.js.map +1 -0
- package/out/components/separator/Separator.d.ts +1 -0
- package/out/components/separator/Separator.d.ts.map +1 -0
- package/out/components/separator/Separator.js +3 -15
- package/out/components/separator/Separator.js.map +1 -0
- package/out/components/sheet/Sheet.d.ts +1 -0
- package/out/components/sheet/Sheet.d.ts.map +1 -0
- package/out/components/sheet/Sheet.js +3 -15
- package/out/components/sheet/Sheet.js.map +1 -0
- package/out/components/sheet/SheetClose.d.ts +1 -0
- package/out/components/sheet/SheetClose.d.ts.map +1 -0
- package/out/components/sheet/SheetClose.js +3 -15
- package/out/components/sheet/SheetClose.js.map +1 -0
- package/out/components/sheet/SheetContent.d.ts +1 -0
- package/out/components/sheet/SheetContent.d.ts.map +1 -0
- package/out/components/sheet/SheetContent.js +3 -15
- package/out/components/sheet/SheetContent.js.map +1 -0
- package/out/components/sheet/SheetDescription.d.ts +1 -0
- package/out/components/sheet/SheetDescription.d.ts.map +1 -0
- package/out/components/sheet/SheetDescription.js +3 -15
- package/out/components/sheet/SheetDescription.js.map +1 -0
- package/out/components/sheet/SheetFooter.d.ts +1 -0
- package/out/components/sheet/SheetFooter.d.ts.map +1 -0
- package/out/components/sheet/SheetFooter.js +3 -15
- package/out/components/sheet/SheetFooter.js.map +1 -0
- package/out/components/sheet/SheetHeader.d.ts +1 -0
- package/out/components/sheet/SheetHeader.d.ts.map +1 -0
- package/out/components/sheet/SheetHeader.js +3 -15
- package/out/components/sheet/SheetHeader.js.map +1 -0
- package/out/components/sheet/SheetOverlay.d.ts +1 -0
- package/out/components/sheet/SheetOverlay.d.ts.map +1 -0
- package/out/components/sheet/SheetOverlay.js +3 -15
- package/out/components/sheet/SheetOverlay.js.map +1 -0
- package/out/components/sheet/SheetPortal.d.ts +1 -0
- package/out/components/sheet/SheetPortal.d.ts.map +1 -0
- package/out/components/sheet/SheetPortal.js +3 -15
- package/out/components/sheet/SheetPortal.js.map +1 -0
- package/out/components/sheet/SheetTitle.d.ts +1 -0
- package/out/components/sheet/SheetTitle.d.ts.map +1 -0
- package/out/components/sheet/SheetTitle.js +3 -15
- package/out/components/sheet/SheetTitle.js.map +1 -0
- package/out/components/sheet/SheetTrigger.d.ts +1 -0
- package/out/components/sheet/SheetTrigger.d.ts.map +1 -0
- package/out/components/sheet/SheetTrigger.js +3 -15
- package/out/components/sheet/SheetTrigger.js.map +1 -0
- package/out/components/sidebar/Sidebar.d.ts +1 -0
- package/out/components/sidebar/Sidebar.d.ts.map +1 -0
- package/out/components/sidebar/Sidebar.js +7 -19
- package/out/components/sidebar/Sidebar.js.map +1 -0
- package/out/components/sidebar/SidebarContent.d.ts +1 -0
- package/out/components/sidebar/SidebarContent.d.ts.map +1 -0
- package/out/components/sidebar/SidebarContent.js +3 -14
- package/out/components/sidebar/SidebarContent.js.map +1 -0
- package/out/components/sidebar/SidebarFooter.d.ts +1 -0
- package/out/components/sidebar/SidebarFooter.d.ts.map +1 -0
- package/out/components/sidebar/SidebarFooter.js +3 -14
- package/out/components/sidebar/SidebarFooter.js.map +1 -0
- package/out/components/sidebar/SidebarGroup.d.ts +1 -0
- package/out/components/sidebar/SidebarGroup.d.ts.map +1 -0
- package/out/components/sidebar/SidebarGroup.js +3 -14
- package/out/components/sidebar/SidebarGroup.js.map +1 -0
- package/out/components/sidebar/SidebarGroupAction.d.ts +1 -0
- package/out/components/sidebar/SidebarGroupAction.d.ts.map +1 -0
- package/out/components/sidebar/SidebarGroupAction.js +2 -13
- package/out/components/sidebar/SidebarGroupAction.js.map +1 -0
- package/out/components/sidebar/SidebarGroupContent.d.ts +1 -0
- package/out/components/sidebar/SidebarGroupContent.d.ts.map +1 -0
- package/out/components/sidebar/SidebarGroupContent.js +3 -14
- package/out/components/sidebar/SidebarGroupContent.js.map +1 -0
- package/out/components/sidebar/SidebarGroupLabel.d.ts +1 -0
- package/out/components/sidebar/SidebarGroupLabel.d.ts.map +1 -0
- package/out/components/sidebar/SidebarGroupLabel.js +2 -13
- package/out/components/sidebar/SidebarGroupLabel.js.map +1 -0
- package/out/components/sidebar/SidebarHeader.d.ts +1 -0
- package/out/components/sidebar/SidebarHeader.d.ts.map +1 -0
- package/out/components/sidebar/SidebarHeader.js +3 -14
- package/out/components/sidebar/SidebarHeader.js.map +1 -0
- package/out/components/sidebar/SidebarInput.d.ts +1 -0
- package/out/components/sidebar/SidebarInput.d.ts.map +1 -0
- package/out/components/sidebar/SidebarInput.js +3 -14
- package/out/components/sidebar/SidebarInput.js.map +1 -0
- package/out/components/sidebar/SidebarInset.d.ts +1 -0
- package/out/components/sidebar/SidebarInset.d.ts.map +1 -0
- package/out/components/sidebar/SidebarInset.js +3 -14
- package/out/components/sidebar/SidebarInset.js.map +1 -0
- package/out/components/sidebar/SidebarMenu.d.ts +1 -0
- package/out/components/sidebar/SidebarMenu.d.ts.map +1 -0
- package/out/components/sidebar/SidebarMenu.js +3 -14
- package/out/components/sidebar/SidebarMenu.js.map +1 -0
- package/out/components/sidebar/SidebarMenuAction.d.ts +1 -0
- package/out/components/sidebar/SidebarMenuAction.d.ts.map +1 -0
- package/out/components/sidebar/SidebarMenuAction.js +2 -13
- package/out/components/sidebar/SidebarMenuAction.js.map +1 -0
- package/out/components/sidebar/SidebarMenuBadge.d.ts +1 -0
- package/out/components/sidebar/SidebarMenuBadge.d.ts.map +1 -0
- package/out/components/sidebar/SidebarMenuBadge.js +3 -14
- package/out/components/sidebar/SidebarMenuBadge.js.map +1 -0
- package/out/components/sidebar/SidebarMenuButton.d.ts +1 -0
- package/out/components/sidebar/SidebarMenuButton.d.ts.map +1 -0
- package/out/components/sidebar/SidebarMenuButton.js +3 -14
- package/out/components/sidebar/SidebarMenuButton.js.map +1 -0
- package/out/components/sidebar/SidebarMenuItem.d.ts +1 -0
- package/out/components/sidebar/SidebarMenuItem.d.ts.map +1 -0
- package/out/components/sidebar/SidebarMenuItem.js +3 -14
- package/out/components/sidebar/SidebarMenuItem.js.map +1 -0
- package/out/components/sidebar/SidebarMenuSkeleton.d.ts +1 -0
- package/out/components/sidebar/SidebarMenuSkeleton.d.ts.map +1 -0
- package/out/components/sidebar/SidebarMenuSkeleton.js +4 -15
- package/out/components/sidebar/SidebarMenuSkeleton.js.map +1 -0
- package/out/components/sidebar/SidebarMenuSub.d.ts +1 -0
- package/out/components/sidebar/SidebarMenuSub.d.ts.map +1 -0
- package/out/components/sidebar/SidebarMenuSub.js +3 -14
- package/out/components/sidebar/SidebarMenuSub.js.map +1 -0
- package/out/components/sidebar/SidebarMenuSubButton.d.ts +1 -0
- package/out/components/sidebar/SidebarMenuSubButton.d.ts.map +1 -0
- package/out/components/sidebar/SidebarMenuSubButton.js +2 -13
- package/out/components/sidebar/SidebarMenuSubButton.js.map +1 -0
- package/out/components/sidebar/SidebarMenuSubItem.d.ts +1 -0
- package/out/components/sidebar/SidebarMenuSubItem.d.ts.map +1 -0
- package/out/components/sidebar/SidebarMenuSubItem.js +3 -14
- package/out/components/sidebar/SidebarMenuSubItem.js.map +1 -0
- package/out/components/sidebar/SidebarProvider.d.ts +1 -0
- package/out/components/sidebar/SidebarProvider.d.ts.map +1 -0
- package/out/components/sidebar/SidebarProvider.js +8 -16
- package/out/components/sidebar/SidebarProvider.js.map +1 -0
- package/out/components/sidebar/SidebarRail.d.ts +1 -0
- package/out/components/sidebar/SidebarRail.d.ts.map +1 -0
- package/out/components/sidebar/SidebarRail.js +3 -15
- package/out/components/sidebar/SidebarRail.js.map +1 -0
- package/out/components/sidebar/SidebarSeparator.d.ts +1 -0
- package/out/components/sidebar/SidebarSeparator.d.ts.map +1 -0
- package/out/components/sidebar/SidebarSeparator.js +3 -14
- package/out/components/sidebar/SidebarSeparator.js.map +1 -0
- package/out/components/sidebar/SidebarTrigger.d.ts +1 -0
- package/out/components/sidebar/SidebarTrigger.d.ts.map +1 -0
- package/out/components/sidebar/SidebarTrigger.js +5 -17
- package/out/components/sidebar/SidebarTrigger.js.map +1 -0
- package/out/components/sidebar/sidebarMenuButtonVariants.d.ts +1 -0
- package/out/components/sidebar/sidebarMenuButtonVariants.d.ts.map +1 -0
- package/out/components/sidebar/sidebarMenuButtonVariants.js +1 -0
- package/out/components/sidebar/sidebarMenuButtonVariants.js.map +1 -0
- package/out/components/sidebar/useIsMobile.d.ts +1 -0
- package/out/components/sidebar/useIsMobile.d.ts.map +1 -0
- package/out/components/sidebar/useIsMobile.js +1 -0
- package/out/components/sidebar/useIsMobile.js.map +1 -0
- package/out/components/sidebar/useSidebar.d.ts +1 -0
- package/out/components/sidebar/useSidebar.d.ts.map +1 -0
- package/out/components/sidebar/useSidebar.js +1 -0
- package/out/components/sidebar/useSidebar.js.map +1 -0
- package/out/components/skeleton/Skeleton.d.ts +1 -0
- package/out/components/skeleton/Skeleton.d.ts.map +1 -0
- package/out/components/skeleton/Skeleton.js +3 -14
- package/out/components/skeleton/Skeleton.js.map +1 -0
- package/out/components/slider/Slider.d.ts +1 -0
- package/out/components/slider/Slider.d.ts.map +1 -0
- package/out/components/slider/Slider.js +3 -15
- package/out/components/slider/Slider.js.map +1 -0
- package/out/components/sonner/Toaster.d.ts +1 -0
- package/out/components/sonner/Toaster.d.ts.map +1 -0
- package/out/components/sonner/Toaster.js +13 -18
- package/out/components/sonner/Toaster.js.map +1 -0
- package/out/components/sortable/Sortable.d.ts +1 -0
- package/out/components/sortable/Sortable.d.ts.map +1 -0
- package/out/components/sortable/Sortable.js +22 -35
- package/out/components/sortable/Sortable.js.map +1 -0
- package/out/components/sortable/SortableContent.d.ts +1 -0
- package/out/components/sortable/SortableContent.d.ts.map +1 -0
- package/out/components/sortable/SortableContent.js +9 -15
- package/out/components/sortable/SortableContent.js.map +1 -0
- package/out/components/sortable/SortableContentContext.d.ts +1 -0
- package/out/components/sortable/SortableContentContext.d.ts.map +1 -0
- package/out/components/sortable/SortableContentContext.js +1 -0
- package/out/components/sortable/SortableContentContext.js.map +1 -0
- package/out/components/sortable/SortableItem.d.ts +1 -0
- package/out/components/sortable/SortableItem.d.ts.map +1 -0
- package/out/components/sortable/SortableItem.js +22 -18
- package/out/components/sortable/SortableItem.js.map +1 -0
- package/out/components/sortable/SortableItemHandle.d.ts +1 -0
- package/out/components/sortable/SortableItemHandle.d.ts.map +1 -0
- package/out/components/sortable/SortableItemHandle.js +17 -16
- package/out/components/sortable/SortableItemHandle.js.map +1 -0
- package/out/components/sortable/SortableOverlay.d.ts +1 -0
- package/out/components/sortable/SortableOverlay.d.ts.map +1 -0
- package/out/components/sortable/SortableOverlay.js +5 -17
- package/out/components/sortable/SortableOverlay.js.map +1 -0
- package/out/components/sortable/SortableOverlayContext.d.ts +1 -0
- package/out/components/sortable/SortableOverlayContext.d.ts.map +1 -0
- package/out/components/sortable/SortableOverlayContext.js +1 -1
- package/out/components/sortable/SortableOverlayContext.js.map +1 -0
- package/out/components/sortable/SortableRootContext.d.ts +1 -0
- package/out/components/sortable/SortableRootContext.d.ts.map +1 -0
- package/out/components/sortable/SortableRootContext.js +1 -0
- package/out/components/sortable/SortableRootContext.js.map +1 -0
- package/out/components/sortable/useSortableContext.d.ts +1 -0
- package/out/components/sortable/useSortableContext.d.ts.map +1 -0
- package/out/components/sortable/useSortableContext.js +1 -0
- package/out/components/sortable/useSortableContext.js.map +1 -0
- package/out/components/sortable/useSortableItemContext.d.ts +1 -0
- package/out/components/sortable/useSortableItemContext.d.ts.map +1 -0
- package/out/components/sortable/useSortableItemContext.js +1 -0
- package/out/components/sortable/useSortableItemContext.js.map +1 -0
- package/out/components/spinner/Spinner.d.ts +1 -0
- package/out/components/spinner/Spinner.d.ts.map +1 -0
- package/out/components/spinner/Spinner.js +3 -14
- package/out/components/spinner/Spinner.js.map +1 -0
- package/out/components/status-indicator/StatusIndicator.d.ts +5 -0
- package/out/components/status-indicator/StatusIndicator.d.ts.map +1 -0
- package/out/components/status-indicator/StatusIndicator.js +20 -0
- package/out/components/status-indicator/StatusIndicator.js.map +1 -0
- package/out/components/status-indicator/statusIndicatorVariants.d.ts +5 -0
- package/out/components/status-indicator/statusIndicatorVariants.d.ts.map +1 -0
- package/out/components/status-indicator/statusIndicatorVariants.js +15 -0
- package/out/components/status-indicator/statusIndicatorVariants.js.map +1 -0
- package/out/components/switch/Switch.d.ts +1 -0
- package/out/components/switch/Switch.d.ts.map +1 -0
- package/out/components/switch/Switch.js +3 -15
- package/out/components/switch/Switch.js.map +1 -0
- package/out/components/table/Table.d.ts +1 -0
- package/out/components/table/Table.d.ts.map +1 -0
- package/out/components/table/Table.js +3 -15
- package/out/components/table/Table.js.map +1 -0
- package/out/components/table/TableBody.d.ts +1 -0
- package/out/components/table/TableBody.d.ts.map +1 -0
- package/out/components/table/TableBody.js +3 -15
- package/out/components/table/TableBody.js.map +1 -0
- package/out/components/table/TableCaption.d.ts +1 -0
- package/out/components/table/TableCaption.d.ts.map +1 -0
- package/out/components/table/TableCaption.js +3 -15
- package/out/components/table/TableCaption.js.map +1 -0
- package/out/components/table/TableCell.d.ts +1 -0
- package/out/components/table/TableCell.d.ts.map +1 -0
- package/out/components/table/TableCell.js +3 -15
- package/out/components/table/TableCell.js.map +1 -0
- package/out/components/table/TableFooter.d.ts +1 -0
- package/out/components/table/TableFooter.d.ts.map +1 -0
- package/out/components/table/TableFooter.js +3 -15
- package/out/components/table/TableFooter.js.map +1 -0
- package/out/components/table/TableHead.d.ts +1 -0
- package/out/components/table/TableHead.d.ts.map +1 -0
- package/out/components/table/TableHead.js +3 -15
- package/out/components/table/TableHead.js.map +1 -0
- package/out/components/table/TableHeader.d.ts +1 -0
- package/out/components/table/TableHeader.d.ts.map +1 -0
- package/out/components/table/TableHeader.js +3 -15
- package/out/components/table/TableHeader.js.map +1 -0
- package/out/components/table/TableRow.d.ts +1 -0
- package/out/components/table/TableRow.d.ts.map +1 -0
- package/out/components/table/TableRow.js +3 -15
- package/out/components/table/TableRow.js.map +1 -0
- package/out/components/tabs/Tabs.d.ts +1 -0
- package/out/components/tabs/Tabs.d.ts.map +1 -0
- package/out/components/tabs/Tabs.js +3 -15
- package/out/components/tabs/Tabs.js.map +1 -0
- package/out/components/tabs/TabsContent.d.ts +1 -0
- package/out/components/tabs/TabsContent.d.ts.map +1 -0
- package/out/components/tabs/TabsContent.js +3 -15
- package/out/components/tabs/TabsContent.js.map +1 -0
- package/out/components/tabs/TabsList.d.ts +1 -0
- package/out/components/tabs/TabsList.d.ts.map +1 -0
- package/out/components/tabs/TabsList.js +3 -15
- package/out/components/tabs/TabsList.js.map +1 -0
- package/out/components/tabs/TabsTrigger.d.ts +1 -0
- package/out/components/tabs/TabsTrigger.d.ts.map +1 -0
- package/out/components/tabs/TabsTrigger.js +3 -15
- package/out/components/tabs/TabsTrigger.js.map +1 -0
- package/out/components/tabs/tabsListVariants.d.ts +1 -0
- package/out/components/tabs/tabsListVariants.d.ts.map +1 -0
- package/out/components/tabs/tabsListVariants.js +2 -1
- package/out/components/tabs/tabsListVariants.js.map +1 -0
- package/out/components/textarea/TextArea.d.ts +1 -0
- package/out/components/textarea/TextArea.d.ts.map +1 -0
- package/out/components/textarea/TextArea.js +3 -14
- package/out/components/textarea/TextArea.js.map +1 -0
- package/out/components/toggle/Toggle.d.ts +2 -1
- package/out/components/toggle/Toggle.d.ts.map +1 -0
- package/out/components/toggle/Toggle.js +4 -16
- package/out/components/toggle/Toggle.js.map +1 -0
- package/out/components/toggle/toggleVariants.d.ts +3 -1
- package/out/components/toggle/toggleVariants.d.ts.map +1 -0
- package/out/components/toggle/toggleVariants.js +3 -1
- package/out/components/toggle/toggleVariants.js.map +1 -0
- package/out/components/tooltip/Tooltip.d.ts +1 -0
- package/out/components/tooltip/Tooltip.d.ts.map +1 -0
- package/out/components/tooltip/Tooltip.js +3 -15
- package/out/components/tooltip/Tooltip.js.map +1 -0
- package/out/components/tooltip/TooltipContent.d.ts +1 -0
- package/out/components/tooltip/TooltipContent.d.ts.map +1 -0
- package/out/components/tooltip/TooltipContent.js +3 -15
- package/out/components/tooltip/TooltipContent.js.map +1 -0
- package/out/components/tooltip/TooltipProvider.d.ts +1 -0
- package/out/components/tooltip/TooltipProvider.d.ts.map +1 -0
- package/out/components/tooltip/TooltipProvider.js +3 -15
- package/out/components/tooltip/TooltipProvider.js.map +1 -0
- package/out/components/tooltip/TooltipTrigger.d.ts +1 -0
- package/out/components/tooltip/TooltipTrigger.d.ts.map +1 -0
- package/out/components/tooltip/TooltipTrigger.js +3 -15
- package/out/components/tooltip/TooltipTrigger.js.map +1 -0
- package/out/components/typography/TypographyA.d.ts +1 -0
- package/out/components/typography/TypographyA.d.ts.map +1 -0
- package/out/components/typography/TypographyA.js +8 -14
- package/out/components/typography/TypographyA.js.map +1 -0
- package/out/components/typography/TypographyBlockquote.d.ts +1 -0
- package/out/components/typography/TypographyBlockquote.d.ts.map +1 -0
- package/out/components/typography/TypographyBlockquote.js +2 -15
- package/out/components/typography/TypographyBlockquote.js.map +1 -0
- package/out/components/typography/TypographyFigure.d.ts +1 -0
- package/out/components/typography/TypographyFigure.d.ts.map +1 -0
- package/out/components/typography/TypographyFigure.js +2 -15
- package/out/components/typography/TypographyFigure.js.map +1 -0
- package/out/components/typography/TypographyFigureCaption.d.ts +1 -0
- package/out/components/typography/TypographyFigureCaption.d.ts.map +1 -0
- package/out/components/typography/TypographyFigureCaption.js +2 -15
- package/out/components/typography/TypographyFigureCaption.js.map +1 -0
- package/out/components/typography/TypographyH1.d.ts +1 -0
- package/out/components/typography/TypographyH1.d.ts.map +1 -0
- package/out/components/typography/TypographyH1.js +2 -15
- package/out/components/typography/TypographyH1.js.map +1 -0
- package/out/components/typography/TypographyH2.d.ts +1 -0
- package/out/components/typography/TypographyH2.d.ts.map +1 -0
- package/out/components/typography/TypographyH2.js +2 -15
- package/out/components/typography/TypographyH2.js.map +1 -0
- package/out/components/typography/TypographyH3.d.ts +1 -0
- package/out/components/typography/TypographyH3.d.ts.map +1 -0
- package/out/components/typography/TypographyH3.js +2 -15
- package/out/components/typography/TypographyH3.js.map +1 -0
- package/out/components/typography/TypographyH4.d.ts +1 -0
- package/out/components/typography/TypographyH4.d.ts.map +1 -0
- package/out/components/typography/TypographyH4.js +2 -15
- package/out/components/typography/TypographyH4.js.map +1 -0
- package/out/components/typography/TypographyH5.d.ts +1 -0
- package/out/components/typography/TypographyH5.d.ts.map +1 -0
- package/out/components/typography/TypographyH5.js +2 -15
- package/out/components/typography/TypographyH5.js.map +1 -0
- package/out/components/typography/TypographyH6.d.ts +1 -0
- package/out/components/typography/TypographyH6.d.ts.map +1 -0
- package/out/components/typography/TypographyH6.js +2 -15
- package/out/components/typography/TypographyH6.js.map +1 -0
- package/out/components/typography/TypographyHr.d.ts +1 -0
- package/out/components/typography/TypographyHr.d.ts.map +1 -0
- package/out/components/typography/TypographyHr.js +2 -15
- package/out/components/typography/TypographyHr.js.map +1 -0
- package/out/components/typography/TypographyImage.d.ts +1 -0
- package/out/components/typography/TypographyImage.d.ts.map +1 -0
- package/out/components/typography/TypographyImage.js +2 -16
- package/out/components/typography/TypographyImage.js.map +1 -0
- package/out/components/typography/TypographyImg.d.ts +2 -22
- package/out/components/typography/TypographyImg.d.ts.map +1 -0
- package/out/components/typography/TypographyImg.js +2 -16
- package/out/components/typography/TypographyImg.js.map +1 -0
- package/out/components/typography/TypographyInlineCode.d.ts +1 -0
- package/out/components/typography/TypographyInlineCode.d.ts.map +1 -0
- package/out/components/typography/TypographyInlineCode.js +4 -15
- package/out/components/typography/TypographyInlineCode.js.map +1 -0
- package/out/components/typography/TypographyLi.d.ts +1 -0
- package/out/components/typography/TypographyLi.d.ts.map +1 -0
- package/out/components/typography/TypographyLi.js +2 -15
- package/out/components/typography/TypographyLi.js.map +1 -0
- package/out/components/typography/TypographyLink.d.ts +2 -3
- package/out/components/typography/TypographyLink.d.ts.map +1 -0
- package/out/components/typography/TypographyLink.js +2 -16
- package/out/components/typography/TypographyLink.js.map +1 -0
- package/out/components/typography/TypographyList.d.ts +1 -0
- package/out/components/typography/TypographyList.d.ts.map +1 -0
- package/out/components/typography/TypographyList.js +2 -15
- package/out/components/typography/TypographyList.js.map +1 -0
- package/out/components/typography/TypographyOl.d.ts +1 -0
- package/out/components/typography/TypographyOl.d.ts.map +1 -0
- package/out/components/typography/TypographyOl.js +2 -15
- package/out/components/typography/TypographyOl.js.map +1 -0
- package/out/components/typography/TypographyP.d.ts +1 -0
- package/out/components/typography/TypographyP.d.ts.map +1 -0
- package/out/components/typography/TypographyP.js +2 -15
- package/out/components/typography/TypographyP.js.map +1 -0
- package/out/components/typography/TypographyPre.d.ts +1 -0
- package/out/components/typography/TypographyPre.d.ts.map +1 -0
- package/out/components/typography/TypographyPre.js +2 -15
- package/out/components/typography/TypographyPre.js.map +1 -0
- package/out/components/typography/TypographyStrong.d.ts +1 -0
- package/out/components/typography/TypographyStrong.d.ts.map +1 -0
- package/out/components/typography/TypographyStrong.js +2 -15
- package/out/components/typography/TypographyStrong.js.map +1 -0
- package/out/components/typography/TypographyTable.d.ts +1 -0
- package/out/components/typography/TypographyTable.d.ts.map +1 -0
- package/out/components/typography/TypographyTable.js +2 -15
- package/out/components/typography/TypographyTable.js.map +1 -0
- package/out/components/typography/TypographyTd.d.ts +1 -0
- package/out/components/typography/TypographyTd.d.ts.map +1 -0
- package/out/components/typography/TypographyTd.js +2 -15
- package/out/components/typography/TypographyTd.js.map +1 -0
- package/out/components/typography/TypographyTh.d.ts +1 -0
- package/out/components/typography/TypographyTh.d.ts.map +1 -0
- package/out/components/typography/TypographyTh.js +2 -15
- package/out/components/typography/TypographyTh.js.map +1 -0
- package/out/components/typography/TypographyTr.d.ts +1 -0
- package/out/components/typography/TypographyTr.d.ts.map +1 -0
- package/out/components/typography/TypographyTr.js +2 -15
- package/out/components/typography/TypographyTr.js.map +1 -0
- package/out/index.d.ts +24 -11
- package/out/index.d.ts.map +1 -0
- package/out/index.js +30 -10
- package/out/index.js.map +1 -0
- package/package.json +28 -41
- package/tailwind.css +27 -7
- package/out/clerk.d.ts +0 -3
- package/out/clerk.js +0 -64
- package/out/components/chart/ChartContainer.d.ts +0 -7
- package/out/components/chart/ChartContainer.js +0 -24
- package/out/components/chart/ChartContext.d.ts +0 -16
- package/out/components/chart/ChartContext.js +0 -2
- package/out/components/chart/ChartLegend.d.ts +0 -3
- package/out/components/chart/ChartLegend.js +0 -5
- package/out/components/chart/ChartLegendContent.d.ts +0 -9
- package/out/components/chart/ChartLegendContent.js +0 -19
- package/out/components/chart/ChartStyle.d.ts +0 -5
- package/out/components/chart/ChartStyle.js +0 -23
- package/out/components/chart/ChartTooltip.d.ts +0 -3
- package/out/components/chart/ChartTooltip.js +0 -17
- package/out/components/chart/ChartTooltipContent.d.ts +0 -15
- package/out/components/chart/ChartTooltipContent.js +0 -49
- package/out/components/chart/getPayloadConfigFromPayload.d.ts +0 -11
- package/out/components/chart/getPayloadConfigFromPayload.js +0 -18
- package/out/components/chart/useChart.d.ts +0 -3
- package/out/components/chart/useChart.js +0 -9
- package/out/components/command/CommandGroup.d.ts +0 -3
- package/out/components/command/CommandGroup.js +0 -19
- package/out/components/command/CommandSeparator.d.ts +0 -3
- package/out/components/command/CommandSeparator.js +0 -19
- package/out/components/command/CommandShortcut.d.ts +0 -2
- package/out/components/command/CommandShortcut.js +0 -18
- package/out/components/glass/Glass.d.ts +0 -6
- package/out/components/glass/Glass.js +0 -89
- package/out/components/glass/GlassDisplacementMap.d.ts +0 -16
- package/out/components/glass/GlassDisplacementMap.js +0 -39
- package/out/components/glass/GlassFilter.d.ts +0 -15
- package/out/components/glass/GlassFilter.js +0 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sortable.js","sourceRoot":"","sources":["../../../components/sortable/Sortable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEN,aAAa,EACb,cAAc,EACd,UAAU,EAIV,cAAc,EACd,WAAW,EAEX,WAAW,EAEX,SAAS,EACT,UAAU,GACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC/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,YAAY,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,OAAO;;OAEjI;KACJ,CAAC,EACF,CAAC,WAAW,CAAC,CACb,CAAC;IAEF,MAAM,YAAY,GAAG,OAAO,CAC3B,GAAG,EAAE,CAAC,CAAC;QACN,EAAE;QACF,KAAK;QACL,SAAS,EAAE,SAAS,IAAI,MAAM,CAAC,SAAS;QACxC,QAAQ,EAAE,QAAQ,IAAI,MAAM,CAAC,QAAQ;QACrC,QAAQ;QACR,WAAW;QACX,YAAY;QACZ,UAAU;QACV,QAAQ;KACR,CAAC,EACF;QACC,EAAE;QACF,KAAK;QACL,SAAS;QACT,QAAQ;QACR,MAAM,CAAC,SAAS;QAChB,MAAM,CAAC,QAAQ;QACf,QAAQ;QACR,YAAY;QACZ,UAAU;QACV,QAAQ;KACR,CACD,CAAC;IAEF,OAAO,CACN,KAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAiD,YACrF,KAAC,UAAU,IACV,kBAAkB,EAAE,kBAAkB,IAAI,MAAM,CAAC,kBAAkB,EACnE,SAAS,EAAE,SAAS,IAAI,MAAM,CAAC,SAAS,EACxC,OAAO,EAAE,OAAO,KACZ,aAAa,EACjB,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE;gBACd,aAAa;gBACb,wBAAwB;gBACxB,GAAG,aAAa;aAChB,GACA,GAC4B,CAC/B,CAAC;AACH,CAAC","sourcesContent":["import {\n\ttype Announcements,\n\tclosestCenter,\n\tclosestCorners,\n\tDndContext,\n\ttype DndContextProps,\n\ttype DragEndEvent,\n\ttype DragStartEvent,\n\tKeyboardSensor,\n\tMouseSensor,\n\ttype ScreenReaderInstructions,\n\tTouchSensor,\n\ttype UniqueIdentifier,\n\tuseSensor,\n\tuseSensors,\n} from \"@dnd-kit/core\";\nimport { restrictToHorizontalAxis, restrictToParentElement, restrictToVerticalAxis } from \"@dnd-kit/modifiers\";\nimport {\n\tarrayMove,\n\thorizontalListSortingStrategy,\n\ttype SortableContextProps,\n\tsortableKeyboardCoordinates,\n\tverticalListSortingStrategy,\n} from \"@dnd-kit/sortable\";\nimport { useCallback, useId, useMemo, useState } from \"react\";\n\nimport SortableRootContext from \"./SortableRootContext\";\n\nexport const orientationConfig = {\n\tvertical: {\n\t\tmodifiers: [restrictToVerticalAxis, restrictToParentElement],\n\t\tstrategy: verticalListSortingStrategy,\n\t\tcollisionDetection: closestCenter,\n\t},\n\thorizontal: {\n\t\tmodifiers: [restrictToHorizontalAxis, restrictToParentElement],\n\t\tstrategy: horizontalListSortingStrategy,\n\t\tcollisionDetection: closestCenter,\n\t},\n\tmixed: {\n\t\tmodifiers: [restrictToParentElement],\n\t\tstrategy: undefined,\n\t\tcollisionDetection: closestCorners,\n\t},\n};\n\nexport interface SortableRootContextValue<T> {\n\tid: string;\n\titems: UniqueIdentifier[];\n\tmodifiers: DndContextProps[\"modifiers\"];\n\tstrategy: SortableContextProps[\"strategy\"];\n\tactiveId: UniqueIdentifier | null;\n\tsetActiveId: (id: UniqueIdentifier | null) => void;\n\tgetItemValue: (item: T) => UniqueIdentifier;\n\tflatCursor: boolean;\n\tdisabled: boolean;\n}\n\nexport default function Sortable<T>(\n\tprops: DndContextProps &\n\t\t(T extends object\n\t\t\t? {\n\t\t\t\t\t/**\n\t\t\t\t\t * Callback that returns a unique identifier for each sortable item. Required for array of objects.\n\t\t\t\t\t * @example getItemValue={(item) => item.id}\n\t\t\t\t\t */\n\t\t\t\t\tgetItemValue: (item: T) => UniqueIdentifier;\n\t\t\t\t}\n\t\t\t: {\n\t\t\t\t\t/**\n\t\t\t\t\t * Callback that returns a unique identifier for each sortable item. Required for array of objects.\n\t\t\t\t\t * @example getItemValue={(item) => item.id}\n\t\t\t\t\t */\n\t\t\t\t\tgetItemValue?: (item: T) => UniqueIdentifier;\n\t\t\t\t}) & {\n\t\t\tvalue: T[];\n\t\t\tonValueChange?: (items: T[]) => void;\n\t\t\tonMove?: (event: DragEndEvent & { activeIndex: number; overIndex: number }) => void;\n\t\t\tstrategy?: SortableContextProps[\"strategy\"];\n\t\t\torientation?: \"vertical\" | \"horizontal\" | \"mixed\";\n\t\t\tflatCursor?: boolean;\n\t\t\tdisabled?: boolean;\n\t\t}\n) {\n\tconst {\n\t\tvalue,\n\t\tonValueChange,\n\t\tcollisionDetection,\n\t\tmodifiers,\n\t\tstrategy,\n\t\tonMove,\n\t\torientation = \"vertical\",\n\t\tflatCursor = false,\n\t\tdisabled = false,\n\t\tgetItemValue: getItemValueProp,\n\t\taccessibility,\n\t\tonDragStart: onDragStartProp,\n\t\tonDragEnd: onDragEndProp,\n\t\tonDragCancel: onDragCancelProp,\n\t\t...sortableProps\n\t} = props;\n\n\tconst id = useId();\n\tconst [activeId, setActiveId] = useState<UniqueIdentifier | null>(null);\n\n\tconst sensors = useSensors(\n\t\tuseSensor(MouseSensor, {\n\t\t\tactivationConstraint: disabled ? { distance: Number.MAX_SAFE_INTEGER } : undefined,\n\t\t}),\n\t\tuseSensor(TouchSensor, {\n\t\t\tactivationConstraint: disabled ? { distance: Number.MAX_SAFE_INTEGER } : undefined,\n\t\t}),\n\t\tuseSensor(KeyboardSensor, {\n\t\t\tcoordinateGetter: sortableKeyboardCoordinates,\n\t\t})\n\t);\n\tconst config = useMemo(() => orientationConfig[orientation], [orientation]);\n\n\tconst getItemValue = useCallback(\n\t\t(item: T): UniqueIdentifier => {\n\t\t\tif (typeof item === \"object\" && !getItemValueProp) {\n\t\t\t\tthrow new Error(\"`getItemValue` is required when using array of objects\");\n\t\t\t}\n\t\t\treturn getItemValueProp ? getItemValueProp(item) : (item as UniqueIdentifier);\n\t\t},\n\t\t[getItemValueProp]\n\t);\n\n\tconst items = useMemo(() => value.map((item) => getItemValue(item)), [value, getItemValue]);\n\n\tconst onDragStart = useCallback(\n\t\t(event: DragStartEvent) => {\n\t\t\tonDragStartProp?.(event);\n\n\t\t\tif (event.activatorEvent.defaultPrevented) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tsetActiveId(event.active.id);\n\t\t},\n\t\t[onDragStartProp]\n\t);\n\n\tconst onDragEnd = useCallback(\n\t\t(event: DragEndEvent) => {\n\t\t\tonDragEndProp?.(event);\n\n\t\t\tif (event.activatorEvent.defaultPrevented) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst { active, over } = event;\n\t\t\tif (over && active.id !== over?.id) {\n\t\t\t\tconst activeIndex = value.findIndex((item) => getItemValue(item) === active.id);\n\t\t\t\tconst overIndex = value.findIndex((item) => getItemValue(item) === over.id);\n\n\t\t\t\tif (onMove) {\n\t\t\t\t\tonMove({ ...event, activeIndex, overIndex });\n\t\t\t\t} else {\n\t\t\t\t\tonValueChange?.(arrayMove(value, activeIndex, overIndex));\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetActiveId(null);\n\t\t},\n\t\t[value, onValueChange, onMove, getItemValue, onDragEndProp]\n\t);\n\n\tconst onDragCancel = useCallback(\n\t\t(event: DragEndEvent) => {\n\t\t\tonDragCancelProp?.(event);\n\n\t\t\tif (event.activatorEvent.defaultPrevented) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tsetActiveId(null);\n\t\t},\n\t\t[onDragCancelProp]\n\t);\n\n\tconst announcements: Announcements = useMemo(\n\t\t() => ({\n\t\t\tonDragStart({ active }) {\n\t\t\t\tconst activeValue = active.id.toString();\n\t\t\t\treturn `Grabbed sortable item \"${activeValue}\". Current position is ${active.data.current?.sortable.index + 1} of ${value.length}. Use arrow keys to move, space to drop.`;\n\t\t\t},\n\t\t\tonDragOver({ active, over }) {\n\t\t\t\tif (over) {\n\t\t\t\t\tconst overIndex = over.data.current?.sortable.index ?? 0;\n\t\t\t\t\tconst activeIndex = active.data.current?.sortable.index ?? 0;\n\t\t\t\t\tconst moveDirection = overIndex > activeIndex ? \"down\" : \"up\";\n\t\t\t\t\tconst activeValue = active.id.toString();\n\t\t\t\t\treturn `Sortable item \"${activeValue}\" moved ${moveDirection} to position ${overIndex + 1} of ${value.length}.`;\n\t\t\t\t}\n\t\t\t\treturn \"Sortable item is no longer over a droppable area. Press escape to cancel.\";\n\t\t\t},\n\t\t\tonDragEnd({ active, over }) {\n\t\t\t\tconst activeValue = active.id.toString();\n\t\t\t\tif (over) {\n\t\t\t\t\tconst overIndex = over.data.current?.sortable.index ?? 0;\n\t\t\t\t\treturn `Sortable item \"${activeValue}\" dropped at position ${overIndex + 1} of ${value.length}.`;\n\t\t\t\t}\n\t\t\t\treturn `Sortable item \"${activeValue}\" dropped. No changes were made.`;\n\t\t\t},\n\t\t\tonDragCancel({ active }) {\n\t\t\t\tconst activeIndex = active.data.current?.sortable.index ?? 0;\n\t\t\t\tconst activeValue = active.id.toString();\n\t\t\t\treturn `Sorting cancelled. Sortable item \"${activeValue}\" returned to position ${activeIndex + 1} of ${value.length}.`;\n\t\t\t},\n\t\t\tonDragMove({ active, over }) {\n\t\t\t\tif (over) {\n\t\t\t\t\tconst overIndex = over.data.current?.sortable.index ?? 0;\n\t\t\t\t\tconst activeIndex = active.data.current?.sortable.index ?? 0;\n\t\t\t\t\tconst moveDirection = overIndex > activeIndex ? \"down\" : \"up\";\n\t\t\t\t\tconst activeValue = active.id.toString();\n\t\t\t\t\treturn `Sortable item \"${activeValue}\" is moving ${moveDirection} to position ${overIndex + 1} of ${value.length}.`;\n\t\t\t\t}\n\t\t\t\treturn \"Sortable item is no longer over a droppable area. Press escape to cancel.\";\n\t\t\t},\n\t\t}),\n\t\t[value]\n\t);\n\n\tconst screenReaderInstructions: ScreenReaderInstructions = useMemo(\n\t\t() => ({\n\t\t\tdraggable: `\n To pick up a sortable item, press space or enter.\n While dragging, use the ${orientation === \"vertical\" ? \"up and down\" : orientation === \"horizontal\" ? \"left and right\" : \"arrow\"} keys to move the item.\n Press space or enter again to drop the item in its new position, or press escape to cancel.\n `,\n\t\t}),\n\t\t[orientation]\n\t);\n\n\tconst contextValue = useMemo(\n\t\t() => ({\n\t\t\tid,\n\t\t\titems,\n\t\t\tmodifiers: modifiers ?? config.modifiers,\n\t\t\tstrategy: strategy ?? config.strategy,\n\t\t\tactiveId,\n\t\t\tsetActiveId,\n\t\t\tgetItemValue,\n\t\t\tflatCursor,\n\t\t\tdisabled,\n\t\t}),\n\t\t[\n\t\t\tid,\n\t\t\titems,\n\t\t\tmodifiers,\n\t\t\tstrategy,\n\t\t\tconfig.modifiers,\n\t\t\tconfig.strategy,\n\t\t\tactiveId,\n\t\t\tgetItemValue,\n\t\t\tflatCursor,\n\t\t\tdisabled,\n\t\t]\n\t);\n\n\treturn (\n\t\t<SortableRootContext.Provider value={contextValue as SortableRootContextValue<unknown>}>\n\t\t\t<DndContext\n\t\t\t\tcollisionDetection={collisionDetection ?? config.collisionDetection}\n\t\t\t\tmodifiers={modifiers ?? config.modifiers}\n\t\t\t\tsensors={sensors}\n\t\t\t\t{...sortableProps}\n\t\t\t\tid={id}\n\t\t\t\tonDragStart={onDragStart}\n\t\t\t\tonDragEnd={onDragEnd}\n\t\t\t\tonDragCancel={onDragCancel}\n\t\t\t\taccessibility={{\n\t\t\t\t\tannouncements,\n\t\t\t\t\tscreenReaderInstructions,\n\t\t\t\t\t...accessibility,\n\t\t\t\t}}\n\t\t\t/>\n\t\t</SortableRootContext.Provider>\n\t);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableContent.d.ts","sourceRoot":"","sources":["../../../components/sortable/SortableContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAgB,MAAM,OAAO,CAAC;AAKtH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EACpE,KAAK,EAAE;IACN,QAAQ,CAAC,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAC;IAC5C,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,qBAAqB,CAAC,CAAC,CAAC,2CA0B5B"}
|
|
@@ -1,23 +1,17 @@
|
|
|
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
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
2
|
import { SortableContext } from "@dnd-kit/sortable";
|
|
15
3
|
import { cloneElement } from "react";
|
|
16
4
|
import SortableContentContext from "./SortableContentContext";
|
|
17
5
|
import useSortableContext from "./useSortableContext";
|
|
18
6
|
export default function SortableContent(props) {
|
|
19
|
-
const { strategy: strategyProp, render, withoutSlot, children
|
|
7
|
+
const { strategy: strategyProp, render, withoutSlot, children, ...contentProps } = props;
|
|
20
8
|
const context = useSortableContext();
|
|
21
|
-
const element = render ? (cloneElement(render,
|
|
22
|
-
|
|
9
|
+
const element = render ? (cloneElement(render, {
|
|
10
|
+
...contentProps,
|
|
11
|
+
...render.props,
|
|
12
|
+
children,
|
|
13
|
+
"data-slot": "sortable-content",
|
|
14
|
+
})) : (_jsx("div", { "data-slot": "sortable-content", ...contentProps, children: children }));
|
|
15
|
+
return (_jsx(SortableContentContext.Provider, { value: true, children: _jsx(SortableContext, { items: context.items, strategy: strategyProp ?? context.strategy, children: withoutSlot ? children : element }) }));
|
|
23
16
|
}
|
|
17
|
+
//# sourceMappingURL=SortableContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableContent.js","sourceRoot":"","sources":["../../../components/sortable/SortableContent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAA6B,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAmF,YAAY,EAAE,MAAM,OAAO,CAAC;AAEtH,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAEtD,MAAM,CAAC,OAAO,UAAU,eAAe,CACtC,KAK4B;IAE5B,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,YAAY,EAAE,GAAG,KAAK,CAAC;IAEzF,MAAM,OAAO,GAAG,kBAAkB,EAAE,CAAC;IAErC,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CACxB,YAAY,CAAC,MAAM,EAAE;QACpB,GAAG,YAAY;QACf,GAAG,MAAM,CAAC,KAAK;QACf,QAAQ;QACR,WAAW,EAAE,kBAAkB;KAC/B,CAAC,CACF,CAAC,CAAC,CAAC,CACH,2BAAe,kBAAkB,KAAK,YAAY,YAChD,QAAQ,GACJ,CACN,CAAC;IAEF,OAAO,CACN,KAAC,sBAAsB,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,YAC3C,KAAC,eAAe,IAAC,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,YAAY,IAAI,OAAO,CAAC,QAAQ,YAC/E,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,GAChB,GACe,CAClC,CAAC;AACH,CAAC","sourcesContent":["import { SortableContext, type SortableContextProps } from \"@dnd-kit/sortable\";\nimport { type ComponentPropsWithRef, type ElementType, type ReactElement, type ReactNode, cloneElement } from \"react\";\n\nimport SortableContentContext from \"./SortableContentContext\";\nimport useSortableContext from \"./useSortableContext\";\n\nexport default function SortableContent<T extends ElementType = \"div\">(\n\tprops: {\n\t\tstrategy?: SortableContextProps[\"strategy\"];\n\t\tchildren: ReactNode;\n\t\trender?: ReactElement<T>;\n\t\twithoutSlot?: boolean;\n\t} & ComponentPropsWithRef<T>\n) {\n\tconst { strategy: strategyProp, render, withoutSlot, children, ...contentProps } = props;\n\n\tconst context = useSortableContext();\n\n\tconst element = render ? (\n\t\tcloneElement(render, {\n\t\t\t...contentProps,\n\t\t\t...render.props,\n\t\t\tchildren,\n\t\t\t\"data-slot\": \"sortable-content\",\n\t\t})\n\t) : (\n\t\t<div data-slot=\"sortable-content\" {...contentProps}>\n\t\t\t{children}\n\t\t</div>\n\t);\n\n\treturn (\n\t\t<SortableContentContext.Provider value={true}>\n\t\t\t<SortableContext items={context.items} strategy={strategyProp ?? context.strategy}>\n\t\t\t\t{withoutSlot ? children : element}\n\t\t\t</SortableContext>\n\t\t</SortableContentContext.Provider>\n\t);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableContentContext.d.ts","sourceRoot":"","sources":["../../../components/sortable/SortableContentContext.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,sBAAsB,kCAAgC,CAAC;AAE7D,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableContentContext.js","sourceRoot":"","sources":["../../../components/sortable/SortableContentContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,sBAAsB,GAAG,aAAa,CAAU,KAAK,CAAC,CAAC;AAE7D,eAAe,sBAAsB,CAAC","sourcesContent":["import { createContext } from \"react\";\n\nconst SortableContentContext = createContext<boolean>(false);\n\nexport default SortableContentContext;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableItem.d.ts","sourceRoot":"","sources":["../../../components/sortable/SortableItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,KAAK,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAIlH,OAAO,EACN,KAAK,qBAAqB,EAE1B,KAAK,WAAW,EAChB,KAAK,YAAY,EAMjB,MAAM,OAAO,CAAC;AAQf,MAAM,WAAW,wBAAwB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,mBAAmB,CAAC;IAChC,SAAS,EAAE,2BAA2B,GAAG,SAAS,CAAC;IACnD,mBAAmB,EAAE,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IACxD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,mBAAmB,0DAAuD,CAAC;AAExF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EACjE,KAAK,EAAE;IACN,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,qBAAqB,CAAC,CAAC,CAAC,2CAgF5B"}
|
|
@@ -1,15 +1,3 @@
|
|
|
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
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
2
|
import { useSortable } from "@dnd-kit/sortable";
|
|
15
3
|
import { CSS } from "@dnd-kit/utilities";
|
|
@@ -21,7 +9,7 @@ import SortableOverlayContext from "./SortableOverlayContext";
|
|
|
21
9
|
import useSortableContext from "./useSortableContext";
|
|
22
10
|
export const SortableItemContext = createContext(null);
|
|
23
11
|
export default function SortableItem(props) {
|
|
24
|
-
const { value, style, asHandle, render, disabled, className, ref
|
|
12
|
+
const { value, style, asHandle, render, disabled, className, ref, ...itemProps } = props;
|
|
25
13
|
const inSortableContent = useContext(SortableContentContext);
|
|
26
14
|
const inSortableOverlay = useContext(SortableOverlayContext);
|
|
27
15
|
if (!inSortableContent && !inSortableOverlay) {
|
|
@@ -32,7 +20,7 @@ export default function SortableItem(props) {
|
|
|
32
20
|
}
|
|
33
21
|
const context = useSortableContext();
|
|
34
22
|
const id = useId();
|
|
35
|
-
const isDisabled = disabled
|
|
23
|
+
const isDisabled = disabled ?? context.disabled;
|
|
36
24
|
const { attributes, listeners, setNodeRef, setActivatorNodeRef, transform, transition, isDragging } = useSortable({
|
|
37
25
|
id: value,
|
|
38
26
|
disabled: isDisabled,
|
|
@@ -46,7 +34,11 @@ export default function SortableItem(props) {
|
|
|
46
34
|
setActivatorNodeRef(node);
|
|
47
35
|
}
|
|
48
36
|
});
|
|
49
|
-
const composedStyle = useMemo(() => (
|
|
37
|
+
const composedStyle = useMemo(() => ({
|
|
38
|
+
transform: CSS.Translate.toString(transform),
|
|
39
|
+
transition,
|
|
40
|
+
...style,
|
|
41
|
+
}), [transform, transition, style]);
|
|
50
42
|
const itemContext = useMemo(() => ({
|
|
51
43
|
id,
|
|
52
44
|
attributes,
|
|
@@ -55,13 +47,25 @@ export default function SortableItem(props) {
|
|
|
55
47
|
isDragging,
|
|
56
48
|
disabled: isDisabled,
|
|
57
49
|
}), [id, attributes, listeners, setActivatorNodeRef, isDragging, isDisabled]);
|
|
58
|
-
const mergedProps =
|
|
50
|
+
const mergedProps = {
|
|
51
|
+
id,
|
|
52
|
+
"data-disabled": isDisabled,
|
|
53
|
+
"data-dragging": isDragging ? "" : undefined,
|
|
54
|
+
"data-slot": "sortable-item",
|
|
55
|
+
...itemProps,
|
|
56
|
+
...(asHandle && !isDisabled ? attributes : {}),
|
|
57
|
+
...(asHandle && !isDisabled ? listeners : {}),
|
|
58
|
+
ref: composedRef,
|
|
59
|
+
style: composedStyle,
|
|
60
|
+
className: cn("focus-visible:ring-1 focus-visible:ring-neutral-950 focus-visible:ring-offset-1 focus-visible:outline-hidden dark:focus-visible:ring-neutral-300", {
|
|
59
61
|
"touch-none select-none": asHandle && !isDisabled,
|
|
60
62
|
"cursor-default": context.flatCursor || isDisabled,
|
|
61
63
|
"data-dragging:cursor-grabbing": !context.flatCursor && !isDisabled,
|
|
62
64
|
"cursor-grab": !isDragging && asHandle && !context.flatCursor && !isDisabled,
|
|
63
65
|
"opacity-50": isDragging,
|
|
64
|
-
}, className)
|
|
65
|
-
|
|
66
|
+
}, className),
|
|
67
|
+
};
|
|
68
|
+
const element = render ? cloneElement(render, mergedProps) : _jsx("div", { ...mergedProps });
|
|
66
69
|
return _jsx(SortableItemContext.Provider, { value: itemContext, children: element });
|
|
67
70
|
}
|
|
71
|
+
//# sourceMappingURL=SortableItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableItem.js","sourceRoot":"","sources":["../../../components/sortable/SortableItem.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAKN,Y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OAAO,CAAC,UAAU,IAAI,UAAU;YAClD,+BAA+B,EAAE,CAAC,OAAO,CAAC,UAAU,IAAI,CAAC,UAAU;YACnE,aAAa,EAAE,CAAC,UAAU,IAAI,QAAQ,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,CAAC,UAAU;YAC5E,YAAY,EAAE,UAAU;SACxB,EACD,SAAS,CACT;KACD,CAAC;IAEF,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,iBAAS,WAAW,GAAI,CAAC;IAEtF,OAAO,KAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,WAAW,YAAG,OAAO,GAAgC,CAAC;AACnG,CAAC","sourcesContent":["import { type UniqueIdentifier, type DraggableAttributes, type DraggableSyntheticListeners } from \"@dnd-kit/core\";\nimport { useSortable } from \"@dnd-kit/sortable\";\nimport { CSS } from \"@dnd-kit/utilities\";\nimport { useComposedRefs } from \"motion/react\";\nimport {\n\ttype ComponentPropsWithRef,\n\ttype CSSProperties,\n\ttype ElementType,\n\ttype ReactElement,\n\tcloneElement,\n\tcreateContext,\n\tuseContext,\n\tuseId,\n\tuseMemo,\n} from \"react\";\n\nimport cn from \"@/cn\";\n\nimport SortableContentContext from \"./SortableContentContext\";\nimport SortableOverlayContext from \"./SortableOverlayContext\";\nimport useSortableContext from \"./useSortableContext\";\n\nexport interface SortableItemContextValue {\n\tid: string;\n\tattributes: DraggableAttributes;\n\tlisteners: DraggableSyntheticListeners | undefined;\n\tsetActivatorNodeRef: (node: HTMLElement | null) => void;\n\tisDragging?: boolean;\n\tdisabled?: boolean;\n}\n\nexport const SortableItemContext = createContext<SortableItemContextValue | null>(null);\n\nexport default function SortableItem<T extends ElementType = \"div\">(\n\tprops: {\n\t\tvalue: UniqueIdentifier;\n\t\tasHandle?: boolean;\n\t\trender?: ReactElement<T>;\n\t\tdisabled?: boolean;\n\t} & ComponentPropsWithRef<T>\n) {\n\tconst { value, style, asHandle, render, disabled, className, ref, ...itemProps } = props;\n\n\tconst inSortableContent = useContext(SortableContentContext);\n\tconst inSortableOverlay = useContext(SortableOverlayContext);\n\n\tif (!inSortableContent && !inSortableOverlay) {\n\t\tthrow new Error(\"`SortableItem` must be used within `SortableContent` or `SortableOverlay`\");\n\t}\n\n\tif (value === \"\") {\n\t\tthrow new Error(\"`SortableItem` value cannot be an empty string\");\n\t}\n\n\tconst context = useSortableContext();\n\tconst id = useId();\n\tconst isDisabled = disabled ?? context.disabled;\n\tconst { attributes, listeners, setNodeRef, setActivatorNodeRef, transform, transition, isDragging } = useSortable({\n\t\tid: value,\n\t\tdisabled: isDisabled,\n\t});\n\n\tconst composedRef = useComposedRefs(ref, (node: HTMLElement | null) => {\n\t\tif (isDisabled) {\n\t\t\treturn;\n\t\t}\n\t\tsetNodeRef(node);\n\t\tif (asHandle) {\n\t\t\tsetActivatorNodeRef(node);\n\t\t}\n\t});\n\n\tconst composedStyle = useMemo<CSSProperties>(\n\t\t() => ({\n\t\t\ttransform: CSS.Translate.toString(transform),\n\t\t\ttransition,\n\t\t\t...style,\n\t\t}),\n\t\t[transform, transition, style]\n\t);\n\n\tconst itemContext = useMemo<SortableItemContextValue>(\n\t\t() => ({\n\t\t\tid,\n\t\t\tattributes,\n\t\t\tlisteners,\n\t\t\tsetActivatorNodeRef,\n\t\t\tisDragging,\n\t\t\tdisabled: isDisabled,\n\t\t}),\n\t\t[id, attributes, listeners, setActivatorNodeRef, isDragging, isDisabled]\n\t);\n\n\tconst mergedProps = {\n\t\tid,\n\t\t\"data-disabled\": isDisabled,\n\t\t\"data-dragging\": isDragging ? \"\" : undefined,\n\t\t\"data-slot\": \"sortable-item\",\n\t\t...itemProps,\n\t\t...(asHandle && !isDisabled ? attributes : {}),\n\t\t...(asHandle && !isDisabled ? listeners : {}),\n\t\tref: composedRef,\n\t\tstyle: composedStyle,\n\t\tclassName: cn(\n\t\t\t\"focus-visible:ring-1 focus-visible:ring-neutral-950 focus-visible:ring-offset-1 focus-visible:outline-hidden dark:focus-visible:ring-neutral-300\",\n\t\t\t{\n\t\t\t\t\"touch-none select-none\": asHandle && !isDisabled,\n\t\t\t\t\"cursor-default\": context.flatCursor || isDisabled,\n\t\t\t\t\"data-dragging:cursor-grabbing\": !context.flatCursor && !isDisabled,\n\t\t\t\t\"cursor-grab\": !isDragging && asHandle && !context.flatCursor && !isDisabled,\n\t\t\t\t\"opacity-50\": isDragging,\n\t\t\t},\n\t\t\tclassName\n\t\t),\n\t};\n\n\tconst element = render ? cloneElement(render, mergedProps) : <div {...mergedProps} />;\n\n\treturn <SortableItemContext.Provider value={itemContext}>{element}</SortableItemContext.Provider>;\n}\n"]}
|
|
@@ -2,3 +2,4 @@ import { type ComponentPropsWithRef, type ElementType, type ReactElement } from
|
|
|
2
2
|
export default function SortableItemHandle<T extends ElementType = "button">(props: {
|
|
3
3
|
render?: ReactElement<T>;
|
|
4
4
|
} & ComponentPropsWithRef<T>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=SortableItemHandle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableItemHandle.d.ts","sourceRoot":"","sources":["../../../components/sortable/SortableItemHandle.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAgB,MAAM,OAAO,CAAC;AAOtG,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,CAAC,SAAS,WAAW,GAAG,QAAQ,EAC1E,KAAK,EAAE;IACN,MAAM,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;CACzB,GAAG,qBAAqB,CAAC,CAAC,CAAC,2CAmC5B"}
|
|
@@ -1,15 +1,3 @@
|
|
|
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
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
2
|
import { useComposedRefs } from "motion/react";
|
|
15
3
|
import { cloneElement } from "react";
|
|
@@ -17,16 +5,29 @@ import cn from "../../cn";
|
|
|
17
5
|
import useSortableContext from "./useSortableContext";
|
|
18
6
|
import useSortableItemContext from "./useSortableItemContext";
|
|
19
7
|
export default function SortableItemHandle(props) {
|
|
20
|
-
const { render, disabled, className
|
|
8
|
+
const { render, disabled, className, ...itemHandleProps } = props;
|
|
21
9
|
const context = useSortableContext();
|
|
22
10
|
const itemContext = useSortableItemContext();
|
|
23
|
-
const isDisabled = disabled
|
|
11
|
+
const isDisabled = disabled ?? itemContext.disabled;
|
|
24
12
|
const composedRef = useComposedRefs(itemHandleProps.ref, (node) => {
|
|
25
13
|
if (isDisabled) {
|
|
26
14
|
return;
|
|
27
15
|
}
|
|
28
16
|
itemContext.setActivatorNodeRef(node);
|
|
29
17
|
});
|
|
30
|
-
const mergedProps =
|
|
31
|
-
|
|
18
|
+
const mergedProps = {
|
|
19
|
+
type: "button",
|
|
20
|
+
"aria-controls": itemContext.id,
|
|
21
|
+
"data-disabled": isDisabled,
|
|
22
|
+
"data-dragging": itemContext.isDragging ? "" : undefined,
|
|
23
|
+
"data-slot": "sortable-item-handle",
|
|
24
|
+
...itemHandleProps,
|
|
25
|
+
...(isDisabled ? {} : itemContext.attributes),
|
|
26
|
+
...(isDisabled ? {} : itemContext.listeners),
|
|
27
|
+
ref: composedRef,
|
|
28
|
+
className: cn("select-none disabled:pointer-events-none", context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing", className),
|
|
29
|
+
disabled: isDisabled,
|
|
30
|
+
};
|
|
31
|
+
return render ? cloneElement(render, mergedProps) : _jsx("button", { ...mergedProps });
|
|
32
32
|
}
|
|
33
|
+
//# sourceMappingURL=SortableItemHandle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableItemHandle.js","sourceRoot":"","sources":["../../../components/sortable/SortableItemHandle.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAmE,YAAY,EAAE,MAAM,OAAO,CAAC;AAEtG,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtB,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAE9D,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACzC,KAE4B;IAE5B,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,eAAe,EAAE,GAAG,KAAK,CAAC;IAElE,MAAM,OAAO,GAAG,kBAAkB,EAAE,CAAC;IACrC,MAAM,WAAW,GAAG,sBAAsB,EAAE,CAAC;IAE7C,MAAM,UAAU,GAAG,QAAQ,IAAI,WAAW,CAAC,QAAQ,CAAC;IAEpD,MAAM,WAAW,GAAG,eAAe,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,IAAwB,EAAE,EAAE;QACrF,IAAI,UAAU,EAAE,CAAC;YAChB,OAAO;QACR,CAAC;QACD,WAAW,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG;QACnB,IAAI,EAAE,QAAiB;QACvB,eAAe,EAAE,WAAW,CAAC,EAAE;QAC/B,eAAe,EAAE,UAAU;QAC3B,eAAe,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;QACxD,WAAW,EAAE,sBAAsB;QACnC,GAAG,eAAe;QAClB,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC;QAC7C,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC;QAC5C,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,EAAE,CACZ,0CAA0C,EAC1C,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,2CAA2C,EACnF,SAAS,CACT;QACD,QAAQ,EAAE,UAAU;KACpB,CAAC;IAEF,OAAO,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,oBAAY,WAAW,GAAI,CAAC;AACjF,CAAC","sourcesContent":["import { useComposedRefs } from \"motion/react\";\nimport { type ComponentPropsWithRef, type ElementType, type ReactElement, cloneElement } from \"react\";\n\nimport cn from \"@/cn\";\n\nimport useSortableContext from \"./useSortableContext\";\nimport useSortableItemContext from \"./useSortableItemContext\";\n\nexport default function SortableItemHandle<T extends ElementType = \"button\">(\n\tprops: {\n\t\trender?: ReactElement<T>;\n\t} & ComponentPropsWithRef<T>\n) {\n\tconst { render, disabled, className, ...itemHandleProps } = props;\n\n\tconst context = useSortableContext();\n\tconst itemContext = useSortableItemContext();\n\n\tconst isDisabled = disabled ?? itemContext.disabled;\n\n\tconst composedRef = useComposedRefs(itemHandleProps.ref, (node: HTMLElement | null) => {\n\t\tif (isDisabled) {\n\t\t\treturn;\n\t\t}\n\t\titemContext.setActivatorNodeRef(node);\n\t});\n\n\tconst mergedProps = {\n\t\ttype: \"button\" as const,\n\t\t\"aria-controls\": itemContext.id,\n\t\t\"data-disabled\": isDisabled,\n\t\t\"data-dragging\": itemContext.isDragging ? \"\" : undefined,\n\t\t\"data-slot\": \"sortable-item-handle\",\n\t\t...itemHandleProps,\n\t\t...(isDisabled ? {} : itemContext.attributes),\n\t\t...(isDisabled ? {} : itemContext.listeners),\n\t\tref: composedRef,\n\t\tclassName: cn(\n\t\t\t\"select-none disabled:pointer-events-none\",\n\t\t\tcontext.flatCursor ? \"cursor-default\" : \"cursor-grab data-dragging:cursor-grabbing\",\n\t\t\tclassName\n\t\t),\n\t\tdisabled: isDisabled,\n\t};\n\n\treturn render ? cloneElement(render, mergedProps) : <button {...mergedProps} />;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableOverlay.d.ts","sourceRoot":"","sources":["../../../components/sortable/SortableOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAuD,MAAM,eAAe,CAAC;AACxH,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAC;AAkBvF,MAAM,CAAC,OAAO,UAAU,eAAe,CACtC,KAAK,EAAE;IACN,SAAS,CAAC,EAAE,OAAO,GAAG,gBAAgB,GAAG,IAAI,CAAC;IAC9C,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE,KAAK,SAAS,CAAC,GAAG,SAAS,CAAC;CAC5E,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,EAAE,UAAU,CAAC,sCAiCxD"}
|
|
@@ -1,15 +1,3 @@
|
|
|
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
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
2
|
import { DragOverlay, defaultDropAnimationSideEffects } from "@dnd-kit/core";
|
|
15
3
|
import { useLayoutEffect, useState } from "react";
|
|
@@ -27,18 +15,18 @@ const dropAnimation = {
|
|
|
27
15
|
}),
|
|
28
16
|
};
|
|
29
17
|
export default function SortableOverlay(props) {
|
|
30
|
-
|
|
31
|
-
const { container: containerProp, children } = props, overlayProps = __rest(props, ["container", "children"]);
|
|
18
|
+
const { container: containerProp, children, ...overlayProps } = props;
|
|
32
19
|
const context = useSortableContext();
|
|
33
20
|
const [mounted, setMounted] = useState(false);
|
|
34
21
|
useLayoutEffect(() => setMounted(true), []);
|
|
35
|
-
const container = containerProp
|
|
22
|
+
const container = containerProp ?? (mounted ? globalThis.document?.body : null);
|
|
36
23
|
if (!container) {
|
|
37
24
|
return null;
|
|
38
25
|
}
|
|
39
|
-
return ReactDOM.createPortal(_jsx(DragOverlay,
|
|
26
|
+
return ReactDOM.createPortal(_jsx(DragOverlay, { dropAnimation: dropAnimation, modifiers: context.modifiers, className: cn(!context.flatCursor && "cursor-grabbing"), ...overlayProps, children: _jsx(SortableOverlayContext.Provider, { value: true, children: context.activeId
|
|
40
27
|
? typeof children === "function"
|
|
41
28
|
? children({ value: context.activeId })
|
|
42
29
|
: children
|
|
43
|
-
: null }) })
|
|
30
|
+
: null }) }), container);
|
|
44
31
|
}
|
|
32
|
+
//# sourceMappingURL=SortableOverlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableOverlay.js","sourceRoot":"","sources":["../../../components/sortable/SortableOverlay.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAyB,WAAW,EAAE,+BAA+B,EAAsB,MAAM,eAAe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,CAAC,CAAC,OAAO,QAAQ,KAAK,UAAU;oBAC/B,CAAC,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC;oBACvC,CAAC,CAAC,QAAQ;gBACX,CAAC,CAAC,IAAI,GAC0B,GACrB,EACd,SAAS,CACT,CAAC;AACH,CAAC","sourcesContent":["import { type UniqueIdentifier, DragOverlay, defaultDropAnimationSideEffects, type DropAnimation } from \"@dnd-kit/core\";\nimport { type ComponentProps, type ReactNode, useLayoutEffect, useState } from \"react\";\nimport * as ReactDOM from \"react-dom\";\n\nimport cn from \"@/cn\";\n\nimport SortableOverlayContext from \"./SortableOverlayContext\";\nimport useSortableContext from \"./useSortableContext\";\n\nconst dropAnimation: DropAnimation = {\n\tsideEffects: defaultDropAnimationSideEffects({\n\t\tstyles: {\n\t\t\tactive: {\n\t\t\t\topacity: \"0.4\",\n\t\t\t},\n\t\t},\n\t}),\n};\n\nexport default function SortableOverlay(\n\tprops: {\n\t\tcontainer?: Element | DocumentFragment | null;\n\t\tchildren?: ((params: { value: UniqueIdentifier }) => ReactNode) | ReactNode;\n\t} & Omit<ComponentProps<typeof DragOverlay>, \"children\">\n) {\n\tconst { container: containerProp, children, ...overlayProps } = props;\n\n\tconst context = useSortableContext();\n\n\tconst [mounted, setMounted] = useState(false);\n\n\tuseLayoutEffect(() => setMounted(true), []);\n\n\tconst container = containerProp ?? (mounted ? globalThis.document?.body : null);\n\n\tif (!container) {\n\t\treturn null;\n\t}\n\n\treturn ReactDOM.createPortal(\n\t\t<DragOverlay\n\t\t\tdropAnimation={dropAnimation}\n\t\t\tmodifiers={context.modifiers}\n\t\t\tclassName={cn(!context.flatCursor && \"cursor-grabbing\")}\n\t\t\t{...overlayProps}\n\t\t>\n\t\t\t<SortableOverlayContext.Provider value={true}>\n\t\t\t\t{context.activeId\n\t\t\t\t\t? typeof children === \"function\"\n\t\t\t\t\t\t? children({ value: context.activeId })\n\t\t\t\t\t\t: children\n\t\t\t\t\t: null}\n\t\t\t</SortableOverlayContext.Provider>\n\t\t</DragOverlay>,\n\t\tcontainer\n\t);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableOverlayContext.d.ts","sourceRoot":"","sources":["../../../components/sortable/SortableOverlayContext.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,sBAAsB,kCAAuB,CAAC;AAEpD,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableOverlayContext.js","sourceRoot":"","sources":["../../../components/sortable/SortableOverlayContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,sBAAsB,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;AAEpD,eAAe,sBAAsB,CAAC","sourcesContent":["import { createContext } from \"react\";\n\nconst SortableOverlayContext = createContext(false);\n\nexport default SortableOverlayContext;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableRootContext.d.ts","sourceRoot":"","sources":["../../../components/sortable/SortableRootContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3D,QAAA,MAAM,mBAAmB,mEAAgE,CAAC;AAE1F,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableRootContext.js","sourceRoot":"","sources":["../../../components/sortable/SortableRootContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItC,MAAM,mBAAmB,GAAG,aAAa,CAA2C,IAAI,CAAC,CAAC;AAE1F,eAAe,mBAAmB,CAAC","sourcesContent":["import { createContext } from \"react\";\n\nimport { type SortableRootContextValue } from \"./Sortable\";\n\nconst SortableRootContext = createContext<SortableRootContextValue<unknown> | null>(null);\n\nexport default SortableRootContext;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSortableContext.d.ts","sourceRoot":"","sources":["../../../components/sortable/useSortableContext.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,kBAAkB,2DAMzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSortableContext.js","sourceRoot":"","sources":["../../../components/sortable/useSortableContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AAExD,MAAM,CAAC,OAAO,UAAU,kBAAkB;IACzC,MAAM,OAAO,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAChD,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;IACxE,CAAC;IACD,OAAO,OAAO,CAAC;AAChB,CAAC","sourcesContent":["import { useContext } from \"react\";\n\nimport SortableRootContext from \"./SortableRootContext\";\n\nexport default function useSortableContext() {\n\tconst context = useContext(SortableRootContext);\n\tif (!context) {\n\t\tthrow new Error(\"`useSortableContext` must be used within `Sortable`\");\n\t}\n\treturn context;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSortableItemContext.d.ts","sourceRoot":"","sources":["../../../components/sortable/useSortableItemContext.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,sBAAsB,sDAM7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSortableItemContext.js","sourceRoot":"","sources":["../../../components/sortable/useSortableItemContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,sBAAsB;IAC7C,MAAM,OAAO,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAChD,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;IAChF,CAAC;IACD,OAAO,OAAO,CAAC;AAChB,CAAC","sourcesContent":["import { useContext } from \"react\";\n\nimport { SortableItemContext } from \"./SortableItem\";\n\nexport default function useSortableItemContext() {\n\tconst context = useContext(SortableItemContext);\n\tif (!context) {\n\t\tthrow new Error(\"`useSortableItemContext` must be used within `SortableItem`\");\n\t}\n\treturn context;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../components/spinner/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,UAAU,CAAC,2CAIzF"}
|
|
@@ -1,18 +1,7 @@
|
|
|
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
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
2
|
import { IconLoader } from "@tabler/icons-react";
|
|
14
3
|
import cn from "../../cn";
|
|
15
|
-
export default function Spinner(
|
|
16
|
-
|
|
17
|
-
return (_jsx(IconLoader, Object.assign({ role: "status", "aria-label": "Loading", className: cn("size-4 animate-spin", className) }, props)));
|
|
4
|
+
export default function Spinner({ className, ...props }) {
|
|
5
|
+
return (_jsx(IconLoader, { role: "status", "aria-label": "Loading", className: cn("size-4 animate-spin", className), ...props }));
|
|
18
6
|
}
|
|
7
|
+
//# sourceMappingURL=Spinner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.js","sourceRoot":"","sources":["../../../components/spinner/Spinner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtB,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAqC;IACzF,OAAO,CACN,KAAC,UAAU,IAAC,IAAI,EAAC,QAAQ,gBAAY,SAAS,EAAC,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAC7G,CAAC;AACH,CAAC","sourcesContent":["import { IconLoader } from \"@tabler/icons-react\";\nimport { type ComponentProps } from \"react\";\n\nimport cn from \"@/cn\";\n\nexport default function Spinner({ className, ...props }: ComponentProps<typeof IconLoader>) {\n\treturn (\n\t\t<IconLoader role=\"status\" aria-label=\"Loading\" className={cn(\"size-4 animate-spin\", className)} {...props} />\n\t);\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
+
import statusIndicatorVariants from "./statusIndicatorVariants";
|
|
3
|
+
import type { VariantProps } from "class-variance-authority";
|
|
4
|
+
export default function StatusIndicator({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof statusIndicatorVariants>): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
5
|
+
//# sourceMappingURL=StatusIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusIndicator.d.ts","sourceRoot":"","sources":["../../../components/status-indicator/StatusIndicator.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAItD,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACvC,SAAS,EACT,OAAmB,EACnB,MAAM,EACN,GAAG,KAAK,EACR,EAAE,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,OAAO,uBAAuB,CAAC,8FAqBjF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
+
import cn from "../../cn";
|
|
5
|
+
import statusIndicatorVariants from "./statusIndicatorVariants";
|
|
6
|
+
export default function StatusIndicator({ className, variant = "default", render, ...props }) {
|
|
7
|
+
return useRender({
|
|
8
|
+
defaultTagName: "span",
|
|
9
|
+
props: mergeProps({
|
|
10
|
+
className: cn(statusIndicatorVariants({ className, variant })),
|
|
11
|
+
children: (_jsxs(_Fragment, { children: [_jsx("span", { className: "absolute inline-flex size-full animate-ping rounded-full bg-current opacity-75" }), _jsx("span", { className: "relative inline-flex size-full rounded-full bg-current" })] })),
|
|
12
|
+
}, props),
|
|
13
|
+
render,
|
|
14
|
+
state: {
|
|
15
|
+
slot: "status-indicator",
|
|
16
|
+
variant,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=StatusIndicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusIndicator.js","sourceRoot":"","sources":["../../../components/status-indicator/StatusIndicator.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtB,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAIhE,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACvC,SAAS,EACT,OAAO,GAAG,SAAS,EACnB,MAAM,EACN,GAAG,KAAK,EACyE;IACjF,OAAO,SAAS,CAAC;QAChB,cAAc,EAAE,MAAM;QACtB,KAAK,EAAE,UAAU,CAChB;YACC,SAAS,EAAE,EAAE,CAAC,uBAAuB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;YAC9D,QAAQ,EAAE,CACT,8BACC,eAAM,SAAS,EAAC,gFAAgF,GAAG,EACnG,eAAM,SAAS,EAAC,wDAAwD,GAAG,IACzE,CACH;SACD,EACD,KAAK,CACL;QACD,MAAM;QACN,KAAK,EAAE;YACN,IAAI,EAAE,kBAAkB;YACxB,OAAO;SACP;KACD,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { mergeProps } from \"@base-ui/react/merge-props\";\nimport { useRender } from \"@base-ui/react/use-render\";\n\nimport cn from \"@/cn\";\n\nimport statusIndicatorVariants from \"./statusIndicatorVariants\";\n\nimport type { VariantProps } from \"class-variance-authority\";\n\nexport default function StatusIndicator({\n\tclassName,\n\tvariant = \"default\",\n\trender,\n\t...props\n}: useRender.ComponentProps<\"span\"> & VariantProps<typeof statusIndicatorVariants>) {\n\treturn useRender({\n\t\tdefaultTagName: \"span\",\n\t\tprops: mergeProps<\"span\">(\n\t\t\t{\n\t\t\t\tclassName: cn(statusIndicatorVariants({ className, variant })),\n\t\t\t\tchildren: (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<span className=\"absolute inline-flex size-full animate-ping rounded-full bg-current opacity-75\" />\n\t\t\t\t\t\t<span className=\"relative inline-flex size-full rounded-full bg-current\" />\n\t\t\t\t\t</>\n\t\t\t\t),\n\t\t\t},\n\t\t\tprops\n\t\t),\n\t\trender,\n\t\tstate: {\n\t\t\tslot: \"status-indicator\",\n\t\t\tvariant,\n\t\t},\n\t});\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const statusIndicatorVariants: (props?: ({
|
|
2
|
+
variant?: "default" | "destructive" | "warning" | null | undefined;
|
|
3
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
4
|
+
export default statusIndicatorVariants;
|
|
5
|
+
//# sourceMappingURL=statusIndicatorVariants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statusIndicatorVariants.d.ts","sourceRoot":"","sources":["../../../components/status-indicator/statusIndicatorVariants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,uBAAuB;;8EAc5B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
const statusIndicatorVariants = cva("relative inline-flex size-2 shrink-0 transition-colors duration-1000 ease-in-out", {
|
|
3
|
+
variants: {
|
|
4
|
+
variant: {
|
|
5
|
+
default: "text-green-500",
|
|
6
|
+
warning: "text-orange-500",
|
|
7
|
+
destructive: "text-red-500",
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
defaultVariants: {
|
|
11
|
+
variant: "default",
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
export default statusIndicatorVariants;
|
|
15
|
+
//# sourceMappingURL=statusIndicatorVariants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statusIndicatorVariants.js","sourceRoot":"","sources":["../../../components/status-indicator/statusIndicatorVariants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,uBAAuB,GAAG,GAAG,CAClC,kFAAkF,EAClF;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,OAAO,EAAE,gBAAgB;YACzB,OAAO,EAAE,iBAAiB;YAC1B,WAAW,EAAE,cAAc;SAC3B;KACD;IACD,eAAe,EAAE;QAChB,OAAO,EAAE,SAAS;KAClB;CACD,CACD,CAAC;AAEF,eAAe,uBAAuB,CAAC","sourcesContent":["import { cva } from \"class-variance-authority\";\n\nconst statusIndicatorVariants = cva(\n\t\"relative inline-flex size-2 shrink-0 transition-colors duration-1000 ease-in-out\",\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: \"text-green-500\",\n\t\t\t\twarning: \"text-orange-500\",\n\t\t\t\tdestructive: \"text-red-500\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: \"default\",\n\t\t},\n\t}\n);\n\nexport default statusIndicatorVariants;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../components/switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAIlE,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC9B,SAAS,EACT,IAAgB,EAChB,GAAG,KAAK,EACR,EAAE,eAAe,CAAC,IAAI,CAAC,KAAK,GAAG;IAC/B,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CACxB,2CAiBA"}
|
|
@@ -1,19 +1,7 @@
|
|
|
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
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
2
|
import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
|
|
15
3
|
import cn from "../../cn";
|
|
16
|
-
export default function Switch(
|
|
17
|
-
|
|
18
|
-
return (_jsx(SwitchPrimitive.Root, Object.assign({ "data-slot": "switch", "data-size": size, className: cn("peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-checked:bg-primary data-unchecked:bg-border data-disabled:cursor-not-allowed data-disabled:opacity-50", className) }, props, { children: _jsx(SwitchPrimitive.Thumb, { "data-slot": "switch-thumb", className: "pointer-events-none block rounded-full bg-card ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0" }) })));
|
|
4
|
+
export default function Switch({ className, size = "default", ...props }) {
|
|
5
|
+
return (_jsx(SwitchPrimitive.Root, { "data-slot": "switch", "data-size": size, className: cn("peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-checked:bg-primary data-unchecked:bg-border data-disabled:cursor-not-allowed data-disabled:opacity-50", className), ...props, children: _jsx(SwitchPrimitive.Thumb, { "data-slot": "switch-thumb", className: "pointer-events-none block rounded-full bg-card ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0" }) }));
|
|
19
6
|
}
|
|
7
|
+
//# sourceMappingURL=Switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../components/switch/Switch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC9B,SAAS,EACT,IAAI,GAAG,SAAS,EAChB,GAAG,KAAK,EAGR;IACA,OAAO,CACN,KAAC,eAAe,CAAC,IAAI,iBACV,QAAQ,eACP,IAAI,EACf,SAAS,EAAE,EAAE,CACZ,6iBAA6iB,EAC7iB,SAAS,CACT,KACG,KAAK,YAET,KAAC,eAAe,CAAC,KAAK,iBACX,cAAc,EACxB,SAAS,EAAC,+ZAA+Z,GACxa,GACoB,CACvB,CAAC;AACH,CAAC","sourcesContent":["import { Switch as SwitchPrimitive } from \"@base-ui/react/switch\";\n\nimport cn from \"@/cn\";\n\nexport default function Switch({\n\tclassName,\n\tsize = \"default\",\n\t...props\n}: SwitchPrimitive.Root.Props & {\n\tsize?: \"sm\" | \"default\";\n}) {\n\treturn (\n\t\t<SwitchPrimitive.Root\n\t\t\tdata-slot=\"switch\"\n\t\t\tdata-size={size}\n\t\t\tclassName={cn(\n\t\t\t\t\"peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-checked:bg-primary data-unchecked:bg-border data-disabled:cursor-not-allowed data-disabled:opacity-50\",\n\t\t\t\tclassName\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t<SwitchPrimitive.Thumb\n\t\t\t\tdata-slot=\"switch-thumb\"\n\t\t\t\tclassName=\"pointer-events-none block rounded-full bg-card ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0\"\n\t\t\t/>\n\t\t</SwitchPrimitive.Root>\n\t);\n}\n"]}
|