@cmdniels/uikit 2.2.2 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/components/accordion/Accordion.d.ts +6 -0
- package/out/components/accordion/Accordion.d.ts.map +1 -1
- package/out/components/accordion/Accordion.js +6 -0
- package/out/components/accordion/Accordion.js.map +1 -1
- package/out/components/accordion/AccordionContent.d.ts +6 -0
- package/out/components/accordion/AccordionContent.d.ts.map +1 -1
- package/out/components/accordion/AccordionContent.js +6 -0
- package/out/components/accordion/AccordionContent.js.map +1 -1
- package/out/components/accordion/AccordionItem.d.ts +6 -0
- package/out/components/accordion/AccordionItem.d.ts.map +1 -1
- package/out/components/accordion/AccordionItem.js +6 -0
- package/out/components/accordion/AccordionItem.js.map +1 -1
- package/out/components/accordion/AccordionTrigger.d.ts +6 -0
- package/out/components/accordion/AccordionTrigger.d.ts.map +1 -1
- package/out/components/accordion/AccordionTrigger.js +6 -0
- package/out/components/accordion/AccordionTrigger.js.map +1 -1
- package/out/components/alert/Alert.d.ts +6 -0
- package/out/components/alert/Alert.d.ts.map +1 -1
- package/out/components/alert/Alert.js +6 -0
- package/out/components/alert/Alert.js.map +1 -1
- package/out/components/alert/AlertAction.d.ts +5 -0
- package/out/components/alert/AlertAction.d.ts.map +1 -1
- package/out/components/alert/AlertAction.js +5 -0
- package/out/components/alert/AlertAction.js.map +1 -1
- package/out/components/alert/AlertDescription.d.ts +5 -0
- package/out/components/alert/AlertDescription.d.ts.map +1 -1
- package/out/components/alert/AlertDescription.js +5 -0
- package/out/components/alert/AlertDescription.js.map +1 -1
- package/out/components/alert/AlertTitle.d.ts +5 -0
- package/out/components/alert/AlertTitle.d.ts.map +1 -1
- package/out/components/alert/AlertTitle.js +5 -0
- package/out/components/alert/AlertTitle.js.map +1 -1
- package/out/components/alert/alertVariants.d.ts +4 -0
- package/out/components/alert/alertVariants.d.ts.map +1 -1
- package/out/components/alert/alertVariants.js +4 -0
- package/out/components/alert/alertVariants.js.map +1 -1
- package/out/components/alert-dialog/AlertDialog.d.ts +6 -0
- package/out/components/alert-dialog/AlertDialog.d.ts.map +1 -1
- package/out/components/alert-dialog/AlertDialog.js +6 -0
- package/out/components/alert-dialog/AlertDialog.js.map +1 -1
- package/out/components/alert-dialog/AlertDialogAction.d.ts +5 -0
- package/out/components/alert-dialog/AlertDialogAction.d.ts.map +1 -1
- package/out/components/alert-dialog/AlertDialogAction.js +5 -0
- package/out/components/alert-dialog/AlertDialogAction.js.map +1 -1
- package/out/components/alert-dialog/AlertDialogCancel.d.ts +5 -0
- package/out/components/alert-dialog/AlertDialogCancel.d.ts.map +1 -1
- package/out/components/alert-dialog/AlertDialogCancel.js +5 -0
- package/out/components/alert-dialog/AlertDialogCancel.js.map +1 -1
- package/out/components/alert-dialog/AlertDialogContent.d.ts +6 -0
- package/out/components/alert-dialog/AlertDialogContent.d.ts.map +1 -1
- package/out/components/alert-dialog/AlertDialogContent.js +6 -0
- package/out/components/alert-dialog/AlertDialogContent.js.map +1 -1
- package/out/components/alert-dialog/AlertDialogDescription.d.ts +5 -0
- package/out/components/alert-dialog/AlertDialogDescription.d.ts.map +1 -1
- package/out/components/alert-dialog/AlertDialogDescription.js +5 -0
- package/out/components/alert-dialog/AlertDialogDescription.js.map +1 -1
- package/out/components/alert-dialog/AlertDialogFooter.d.ts +5 -0
- package/out/components/alert-dialog/AlertDialogFooter.d.ts.map +1 -1
- package/out/components/alert-dialog/AlertDialogFooter.js +5 -0
- package/out/components/alert-dialog/AlertDialogFooter.js.map +1 -1
- package/out/components/alert-dialog/AlertDialogHeader.d.ts +4 -0
- package/out/components/alert-dialog/AlertDialogHeader.d.ts.map +1 -1
- package/out/components/alert-dialog/AlertDialogHeader.js +4 -0
- package/out/components/alert-dialog/AlertDialogHeader.js.map +1 -1
- package/out/components/alert-dialog/AlertDialogMedia.d.ts +5 -0
- package/out/components/alert-dialog/AlertDialogMedia.d.ts.map +1 -1
- package/out/components/alert-dialog/AlertDialogMedia.js +5 -0
- package/out/components/alert-dialog/AlertDialogMedia.js.map +1 -1
- package/out/components/alert-dialog/AlertDialogOverlay.d.ts +5 -0
- package/out/components/alert-dialog/AlertDialogOverlay.d.ts.map +1 -1
- package/out/components/alert-dialog/AlertDialogOverlay.js +5 -0
- package/out/components/alert-dialog/AlertDialogOverlay.js.map +1 -1
- package/out/components/alert-dialog/AlertDialogPortal.d.ts +5 -0
- package/out/components/alert-dialog/AlertDialogPortal.d.ts.map +1 -1
- package/out/components/alert-dialog/AlertDialogPortal.js +5 -0
- package/out/components/alert-dialog/AlertDialogPortal.js.map +1 -1
- package/out/components/alert-dialog/AlertDialogTitle.d.ts +5 -0
- package/out/components/alert-dialog/AlertDialogTitle.d.ts.map +1 -1
- package/out/components/alert-dialog/AlertDialogTitle.js +5 -0
- package/out/components/alert-dialog/AlertDialogTitle.js.map +1 -1
- package/out/components/alert-dialog/AlertDialogTrigger.d.ts +5 -0
- package/out/components/alert-dialog/AlertDialogTrigger.d.ts.map +1 -1
- package/out/components/alert-dialog/AlertDialogTrigger.js +5 -0
- package/out/components/alert-dialog/AlertDialogTrigger.js.map +1 -1
- package/out/components/aspect-ratio/AspectRatio.d.ts +6 -0
- package/out/components/aspect-ratio/AspectRatio.d.ts.map +1 -1
- package/out/components/aspect-ratio/AspectRatio.js +6 -0
- package/out/components/aspect-ratio/AspectRatio.js.map +1 -1
- package/out/components/badge/Badge.d.ts +7 -0
- package/out/components/badge/Badge.d.ts.map +1 -1
- package/out/components/badge/Badge.js +7 -0
- package/out/components/badge/Badge.js.map +1 -1
- package/out/components/badge/badgeVariants.d.ts +4 -0
- package/out/components/badge/badgeVariants.d.ts.map +1 -1
- package/out/components/badge/badgeVariants.js +4 -0
- package/out/components/badge/badgeVariants.js.map +1 -1
- package/out/components/bubble/Bubble.d.ts +9 -0
- package/out/components/bubble/Bubble.d.ts.map +1 -1
- package/out/components/bubble/Bubble.js +9 -0
- package/out/components/bubble/Bubble.js.map +1 -1
- package/out/components/bubble/BubbleContent.d.ts +5 -0
- package/out/components/bubble/BubbleContent.d.ts.map +1 -1
- package/out/components/bubble/BubbleContent.js +5 -0
- package/out/components/bubble/BubbleContent.js.map +1 -1
- package/out/components/bubble/BubbleGroup.d.ts +5 -0
- package/out/components/bubble/BubbleGroup.d.ts.map +1 -1
- package/out/components/bubble/BubbleGroup.js +5 -0
- package/out/components/bubble/BubbleGroup.js.map +1 -1
- package/out/components/bubble/BubbleReactions.d.ts +7 -0
- package/out/components/bubble/BubbleReactions.d.ts.map +1 -1
- package/out/components/bubble/BubbleReactions.js +7 -0
- package/out/components/bubble/BubbleReactions.js.map +1 -1
- package/out/components/bubble/bubbleReactionsVariants.d.ts +4 -0
- package/out/components/bubble/bubbleReactionsVariants.d.ts.map +1 -1
- package/out/components/bubble/bubbleReactionsVariants.js +4 -0
- package/out/components/bubble/bubbleReactionsVariants.js.map +1 -1
- package/out/components/bubble/bubbleVariants.d.ts +4 -0
- package/out/components/bubble/bubbleVariants.d.ts.map +1 -1
- package/out/components/bubble/bubbleVariants.js +4 -0
- package/out/components/bubble/bubbleVariants.js.map +1 -1
- package/out/components/button/Button.d.ts +11 -0
- package/out/components/button/Button.d.ts.map +1 -1
- package/out/components/button/Button.js +11 -0
- package/out/components/button/Button.js.map +1 -1
- package/out/components/button/buttonVariants.d.ts +5 -0
- package/out/components/button/buttonVariants.d.ts.map +1 -1
- package/out/components/button/buttonVariants.js +5 -0
- package/out/components/button/buttonVariants.js.map +1 -1
- package/out/components/button-group/ButtonGroup.d.ts +9 -0
- package/out/components/button-group/ButtonGroup.d.ts.map +1 -1
- package/out/components/button-group/ButtonGroup.js +9 -0
- package/out/components/button-group/ButtonGroup.js.map +1 -1
- package/out/components/button-group/ButtonGroupSeparator.d.ts +6 -0
- package/out/components/button-group/ButtonGroupSeparator.d.ts.map +1 -1
- package/out/components/button-group/ButtonGroupSeparator.js +6 -0
- package/out/components/button-group/ButtonGroupSeparator.js.map +1 -1
- package/out/components/button-group/ButtonGroupText.d.ts +5 -0
- package/out/components/button-group/ButtonGroupText.d.ts.map +1 -1
- package/out/components/button-group/ButtonGroupText.js +5 -0
- package/out/components/button-group/ButtonGroupText.js.map +1 -1
- package/out/components/button-group/buttonGroupVariants.d.ts +4 -0
- package/out/components/button-group/buttonGroupVariants.d.ts.map +1 -1
- package/out/components/button-group/buttonGroupVariants.js +4 -0
- package/out/components/button-group/buttonGroupVariants.js.map +1 -1
- package/out/components/calendar/Calendar.d.ts +9 -0
- package/out/components/calendar/Calendar.d.ts.map +1 -1
- package/out/components/calendar/Calendar.js +9 -0
- package/out/components/calendar/Calendar.js.map +1 -1
- package/out/components/calendar/CalendarDayButton.d.ts +4 -0
- package/out/components/calendar/CalendarDayButton.d.ts.map +1 -1
- package/out/components/calendar/CalendarDayButton.js +4 -0
- package/out/components/calendar/CalendarDayButton.js.map +1 -1
- package/out/components/card/Card.d.ts +7 -0
- package/out/components/card/Card.d.ts.map +1 -1
- package/out/components/card/Card.js +7 -0
- package/out/components/card/Card.js.map +1 -1
- package/out/components/card/CardAction.d.ts +4 -0
- package/out/components/card/CardAction.d.ts.map +1 -1
- package/out/components/card/CardAction.js +4 -0
- package/out/components/card/CardAction.js.map +1 -1
- package/out/components/card/CardContent.d.ts +4 -0
- package/out/components/card/CardContent.d.ts.map +1 -1
- package/out/components/card/CardContent.js +4 -0
- package/out/components/card/CardContent.js.map +1 -1
- package/out/components/card/CardDescription.d.ts +4 -0
- package/out/components/card/CardDescription.d.ts.map +1 -1
- package/out/components/card/CardDescription.js +4 -0
- package/out/components/card/CardDescription.js.map +1 -1
- package/out/components/card/CardFooter.d.ts +4 -0
- package/out/components/card/CardFooter.d.ts.map +1 -1
- package/out/components/card/CardFooter.js +4 -0
- package/out/components/card/CardFooter.js.map +1 -1
- package/out/components/card/CardHeader.d.ts +5 -0
- package/out/components/card/CardHeader.d.ts.map +1 -1
- package/out/components/card/CardHeader.js +5 -0
- package/out/components/card/CardHeader.js.map +1 -1
- package/out/components/card/CardTitle.d.ts +4 -0
- package/out/components/card/CardTitle.d.ts.map +1 -1
- package/out/components/card/CardTitle.js +4 -0
- package/out/components/card/CardTitle.js.map +1 -1
- package/out/components/checkbox/Checkbox.d.ts +7 -0
- package/out/components/checkbox/Checkbox.d.ts.map +1 -1
- package/out/components/checkbox/Checkbox.js +7 -0
- package/out/components/checkbox/Checkbox.js.map +1 -1
- package/out/components/combobox/Combobox.d.ts +9 -0
- package/out/components/combobox/Combobox.d.ts.map +1 -1
- package/out/components/combobox/Combobox.js +9 -0
- package/out/components/combobox/Combobox.js.map +1 -1
- package/out/components/combobox/ComboboxChip.d.ts +5 -0
- package/out/components/combobox/ComboboxChip.d.ts.map +1 -1
- package/out/components/combobox/ComboboxChip.js +5 -0
- package/out/components/combobox/ComboboxChip.js.map +1 -1
- package/out/components/combobox/ComboboxChips.d.ts +6 -0
- package/out/components/combobox/ComboboxChips.d.ts.map +1 -1
- package/out/components/combobox/ComboboxChips.js +6 -0
- package/out/components/combobox/ComboboxChips.js.map +1 -1
- package/out/components/combobox/ComboboxChipsInput.d.ts +4 -0
- package/out/components/combobox/ComboboxChipsInput.d.ts.map +1 -1
- package/out/components/combobox/ComboboxChipsInput.js +4 -0
- package/out/components/combobox/ComboboxChipsInput.js.map +1 -1
- package/out/components/combobox/ComboboxClear.d.ts +5 -0
- package/out/components/combobox/ComboboxClear.d.ts.map +1 -1
- package/out/components/combobox/ComboboxClear.js +5 -0
- package/out/components/combobox/ComboboxClear.js.map +1 -1
- package/out/components/combobox/ComboboxCollection.d.ts +5 -0
- package/out/components/combobox/ComboboxCollection.d.ts.map +1 -1
- package/out/components/combobox/ComboboxCollection.js +5 -0
- package/out/components/combobox/ComboboxCollection.js.map +1 -1
- package/out/components/combobox/ComboboxContent.d.ts +7 -0
- package/out/components/combobox/ComboboxContent.d.ts.map +1 -1
- package/out/components/combobox/ComboboxContent.js +7 -0
- package/out/components/combobox/ComboboxContent.js.map +1 -1
- package/out/components/combobox/ComboboxEmpty.d.ts +5 -0
- package/out/components/combobox/ComboboxEmpty.d.ts.map +1 -1
- package/out/components/combobox/ComboboxEmpty.js +5 -0
- package/out/components/combobox/ComboboxEmpty.js.map +1 -1
- package/out/components/combobox/ComboboxGroup.d.ts +5 -0
- package/out/components/combobox/ComboboxGroup.d.ts.map +1 -1
- package/out/components/combobox/ComboboxGroup.js +5 -0
- package/out/components/combobox/ComboboxGroup.js.map +1 -1
- package/out/components/combobox/ComboboxInput.d.ts +6 -0
- package/out/components/combobox/ComboboxInput.d.ts.map +1 -1
- package/out/components/combobox/ComboboxInput.js +6 -0
- package/out/components/combobox/ComboboxInput.js.map +1 -1
- package/out/components/combobox/ComboboxItem.d.ts +5 -0
- package/out/components/combobox/ComboboxItem.d.ts.map +1 -1
- package/out/components/combobox/ComboboxItem.js +5 -0
- package/out/components/combobox/ComboboxItem.js.map +1 -1
- package/out/components/combobox/ComboboxLabel.d.ts +4 -0
- package/out/components/combobox/ComboboxLabel.d.ts.map +1 -1
- package/out/components/combobox/ComboboxLabel.js +4 -0
- package/out/components/combobox/ComboboxLabel.js.map +1 -1
- package/out/components/combobox/ComboboxList.d.ts +5 -0
- package/out/components/combobox/ComboboxList.d.ts.map +1 -1
- package/out/components/combobox/ComboboxList.js +6 -1
- package/out/components/combobox/ComboboxList.js.map +1 -1
- package/out/components/combobox/ComboboxSeparator.d.ts +4 -0
- package/out/components/combobox/ComboboxSeparator.d.ts.map +1 -1
- package/out/components/combobox/ComboboxSeparator.js +4 -0
- package/out/components/combobox/ComboboxSeparator.js.map +1 -1
- package/out/components/combobox/ComboboxTrigger.d.ts +5 -0
- package/out/components/combobox/ComboboxTrigger.d.ts.map +1 -1
- package/out/components/combobox/ComboboxTrigger.js +5 -0
- package/out/components/combobox/ComboboxTrigger.js.map +1 -1
- package/out/components/combobox/ComboboxValue.d.ts +5 -0
- package/out/components/combobox/ComboboxValue.d.ts.map +1 -1
- package/out/components/combobox/ComboboxValue.js +5 -0
- package/out/components/combobox/ComboboxValue.js.map +1 -1
- package/out/components/combobox/useComboboxAnchor.d.ts +4 -0
- package/out/components/combobox/useComboboxAnchor.d.ts.map +1 -1
- package/out/components/combobox/useComboboxAnchor.js +4 -0
- package/out/components/combobox/useComboboxAnchor.js.map +1 -1
- package/out/components/command/Command.d.ts +7 -0
- package/out/components/command/Command.d.ts.map +1 -1
- package/out/components/command/Command.js +7 -0
- package/out/components/command/Command.js.map +1 -1
- package/out/components/command/CommandDialog.d.ts +6 -0
- package/out/components/command/CommandDialog.d.ts.map +1 -1
- package/out/components/command/CommandDialog.js +6 -0
- package/out/components/command/CommandDialog.js.map +1 -1
- package/out/components/command/CommandEmpty.d.ts +5 -0
- package/out/components/command/CommandEmpty.d.ts.map +1 -1
- package/out/components/command/CommandEmpty.js +5 -0
- package/out/components/command/CommandEmpty.js.map +1 -1
- package/out/components/command/CommandInput.d.ts +5 -0
- package/out/components/command/CommandInput.d.ts.map +1 -1
- package/out/components/command/CommandInput.js +5 -0
- package/out/components/command/CommandInput.js.map +1 -1
- package/out/components/command/CommandItem.d.ts +5 -0
- package/out/components/command/CommandItem.d.ts.map +1 -1
- package/out/components/command/CommandItem.js +5 -0
- package/out/components/command/CommandItem.js.map +1 -1
- package/out/components/command/CommandList.d.ts +6 -0
- package/out/components/command/CommandList.d.ts.map +1 -1
- package/out/components/command/CommandList.js +7 -1
- package/out/components/command/CommandList.js.map +1 -1
- package/out/components/context-menu/ContextMenu.d.ts +6 -0
- package/out/components/context-menu/ContextMenu.d.ts.map +1 -1
- package/out/components/context-menu/ContextMenu.js +6 -0
- package/out/components/context-menu/ContextMenu.js.map +1 -1
- package/out/components/context-menu/ContextMenuCheckboxItem.d.ts +5 -0
- package/out/components/context-menu/ContextMenuCheckboxItem.d.ts.map +1 -1
- package/out/components/context-menu/ContextMenuCheckboxItem.js +5 -0
- package/out/components/context-menu/ContextMenuCheckboxItem.js.map +1 -1
- package/out/components/context-menu/ContextMenuContent.d.ts +5 -0
- package/out/components/context-menu/ContextMenuContent.d.ts.map +1 -1
- package/out/components/context-menu/ContextMenuContent.js +5 -0
- package/out/components/context-menu/ContextMenuContent.js.map +1 -1
- package/out/components/context-menu/ContextMenuGroup.d.ts +5 -0
- package/out/components/context-menu/ContextMenuGroup.d.ts.map +1 -1
- package/out/components/context-menu/ContextMenuGroup.js +5 -0
- package/out/components/context-menu/ContextMenuGroup.js.map +1 -1
- package/out/components/context-menu/ContextMenuItem.d.ts +6 -0
- package/out/components/context-menu/ContextMenuItem.d.ts.map +1 -1
- package/out/components/context-menu/ContextMenuItem.js +6 -0
- package/out/components/context-menu/ContextMenuItem.js.map +1 -1
- package/out/components/context-menu/ContextMenuLabel.d.ts +5 -0
- package/out/components/context-menu/ContextMenuLabel.d.ts.map +1 -1
- package/out/components/context-menu/ContextMenuLabel.js +5 -0
- package/out/components/context-menu/ContextMenuLabel.js.map +1 -1
- package/out/components/context-menu/ContextMenuPortal.d.ts +5 -0
- package/out/components/context-menu/ContextMenuPortal.d.ts.map +1 -1
- package/out/components/context-menu/ContextMenuPortal.js +5 -0
- package/out/components/context-menu/ContextMenuPortal.js.map +1 -1
- package/out/components/context-menu/ContextMenuRadioGroup.d.ts +4 -0
- package/out/components/context-menu/ContextMenuRadioGroup.d.ts.map +1 -1
- package/out/components/context-menu/ContextMenuRadioGroup.js +4 -0
- package/out/components/context-menu/ContextMenuRadioGroup.js.map +1 -1
- package/out/components/context-menu/ContextMenuRadioItem.d.ts +5 -0
- package/out/components/context-menu/ContextMenuRadioItem.d.ts.map +1 -1
- package/out/components/context-menu/ContextMenuRadioItem.js +5 -0
- package/out/components/context-menu/ContextMenuRadioItem.js.map +1 -1
- package/out/components/context-menu/ContextMenuSeparator.d.ts +4 -0
- package/out/components/context-menu/ContextMenuSeparator.d.ts.map +1 -1
- package/out/components/context-menu/ContextMenuSeparator.js +4 -0
- package/out/components/context-menu/ContextMenuSeparator.js.map +1 -1
- package/out/components/context-menu/ContextMenuShortcut.d.ts +5 -0
- package/out/components/context-menu/ContextMenuShortcut.d.ts.map +1 -1
- package/out/components/context-menu/ContextMenuShortcut.js +5 -0
- package/out/components/context-menu/ContextMenuShortcut.js.map +1 -1
- package/out/components/context-menu/ContextMenuSub.d.ts +5 -0
- package/out/components/context-menu/ContextMenuSub.d.ts.map +1 -1
- package/out/components/context-menu/ContextMenuSub.js +5 -0
- package/out/components/context-menu/ContextMenuSub.js.map +1 -1
- package/out/components/context-menu/ContextMenuSubContent.d.ts +5 -0
- package/out/components/context-menu/ContextMenuSubContent.d.ts.map +1 -1
- package/out/components/context-menu/ContextMenuSubContent.js +5 -0
- package/out/components/context-menu/ContextMenuSubContent.js.map +1 -1
- package/out/components/context-menu/ContextMenuSubTrigger.d.ts +6 -0
- package/out/components/context-menu/ContextMenuSubTrigger.d.ts.map +1 -1
- package/out/components/context-menu/ContextMenuSubTrigger.js +6 -0
- package/out/components/context-menu/ContextMenuSubTrigger.js.map +1 -1
- package/out/components/context-menu/ContextMenuTrigger.d.ts +5 -0
- package/out/components/context-menu/ContextMenuTrigger.d.ts.map +1 -1
- package/out/components/context-menu/ContextMenuTrigger.js +5 -0
- package/out/components/context-menu/ContextMenuTrigger.js.map +1 -1
- package/out/components/copy-input/CopyInput.d.ts +6 -0
- package/out/components/copy-input/CopyInput.d.ts.map +1 -1
- package/out/components/copy-input/CopyInput.js +6 -0
- package/out/components/copy-input/CopyInput.js.map +1 -1
- package/out/components/date-picker/DatePicker.d.ts +6 -0
- package/out/components/date-picker/DatePicker.d.ts.map +1 -1
- package/out/components/date-picker/DatePicker.js +6 -0
- package/out/components/date-picker/DatePicker.js.map +1 -1
- package/out/components/dialog/Dialog.d.ts +6 -0
- package/out/components/dialog/Dialog.d.ts.map +1 -1
- package/out/components/dialog/Dialog.js +6 -0
- package/out/components/dialog/Dialog.js.map +1 -1
- package/out/components/dialog/DialogClose.d.ts +5 -0
- package/out/components/dialog/DialogClose.d.ts.map +1 -1
- package/out/components/dialog/DialogClose.js +5 -0
- package/out/components/dialog/DialogClose.js.map +1 -1
- package/out/components/dialog/DialogContent.d.ts +6 -0
- package/out/components/dialog/DialogContent.d.ts.map +1 -1
- package/out/components/dialog/DialogContent.js +6 -0
- package/out/components/dialog/DialogContent.js.map +1 -1
- package/out/components/dialog/DialogDescription.d.ts +5 -0
- package/out/components/dialog/DialogDescription.d.ts.map +1 -1
- package/out/components/dialog/DialogDescription.js +5 -0
- package/out/components/dialog/DialogDescription.js.map +1 -1
- package/out/components/dialog/DialogFooter.d.ts +6 -0
- package/out/components/dialog/DialogFooter.d.ts.map +1 -1
- package/out/components/dialog/DialogFooter.js +6 -0
- package/out/components/dialog/DialogFooter.js.map +1 -1
- package/out/components/dialog/DialogHeader.d.ts +4 -0
- package/out/components/dialog/DialogHeader.d.ts.map +1 -1
- package/out/components/dialog/DialogHeader.js +4 -0
- package/out/components/dialog/DialogHeader.js.map +1 -1
- package/out/components/dialog/DialogOverlay.d.ts +5 -0
- package/out/components/dialog/DialogOverlay.d.ts.map +1 -1
- package/out/components/dialog/DialogOverlay.js +5 -0
- package/out/components/dialog/DialogOverlay.js.map +1 -1
- package/out/components/dialog/DialogPortal.d.ts +5 -0
- package/out/components/dialog/DialogPortal.d.ts.map +1 -1
- package/out/components/dialog/DialogPortal.js +5 -0
- package/out/components/dialog/DialogPortal.js.map +1 -1
- package/out/components/dialog/DialogTitle.d.ts +5 -0
- package/out/components/dialog/DialogTitle.d.ts.map +1 -1
- package/out/components/dialog/DialogTitle.js +5 -0
- package/out/components/dialog/DialogTitle.js.map +1 -1
- package/out/components/dialog/DialogTrigger.d.ts +5 -0
- package/out/components/dialog/DialogTrigger.d.ts.map +1 -1
- package/out/components/dialog/DialogTrigger.js +5 -0
- package/out/components/dialog/DialogTrigger.js.map +1 -1
- package/out/components/dropdown-menu/DropdownMenu.d.ts +7 -0
- package/out/components/dropdown-menu/DropdownMenu.d.ts.map +1 -1
- package/out/components/dropdown-menu/DropdownMenu.js +7 -0
- package/out/components/dropdown-menu/DropdownMenu.js.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuCheckboxItem.d.ts +5 -0
- package/out/components/dropdown-menu/DropdownMenuCheckboxItem.d.ts.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuCheckboxItem.js +5 -0
- package/out/components/dropdown-menu/DropdownMenuCheckboxItem.js.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuContent.d.ts +5 -0
- package/out/components/dropdown-menu/DropdownMenuContent.d.ts.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuContent.js +5 -0
- package/out/components/dropdown-menu/DropdownMenuContent.js.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuGroup.d.ts +5 -0
- package/out/components/dropdown-menu/DropdownMenuGroup.d.ts.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuGroup.js +5 -0
- package/out/components/dropdown-menu/DropdownMenuGroup.js.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuItem.d.ts +6 -0
- package/out/components/dropdown-menu/DropdownMenuItem.d.ts.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuItem.js +6 -0
- package/out/components/dropdown-menu/DropdownMenuItem.js.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuLabel.d.ts +5 -0
- package/out/components/dropdown-menu/DropdownMenuLabel.d.ts.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuLabel.js +5 -0
- package/out/components/dropdown-menu/DropdownMenuLabel.js.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuPortal.d.ts +5 -0
- package/out/components/dropdown-menu/DropdownMenuPortal.d.ts.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuPortal.js +5 -0
- package/out/components/dropdown-menu/DropdownMenuPortal.js.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuRadioGroup.d.ts +4 -0
- package/out/components/dropdown-menu/DropdownMenuRadioGroup.d.ts.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuRadioGroup.js +4 -0
- package/out/components/dropdown-menu/DropdownMenuRadioGroup.js.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuRadioItem.d.ts +5 -0
- package/out/components/dropdown-menu/DropdownMenuRadioItem.d.ts.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuRadioItem.js +5 -0
- package/out/components/dropdown-menu/DropdownMenuRadioItem.js.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuSeparator.d.ts +4 -0
- package/out/components/dropdown-menu/DropdownMenuSeparator.d.ts.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuSeparator.js +4 -0
- package/out/components/dropdown-menu/DropdownMenuSeparator.js.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuShortcut.d.ts +5 -0
- package/out/components/dropdown-menu/DropdownMenuShortcut.d.ts.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuShortcut.js +5 -0
- package/out/components/dropdown-menu/DropdownMenuShortcut.js.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuSub.d.ts +5 -0
- package/out/components/dropdown-menu/DropdownMenuSub.d.ts.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuSub.js +5 -0
- package/out/components/dropdown-menu/DropdownMenuSub.js.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuSubContent.d.ts +5 -0
- package/out/components/dropdown-menu/DropdownMenuSubContent.d.ts.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuSubContent.js +5 -0
- package/out/components/dropdown-menu/DropdownMenuSubContent.js.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuSubTrigger.d.ts +6 -0
- package/out/components/dropdown-menu/DropdownMenuSubTrigger.d.ts.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuSubTrigger.js +6 -0
- package/out/components/dropdown-menu/DropdownMenuSubTrigger.js.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuTrigger.d.ts +5 -0
- package/out/components/dropdown-menu/DropdownMenuTrigger.d.ts.map +1 -1
- package/out/components/dropdown-menu/DropdownMenuTrigger.js +5 -0
- package/out/components/dropdown-menu/DropdownMenuTrigger.js.map +1 -1
- package/out/components/empty/Empty.d.ts +5 -0
- package/out/components/empty/Empty.d.ts.map +1 -1
- package/out/components/empty/Empty.js +5 -0
- package/out/components/empty/Empty.js.map +1 -1
- package/out/components/empty/EmptyContent.d.ts +4 -0
- package/out/components/empty/EmptyContent.d.ts.map +1 -1
- package/out/components/empty/EmptyContent.js +4 -0
- package/out/components/empty/EmptyContent.js.map +1 -1
- package/out/components/empty/EmptyDescription.d.ts +5 -0
- package/out/components/empty/EmptyDescription.d.ts.map +1 -1
- package/out/components/empty/EmptyDescription.js +5 -0
- package/out/components/empty/EmptyDescription.js.map +1 -1
- package/out/components/empty/EmptyHeader.d.ts +4 -0
- package/out/components/empty/EmptyHeader.d.ts.map +1 -1
- package/out/components/empty/EmptyHeader.js +4 -0
- package/out/components/empty/EmptyHeader.js.map +1 -1
- package/out/components/empty/EmptyMedia.d.ts +6 -0
- package/out/components/empty/EmptyMedia.d.ts.map +1 -1
- package/out/components/empty/EmptyMedia.js +6 -0
- package/out/components/empty/EmptyMedia.js.map +1 -1
- package/out/components/empty/EmptyTitle.d.ts +4 -0
- package/out/components/empty/EmptyTitle.d.ts.map +1 -1
- package/out/components/empty/EmptyTitle.js +4 -0
- package/out/components/empty/EmptyTitle.js.map +1 -1
- package/out/components/empty/emptyMediaVariants.d.ts +4 -0
- package/out/components/empty/emptyMediaVariants.d.ts.map +1 -1
- package/out/components/empty/emptyMediaVariants.js +4 -0
- package/out/components/empty/emptyMediaVariants.js.map +1 -1
- package/out/components/error/Error.d.ts +6 -0
- package/out/components/error/Error.d.ts.map +1 -1
- package/out/components/error/Error.js +6 -0
- package/out/components/error/Error.js.map +1 -1
- package/out/components/field/Field.d.ts +8 -0
- package/out/components/field/Field.d.ts.map +1 -1
- package/out/components/field/Field.js +8 -0
- package/out/components/field/Field.js.map +1 -1
- package/out/components/field/FieldContent.d.ts +5 -0
- package/out/components/field/FieldContent.d.ts.map +1 -1
- package/out/components/field/FieldContent.js +5 -0
- package/out/components/field/FieldContent.js.map +1 -1
- package/out/components/field/FieldDescription.d.ts +5 -0
- package/out/components/field/FieldDescription.d.ts.map +1 -1
- package/out/components/field/FieldDescription.js +5 -0
- package/out/components/field/FieldDescription.js.map +1 -1
- package/out/components/field/FieldError.d.ts +6 -0
- package/out/components/field/FieldError.d.ts.map +1 -1
- package/out/components/field/FieldError.js +6 -0
- package/out/components/field/FieldError.js.map +1 -1
- package/out/components/field/FieldGroup.d.ts +6 -0
- package/out/components/field/FieldGroup.d.ts.map +1 -1
- package/out/components/field/FieldGroup.js +6 -0
- package/out/components/field/FieldGroup.js.map +1 -1
- package/out/components/field/FieldLabel.d.ts +6 -0
- package/out/components/field/FieldLabel.d.ts.map +1 -1
- package/out/components/field/FieldLabel.js +6 -0
- package/out/components/field/FieldLabel.js.map +1 -1
- package/out/components/field/FieldLegend.d.ts +5 -0
- package/out/components/field/FieldLegend.d.ts.map +1 -1
- package/out/components/field/FieldLegend.js +5 -0
- package/out/components/field/FieldLegend.js.map +1 -1
- package/out/components/field/FieldSeparator.d.ts +6 -0
- package/out/components/field/FieldSeparator.d.ts.map +1 -1
- package/out/components/field/FieldSeparator.js +6 -0
- package/out/components/field/FieldSeparator.js.map +1 -1
- package/out/components/field/FieldSet.d.ts +5 -0
- package/out/components/field/FieldSet.d.ts.map +1 -1
- package/out/components/field/FieldSet.js +5 -0
- package/out/components/field/FieldSet.js.map +1 -1
- package/out/components/field/FieldTitle.d.ts +5 -0
- package/out/components/field/FieldTitle.d.ts.map +1 -1
- package/out/components/field/FieldTitle.js +5 -0
- package/out/components/field/FieldTitle.js.map +1 -1
- package/out/components/field/fieldVariants.d.ts +4 -0
- package/out/components/field/fieldVariants.d.ts.map +1 -1
- package/out/components/field/fieldVariants.js +4 -0
- package/out/components/field/fieldVariants.js.map +1 -1
- package/out/components/file-dropzone/FileDropzone.d.ts +6 -0
- package/out/components/file-dropzone/FileDropzone.d.ts.map +1 -1
- package/out/components/file-dropzone/FileDropzone.js +6 -0
- package/out/components/file-dropzone/FileDropzone.js.map +1 -1
- package/out/components/input/Input.d.ts +7 -0
- package/out/components/input/Input.d.ts.map +1 -1
- package/out/components/input/Input.js +7 -0
- package/out/components/input/Input.js.map +1 -1
- package/out/components/input-group/InputGroup.d.ts +6 -0
- package/out/components/input-group/InputGroup.d.ts.map +1 -1
- package/out/components/input-group/InputGroup.js +6 -0
- package/out/components/input-group/InputGroup.js.map +1 -1
- package/out/components/input-group/InputGroupAddon.d.ts +7 -0
- package/out/components/input-group/InputGroupAddon.d.ts.map +1 -1
- package/out/components/input-group/InputGroupAddon.js +7 -0
- package/out/components/input-group/InputGroupAddon.js.map +1 -1
- package/out/components/input-group/InputGroupButton.d.ts +7 -0
- package/out/components/input-group/InputGroupButton.d.ts.map +1 -1
- package/out/components/input-group/InputGroupButton.js +8 -1
- package/out/components/input-group/InputGroupButton.js.map +1 -1
- package/out/components/input-group/InputGroupInput.d.ts +6 -0
- package/out/components/input-group/InputGroupInput.d.ts.map +1 -1
- package/out/components/input-group/InputGroupInput.js +6 -0
- package/out/components/input-group/InputGroupInput.js.map +1 -1
- package/out/components/input-group/InputGroupText.d.ts +5 -0
- package/out/components/input-group/InputGroupText.d.ts.map +1 -1
- package/out/components/input-group/InputGroupText.js +5 -0
- package/out/components/input-group/InputGroupText.js.map +1 -1
- package/out/components/input-group/InputGroupTextArea.d.ts +6 -0
- package/out/components/input-group/InputGroupTextArea.d.ts.map +1 -1
- package/out/components/input-group/InputGroupTextArea.js +6 -0
- package/out/components/input-group/InputGroupTextArea.js.map +1 -1
- package/out/components/input-group/inputGroupAddonVariants.d.ts +4 -0
- package/out/components/input-group/inputGroupAddonVariants.d.ts.map +1 -1
- package/out/components/input-group/inputGroupAddonVariants.js +5 -1
- package/out/components/input-group/inputGroupAddonVariants.js.map +1 -1
- package/out/components/input-group/inputGroupButtonVariants.d.ts +4 -0
- package/out/components/input-group/inputGroupButtonVariants.d.ts.map +1 -1
- package/out/components/input-group/inputGroupButtonVariants.js +4 -0
- package/out/components/input-group/inputGroupButtonVariants.js.map +1 -1
- package/out/components/item/Item.d.ts +8 -0
- package/out/components/item/Item.d.ts.map +1 -1
- package/out/components/item/Item.js +8 -0
- package/out/components/item/Item.js.map +1 -1
- package/out/components/item/ItemActions.d.ts +4 -0
- package/out/components/item/ItemActions.d.ts.map +1 -1
- package/out/components/item/ItemActions.js +4 -0
- package/out/components/item/ItemActions.js.map +1 -1
- package/out/components/item/ItemContent.d.ts +4 -0
- package/out/components/item/ItemContent.d.ts.map +1 -1
- package/out/components/item/ItemContent.js +4 -0
- package/out/components/item/ItemContent.js.map +1 -1
- package/out/components/item/ItemDescription.d.ts +5 -0
- package/out/components/item/ItemDescription.d.ts.map +1 -1
- package/out/components/item/ItemDescription.js +5 -0
- package/out/components/item/ItemDescription.js.map +1 -1
- package/out/components/item/ItemFooter.d.ts +4 -0
- package/out/components/item/ItemFooter.d.ts.map +1 -1
- package/out/components/item/ItemFooter.js +4 -0
- package/out/components/item/ItemFooter.js.map +1 -1
- package/out/components/item/ItemGroup.d.ts +5 -0
- package/out/components/item/ItemGroup.d.ts.map +1 -1
- package/out/components/item/ItemGroup.js +5 -0
- package/out/components/item/ItemGroup.js.map +1 -1
- package/out/components/item/ItemHeader.d.ts +4 -0
- package/out/components/item/ItemHeader.d.ts.map +1 -1
- package/out/components/item/ItemHeader.js +4 -0
- package/out/components/item/ItemHeader.js.map +1 -1
- package/out/components/item/ItemMedia.d.ts +5 -0
- package/out/components/item/ItemMedia.d.ts.map +1 -1
- package/out/components/item/ItemMedia.js +5 -0
- package/out/components/item/ItemMedia.js.map +1 -1
- package/out/components/item/ItemSeparator.d.ts +4 -0
- package/out/components/item/ItemSeparator.d.ts.map +1 -1
- package/out/components/item/ItemSeparator.js +4 -0
- package/out/components/item/ItemSeparator.js.map +1 -1
- package/out/components/item/ItemTitle.d.ts +4 -0
- package/out/components/item/ItemTitle.d.ts.map +1 -1
- package/out/components/item/ItemTitle.js +4 -0
- package/out/components/item/ItemTitle.js.map +1 -1
- package/out/components/item/itemMediaVariants.d.ts +4 -0
- package/out/components/item/itemMediaVariants.d.ts.map +1 -1
- package/out/components/item/itemMediaVariants.js +4 -0
- package/out/components/item/itemMediaVariants.js.map +1 -1
- package/out/components/item/itemVariants.d.ts +4 -0
- package/out/components/item/itemVariants.d.ts.map +1 -1
- package/out/components/item/itemVariants.js +4 -0
- package/out/components/item/itemVariants.js.map +1 -1
- package/out/components/kbd/Kbd.d.ts +6 -0
- package/out/components/kbd/Kbd.d.ts.map +1 -1
- package/out/components/kbd/Kbd.js +6 -0
- package/out/components/kbd/Kbd.js.map +1 -1
- package/out/components/kbd/KbdGroup.d.ts +4 -0
- package/out/components/kbd/KbdGroup.d.ts.map +1 -1
- package/out/components/kbd/KbdGroup.js +4 -0
- package/out/components/kbd/KbdGroup.js.map +1 -1
- package/out/components/label/Label.d.ts +6 -0
- package/out/components/label/Label.d.ts.map +1 -1
- package/out/components/label/Label.js +6 -0
- package/out/components/label/Label.js.map +1 -1
- package/out/components/link-input/LinkInput.d.ts +6 -0
- package/out/components/link-input/LinkInput.d.ts.map +1 -1
- package/out/components/link-input/LinkInput.js +6 -0
- package/out/components/link-input/LinkInput.js.map +1 -1
- package/out/components/message/Message.d.ts +7 -0
- package/out/components/message/Message.d.ts.map +1 -1
- package/out/components/message/Message.js +7 -0
- package/out/components/message/Message.js.map +1 -1
- package/out/components/message/MessageAvatar.d.ts +5 -0
- package/out/components/message/MessageAvatar.d.ts.map +1 -1
- package/out/components/message/MessageAvatar.js +5 -0
- package/out/components/message/MessageAvatar.js.map +1 -1
- package/out/components/message/MessageContent.d.ts +4 -0
- package/out/components/message/MessageContent.d.ts.map +1 -1
- package/out/components/message/MessageContent.js +4 -0
- package/out/components/message/MessageContent.js.map +1 -1
- package/out/components/message/MessageFooter.d.ts +6 -0
- package/out/components/message/MessageFooter.d.ts.map +1 -1
- package/out/components/message/MessageFooter.js +6 -0
- package/out/components/message/MessageFooter.js.map +1 -1
- package/out/components/message/MessageGroup.d.ts +5 -0
- package/out/components/message/MessageGroup.d.ts.map +1 -1
- package/out/components/message/MessageGroup.js +5 -0
- package/out/components/message/MessageGroup.js.map +1 -1
- package/out/components/message/MessageHeader.d.ts +5 -0
- package/out/components/message/MessageHeader.d.ts.map +1 -1
- package/out/components/message/MessageHeader.js +5 -0
- package/out/components/message/MessageHeader.js.map +1 -1
- package/out/components/pagination/Pagination.d.ts +5 -0
- package/out/components/pagination/Pagination.d.ts.map +1 -1
- package/out/components/pagination/Pagination.js +5 -0
- package/out/components/pagination/Pagination.js.map +1 -1
- package/out/components/pagination/PaginationContent.d.ts +5 -0
- package/out/components/pagination/PaginationContent.d.ts.map +1 -1
- package/out/components/pagination/PaginationContent.js +5 -0
- package/out/components/pagination/PaginationContent.js.map +1 -1
- package/out/components/pagination/PaginationEllipsis.d.ts +5 -0
- package/out/components/pagination/PaginationEllipsis.d.ts.map +1 -1
- package/out/components/pagination/PaginationEllipsis.js +5 -0
- package/out/components/pagination/PaginationEllipsis.js.map +1 -1
- package/out/components/pagination/PaginationItem.d.ts +5 -0
- package/out/components/pagination/PaginationItem.d.ts.map +1 -1
- package/out/components/pagination/PaginationItem.js +5 -0
- package/out/components/pagination/PaginationItem.js.map +1 -1
- package/out/components/pagination/PaginationLink.d.ts +5 -0
- package/out/components/pagination/PaginationLink.d.ts.map +1 -1
- package/out/components/pagination/PaginationLink.js +5 -0
- package/out/components/pagination/PaginationLink.js.map +1 -1
- package/out/components/pagination/PaginationNext.d.ts +5 -0
- package/out/components/pagination/PaginationNext.d.ts.map +1 -1
- package/out/components/pagination/PaginationNext.js +5 -0
- package/out/components/pagination/PaginationNext.js.map +1 -1
- package/out/components/pagination/PaginationPrevious.d.ts +5 -0
- package/out/components/pagination/PaginationPrevious.d.ts.map +1 -1
- package/out/components/pagination/PaginationPrevious.js +5 -0
- package/out/components/pagination/PaginationPrevious.js.map +1 -1
- package/out/components/popover/Popover.d.ts +5 -0
- package/out/components/popover/Popover.d.ts.map +1 -1
- package/out/components/popover/Popover.js +5 -0
- package/out/components/popover/Popover.js.map +1 -1
- package/out/components/popover/PopoverContent.d.ts +6 -0
- package/out/components/popover/PopoverContent.d.ts.map +1 -1
- package/out/components/popover/PopoverContent.js +6 -0
- package/out/components/popover/PopoverContent.js.map +1 -1
- package/out/components/popover/PopoverDescription.d.ts +4 -0
- package/out/components/popover/PopoverDescription.d.ts.map +1 -1
- package/out/components/popover/PopoverDescription.js +4 -0
- package/out/components/popover/PopoverDescription.js.map +1 -1
- package/out/components/popover/PopoverHeader.d.ts +4 -0
- package/out/components/popover/PopoverHeader.d.ts.map +1 -1
- package/out/components/popover/PopoverHeader.js +4 -0
- package/out/components/popover/PopoverHeader.js.map +1 -1
- package/out/components/popover/PopoverTitle.d.ts +4 -0
- package/out/components/popover/PopoverTitle.d.ts.map +1 -1
- package/out/components/popover/PopoverTitle.js +4 -0
- package/out/components/popover/PopoverTitle.js.map +1 -1
- package/out/components/popover/PopoverTrigger.d.ts +5 -0
- package/out/components/popover/PopoverTrigger.d.ts.map +1 -1
- package/out/components/popover/PopoverTrigger.js +5 -0
- package/out/components/popover/PopoverTrigger.js.map +1 -1
- package/out/components/radio-group/RadioGroup.d.ts +8 -0
- package/out/components/radio-group/RadioGroup.d.ts.map +1 -1
- package/out/components/radio-group/RadioGroup.js +8 -0
- package/out/components/radio-group/RadioGroup.js.map +1 -1
- package/out/components/radio-group/RadioGroupItem.d.ts +6 -0
- package/out/components/radio-group/RadioGroupItem.d.ts.map +1 -1
- package/out/components/radio-group/RadioGroupItem.js +6 -0
- package/out/components/radio-group/RadioGroupItem.js.map +1 -1
- package/out/components/scroll-area/ScrollArea.d.ts +6 -0
- package/out/components/scroll-area/ScrollArea.d.ts.map +1 -1
- package/out/components/scroll-area/ScrollArea.js +6 -0
- package/out/components/scroll-area/ScrollArea.js.map +1 -1
- package/out/components/scroll-area/ScrollBar.d.ts +6 -0
- package/out/components/scroll-area/ScrollBar.d.ts.map +1 -1
- package/out/components/scroll-area/ScrollBar.js +6 -0
- package/out/components/scroll-area/ScrollBar.js.map +1 -1
- package/out/components/select/Select.d.ts +7 -0
- package/out/components/select/Select.d.ts.map +1 -1
- package/out/components/select/Select.js +7 -0
- package/out/components/select/Select.js.map +1 -1
- package/out/components/select/SelectContent.d.ts +6 -0
- package/out/components/select/SelectContent.d.ts.map +1 -1
- package/out/components/select/SelectContent.js +6 -0
- package/out/components/select/SelectContent.js.map +1 -1
- package/out/components/select/SelectGroup.d.ts +5 -0
- package/out/components/select/SelectGroup.d.ts.map +1 -1
- package/out/components/select/SelectGroup.js +5 -0
- package/out/components/select/SelectGroup.js.map +1 -1
- package/out/components/select/SelectItem.d.ts +5 -0
- package/out/components/select/SelectItem.d.ts.map +1 -1
- package/out/components/select/SelectItem.js +5 -0
- package/out/components/select/SelectItem.js.map +1 -1
- package/out/components/select/SelectLabel.d.ts +4 -0
- package/out/components/select/SelectLabel.d.ts.map +1 -1
- package/out/components/select/SelectLabel.js +4 -0
- package/out/components/select/SelectLabel.js.map +1 -1
- package/out/components/select/SelectScrollDownButton.d.ts +5 -0
- package/out/components/select/SelectScrollDownButton.d.ts.map +1 -1
- package/out/components/select/SelectScrollDownButton.js +5 -0
- package/out/components/select/SelectScrollDownButton.js.map +1 -1
- package/out/components/select/SelectScrollUpButton.d.ts +5 -0
- package/out/components/select/SelectScrollUpButton.d.ts.map +1 -1
- package/out/components/select/SelectScrollUpButton.js +5 -0
- package/out/components/select/SelectScrollUpButton.js.map +1 -1
- package/out/components/select/SelectSeparator.d.ts +4 -0
- package/out/components/select/SelectSeparator.d.ts.map +1 -1
- package/out/components/select/SelectSeparator.js +4 -0
- package/out/components/select/SelectSeparator.js.map +1 -1
- package/out/components/select/SelectTrigger.d.ts +7 -0
- package/out/components/select/SelectTrigger.d.ts.map +1 -1
- package/out/components/select/SelectTrigger.js +7 -0
- package/out/components/select/SelectTrigger.js.map +1 -1
- package/out/components/select/SelectValue.d.ts +5 -0
- package/out/components/select/SelectValue.d.ts.map +1 -1
- package/out/components/select/SelectValue.js +5 -0
- package/out/components/select/SelectValue.js.map +1 -1
- package/out/components/separator/Separator.d.ts +5 -0
- package/out/components/separator/Separator.d.ts.map +1 -1
- package/out/components/separator/Separator.js +5 -0
- package/out/components/separator/Separator.js.map +1 -1
- package/out/components/sheet/Sheet.d.ts +5 -0
- package/out/components/sheet/Sheet.d.ts.map +1 -1
- package/out/components/sheet/Sheet.js +5 -0
- package/out/components/sheet/Sheet.js.map +1 -1
- package/out/components/sheet/SheetClose.d.ts +5 -0
- package/out/components/sheet/SheetClose.d.ts.map +1 -1
- package/out/components/sheet/SheetClose.js +5 -0
- package/out/components/sheet/SheetClose.js.map +1 -1
- package/out/components/sheet/SheetContent.d.ts +6 -0
- package/out/components/sheet/SheetContent.d.ts.map +1 -1
- package/out/components/sheet/SheetContent.js +6 -0
- package/out/components/sheet/SheetContent.js.map +1 -1
- package/out/components/sheet/SheetDescription.d.ts +4 -0
- package/out/components/sheet/SheetDescription.d.ts.map +1 -1
- package/out/components/sheet/SheetDescription.js +4 -0
- package/out/components/sheet/SheetDescription.js.map +1 -1
- package/out/components/sheet/SheetFooter.d.ts +5 -0
- package/out/components/sheet/SheetFooter.d.ts.map +1 -1
- package/out/components/sheet/SheetFooter.js +5 -0
- package/out/components/sheet/SheetFooter.js.map +1 -1
- package/out/components/sheet/SheetHeader.d.ts +4 -0
- package/out/components/sheet/SheetHeader.d.ts.map +1 -1
- package/out/components/sheet/SheetHeader.js +4 -0
- package/out/components/sheet/SheetHeader.js.map +1 -1
- package/out/components/sheet/SheetOverlay.d.ts +5 -0
- package/out/components/sheet/SheetOverlay.d.ts.map +1 -1
- package/out/components/sheet/SheetOverlay.js +5 -0
- package/out/components/sheet/SheetOverlay.js.map +1 -1
- package/out/components/sheet/SheetPortal.d.ts +5 -0
- package/out/components/sheet/SheetPortal.d.ts.map +1 -1
- package/out/components/sheet/SheetPortal.js +5 -0
- package/out/components/sheet/SheetPortal.js.map +1 -1
- package/out/components/sheet/SheetTitle.d.ts +4 -0
- package/out/components/sheet/SheetTitle.d.ts.map +1 -1
- package/out/components/sheet/SheetTitle.js +4 -0
- package/out/components/sheet/SheetTitle.js.map +1 -1
- package/out/components/sheet/SheetTrigger.d.ts +5 -0
- package/out/components/sheet/SheetTrigger.d.ts.map +1 -1
- package/out/components/sheet/SheetTrigger.js +5 -0
- package/out/components/sheet/SheetTrigger.js.map +1 -1
- package/out/components/sidebar/Sidebar.d.ts +7 -0
- package/out/components/sidebar/Sidebar.d.ts.map +1 -1
- package/out/components/sidebar/Sidebar.js +7 -0
- package/out/components/sidebar/Sidebar.js.map +1 -1
- package/out/components/sidebar/SidebarContent.d.ts +6 -0
- package/out/components/sidebar/SidebarContent.d.ts.map +1 -1
- package/out/components/sidebar/SidebarContent.js +7 -1
- package/out/components/sidebar/SidebarContent.js.map +1 -1
- package/out/components/sidebar/SidebarFooter.d.ts +4 -0
- package/out/components/sidebar/SidebarFooter.d.ts.map +1 -1
- package/out/components/sidebar/SidebarFooter.js +4 -0
- package/out/components/sidebar/SidebarFooter.js.map +1 -1
- package/out/components/sidebar/SidebarGroup.d.ts +6 -0
- package/out/components/sidebar/SidebarGroup.d.ts.map +1 -1
- package/out/components/sidebar/SidebarGroup.js +6 -0
- package/out/components/sidebar/SidebarGroup.js.map +1 -1
- package/out/components/sidebar/SidebarGroupAction.d.ts +5 -0
- package/out/components/sidebar/SidebarGroupAction.d.ts.map +1 -1
- package/out/components/sidebar/SidebarGroupAction.js +5 -0
- package/out/components/sidebar/SidebarGroupAction.js.map +1 -1
- package/out/components/sidebar/SidebarGroupContent.d.ts +4 -0
- package/out/components/sidebar/SidebarGroupContent.d.ts.map +1 -1
- package/out/components/sidebar/SidebarGroupContent.js +4 -0
- package/out/components/sidebar/SidebarGroupContent.js.map +1 -1
- package/out/components/sidebar/SidebarGroupLabel.d.ts +6 -0
- package/out/components/sidebar/SidebarGroupLabel.d.ts.map +1 -1
- package/out/components/sidebar/SidebarGroupLabel.js +6 -0
- package/out/components/sidebar/SidebarGroupLabel.js.map +1 -1
- package/out/components/sidebar/SidebarHeader.d.ts +4 -0
- package/out/components/sidebar/SidebarHeader.d.ts.map +1 -1
- package/out/components/sidebar/SidebarHeader.js +4 -0
- package/out/components/sidebar/SidebarHeader.js.map +1 -1
- package/out/components/sidebar/SidebarInput.d.ts +4 -0
- package/out/components/sidebar/SidebarInput.d.ts.map +1 -1
- package/out/components/sidebar/SidebarInput.js +4 -0
- package/out/components/sidebar/SidebarInput.js.map +1 -1
- package/out/components/sidebar/SidebarInset.d.ts +5 -0
- package/out/components/sidebar/SidebarInset.d.ts.map +1 -1
- package/out/components/sidebar/SidebarInset.js +5 -0
- package/out/components/sidebar/SidebarInset.js.map +1 -1
- package/out/components/sidebar/SidebarMenu.d.ts +5 -0
- package/out/components/sidebar/SidebarMenu.d.ts.map +1 -1
- package/out/components/sidebar/SidebarMenu.js +5 -0
- package/out/components/sidebar/SidebarMenu.js.map +1 -1
- package/out/components/sidebar/SidebarMenuAction.d.ts +6 -0
- package/out/components/sidebar/SidebarMenuAction.d.ts.map +1 -1
- package/out/components/sidebar/SidebarMenuAction.js +6 -0
- package/out/components/sidebar/SidebarMenuAction.js.map +1 -1
- package/out/components/sidebar/SidebarMenuBadge.d.ts +5 -0
- package/out/components/sidebar/SidebarMenuBadge.d.ts.map +1 -1
- package/out/components/sidebar/SidebarMenuBadge.js +5 -0
- package/out/components/sidebar/SidebarMenuBadge.js.map +1 -1
- package/out/components/sidebar/SidebarMenuButton.d.ts +7 -0
- package/out/components/sidebar/SidebarMenuButton.d.ts.map +1 -1
- package/out/components/sidebar/SidebarMenuButton.js +7 -0
- package/out/components/sidebar/SidebarMenuButton.js.map +1 -1
- package/out/components/sidebar/SidebarMenuItem.d.ts +5 -0
- package/out/components/sidebar/SidebarMenuItem.d.ts.map +1 -1
- package/out/components/sidebar/SidebarMenuItem.js +5 -0
- package/out/components/sidebar/SidebarMenuItem.js.map +1 -1
- package/out/components/sidebar/SidebarMenuSkeleton.d.ts +5 -0
- package/out/components/sidebar/SidebarMenuSkeleton.d.ts.map +1 -1
- package/out/components/sidebar/SidebarMenuSkeleton.js +5 -0
- package/out/components/sidebar/SidebarMenuSkeleton.js.map +1 -1
- package/out/components/sidebar/SidebarMenuSub.d.ts +6 -0
- package/out/components/sidebar/SidebarMenuSub.d.ts.map +1 -1
- package/out/components/sidebar/SidebarMenuSub.js +6 -0
- package/out/components/sidebar/SidebarMenuSub.js.map +1 -1
- package/out/components/sidebar/SidebarMenuSubButton.d.ts +6 -0
- package/out/components/sidebar/SidebarMenuSubButton.d.ts.map +1 -1
- package/out/components/sidebar/SidebarMenuSubButton.js +6 -0
- package/out/components/sidebar/SidebarMenuSubButton.js.map +1 -1
- package/out/components/sidebar/SidebarMenuSubItem.d.ts +4 -0
- package/out/components/sidebar/SidebarMenuSubItem.d.ts.map +1 -1
- package/out/components/sidebar/SidebarMenuSubItem.js +4 -0
- package/out/components/sidebar/SidebarMenuSubItem.js.map +1 -1
- package/out/components/sidebar/SidebarProvider.d.ts +7 -0
- package/out/components/sidebar/SidebarProvider.d.ts.map +1 -1
- package/out/components/sidebar/SidebarProvider.js +7 -0
- package/out/components/sidebar/SidebarProvider.js.map +1 -1
- package/out/components/sidebar/SidebarRail.d.ts +5 -0
- package/out/components/sidebar/SidebarRail.d.ts.map +1 -1
- package/out/components/sidebar/SidebarRail.js +5 -0
- package/out/components/sidebar/SidebarRail.js.map +1 -1
- package/out/components/sidebar/SidebarSeparator.d.ts +4 -0
- package/out/components/sidebar/SidebarSeparator.d.ts.map +1 -1
- package/out/components/sidebar/SidebarSeparator.js +4 -0
- package/out/components/sidebar/SidebarSeparator.js.map +1 -1
- package/out/components/sidebar/SidebarTrigger.d.ts +5 -0
- package/out/components/sidebar/SidebarTrigger.d.ts.map +1 -1
- package/out/components/sidebar/SidebarTrigger.js +5 -0
- package/out/components/sidebar/SidebarTrigger.js.map +1 -1
- package/out/components/sidebar/sidebarMenuButtonVariants.d.ts +4 -0
- package/out/components/sidebar/sidebarMenuButtonVariants.d.ts.map +1 -1
- package/out/components/sidebar/sidebarMenuButtonVariants.js +4 -0
- package/out/components/sidebar/sidebarMenuButtonVariants.js.map +1 -1
- package/out/components/sidebar/useIsMobile.d.ts +4 -0
- package/out/components/sidebar/useIsMobile.d.ts.map +1 -1
- package/out/components/sidebar/useIsMobile.js +4 -0
- package/out/components/sidebar/useIsMobile.js.map +1 -1
- package/out/components/sidebar/useSidebar.d.ts +5 -0
- package/out/components/sidebar/useSidebar.d.ts.map +1 -1
- package/out/components/sidebar/useSidebar.js +5 -0
- package/out/components/sidebar/useSidebar.js.map +1 -1
- package/out/components/skeleton/Skeleton.d.ts +5 -0
- package/out/components/skeleton/Skeleton.d.ts.map +1 -1
- package/out/components/skeleton/Skeleton.js +5 -0
- package/out/components/skeleton/Skeleton.js.map +1 -1
- package/out/components/slider/Slider.d.ts +7 -0
- package/out/components/slider/Slider.d.ts.map +1 -1
- package/out/components/slider/Slider.js +7 -0
- package/out/components/slider/Slider.js.map +1 -1
- package/out/components/sonner/Toaster.d.ts +6 -0
- package/out/components/sonner/Toaster.d.ts.map +1 -1
- package/out/components/sonner/Toaster.js +6 -0
- package/out/components/sonner/Toaster.js.map +1 -1
- package/out/components/spinner/Spinner.d.ts +6 -0
- package/out/components/spinner/Spinner.d.ts.map +1 -1
- package/out/components/spinner/Spinner.js +6 -0
- package/out/components/spinner/Spinner.js.map +1 -1
- package/out/components/status-indicator/StatusIndicator.d.ts +6 -0
- package/out/components/status-indicator/StatusIndicator.d.ts.map +1 -1
- package/out/components/status-indicator/StatusIndicator.js +6 -0
- package/out/components/status-indicator/StatusIndicator.js.map +1 -1
- package/out/components/status-indicator/statusIndicatorVariants.d.ts +4 -0
- package/out/components/status-indicator/statusIndicatorVariants.d.ts.map +1 -1
- package/out/components/status-indicator/statusIndicatorVariants.js +4 -0
- package/out/components/status-indicator/statusIndicatorVariants.js.map +1 -1
- package/out/components/switch/Switch.d.ts +7 -0
- package/out/components/switch/Switch.d.ts.map +1 -1
- package/out/components/switch/Switch.js +7 -0
- package/out/components/switch/Switch.js.map +1 -1
- package/out/components/table/Table.d.ts +5 -0
- package/out/components/table/Table.d.ts.map +1 -1
- package/out/components/table/Table.js +5 -0
- package/out/components/table/Table.js.map +1 -1
- package/out/components/table/TableBody.d.ts +5 -0
- package/out/components/table/TableBody.d.ts.map +1 -1
- package/out/components/table/TableBody.js +5 -0
- package/out/components/table/TableBody.js.map +1 -1
- package/out/components/table/TableCaption.d.ts +4 -0
- package/out/components/table/TableCaption.d.ts.map +1 -1
- package/out/components/table/TableCaption.js +4 -0
- package/out/components/table/TableCaption.js.map +1 -1
- package/out/components/table/TableCell.d.ts +4 -0
- package/out/components/table/TableCell.d.ts.map +1 -1
- package/out/components/table/TableCell.js +4 -0
- package/out/components/table/TableCell.js.map +1 -1
- package/out/components/table/TableFooter.d.ts +5 -0
- package/out/components/table/TableFooter.d.ts.map +1 -1
- package/out/components/table/TableFooter.js +5 -0
- package/out/components/table/TableFooter.js.map +1 -1
- package/out/components/table/TableHead.d.ts +4 -0
- package/out/components/table/TableHead.d.ts.map +1 -1
- package/out/components/table/TableHead.js +4 -0
- package/out/components/table/TableHead.js.map +1 -1
- package/out/components/table/TableHeader.d.ts +4 -0
- package/out/components/table/TableHeader.d.ts.map +1 -1
- package/out/components/table/TableHeader.js +4 -0
- package/out/components/table/TableHeader.js.map +1 -1
- package/out/components/table/TableRow.d.ts +5 -0
- package/out/components/table/TableRow.d.ts.map +1 -1
- package/out/components/table/TableRow.js +5 -0
- package/out/components/table/TableRow.js.map +1 -1
- package/out/components/tabs/Tabs.d.ts +7 -0
- package/out/components/tabs/Tabs.d.ts.map +1 -1
- package/out/components/tabs/Tabs.js +7 -0
- package/out/components/tabs/Tabs.js.map +1 -1
- package/out/components/tabs/TabsContent.d.ts +4 -0
- package/out/components/tabs/TabsContent.d.ts.map +1 -1
- package/out/components/tabs/TabsContent.js +4 -0
- package/out/components/tabs/TabsContent.js.map +1 -1
- package/out/components/tabs/TabsList.d.ts +5 -0
- package/out/components/tabs/TabsList.d.ts.map +1 -1
- package/out/components/tabs/TabsList.js +5 -0
- package/out/components/tabs/TabsList.js.map +1 -1
- package/out/components/tabs/TabsTrigger.d.ts +6 -0
- package/out/components/tabs/TabsTrigger.d.ts.map +1 -1
- package/out/components/tabs/TabsTrigger.js +6 -0
- package/out/components/tabs/TabsTrigger.js.map +1 -1
- package/out/components/tabs/tabsListVariants.d.ts +4 -0
- package/out/components/tabs/tabsListVariants.d.ts.map +1 -1
- package/out/components/tabs/tabsListVariants.js +4 -0
- package/out/components/tabs/tabsListVariants.js.map +1 -1
- package/out/components/textarea/TextArea.d.ts +7 -0
- package/out/components/textarea/TextArea.d.ts.map +1 -1
- package/out/components/textarea/TextArea.js +7 -0
- package/out/components/textarea/TextArea.js.map +1 -1
- package/out/components/toggle/Toggle.d.ts +6 -0
- package/out/components/toggle/Toggle.d.ts.map +1 -1
- package/out/components/toggle/Toggle.js +6 -0
- package/out/components/toggle/Toggle.js.map +1 -1
- package/out/components/toggle/toggleVariants.d.ts +4 -0
- package/out/components/toggle/toggleVariants.d.ts.map +1 -1
- package/out/components/toggle/toggleVariants.js +4 -0
- package/out/components/toggle/toggleVariants.js.map +1 -1
- package/out/components/tooltip/Tooltip.d.ts +7 -0
- package/out/components/tooltip/Tooltip.d.ts.map +1 -1
- package/out/components/tooltip/Tooltip.js +7 -0
- package/out/components/tooltip/Tooltip.js.map +1 -1
- package/out/components/tooltip/TooltipContent.d.ts +5 -0
- package/out/components/tooltip/TooltipContent.d.ts.map +1 -1
- package/out/components/tooltip/TooltipContent.js +5 -0
- package/out/components/tooltip/TooltipContent.js.map +1 -1
- package/out/components/tooltip/TooltipProvider.d.ts +5 -0
- package/out/components/tooltip/TooltipProvider.d.ts.map +1 -1
- package/out/components/tooltip/TooltipProvider.js +5 -0
- package/out/components/tooltip/TooltipProvider.js.map +1 -1
- package/out/components/tooltip/TooltipTrigger.d.ts +4 -0
- package/out/components/tooltip/TooltipTrigger.d.ts.map +1 -1
- package/out/components/tooltip/TooltipTrigger.js +4 -0
- package/out/components/tooltip/TooltipTrigger.js.map +1 -1
- package/out/components/typography/TypographyA.d.ts +5 -0
- package/out/components/typography/TypographyA.d.ts.map +1 -1
- package/out/components/typography/TypographyA.js +5 -0
- package/out/components/typography/TypographyA.js.map +1 -1
- package/out/components/typography/TypographyBlockquote.d.ts +4 -0
- package/out/components/typography/TypographyBlockquote.d.ts.map +1 -1
- package/out/components/typography/TypographyBlockquote.js +4 -0
- package/out/components/typography/TypographyBlockquote.js.map +1 -1
- package/out/components/typography/TypographyFigure.d.ts +4 -0
- package/out/components/typography/TypographyFigure.d.ts.map +1 -1
- package/out/components/typography/TypographyFigure.js +4 -0
- package/out/components/typography/TypographyFigure.js.map +1 -1
- package/out/components/typography/TypographyFigureCaption.d.ts +5 -0
- package/out/components/typography/TypographyFigureCaption.d.ts.map +1 -1
- package/out/components/typography/TypographyFigureCaption.js +5 -0
- package/out/components/typography/TypographyFigureCaption.js.map +1 -1
- package/out/components/typography/TypographyH1.d.ts +4 -0
- package/out/components/typography/TypographyH1.d.ts.map +1 -1
- package/out/components/typography/TypographyH1.js +4 -0
- package/out/components/typography/TypographyH1.js.map +1 -1
- package/out/components/typography/TypographyH2.d.ts +5 -0
- package/out/components/typography/TypographyH2.d.ts.map +1 -1
- package/out/components/typography/TypographyH2.js +5 -0
- package/out/components/typography/TypographyH2.js.map +1 -1
- package/out/components/typography/TypographyH3.d.ts +4 -0
- package/out/components/typography/TypographyH3.d.ts.map +1 -1
- package/out/components/typography/TypographyH3.js +4 -0
- package/out/components/typography/TypographyH3.js.map +1 -1
- package/out/components/typography/TypographyH4.d.ts +4 -0
- package/out/components/typography/TypographyH4.d.ts.map +1 -1
- package/out/components/typography/TypographyH4.js +4 -0
- package/out/components/typography/TypographyH4.js.map +1 -1
- package/out/components/typography/TypographyH5.d.ts +4 -0
- package/out/components/typography/TypographyH5.d.ts.map +1 -1
- package/out/components/typography/TypographyH5.js +4 -0
- package/out/components/typography/TypographyH5.js.map +1 -1
- package/out/components/typography/TypographyH6.d.ts +4 -0
- package/out/components/typography/TypographyH6.d.ts.map +1 -1
- package/out/components/typography/TypographyH6.js +4 -0
- package/out/components/typography/TypographyH6.js.map +1 -1
- package/out/components/typography/TypographyHr.d.ts +4 -0
- package/out/components/typography/TypographyHr.d.ts.map +1 -1
- package/out/components/typography/TypographyHr.js +4 -0
- package/out/components/typography/TypographyHr.js.map +1 -1
- package/out/components/typography/TypographyImage.d.ts +5 -0
- package/out/components/typography/TypographyImage.d.ts.map +1 -1
- package/out/components/typography/TypographyImage.js +5 -0
- package/out/components/typography/TypographyImage.js.map +1 -1
- package/out/components/typography/TypographyImg.d.ts +4 -0
- package/out/components/typography/TypographyImg.d.ts.map +1 -1
- package/out/components/typography/TypographyImg.js +4 -0
- package/out/components/typography/TypographyImg.js.map +1 -1
- package/out/components/typography/TypographyInlineCode.d.ts +5 -0
- package/out/components/typography/TypographyInlineCode.d.ts.map +1 -1
- package/out/components/typography/TypographyInlineCode.js +5 -0
- package/out/components/typography/TypographyInlineCode.js.map +1 -1
- package/out/components/typography/TypographyLi.d.ts +4 -0
- package/out/components/typography/TypographyLi.d.ts.map +1 -1
- package/out/components/typography/TypographyLi.js +4 -0
- package/out/components/typography/TypographyLi.js.map +1 -1
- package/out/components/typography/TypographyLink.d.ts +5 -0
- package/out/components/typography/TypographyLink.d.ts.map +1 -1
- package/out/components/typography/TypographyLink.js +5 -0
- package/out/components/typography/TypographyLink.js.map +1 -1
- package/out/components/typography/TypographyList.d.ts +5 -0
- package/out/components/typography/TypographyList.d.ts.map +1 -1
- package/out/components/typography/TypographyList.js +5 -0
- package/out/components/typography/TypographyList.js.map +1 -1
- package/out/components/typography/TypographyOl.d.ts +5 -0
- package/out/components/typography/TypographyOl.d.ts.map +1 -1
- package/out/components/typography/TypographyOl.js +5 -0
- package/out/components/typography/TypographyOl.js.map +1 -1
- package/out/components/typography/TypographyP.d.ts +4 -0
- package/out/components/typography/TypographyP.d.ts.map +1 -1
- package/out/components/typography/TypographyP.js +4 -0
- package/out/components/typography/TypographyP.js.map +1 -1
- package/out/components/typography/TypographyPre.d.ts +5 -0
- package/out/components/typography/TypographyPre.d.ts.map +1 -1
- package/out/components/typography/TypographyPre.js +6 -1
- package/out/components/typography/TypographyPre.js.map +1 -1
- package/out/components/typography/TypographyStrong.d.ts +4 -0
- package/out/components/typography/TypographyStrong.d.ts.map +1 -1
- package/out/components/typography/TypographyStrong.js +4 -0
- package/out/components/typography/TypographyStrong.js.map +1 -1
- package/out/components/typography/TypographyTable.d.ts +5 -0
- package/out/components/typography/TypographyTable.d.ts.map +1 -1
- package/out/components/typography/TypographyTable.js +6 -1
- package/out/components/typography/TypographyTable.js.map +1 -1
- package/out/components/typography/TypographyTd.d.ts +5 -0
- package/out/components/typography/TypographyTd.d.ts.map +1 -1
- package/out/components/typography/TypographyTd.js +5 -0
- package/out/components/typography/TypographyTd.js.map +1 -1
- package/out/components/typography/TypographyTh.d.ts +5 -0
- package/out/components/typography/TypographyTh.d.ts.map +1 -1
- package/out/components/typography/TypographyTh.js +5 -0
- package/out/components/typography/TypographyTh.js.map +1 -1
- package/out/components/typography/TypographyTr.d.ts +4 -0
- package/out/components/typography/TypographyTr.d.ts.map +1 -1
- package/out/components/typography/TypographyTr.js +4 -0
- package/out/components/typography/TypographyTr.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import cn from "../../cn";
|
|
3
|
+
/**
|
|
4
|
+
* A nested list inside a SidebarMenuItem.
|
|
5
|
+
* Render SidebarMenuSubItem and SidebarMenuSubButton inside.
|
|
6
|
+
* Hidden when the sidebar is collapsed to icons.
|
|
7
|
+
* Other props pass through to the ul.
|
|
8
|
+
*/
|
|
3
9
|
export default function SidebarMenuSub({ className, ...props }) {
|
|
4
10
|
return (_jsx("ul", { "data-slot": "sidebar-menu-sub", "data-sidebar": "menu-sub", className: cn("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden", className), ...props }));
|
|
5
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarMenuSub.js","sourceRoot":"","sources":["../../../components/sidebar/SidebarMenuSub.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtB,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAwB;IACnF,OAAO,CACN,0BACW,kBAAkB,kBACf,UAAU,EACvB,SAAS,EAAE,EAAE,CACZ,6HAA6H,EAC7H,SAAS,CACT,KACG,KAAK,GACR,CACF,CAAC;AACH,CAAC","sourcesContent":["import { type ComponentProps } from \"react\";\n\nimport cn from \"@/cn\";\n\nexport default function SidebarMenuSub({ className, ...props }: ComponentProps<\"ul\">) {\n\treturn (\n\t\t<ul\n\t\t\tdata-slot=\"sidebar-menu-sub\"\n\t\t\tdata-sidebar=\"menu-sub\"\n\t\t\tclassName={cn(\n\t\t\t\t\"mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden\",\n\t\t\t\tclassName\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"SidebarMenuSub.js","sourceRoot":"","sources":["../../../components/sidebar/SidebarMenuSub.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtB;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAwB;IACnF,OAAO,CACN,0BACW,kBAAkB,kBACf,UAAU,EACvB,SAAS,EAAE,EAAE,CACZ,6HAA6H,EAC7H,SAAS,CACT,KACG,KAAK,GACR,CACF,CAAC;AACH,CAAC","sourcesContent":["import { type ComponentProps } from \"react\";\n\nimport cn from \"@/cn\";\n\n/**\n * A nested list inside a SidebarMenuItem.\n * Render SidebarMenuSubItem and SidebarMenuSubButton inside.\n * Hidden when the sidebar is collapsed to icons.\n * Other props pass through to the ul.\n */\nexport default function SidebarMenuSub({ className, ...props }: ComponentProps<\"ul\">) {\n\treturn (\n\t\t<ul\n\t\t\tdata-slot=\"sidebar-menu-sub\"\n\t\t\tdata-sidebar=\"menu-sub\"\n\t\t\tclassName={cn(\n\t\t\t\t\"mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden\",\n\t\t\t\tclassName\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n"]}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { useRender } from "@base-ui/react/use-render";
|
|
2
2
|
import { type ComponentProps } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* The clickable link of a SidebarMenuSubItem.
|
|
5
|
+
* size: md (default), sm. isActive marks the current page.
|
|
6
|
+
* Use the render prop to render a custom link.
|
|
7
|
+
* Other props pass through to the rendered element.
|
|
8
|
+
*/
|
|
3
9
|
export default function SidebarMenuSubButton({ render, size, isActive, className, ...props }: useRender.ComponentProps<"a"> & ComponentProps<"a"> & {
|
|
4
10
|
size?: "sm" | "md";
|
|
5
11
|
isActive?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarMenuSubButton.d.ts","sourceRoot":"","sources":["../../../components/sidebar/SidebarMenuSubButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC5C,MAAM,EACN,IAAW,EACX,QAAgB,EAChB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,SAAS,CAAC,cAAc,CAAC,GAAG,CAAC,GAC/B,cAAc,CAAC,GAAG,CAAC,GAAG;IACrB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,8FAoBD"}
|
|
1
|
+
{"version":3,"file":"SidebarMenuSubButton.d.ts","sourceRoot":"","sources":["../../../components/sidebar/SidebarMenuSubButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC5C,MAAM,EACN,IAAW,EACX,QAAgB,EAChB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,SAAS,CAAC,cAAc,CAAC,GAAG,CAAC,GAC/B,cAAc,CAAC,GAAG,CAAC,GAAG;IACrB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,8FAoBD"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
2
2
|
import { useRender } from "@base-ui/react/use-render";
|
|
3
3
|
import cn from "../../cn";
|
|
4
|
+
/**
|
|
5
|
+
* The clickable link of a SidebarMenuSubItem.
|
|
6
|
+
* size: md (default), sm. isActive marks the current page.
|
|
7
|
+
* Use the render prop to render a custom link.
|
|
8
|
+
* Other props pass through to the rendered element.
|
|
9
|
+
*/
|
|
4
10
|
export default function SidebarMenuSubButton({ render, size = "md", isActive = false, className, ...props }) {
|
|
5
11
|
return useRender({
|
|
6
12
|
defaultTagName: "a",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarMenuSubButton.js","sourceRoot":"","sources":["../../../components/sidebar/SidebarMenuSubButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtB,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC5C,MAAM,EACN,IAAI,GAAG,IAAI,EACX,QAAQ,GAAG,KAAK,EAChB,SAAS,EACT,GAAG,KAAK,EAKP;IACD,OAAO,SAAS,CAAC;QAChB,cAAc,EAAE,GAAG;QACnB,KAAK,EAAE,UAAU,CAChB;YACC,SAAS,EAAE,EAAE,CACZ,wkBAAwkB,EACxkB,SAAS,CACT;SACD,EACD,KAAK,CACL;QACD,MAAM;QACN,KAAK,EAAE;YACN,IAAI,EAAE,yBAAyB;YAC/B,OAAO,EAAE,iBAAiB;YAC1B,IAAI;YACJ,MAAM,EAAE,QAAQ;SAChB;KACD,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { mergeProps } from \"@base-ui/react/merge-props\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport { type ComponentProps } from \"react\";\n\nimport cn from \"@/cn\";\n\nexport default function SidebarMenuSubButton({\n\trender,\n\tsize = \"md\",\n\tisActive = false,\n\tclassName,\n\t...props\n}: useRender.ComponentProps<\"a\"> &\n\tComponentProps<\"a\"> & {\n\t\tsize?: \"sm\" | \"md\";\n\t\tisActive?: boolean;\n\t}) {\n\treturn useRender({\n\t\tdefaultTagName: \"a\",\n\t\tprops: mergeProps<\"a\">(\n\t\t\t{\n\t\t\t\tclassName: cn(\n\t\t\t\t\t\"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-card-foreground ring-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 active:bg-accent active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-accent data-active:text-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-accent-foreground\",\n\t\t\t\t\tclassName\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: \"sidebar-menu-sub-button\",\n\t\t\tsidebar: \"menu-sub-button\",\n\t\t\tsize,\n\t\t\tactive: isActive,\n\t\t},\n\t});\n}\n"]}
|
|
1
|
+
{"version":3,"file":"SidebarMenuSubButton.js","sourceRoot":"","sources":["../../../components/sidebar/SidebarMenuSubButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtB;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC5C,MAAM,EACN,IAAI,GAAG,IAAI,EACX,QAAQ,GAAG,KAAK,EAChB,SAAS,EACT,GAAG,KAAK,EAKP;IACD,OAAO,SAAS,CAAC;QAChB,cAAc,EAAE,GAAG;QACnB,KAAK,EAAE,UAAU,CAChB;YACC,SAAS,EAAE,EAAE,CACZ,wkBAAwkB,EACxkB,SAAS,CACT;SACD,EACD,KAAK,CACL;QACD,MAAM;QACN,KAAK,EAAE;YACN,IAAI,EAAE,yBAAyB;YAC/B,OAAO,EAAE,iBAAiB;YAC1B,IAAI;YACJ,MAAM,EAAE,QAAQ;SAChB;KACD,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { mergeProps } from \"@base-ui/react/merge-props\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport { type ComponentProps } from \"react\";\n\nimport cn from \"@/cn\";\n\n/**\n * The clickable link of a SidebarMenuSubItem.\n * size: md (default), sm. isActive marks the current page.\n * Use the render prop to render a custom link.\n * Other props pass through to the rendered element.\n */\nexport default function SidebarMenuSubButton({\n\trender,\n\tsize = \"md\",\n\tisActive = false,\n\tclassName,\n\t...props\n}: useRender.ComponentProps<\"a\"> &\n\tComponentProps<\"a\"> & {\n\t\tsize?: \"sm\" | \"md\";\n\t\tisActive?: boolean;\n\t}) {\n\treturn useRender({\n\t\tdefaultTagName: \"a\",\n\t\tprops: mergeProps<\"a\">(\n\t\t\t{\n\t\t\t\tclassName: cn(\n\t\t\t\t\t\"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-card-foreground ring-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 active:bg-accent active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-accent data-active:text-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-accent-foreground\",\n\t\t\t\t\tclassName\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: \"sidebar-menu-sub-button\",\n\t\t\tsidebar: \"menu-sub-button\",\n\t\t\tsize,\n\t\t\tactive: isActive,\n\t\t},\n\t});\n}\n"]}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { type ComponentProps } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* One item in a SidebarMenuSub. Render SidebarMenuSubButton inside.
|
|
4
|
+
* Other props pass through to the li.
|
|
5
|
+
*/
|
|
2
6
|
export default function SidebarMenuSubItem({ className, ...props }: ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
3
7
|
//# sourceMappingURL=SidebarMenuSubItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarMenuSubItem.d.ts","sourceRoot":"","sources":["../../../components/sidebar/SidebarMenuSubItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,2CASvF"}
|
|
1
|
+
{"version":3,"file":"SidebarMenuSubItem.d.ts","sourceRoot":"","sources":["../../../components/sidebar/SidebarMenuSubItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,2CASvF"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import cn from "../../cn";
|
|
3
|
+
/**
|
|
4
|
+
* One item in a SidebarMenuSub. Render SidebarMenuSubButton inside.
|
|
5
|
+
* Other props pass through to the li.
|
|
6
|
+
*/
|
|
3
7
|
export default function SidebarMenuSubItem({ className, ...props }) {
|
|
4
8
|
return (_jsx("li", { "data-slot": "sidebar-menu-sub-item", "data-sidebar": "menu-sub-item", className: cn("group/menu-sub-item relative", className), ...props }));
|
|
5
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarMenuSubItem.js","sourceRoot":"","sources":["../../../components/sidebar/SidebarMenuSubItem.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtB,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAwB;IACvF,OAAO,CACN,0BACW,uBAAuB,kBACpB,eAAe,EAC5B,SAAS,EAAE,EAAE,CAAC,8BAA8B,EAAE,SAAS,CAAC,KACpD,KAAK,GACR,CACF,CAAC;AACH,CAAC","sourcesContent":["import { type ComponentProps } from \"react\";\n\nimport cn from \"@/cn\";\n\nexport default function SidebarMenuSubItem({ className, ...props }: ComponentProps<\"li\">) {\n\treturn (\n\t\t<li\n\t\t\tdata-slot=\"sidebar-menu-sub-item\"\n\t\t\tdata-sidebar=\"menu-sub-item\"\n\t\t\tclassName={cn(\"group/menu-sub-item relative\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"SidebarMenuSubItem.js","sourceRoot":"","sources":["../../../components/sidebar/SidebarMenuSubItem.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtB;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAwB;IACvF,OAAO,CACN,0BACW,uBAAuB,kBACpB,eAAe,EAC5B,SAAS,EAAE,EAAE,CAAC,8BAA8B,EAAE,SAAS,CAAC,KACpD,KAAK,GACR,CACF,CAAC;AACH,CAAC","sourcesContent":["import { type ComponentProps } from \"react\";\n\nimport cn from \"@/cn\";\n\n/**\n * One item in a SidebarMenuSub. Render SidebarMenuSubButton inside.\n * Other props pass through to the li.\n */\nexport default function SidebarMenuSubItem({ className, ...props }: ComponentProps<\"li\">) {\n\treturn (\n\t\t<li\n\t\t\tdata-slot=\"sidebar-menu-sub-item\"\n\t\t\tdata-sidebar=\"menu-sub-item\"\n\t\t\tclassName={cn(\"group/menu-sub-item relative\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n"]}
|
|
@@ -15,6 +15,13 @@ type SidebarContextProps = {
|
|
|
15
15
|
toggleSidebar: () => void;
|
|
16
16
|
};
|
|
17
17
|
export declare const SidebarContext: import("react").Context<SidebarContextProps | null>;
|
|
18
|
+
/**
|
|
19
|
+
* Provides sidebar state and context. Wrap the app or layout in SidebarProvider.
|
|
20
|
+
* Props: defaultOpen (true), and open with onOpenChange for controlled state.
|
|
21
|
+
* Adds the cmd+b / ctrl+b keyboard shortcut and persists the open state in a cookie.
|
|
22
|
+
* Set the --sidebar-width and --sidebar-width-mobile CSS variables through style to customize widths.
|
|
23
|
+
* Other props pass through to the div.
|
|
24
|
+
*/
|
|
18
25
|
export default function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: ComponentProps<"div"> & {
|
|
19
26
|
defaultOpen?: boolean;
|
|
20
27
|
open?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarProvider.d.ts","sourceRoot":"","sources":["../../../components/sidebar/SidebarProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAMN,KAAK,cAAc,EAEnB,MAAM,OAAO,CAAC;AAMf,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AACnD,eAAO,MAAM,sBAAsB,QAAmB,CAAC;AACvD,eAAO,MAAM,aAAa,UAAU,CAAC;AACrC,eAAO,MAAM,oBAAoB,UAAU,CAAC;AAC5C,eAAO,MAAM,kBAAkB,SAAS,CAAC;AACzC,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,KAAK,mBAAmB,GAAG;IAC1B,KAAK,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,cAAc,qDAAkD,CAAC;AAE9E,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACvC,WAAkB,EAClB,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,WAAW,EACzB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC,2CAgFA"}
|
|
1
|
+
{"version":3,"file":"SidebarProvider.d.ts","sourceRoot":"","sources":["../../../components/sidebar/SidebarProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAMN,KAAK,cAAc,EAEnB,MAAM,OAAO,CAAC;AAMf,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AACnD,eAAO,MAAM,sBAAsB,QAAmB,CAAC;AACvD,eAAO,MAAM,aAAa,UAAU,CAAC;AACrC,eAAO,MAAM,oBAAoB,UAAU,CAAC;AAC5C,eAAO,MAAM,kBAAkB,SAAS,CAAC;AACzC,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,KAAK,mBAAmB,GAAG;IAC1B,KAAK,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,cAAc,qDAAkD,CAAC;AAE9E;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACvC,WAAkB,EAClB,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,WAAW,EACzB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC,2CAgFA"}
|
|
@@ -9,6 +9,13 @@ export const SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
|
9
9
|
export const SIDEBAR_WIDTH_ICON = "3rem";
|
|
10
10
|
export const SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
11
11
|
export const SidebarContext = createContext(null);
|
|
12
|
+
/**
|
|
13
|
+
* Provides sidebar state and context. Wrap the app or layout in SidebarProvider.
|
|
14
|
+
* Props: defaultOpen (true), and open with onOpenChange for controlled state.
|
|
15
|
+
* Adds the cmd+b / ctrl+b keyboard shortcut and persists the open state in a cookie.
|
|
16
|
+
* Set the --sidebar-width and --sidebar-width-mobile CSS variables through style to customize widths.
|
|
17
|
+
* Other props pass through to the div.
|
|
18
|
+
*/
|
|
12
19
|
export default function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }) {
|
|
13
20
|
const isMobile = useIsMobile();
|
|
14
21
|
const [openMobile, setOpenMobile] = useState(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarProvider.js","sourceRoot":"","sources":["../../../components/sidebar/SidebarProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,EACN,aAAa,EACb,WAAW,EACX,SAAS,EACT,OAAO,EACP,QAAQ,GAGR,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtB,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACvD,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC;AACrC,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAC5C,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC;AACzC,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAC;AAY7C,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAA6B,IAAI,CAAC,CAAC;AAE9E,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACvC,WAAW,GAAG,IAAI,EAClB,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,WAAW,EACzB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EAKR;IACA,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpD,6CAA6C;IAC7C,0EAA0E;IAC1E,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;IAChD,MAAM,IAAI,GAAG,QAAQ,IAAI,KAAK,CAAC;IAC/B,MAAM,OAAO,GAAG,WAAW,CAC1B,CAAC,KAA8C,EAAE,EAAE;QAClD,MAAM,SAAS,GAAG,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QACpE,IAAI,WAAW,EAAE,CAAC;YACjB,WAAW,CAAC,SAAS,CAAC,CAAC;QACxB,CAAC;aAAM,CAAC;YACP,QAAQ,CAAC,SAAS,CAAC,CAAC;QACrB,CAAC;QAED,kDAAkD;QAClD,QAAQ,CAAC,MAAM,GAAG,GAAG,mBAAmB,IAAI,SAAS,qBAAqB,sBAAsB,EAAE,CAAC;IACpG,CAAC,EACD,CAAC,WAAW,EAAE,IAAI,CAAC,CACnB,CAAC;IAEF,gCAAgC;IAChC,MAAM,aAAa,GAAG,WAAW,CAChC,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,EAC5E,CAAC,QAAQ,EAAE,OAAO,EAAE,aAAa,CAAC,CAClC,CAAC;IAEF,kDAAkD;IAClD,SAAS,CAAC,GAAG,EAAE;QACd,MAAM,aAAa,GAAG,CAAC,KAAoB,EAAE,EAAE;YAC9C,IAAI,KAAK,CAAC,GAAG,KAAK,yBAAyB,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;gBACjF,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,aAAa,EAAE,CAAC;YACjB,CAAC;QACF,CAAC,CAAC;QAEF,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QAClD,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IACnE,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAEpB,yEAAyE;IACzE,mEAAmE;IACnE,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC;IAE9C,MAAM,YAAY,GAAG,OAAO,CAC3B,GAAG,EAAE,CAAC,CAAC;QACN,KAAK;QACL,IAAI;QACJ,OAAO;QACP,QAAQ;QACR,UAAU;QACV,aAAa;QACb,aAAa;KACb,CAAC,EACF,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,CAAC,CAC1E,CAAC;IAEF,OAAO,CACN,KAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,YAC3C,2BACW,iBAAiB,EAC3B,KAAK,EACJ;gBACC,iBAAiB,EAAE,aAAa;gBAChC,sBAAsB,EAAE,kBAAkB;gBAC1C,GAAG,KAAK;aACS,EAEnB,SAAS,EAAE,EAAE,CACZ,8EAA8E,EAC9E,SAAS,CACT,KACG,KAAK,YAER,QAAQ,GACJ,GACmB,CAC1B,CAAC;AACH,CAAC","sourcesContent":["import {\n\tcreateContext,\n\tuseCallback,\n\tuseEffect,\n\tuseMemo,\n\tuseState,\n\ttype ComponentProps,\n\ttype CSSProperties,\n} from \"react\";\n\nimport cn from \"@/cn\";\n\nimport useIsMobile from \"./useIsMobile\";\n\nexport const SIDEBAR_COOKIE_NAME = \"sidebar_state\";\nexport const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;\nexport const SIDEBAR_WIDTH = \"16rem\";\nexport const SIDEBAR_WIDTH_MOBILE = \"18rem\";\nexport const SIDEBAR_WIDTH_ICON = \"3rem\";\nexport const SIDEBAR_KEYBOARD_SHORTCUT = \"b\";\n\ntype SidebarContextProps = {\n\tstate: \"expanded\" | \"collapsed\";\n\topen: boolean;\n\tsetOpen: (open: boolean) => void;\n\topenMobile: boolean;\n\tsetOpenMobile: (open: boolean) => void;\n\tisMobile: boolean;\n\ttoggleSidebar: () => void;\n};\n\nexport const SidebarContext = createContext<SidebarContextProps | null>(null);\n\nexport default function SidebarProvider({\n\tdefaultOpen = true,\n\topen: openProp,\n\tonOpenChange: setOpenProp,\n\tclassName,\n\tstyle,\n\tchildren,\n\t...props\n}: ComponentProps<\"div\"> & {\n\tdefaultOpen?: boolean;\n\topen?: boolean;\n\tonOpenChange?: (open: boolean) => void;\n}) {\n\tconst isMobile = useIsMobile();\n\tconst [openMobile, setOpenMobile] = useState(false);\n\n\t// This is the internal state of the sidebar.\n\t// We use openProp and setOpenProp for control from outside the component.\n\tconst [_open, _setOpen] = useState(defaultOpen);\n\tconst open = openProp ?? _open;\n\tconst setOpen = useCallback(\n\t\t(value: boolean | ((value: boolean) => boolean)) => {\n\t\t\tconst openState = typeof value === \"function\" ? value(open) : value;\n\t\t\tif (setOpenProp) {\n\t\t\t\tsetOpenProp(openState);\n\t\t\t} else {\n\t\t\t\t_setOpen(openState);\n\t\t\t}\n\n\t\t\t// This sets the cookie to keep the sidebar state.\n\t\t\tdocument.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;\n\t\t},\n\t\t[setOpenProp, open]\n\t);\n\n\t// Helper to toggle the sidebar.\n\tconst toggleSidebar = useCallback(\n\t\t() => (isMobile ? setOpenMobile((prev) => !prev) : setOpen((prev) => !prev)),\n\t\t[isMobile, setOpen, setOpenMobile]\n\t);\n\n\t// Adds a keyboard shortcut to toggle the sidebar.\n\tuseEffect(() => {\n\t\tconst handleKeyDown = (event: KeyboardEvent) => {\n\t\t\tif (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\ttoggleSidebar();\n\t\t\t}\n\t\t};\n\n\t\twindow.addEventListener(\"keydown\", handleKeyDown);\n\t\treturn () => window.removeEventListener(\"keydown\", handleKeyDown);\n\t}, [toggleSidebar]);\n\n\t// We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\n\t// This makes it easier to style the sidebar with Tailwind classes.\n\tconst state = open ? \"expanded\" : \"collapsed\";\n\n\tconst contextValue = useMemo<SidebarContextProps>(\n\t\t() => ({\n\t\t\tstate,\n\t\t\topen,\n\t\t\tsetOpen,\n\t\t\tisMobile,\n\t\t\topenMobile,\n\t\t\tsetOpenMobile,\n\t\t\ttoggleSidebar,\n\t\t}),\n\t\t[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]\n\t);\n\n\treturn (\n\t\t<SidebarContext.Provider value={contextValue}>\n\t\t\t<div\n\t\t\t\tdata-slot=\"sidebar-wrapper\"\n\t\t\t\tstyle={\n\t\t\t\t\t{\n\t\t\t\t\t\t\"--sidebar-width\": SIDEBAR_WIDTH,\n\t\t\t\t\t\t\"--sidebar-width-icon\": SIDEBAR_WIDTH_ICON,\n\t\t\t\t\t\t...style,\n\t\t\t\t\t} as CSSProperties\n\t\t\t\t}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-card\",\n\t\t\t\t\tclassName\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</SidebarContext.Provider>\n\t);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"SidebarProvider.js","sourceRoot":"","sources":["../../../components/sidebar/SidebarProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,EACN,aAAa,EACb,WAAW,EACX,SAAS,EACT,OAAO,EACP,QAAQ,GAGR,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtB,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACvD,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC;AACrC,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAC5C,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC;AACzC,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAC;AAY7C,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAA6B,IAAI,CAAC,CAAC;AAE9E;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACvC,WAAW,GAAG,IAAI,EAClB,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,WAAW,EACzB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EAKR;IACA,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEpD,6CAA6C;IAC7C,0EAA0E;IAC1E,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;IAChD,MAAM,IAAI,GAAG,QAAQ,IAAI,KAAK,CAAC;IAC/B,MAAM,OAAO,GAAG,WAAW,CAC1B,CAAC,KAA8C,EAAE,EAAE;QAClD,MAAM,SAAS,GAAG,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QACpE,IAAI,WAAW,EAAE,CAAC;YACjB,WAAW,CAAC,SAAS,CAAC,CAAC;QACxB,CAAC;aAAM,CAAC;YACP,QAAQ,CAAC,SAAS,CAAC,CAAC;QACrB,CAAC;QAED,kDAAkD;QAClD,QAAQ,CAAC,MAAM,GAAG,GAAG,mBAAmB,IAAI,SAAS,qBAAqB,sBAAsB,EAAE,CAAC;IACpG,CAAC,EACD,CAAC,WAAW,EAAE,IAAI,CAAC,CACnB,CAAC;IAEF,gCAAgC;IAChC,MAAM,aAAa,GAAG,WAAW,CAChC,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,EAC5E,CAAC,QAAQ,EAAE,OAAO,EAAE,aAAa,CAAC,CAClC,CAAC;IAEF,kDAAkD;IAClD,SAAS,CAAC,GAAG,EAAE;QACd,MAAM,aAAa,GAAG,CAAC,KAAoB,EAAE,EAAE;YAC9C,IAAI,KAAK,CAAC,GAAG,KAAK,yBAAyB,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;gBACjF,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,aAAa,EAAE,CAAC;YACjB,CAAC;QACF,CAAC,CAAC;QAEF,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QAClD,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IACnE,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAEpB,yEAAyE;IACzE,mEAAmE;IACnE,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC;IAE9C,MAAM,YAAY,GAAG,OAAO,CAC3B,GAAG,EAAE,CAAC,CAAC;QACN,KAAK;QACL,IAAI;QACJ,OAAO;QACP,QAAQ;QACR,UAAU;QACV,aAAa;QACb,aAAa;KACb,CAAC,EACF,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,CAAC,CAC1E,CAAC;IAEF,OAAO,CACN,KAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,YAC3C,2BACW,iBAAiB,EAC3B,KAAK,EACJ;gBACC,iBAAiB,EAAE,aAAa;gBAChC,sBAAsB,EAAE,kBAAkB;gBAC1C,GAAG,KAAK;aACS,EAEnB,SAAS,EAAE,EAAE,CACZ,8EAA8E,EAC9E,SAAS,CACT,KACG,KAAK,YAER,QAAQ,GACJ,GACmB,CAC1B,CAAC;AACH,CAAC","sourcesContent":["import {\n\tcreateContext,\n\tuseCallback,\n\tuseEffect,\n\tuseMemo,\n\tuseState,\n\ttype ComponentProps,\n\ttype CSSProperties,\n} from \"react\";\n\nimport cn from \"@/cn\";\n\nimport useIsMobile from \"./useIsMobile\";\n\nexport const SIDEBAR_COOKIE_NAME = \"sidebar_state\";\nexport const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;\nexport const SIDEBAR_WIDTH = \"16rem\";\nexport const SIDEBAR_WIDTH_MOBILE = \"18rem\";\nexport const SIDEBAR_WIDTH_ICON = \"3rem\";\nexport const SIDEBAR_KEYBOARD_SHORTCUT = \"b\";\n\ntype SidebarContextProps = {\n\tstate: \"expanded\" | \"collapsed\";\n\topen: boolean;\n\tsetOpen: (open: boolean) => void;\n\topenMobile: boolean;\n\tsetOpenMobile: (open: boolean) => void;\n\tisMobile: boolean;\n\ttoggleSidebar: () => void;\n};\n\nexport const SidebarContext = createContext<SidebarContextProps | null>(null);\n\n/**\n * Provides sidebar state and context. Wrap the app or layout in SidebarProvider.\n * Props: defaultOpen (true), and open with onOpenChange for controlled state.\n * Adds the cmd+b / ctrl+b keyboard shortcut and persists the open state in a cookie.\n * Set the --sidebar-width and --sidebar-width-mobile CSS variables through style to customize widths.\n * Other props pass through to the div.\n */\nexport default function SidebarProvider({\n\tdefaultOpen = true,\n\topen: openProp,\n\tonOpenChange: setOpenProp,\n\tclassName,\n\tstyle,\n\tchildren,\n\t...props\n}: ComponentProps<\"div\"> & {\n\tdefaultOpen?: boolean;\n\topen?: boolean;\n\tonOpenChange?: (open: boolean) => void;\n}) {\n\tconst isMobile = useIsMobile();\n\tconst [openMobile, setOpenMobile] = useState(false);\n\n\t// This is the internal state of the sidebar.\n\t// We use openProp and setOpenProp for control from outside the component.\n\tconst [_open, _setOpen] = useState(defaultOpen);\n\tconst open = openProp ?? _open;\n\tconst setOpen = useCallback(\n\t\t(value: boolean | ((value: boolean) => boolean)) => {\n\t\t\tconst openState = typeof value === \"function\" ? value(open) : value;\n\t\t\tif (setOpenProp) {\n\t\t\t\tsetOpenProp(openState);\n\t\t\t} else {\n\t\t\t\t_setOpen(openState);\n\t\t\t}\n\n\t\t\t// This sets the cookie to keep the sidebar state.\n\t\t\tdocument.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;\n\t\t},\n\t\t[setOpenProp, open]\n\t);\n\n\t// Helper to toggle the sidebar.\n\tconst toggleSidebar = useCallback(\n\t\t() => (isMobile ? setOpenMobile((prev) => !prev) : setOpen((prev) => !prev)),\n\t\t[isMobile, setOpen, setOpenMobile]\n\t);\n\n\t// Adds a keyboard shortcut to toggle the sidebar.\n\tuseEffect(() => {\n\t\tconst handleKeyDown = (event: KeyboardEvent) => {\n\t\t\tif (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\ttoggleSidebar();\n\t\t\t}\n\t\t};\n\n\t\twindow.addEventListener(\"keydown\", handleKeyDown);\n\t\treturn () => window.removeEventListener(\"keydown\", handleKeyDown);\n\t}, [toggleSidebar]);\n\n\t// We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\n\t// This makes it easier to style the sidebar with Tailwind classes.\n\tconst state = open ? \"expanded\" : \"collapsed\";\n\n\tconst contextValue = useMemo<SidebarContextProps>(\n\t\t() => ({\n\t\t\tstate,\n\t\t\topen,\n\t\t\tsetOpen,\n\t\t\tisMobile,\n\t\t\topenMobile,\n\t\t\tsetOpenMobile,\n\t\t\ttoggleSidebar,\n\t\t}),\n\t\t[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]\n\t);\n\n\treturn (\n\t\t<SidebarContext.Provider value={contextValue}>\n\t\t\t<div\n\t\t\t\tdata-slot=\"sidebar-wrapper\"\n\t\t\t\tstyle={\n\t\t\t\t\t{\n\t\t\t\t\t\t\"--sidebar-width\": SIDEBAR_WIDTH,\n\t\t\t\t\t\t\"--sidebar-width-icon\": SIDEBAR_WIDTH_ICON,\n\t\t\t\t\t\t...style,\n\t\t\t\t\t} as CSSProperties\n\t\t\t\t}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-card\",\n\t\t\t\t\tclassName\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</SidebarContext.Provider>\n\t);\n}\n"]}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import { type ComponentProps } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* A resize handle on the edge of Sidebar; clicking it toggles the sidebar.
|
|
4
|
+
* Rendered as a button and hidden when the sidebar is not collapsible.
|
|
5
|
+
* Other props pass through to the button.
|
|
6
|
+
*/
|
|
2
7
|
export default function SidebarRail({ className, ...props }: ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
|
|
3
8
|
//# sourceMappingURL=SidebarRail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarRail.d.ts","sourceRoot":"","sources":["../../../components/sidebar/SidebarRail.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAM5C,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,QAAQ,CAAC,2CAuBpF"}
|
|
1
|
+
{"version":3,"file":"SidebarRail.d.ts","sourceRoot":"","sources":["../../../components/sidebar/SidebarRail.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAM5C;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,QAAQ,CAAC,2CAuBpF"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import cn from "../../cn";
|
|
3
3
|
import useSidebar from "./useSidebar";
|
|
4
|
+
/**
|
|
5
|
+
* A resize handle on the edge of Sidebar; clicking it toggles the sidebar.
|
|
6
|
+
* Rendered as a button and hidden when the sidebar is not collapsible.
|
|
7
|
+
* Other props pass through to the button.
|
|
8
|
+
*/
|
|
4
9
|
export default function SidebarRail({ className, ...props }) {
|
|
5
10
|
const { toggleSidebar } = useSidebar();
|
|
6
11
|
return (_jsx("button", { "data-sidebar": "rail", "data-slot": "sidebar-rail", "aria-label": "Toggle Sidebar", tabIndex: -1, onClick: toggleSidebar, title: "Toggle Sidebar", className: cn("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 hover:after:bg-border sm:flex", "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "group-data-[collapsible=offExamples]:translate-x-0 group-data-[collapsible=offExamples]:after:left-full hover:group-data-[collapsible=offExamples]:bg-card", "[[data-side=left][data-collapsible=offExamples]_&]:-right-2", "[[data-side=right][data-collapsible=offExamples]_&]:-left-2", className), ...props }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarRail.js","sourceRoot":"","sources":["../../../components/sidebar/SidebarRail.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtB,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA4B;IACpF,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,EAAE,CAAC;IAEvC,OAAO,CACN,iCACc,MAAM,eACT,cAAc,gBACb,gBAAgB,EAC3B,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,aAAa,EACtB,KAAK,EAAC,gBAAgB,EACtB,SAAS,EAAE,EAAE,CACZ,uOAAuO,EACvO,0EAA0E,EAC1E,wHAAwH,EACxH,4JAA4J,EAC5J,6DAA6D,EAC7D,6DAA6D,EAC7D,SAAS,CACT,KACG,KAAK,GACR,CACF,CAAC;AACH,CAAC","sourcesContent":["import { type ComponentProps } from \"react\";\n\nimport cn from \"@/cn\";\n\nimport useSidebar from \"./useSidebar\";\n\nexport default function SidebarRail({ className, ...props }: ComponentProps<\"button\">) {\n\tconst { toggleSidebar } = useSidebar();\n\n\treturn (\n\t\t<button\n\t\t\tdata-sidebar=\"rail\"\n\t\t\tdata-slot=\"sidebar-rail\"\n\t\t\taria-label=\"Toggle Sidebar\"\n\t\t\ttabIndex={-1}\n\t\t\tonClick={toggleSidebar}\n\t\t\ttitle=\"Toggle Sidebar\"\n\t\t\tclassName={cn(\n\t\t\t\t\"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 hover:after:bg-border sm:flex\",\n\t\t\t\t\"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize\",\n\t\t\t\t\"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize\",\n\t\t\t\t\"group-data-[collapsible=offExamples]:translate-x-0 group-data-[collapsible=offExamples]:after:left-full hover:group-data-[collapsible=offExamples]:bg-card\",\n\t\t\t\t\"[[data-side=left][data-collapsible=offExamples]_&]:-right-2\",\n\t\t\t\t\"[[data-side=right][data-collapsible=offExamples]_&]:-left-2\",\n\t\t\t\tclassName\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"SidebarRail.js","sourceRoot":"","sources":["../../../components/sidebar/SidebarRail.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtB,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA4B;IACpF,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,EAAE,CAAC;IAEvC,OAAO,CACN,iCACc,MAAM,eACT,cAAc,gBACb,gBAAgB,EAC3B,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,aAAa,EACtB,KAAK,EAAC,gBAAgB,EACtB,SAAS,EAAE,EAAE,CACZ,uOAAuO,EACvO,0EAA0E,EAC1E,wHAAwH,EACxH,4JAA4J,EAC5J,6DAA6D,EAC7D,6DAA6D,EAC7D,SAAS,CACT,KACG,KAAK,GACR,CACF,CAAC;AACH,CAAC","sourcesContent":["import { type ComponentProps } from \"react\";\n\nimport cn from \"@/cn\";\n\nimport useSidebar from \"./useSidebar\";\n\n/**\n * A resize handle on the edge of Sidebar; clicking it toggles the sidebar.\n * Rendered as a button and hidden when the sidebar is not collapsible.\n * Other props pass through to the button.\n */\nexport default function SidebarRail({ className, ...props }: ComponentProps<\"button\">) {\n\tconst { toggleSidebar } = useSidebar();\n\n\treturn (\n\t\t<button\n\t\t\tdata-sidebar=\"rail\"\n\t\t\tdata-slot=\"sidebar-rail\"\n\t\t\taria-label=\"Toggle Sidebar\"\n\t\t\ttabIndex={-1}\n\t\t\tonClick={toggleSidebar}\n\t\t\ttitle=\"Toggle Sidebar\"\n\t\t\tclassName={cn(\n\t\t\t\t\"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 hover:after:bg-border sm:flex\",\n\t\t\t\t\"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize\",\n\t\t\t\t\"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize\",\n\t\t\t\t\"group-data-[collapsible=offExamples]:translate-x-0 group-data-[collapsible=offExamples]:after:left-full hover:group-data-[collapsible=offExamples]:bg-card\",\n\t\t\t\t\"[[data-side=left][data-collapsible=offExamples]_&]:-right-2\",\n\t\t\t\t\"[[data-side=right][data-collapsible=offExamples]_&]:-left-2\",\n\t\t\t\tclassName\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n"]}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { type ComponentProps } from "react";
|
|
2
2
|
import Separator from "../../components/separator/Separator";
|
|
3
|
+
/**
|
|
4
|
+
* A horizontal divider inside the sidebar. Renders a Separator with horizontal orientation.
|
|
5
|
+
* Other props pass through to Separator.
|
|
6
|
+
*/
|
|
3
7
|
export default function SidebarSeparator({ className, ...props }: ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
|
|
4
8
|
//# sourceMappingURL=SidebarSeparator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarSeparator.d.ts","sourceRoot":"","sources":["../../../components/sidebar/SidebarSeparator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,SAAS,MAAM,kCAAkC,CAAC;AAEzD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,SAAS,CAAC,2CASjG"}
|
|
1
|
+
{"version":3,"file":"SidebarSeparator.d.ts","sourceRoot":"","sources":["../../../components/sidebar/SidebarSeparator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,SAAS,MAAM,kCAAkC,CAAC;AAEzD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,SAAS,CAAC,2CASjG"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import cn from "../../cn";
|
|
3
3
|
import Separator from "../../components/separator/Separator";
|
|
4
|
+
/**
|
|
5
|
+
* A horizontal divider inside the sidebar. Renders a Separator with horizontal orientation.
|
|
6
|
+
* Other props pass through to Separator.
|
|
7
|
+
*/
|
|
4
8
|
export default function SidebarSeparator({ className, ...props }) {
|
|
5
9
|
return (_jsx(Separator, { "data-slot": "sidebar-separator", "data-sidebar": "separator", className: cn("mx-2 w-auto bg-border", className), ...props }));
|
|
6
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarSeparator.js","sourceRoot":"","sources":["../../../components/sidebar/SidebarSeparator.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,SAAS,MAAM,kCAAkC,CAAC;AAEzD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAoC;IACjG,OAAO,CACN,KAAC,SAAS,iBACC,mBAAmB,kBAChB,WAAW,EACxB,SAAS,EAAE,EAAE,CAAC,uBAAuB,EAAE,SAAS,CAAC,KAC7C,KAAK,GACR,CACF,CAAC;AACH,CAAC","sourcesContent":["import { type ComponentProps } from \"react\";\n\nimport cn from \"@/cn\";\nimport Separator from \"@/components/separator/Separator\";\n\nexport default function SidebarSeparator({ className, ...props }: ComponentProps<typeof Separator>) {\n\treturn (\n\t\t<Separator\n\t\t\tdata-slot=\"sidebar-separator\"\n\t\t\tdata-sidebar=\"separator\"\n\t\t\tclassName={cn(\"mx-2 w-auto bg-border\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"SidebarSeparator.js","sourceRoot":"","sources":["../../../components/sidebar/SidebarSeparator.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,SAAS,MAAM,kCAAkC,CAAC;AAEzD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAoC;IACjG,OAAO,CACN,KAAC,SAAS,iBACC,mBAAmB,kBAChB,WAAW,EACxB,SAAS,EAAE,EAAE,CAAC,uBAAuB,EAAE,SAAS,CAAC,KAC7C,KAAK,GACR,CACF,CAAC;AACH,CAAC","sourcesContent":["import { type ComponentProps } from \"react\";\n\nimport cn from \"@/cn\";\nimport Separator from \"@/components/separator/Separator\";\n\n/**\n * A horizontal divider inside the sidebar. Renders a Separator with horizontal orientation.\n * Other props pass through to Separator.\n */\nexport default function SidebarSeparator({ className, ...props }: ComponentProps<typeof Separator>) {\n\treturn (\n\t\t<Separator\n\t\t\tdata-slot=\"sidebar-separator\"\n\t\t\tdata-sidebar=\"separator\"\n\t\t\tclassName={cn(\"mx-2 w-auto bg-border\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n"]}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { type ComponentProps } from "react";
|
|
2
2
|
import Button from "../../components/button/Button";
|
|
3
|
+
/**
|
|
4
|
+
* A button that toggles the Sidebar. Must render inside SidebarProvider.
|
|
5
|
+
* Defaults to a ghost icon-sm Button with the screen-reader label Toggle Sidebar.
|
|
6
|
+
* Other props pass through to Button.
|
|
7
|
+
*/
|
|
3
8
|
export default function SidebarTrigger({ className, onClick, ...props }: ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
4
9
|
//# sourceMappingURL=SidebarTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarTrigger.d.ts","sourceRoot":"","sources":["../../../components/sidebar/SidebarTrigger.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAIhD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,2CAoBrG"}
|
|
1
|
+
{"version":3,"file":"SidebarTrigger.d.ts","sourceRoot":"","sources":["../../../components/sidebar/SidebarTrigger.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAIhD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,2CAoBrG"}
|
|
@@ -3,6 +3,11 @@ import { IconLayoutSidebar } from "@tabler/icons-react";
|
|
|
3
3
|
import cn from "../../cn";
|
|
4
4
|
import Button from "../../components/button/Button";
|
|
5
5
|
import useSidebar from "./useSidebar";
|
|
6
|
+
/**
|
|
7
|
+
* A button that toggles the Sidebar. Must render inside SidebarProvider.
|
|
8
|
+
* Defaults to a ghost icon-sm Button with the screen-reader label Toggle Sidebar.
|
|
9
|
+
* Other props pass through to Button.
|
|
10
|
+
*/
|
|
6
11
|
export default function SidebarTrigger({ className, onClick, ...props }) {
|
|
7
12
|
const { toggleSidebar } = useSidebar();
|
|
8
13
|
return (_jsxs(Button, { "data-sidebar": "trigger", "data-slot": "sidebar-trigger", variant: "ghost", size: "icon-sm", className: cn(className), onClick: (event) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarTrigger.js","sourceRoot":"","sources":["../../../components/sidebar/SidebarTrigger.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAEhD,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAiC;IACrG,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,EAAE,CAAC;IAEvC,OAAO,CACN,MAAC,MAAM,oBACO,SAAS,eACZ,iBAAiB,EAC3B,OAAO,EAAC,OAAO,EACf,IAAI,EAAC,SAAS,EACd,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EACxB,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;YACjB,aAAa,EAAE,CAAC;QACjB,CAAC,KACG,KAAK,aAET,KAAC,iBAAiB,KAAG,EACrB,eAAM,SAAS,EAAC,SAAS,+BAAsB,IACvC,CACT,CAAC;AACH,CAAC","sourcesContent":["import { IconLayoutSidebar } from \"@tabler/icons-react\";\nimport { type ComponentProps } from \"react\";\n\nimport cn from \"@/cn\";\nimport Button from \"@/components/button/Button\";\n\nimport useSidebar from \"./useSidebar\";\n\nexport default function SidebarTrigger({ className, onClick, ...props }: ComponentProps<typeof Button>) {\n\tconst { toggleSidebar } = useSidebar();\n\n\treturn (\n\t\t<Button\n\t\t\tdata-sidebar=\"trigger\"\n\t\t\tdata-slot=\"sidebar-trigger\"\n\t\t\tvariant=\"ghost\"\n\t\t\tsize=\"icon-sm\"\n\t\t\tclassName={cn(className)}\n\t\t\tonClick={(event) => {\n\t\t\t\tonClick?.(event);\n\t\t\t\ttoggleSidebar();\n\t\t\t}}\n\t\t\t{...props}\n\t\t>\n\t\t\t<IconLayoutSidebar />\n\t\t\t<span className=\"sr-only\">Toggle Sidebar</span>\n\t\t</Button>\n\t);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"SidebarTrigger.js","sourceRoot":"","sources":["../../../components/sidebar/SidebarTrigger.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAEhD,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAiC;IACrG,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,EAAE,CAAC;IAEvC,OAAO,CACN,MAAC,MAAM,oBACO,SAAS,eACZ,iBAAiB,EAC3B,OAAO,EAAC,OAAO,EACf,IAAI,EAAC,SAAS,EACd,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EACxB,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;YACjB,aAAa,EAAE,CAAC;QACjB,CAAC,KACG,KAAK,aAET,KAAC,iBAAiB,KAAG,EACrB,eAAM,SAAS,EAAC,SAAS,+BAAsB,IACvC,CACT,CAAC;AACH,CAAC","sourcesContent":["import { IconLayoutSidebar } from \"@tabler/icons-react\";\nimport { type ComponentProps } from \"react\";\n\nimport cn from \"@/cn\";\nimport Button from \"@/components/button/Button\";\n\nimport useSidebar from \"./useSidebar\";\n\n/**\n * A button that toggles the Sidebar. Must render inside SidebarProvider.\n * Defaults to a ghost icon-sm Button with the screen-reader label Toggle Sidebar.\n * Other props pass through to Button.\n */\nexport default function SidebarTrigger({ className, onClick, ...props }: ComponentProps<typeof Button>) {\n\tconst { toggleSidebar } = useSidebar();\n\n\treturn (\n\t\t<Button\n\t\t\tdata-sidebar=\"trigger\"\n\t\t\tdata-slot=\"sidebar-trigger\"\n\t\t\tvariant=\"ghost\"\n\t\t\tsize=\"icon-sm\"\n\t\t\tclassName={cn(className)}\n\t\t\tonClick={(event) => {\n\t\t\t\tonClick?.(event);\n\t\t\t\ttoggleSidebar();\n\t\t\t}}\n\t\t\t{...props}\n\t\t>\n\t\t\t<IconLayoutSidebar />\n\t\t\t<span className=\"sr-only\">Toggle Sidebar</span>\n\t\t</Button>\n\t);\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebarMenuButtonVariants.d.ts","sourceRoot":"","sources":["../../../components/sidebar/sidebarMenuButtonVariants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,yBAAyB;;;8EAoB9B,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"sidebarMenuButtonVariants.d.ts","sourceRoot":"","sources":["../../../components/sidebar/sidebarMenuButtonVariants.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,QAAA,MAAM,yBAAyB;;;8EAoB9B,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
+
/**
|
|
3
|
+
* Style variants for SidebarMenuButton.
|
|
4
|
+
* variant: default, outline. size: default, sm, lg.
|
|
5
|
+
*/
|
|
2
6
|
const sidebarMenuButtonVariants = cva("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 active:bg-accent active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-accent data-open:hover:text-accent-foreground data-active:bg-accent data-active:font-medium data-active:text-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate", {
|
|
3
7
|
variants: {
|
|
4
8
|
variant: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebarMenuButtonVariants.js","sourceRoot":"","sources":["../../../components/sidebar/sidebarMenuButtonVariants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,yBAAyB,GAAG,GAAG,CACpC,wtBAAwtB,EACxtB;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,OAAO,EAAE,8CAA8C;YACvD,OAAO,EACN,8IAA8I;SAC/I;QACD,IAAI,EAAE;YACL,OAAO,EAAE,aAAa;YACtB,EAAE,EAAE,aAAa;YACjB,EAAE,EAAE,iDAAiD;SACrD;KACD;IACD,eAAe,EAAE;QAChB,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,SAAS;KACf;CACD,CACD,CAAC;AAEF,eAAe,yBAAyB,CAAC","sourcesContent":["import { cva } from \"class-variance-authority\";\n\nconst sidebarMenuButtonVariants = cva(\n\t\"peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 active:bg-accent active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-accent data-open:hover:text-accent-foreground data-active:bg-accent data-active:font-medium data-active:text-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate\",\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: \"hover:bg-accent hover:text-accent-foreground\",\n\t\t\t\toutline:\n\t\t\t\t\t\"bg-background shadow-[0_0_0_1px_hsl(var(--border))] hover:bg-accent hover:text-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--accent))]\",\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: \"h-8 text-sm\",\n\t\t\t\tsm: \"h-7 text-xs\",\n\t\t\t\tlg: \"h-12 text-sm group-data-[collapsible=icon]:p-0!\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: \"default\",\n\t\t\tsize: \"default\",\n\t\t},\n\t}\n);\n\nexport default sidebarMenuButtonVariants;\n"]}
|
|
1
|
+
{"version":3,"file":"sidebarMenuButtonVariants.js","sourceRoot":"","sources":["../../../components/sidebar/sidebarMenuButtonVariants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C;;;GAGG;AACH,MAAM,yBAAyB,GAAG,GAAG,CACpC,wtBAAwtB,EACxtB;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,OAAO,EAAE,8CAA8C;YACvD,OAAO,EACN,8IAA8I;SAC/I;QACD,IAAI,EAAE;YACL,OAAO,EAAE,aAAa;YACtB,EAAE,EAAE,aAAa;YACjB,EAAE,EAAE,iDAAiD;SACrD;KACD;IACD,eAAe,EAAE;QAChB,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,SAAS;KACf;CACD,CACD,CAAC;AAEF,eAAe,yBAAyB,CAAC","sourcesContent":["import { cva } from \"class-variance-authority\";\n\n/**\n * Style variants for SidebarMenuButton.\n * variant: default, outline. size: default, sm, lg.\n */\nconst sidebarMenuButtonVariants = cva(\n\t\"peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 active:bg-accent active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-accent data-open:hover:text-accent-foreground data-active:bg-accent data-active:font-medium data-active:text-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate\",\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: \"hover:bg-accent hover:text-accent-foreground\",\n\t\t\t\toutline:\n\t\t\t\t\t\"bg-background shadow-[0_0_0_1px_hsl(var(--border))] hover:bg-accent hover:text-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--accent))]\",\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: \"h-8 text-sm\",\n\t\t\t\tsm: \"h-7 text-xs\",\n\t\t\t\tlg: \"h-12 text-sm group-data-[collapsible=icon]:p-0!\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: \"default\",\n\t\t\tsize: \"default\",\n\t\t},\n\t}\n);\n\nexport default sidebarMenuButtonVariants;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsMobile.d.ts","sourceRoot":"","sources":["../../../components/sidebar/useIsMobile.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,WAAW,YAclC"}
|
|
1
|
+
{"version":3,"file":"useIsMobile.d.ts","sourceRoot":"","sources":["../../../components/sidebar/useIsMobile.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,YAclC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Returns true when the viewport is at most 768px wide and updates when the media query changes.
|
|
4
|
+
* Used by SidebarProvider to render the mobile sheet sidebar.
|
|
5
|
+
*/
|
|
2
6
|
export default function useIsMobile() {
|
|
3
7
|
const [isMobile, setIsMobile] = useState(false);
|
|
4
8
|
useEffect(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsMobile.js","sourceRoot":"","sources":["../../../components/sidebar/useIsMobile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,CAAC,OAAO,UAAU,WAAW;IAClC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEhD,SAAS,CAAC,GAAG,EAAE;QACd,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;QACpD,MAAM,QAAQ,GAAG,GAAG,EAAE;YACrB,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC1B,CAAC,CAAC;QACF,GAAG,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACzC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACzB,OAAO,GAAG,EAAE,CAAC,GAAG,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC1D,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,QAAQ,CAAC;AACjB,CAAC","sourcesContent":["import { useEffect, useState } from \"react\";\n\nexport default function useIsMobile() {\n\tconst [isMobile, setIsMobile] = useState(false);\n\n\tuseEffect(() => {\n\t\tconst mql = window.matchMedia(\"(max-width: 768px)\");\n\t\tconst onChange = () => {\n\t\t\tsetIsMobile(mql.matches);\n\t\t};\n\t\tmql.addEventListener(\"change\", onChange);\n\t\tsetIsMobile(mql.matches);\n\t\treturn () => mql.removeEventListener(\"change\", onChange);\n\t}, []);\n\n\treturn isMobile;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"useIsMobile.js","sourceRoot":"","sources":["../../../components/sidebar/useIsMobile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW;IAClC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEhD,SAAS,CAAC,GAAG,EAAE;QACd,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;QACpD,MAAM,QAAQ,GAAG,GAAG,EAAE;YACrB,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC1B,CAAC,CAAC;QACF,GAAG,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACzC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACzB,OAAO,GAAG,EAAE,CAAC,GAAG,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC1D,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,QAAQ,CAAC;AACjB,CAAC","sourcesContent":["import { useEffect, useState } from \"react\";\n\n/**\n * Returns true when the viewport is at most 768px wide and updates when the media query changes.\n * Used by SidebarProvider to render the mobile sheet sidebar.\n */\nexport default function useIsMobile() {\n\tconst [isMobile, setIsMobile] = useState(false);\n\n\tuseEffect(() => {\n\t\tconst mql = window.matchMedia(\"(max-width: 768px)\");\n\t\tconst onChange = () => {\n\t\t\tsetIsMobile(mql.matches);\n\t\t};\n\t\tmql.addEventListener(\"change\", onChange);\n\t\tsetIsMobile(mql.matches);\n\t\treturn () => mql.removeEventListener(\"change\", onChange);\n\t}, []);\n\n\treturn isMobile;\n}\n"]}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the sidebar context.
|
|
3
|
+
* Includes state, open, setOpen, openMobile, setOpenMobile, isMobile and toggleSidebar.
|
|
4
|
+
* Must be used inside SidebarProvider.
|
|
5
|
+
*/
|
|
1
6
|
export default function useSidebar(): {
|
|
2
7
|
state: "expanded" | "collapsed";
|
|
3
8
|
open: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSidebar.d.ts","sourceRoot":"","sources":["../../../components/sidebar/useSidebar.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,UAAU;;;;;;;;EAOjC"}
|
|
1
|
+
{"version":3,"file":"useSidebar.d.ts","sourceRoot":"","sources":["../../../components/sidebar/useSidebar.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU;;;;;;;;EAOjC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
2
|
import { SidebarContext } from "./SidebarProvider";
|
|
3
|
+
/**
|
|
4
|
+
* Returns the sidebar context.
|
|
5
|
+
* Includes state, open, setOpen, openMobile, setOpenMobile, isMobile and toggleSidebar.
|
|
6
|
+
* Must be used inside SidebarProvider.
|
|
7
|
+
*/
|
|
3
8
|
export default function useSidebar() {
|
|
4
9
|
const context = useContext(SidebarContext);
|
|
5
10
|
if (!context) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSidebar.js","sourceRoot":"","sources":["../../../components/sidebar/useSidebar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,CAAC,OAAO,UAAU,UAAU;IACjC,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACtE,CAAC;IAED,OAAO,OAAO,CAAC;AAChB,CAAC","sourcesContent":["import { useContext } from \"react\";\n\nimport { SidebarContext } from \"./SidebarProvider\";\n\nexport default function useSidebar() {\n\tconst context = useContext(SidebarContext);\n\tif (!context) {\n\t\tthrow new Error(\"useSidebar must be used within a SidebarProvider.\");\n\t}\n\n\treturn context;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"useSidebar.js","sourceRoot":"","sources":["../../../components/sidebar/useSidebar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU;IACjC,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACtE,CAAC;IAED,OAAO,OAAO,CAAC;AAChB,CAAC","sourcesContent":["import { useContext } from \"react\";\n\nimport { SidebarContext } from \"./SidebarProvider\";\n\n/**\n * Returns the sidebar context.\n * Includes state, open, setOpen, openMobile, setOpenMobile, isMobile and toggleSidebar.\n * Must be used inside SidebarProvider.\n */\nexport default function useSidebar() {\n\tconst context = useContext(SidebarContext);\n\tif (!context) {\n\t\tthrow new Error(\"useSidebar must be used within a SidebarProvider.\");\n\t}\n\n\treturn context;\n}\n"]}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import type { ComponentProps } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* A pulsing placeholder for content that is loading.
|
|
4
|
+
* Size it with width and height utilities and match the final content shape with rounded-* classes.
|
|
5
|
+
* Other props pass through to the div.
|
|
6
|
+
*/
|
|
2
7
|
export default function Skeleton({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
3
8
|
//# sourceMappingURL=Skeleton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../components/skeleton/Skeleton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAE9E"}
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../components/skeleton/Skeleton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAE9E"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import cn from "../../cn";
|
|
3
|
+
/**
|
|
4
|
+
* A pulsing placeholder for content that is loading.
|
|
5
|
+
* Size it with width and height utilities and match the final content shape with rounded-* classes.
|
|
6
|
+
* Other props pass through to the div.
|
|
7
|
+
*/
|
|
3
8
|
export default function Skeleton({ className, ...props }) {
|
|
4
9
|
return _jsx("div", { "data-slot": "skeleton", className: cn("animate-pulse rounded-md bg-muted", className), ...props });
|
|
5
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../components/skeleton/Skeleton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AAItB,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAyB;IAC9E,OAAO,2BAAe,UAAU,EAAC,SAAS,EAAE,EAAE,CAAC,mCAAmC,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AAC/G,CAAC","sourcesContent":["import cn from \"@/cn\";\n\nimport type { ComponentProps } from \"react\";\n\nexport default function Skeleton({ className, ...props }: ComponentProps<\"div\">) {\n\treturn <div data-slot=\"skeleton\" className={cn(\"animate-pulse rounded-md bg-muted\", className)} {...props} />;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../components/skeleton/Skeleton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AAItB;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAyB;IAC9E,OAAO,2BAAe,UAAU,EAAC,SAAS,EAAE,EAAE,CAAC,mCAAmC,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AAC/G,CAAC","sourcesContent":["import cn from \"@/cn\";\n\nimport type { ComponentProps } from \"react\";\n\n/**\n * A pulsing placeholder for content that is loading.\n * Size it with width and height utilities and match the final content shape with rounded-* classes.\n * Other props pass through to the div.\n */\nexport default function Skeleton({ className, ...props }: ComponentProps<\"div\">) {\n\treturn <div data-slot=\"skeleton\" className={cn(\"animate-pulse rounded-md bg-muted\", className)} {...props} />;\n}\n"]}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import { Slider as SliderPrimitive } from "@base-ui/react/slider";
|
|
2
|
+
/**
|
|
3
|
+
* A control for selecting a value or a range by dragging a thumb.
|
|
4
|
+
* Pass an array to value or defaultValue; one entry renders one thumb, two entries a range.
|
|
5
|
+
* min defaults to 0 and max to 100.
|
|
6
|
+
* Use orientation vertical for a vertical slider.
|
|
7
|
+
* Other props pass through to the Base UI Slider root.
|
|
8
|
+
*/
|
|
2
9
|
export default function Slider({ className, defaultValue, value, min, max, ...props }: SliderPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
|
|
3
10
|
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../components/slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAIlE,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC9B,SAAS,EACT,YAAY,EACZ,KAAK,EACL,GAAO,EACP,GAAS,EACT,GAAG,KAAK,EACR,EAAE,eAAe,CAAC,IAAI,CAAC,KAAK,2CAkC5B"}
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../components/slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAIlE;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC9B,SAAS,EACT,YAAY,EACZ,KAAK,EACL,GAAO,EACP,GAAS,EACT,GAAG,KAAK,EACR,EAAE,eAAe,CAAC,IAAI,CAAC,KAAK,2CAkC5B"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Slider as SliderPrimitive } from "@base-ui/react/slider";
|
|
3
3
|
import cn from "../../cn";
|
|
4
|
+
/**
|
|
5
|
+
* A control for selecting a value or a range by dragging a thumb.
|
|
6
|
+
* Pass an array to value or defaultValue; one entry renders one thumb, two entries a range.
|
|
7
|
+
* min defaults to 0 and max to 100.
|
|
8
|
+
* Use orientation vertical for a vertical slider.
|
|
9
|
+
* Other props pass through to the Base UI Slider root.
|
|
10
|
+
*/
|
|
4
11
|
export default function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }) {
|
|
5
12
|
const _values = Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max];
|
|
6
13
|
return (_jsx(SliderPrimitive.Root, { className: cn("data-horizontal:w-full data-vertical:h-full", className), "data-slot": "slider", defaultValue: defaultValue, value: value, min: min, max: max, thumbAlignment: "edge", ...props, children: _jsxs(SliderPrimitive.Control, { className: "relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col", children: [_jsx(SliderPrimitive.Track, { "data-slot": "slider-track", className: "relative grow overflow-hidden rounded-full bg-muted select-none data-[orientation=horizontal]:h-1 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1", children: _jsx(SliderPrimitive.Indicator, { "data-slot": "slider-range", className: "bg-primary select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full" }) }), Array.from({ length: _values.length }, (_, index) => (_jsx(SliderPrimitive.Thumb, { "data-slot": "slider-thumb", className: "relative block size-3 shrink-0 rounded-full border border-primary bg-primary ring-ring/50 transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 disabled:pointer-events-none disabled:opacity-50" }, index)))] }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.js","sourceRoot":"","sources":["../../../components/slider/Slider.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,YAAY,EACZ,KAAK,EACL,GAAG,GAAG,CAAC,EACP,GAAG,GAAG,GAAG,EACT,GAAG,KAAK,EACoB;IAC5B,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAEvG,OAAO,CACN,KAAC,eAAe,CAAC,IAAI,IACpB,SAAS,EAAE,EAAE,CAAC,6CAA6C,EAAE,SAAS,CAAC,eAC7D,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,cAAc,EAAC,MAAM,KACjB,KAAK,YAET,MAAC,eAAe,CAAC,OAAO,IAAC,SAAS,EAAC,2KAA2K,aAC7M,KAAC,eAAe,CAAC,KAAK,iBACX,cAAc,EACxB,SAAS,EAAC,2MAA2M,YAErN,KAAC,eAAe,CAAC,SAAS,iBACf,cAAc,EACxB,SAAS,EAAC,gGAAgG,GACzG,GACqB,EACvB,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACrD,KAAC,eAAe,CAAC,KAAK,iBACX,cAAc,EAExB,SAAS,EAAC,iSAAiS,IADtS,KAAK,CAET,CACF,CAAC,IACuB,GACJ,CACvB,CAAC;AACH,CAAC","sourcesContent":["import { Slider as SliderPrimitive } from \"@base-ui/react/slider\";\n\nimport cn from \"@/cn\";\n\nexport default function Slider({\n\tclassName,\n\tdefaultValue,\n\tvalue,\n\tmin = 0,\n\tmax = 100,\n\t...props\n}: SliderPrimitive.Root.Props) {\n\tconst _values = Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max];\n\n\treturn (\n\t\t<SliderPrimitive.Root\n\t\t\tclassName={cn(\"data-horizontal:w-full data-vertical:h-full\", className)}\n\t\t\tdata-slot=\"slider\"\n\t\t\tdefaultValue={defaultValue}\n\t\t\tvalue={value}\n\t\t\tmin={min}\n\t\t\tmax={max}\n\t\t\tthumbAlignment=\"edge\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<SliderPrimitive.Control className=\"relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col\">\n\t\t\t\t<SliderPrimitive.Track\n\t\t\t\t\tdata-slot=\"slider-track\"\n\t\t\t\t\tclassName=\"relative grow overflow-hidden rounded-full bg-muted select-none data-[orientation=horizontal]:h-1 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1\"\n\t\t\t\t>\n\t\t\t\t\t<SliderPrimitive.Indicator\n\t\t\t\t\t\tdata-slot=\"slider-range\"\n\t\t\t\t\t\tclassName=\"bg-primary select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full\"\n\t\t\t\t\t/>\n\t\t\t\t</SliderPrimitive.Track>\n\t\t\t\t{Array.from({ length: _values.length }, (_, index) => (\n\t\t\t\t\t<SliderPrimitive.Thumb\n\t\t\t\t\t\tdata-slot=\"slider-thumb\"\n\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\tclassName=\"relative block size-3 shrink-0 rounded-full border border-primary bg-primary ring-ring/50 transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 disabled:pointer-events-none disabled:opacity-50\"\n\t\t\t\t\t/>\n\t\t\t\t))}\n\t\t\t</SliderPrimitive.Control>\n\t\t</SliderPrimitive.Root>\n\t);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Slider.js","sourceRoot":"","sources":["../../../components/slider/Slider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,EAAE,MAAM,MAAM,CAAC;AAEtB;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC9B,SAAS,EACT,YAAY,EACZ,KAAK,EACL,GAAG,GAAG,CAAC,EACP,GAAG,GAAG,GAAG,EACT,GAAG,KAAK,EACoB;IAC5B,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAEvG,OAAO,CACN,KAAC,eAAe,CAAC,IAAI,IACpB,SAAS,EAAE,EAAE,CAAC,6CAA6C,EAAE,SAAS,CAAC,eAC7D,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,cAAc,EAAC,MAAM,KACjB,KAAK,YAET,MAAC,eAAe,CAAC,OAAO,IAAC,SAAS,EAAC,2KAA2K,aAC7M,KAAC,eAAe,CAAC,KAAK,iBACX,cAAc,EACxB,SAAS,EAAC,2MAA2M,YAErN,KAAC,eAAe,CAAC,SAAS,iBACf,cAAc,EACxB,SAAS,EAAC,gGAAgG,GACzG,GACqB,EACvB,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACrD,KAAC,eAAe,CAAC,KAAK,iBACX,cAAc,EAExB,SAAS,EAAC,iSAAiS,IADtS,KAAK,CAET,CACF,CAAC,IACuB,GACJ,CACvB,CAAC;AACH,CAAC","sourcesContent":["import { Slider as SliderPrimitive } from \"@base-ui/react/slider\";\n\nimport cn from \"@/cn\";\n\n/**\n * A control for selecting a value or a range by dragging a thumb.\n * Pass an array to value or defaultValue; one entry renders one thumb, two entries a range.\n * min defaults to 0 and max to 100.\n * Use orientation vertical for a vertical slider.\n * Other props pass through to the Base UI Slider root.\n */\nexport default function Slider({\n\tclassName,\n\tdefaultValue,\n\tvalue,\n\tmin = 0,\n\tmax = 100,\n\t...props\n}: SliderPrimitive.Root.Props) {\n\tconst _values = Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max];\n\n\treturn (\n\t\t<SliderPrimitive.Root\n\t\t\tclassName={cn(\"data-horizontal:w-full data-vertical:h-full\", className)}\n\t\t\tdata-slot=\"slider\"\n\t\t\tdefaultValue={defaultValue}\n\t\t\tvalue={value}\n\t\t\tmin={min}\n\t\t\tmax={max}\n\t\t\tthumbAlignment=\"edge\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<SliderPrimitive.Control className=\"relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col\">\n\t\t\t\t<SliderPrimitive.Track\n\t\t\t\t\tdata-slot=\"slider-track\"\n\t\t\t\t\tclassName=\"relative grow overflow-hidden rounded-full bg-muted select-none data-[orientation=horizontal]:h-1 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1\"\n\t\t\t\t>\n\t\t\t\t\t<SliderPrimitive.Indicator\n\t\t\t\t\t\tdata-slot=\"slider-range\"\n\t\t\t\t\t\tclassName=\"bg-primary select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full\"\n\t\t\t\t\t/>\n\t\t\t\t</SliderPrimitive.Track>\n\t\t\t\t{Array.from({ length: _values.length }, (_, index) => (\n\t\t\t\t\t<SliderPrimitive.Thumb\n\t\t\t\t\t\tdata-slot=\"slider-thumb\"\n\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\tclassName=\"relative block size-3 shrink-0 rounded-full border border-primary bg-primary ring-ring/50 transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 disabled:pointer-events-none disabled:opacity-50\"\n\t\t\t\t\t/>\n\t\t\t\t))}\n\t\t\t</SliderPrimitive.Control>\n\t\t</SliderPrimitive.Root>\n\t);\n}\n"]}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { type ToasterProps } from "sonner";
|
|
2
|
+
/**
|
|
3
|
+
* Renders the Sonner toaster. Render it once near the root of the app.
|
|
4
|
+
* Shows success, info, warning, error and loading icons and follows the dark class on the document.
|
|
5
|
+
* Use toast from sonner to show messages.
|
|
6
|
+
* Accepts Sonner ToasterProps.
|
|
7
|
+
*/
|
|
2
8
|
export default function Toaster({ ...props }: ToasterProps): import("react/jsx-runtime").JSX.Element;
|
|
3
9
|
//# sourceMappingURL=Toaster.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toaster.d.ts","sourceRoot":"","sources":["../../../components/sonner/Toaster.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE9D,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,2CA2CzD"}
|
|
1
|
+
{"version":3,"file":"Toaster.d.ts","sourceRoot":"","sources":["../../../components/sonner/Toaster.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,2CA2CzD"}
|
|
@@ -3,6 +3,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { IconCircleCheck, IconInfoCircle, IconAlertTriangle, IconAlertOctagon, IconLoader } from "@tabler/icons-react";
|
|
4
4
|
import { useEffect, useState } from "react";
|
|
5
5
|
import { Toaster as Sonner } from "sonner";
|
|
6
|
+
/**
|
|
7
|
+
* Renders the Sonner toaster. Render it once near the root of the app.
|
|
8
|
+
* Shows success, info, warning, error and loading icons and follows the dark class on the document.
|
|
9
|
+
* Use toast from sonner to show messages.
|
|
10
|
+
* Accepts Sonner ToasterProps.
|
|
11
|
+
*/
|
|
6
12
|
export default function Toaster({ ...props }) {
|
|
7
13
|
const [theme, setTheme] = useState(undefined);
|
|
8
14
|
useEffect(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toaster.js","sourceRoot":"","sources":["../../../components/sonner/Toaster.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACvH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAsB,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAqB,MAAM,QAAQ,CAAC;AAE9D,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,GAAG,KAAK,EAAgB;IACzD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAA+B,SAAS,CAAC,CAAC;IAE5E,SAAS,CAAC,GAAG,EAAE;QACd,MAAM,IAAI,GAAG,QAAQ,CAAC,eAAe,CAAC;QACtC,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC/C,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACN,KAAC,MAAM,IACN,KAAK,EAAE,KAAK;QACZ,sEAAsE;QACtE,SAAS,EAAC,eAAe,EACzB,KAAK,EAAE;YACN,OAAO,EAAE,KAAC,eAAe,IAAC,SAAS,EAAC,QAAQ,GAAG;YAC/C,IAAI,EAAE,KAAC,cAAc,IAAC,SAAS,EAAC,QAAQ,GAAG;YAC3C,OAAO,EAAE,KAAC,iBAAiB,IAAC,SAAS,EAAC,QAAQ,GAAG;YACjD,KAAK,EAAE,KAAC,gBAAgB,IAAC,SAAS,EAAC,QAAQ,GAAG;YAC9C,OAAO,EAAE,KAAC,UAAU,IAAC,SAAS,EAAC,qBAAqB,GAAG;SACvD,EACD,KAAK,EACJ;YACC,aAAa,EAAE,aAAa;YAC5B,eAAe,EAAE,wBAAwB;YACzC,iBAAiB,EAAE,eAAe;YAClC,iBAAiB,EAAE,eAAe;SACjB,EAEnB,YAAY,EAAE;YACb,UAAU,EAAE;gBACX,KAAK,EAAE,2BAA2B;gBAClC,OAAO,EACN,qHAAqH;gBACtH,KAAK,EAAE,yGAAyG;gBAChH,OAAO,EACN,2HAA2H;gBAC5H,IAAI,EAAE,+GAA+G;aACrH;SACD,KACG,KAAK,GACR,CACF,CAAC;AACH,CAAC","sourcesContent":["\"use client\";\n\nimport { IconCircleCheck, IconInfoCircle, IconAlertTriangle, IconAlertOctagon, IconLoader } from \"@tabler/icons-react\";\nimport { useEffect, useState, type CSSProperties } from \"react\";\nimport { Toaster as Sonner, type ToasterProps } from \"sonner\";\n\nexport default function Toaster({ ...props }: ToasterProps) {\n\tconst [theme, setTheme] = useState<\"light\" | \"dark\" | undefined>(undefined);\n\n\tuseEffect(() => {\n\t\tconst root = document.documentElement;\n\t\tconst isDark = root.classList.contains(\"dark\");\n\t\tsetTheme(isDark ? \"dark\" : \"light\");\n\t}, []);\n\n\treturn (\n\t\t<Sonner\n\t\t\ttheme={theme}\n\t\t\t// eslint-disable-next-line better-tailwindcss/no-unregistered-classes\n\t\t\tclassName=\"toaster group\"\n\t\t\ticons={{\n\t\t\t\tsuccess: <IconCircleCheck className=\"size-4\" />,\n\t\t\t\tinfo: <IconInfoCircle className=\"size-4\" />,\n\t\t\t\twarning: <IconAlertTriangle className=\"size-4\" />,\n\t\t\t\terror: <IconAlertOctagon className=\"size-4\" />,\n\t\t\t\tloading: <IconLoader className=\"size-4 animate-spin\" />,\n\t\t\t}}\n\t\t\tstyle={\n\t\t\t\t{\n\t\t\t\t\t\"--normal-bg\": \"var(--card)\",\n\t\t\t\t\t\"--normal-text\": \"var(--card-foreground)\",\n\t\t\t\t\t\"--normal-border\": \"var(--border)\",\n\t\t\t\t\t\"--border-radius\": \"var(--radius)\",\n\t\t\t\t} as CSSProperties\n\t\t\t}\n\t\t\ttoastOptions={{\n\t\t\t\tclassNames: {\n\t\t\t\t\ttoast: \"cn-toast backdrop-blur-xs\",\n\t\t\t\t\tsuccess:\n\t\t\t\t\t\t\"bg-green-50/80! text-green-700! border-green-300! dark:bg-green-950/80! dark:text-green-300! dark:border-green-700!\",\n\t\t\t\t\terror: \"bg-red-50/80! text-red-700! border-red-300! dark:bg-red-950/80! dark:text-red-300! dark:border-red-700!\",\n\t\t\t\t\twarning:\n\t\t\t\t\t\t\"bg-yellow-50/80! text-yellow-700! border-yellow-300! dark:bg-yellow-950/80! dark:text-yellow-300! dark:border-yellow-700!\",\n\t\t\t\t\tinfo: \"bg-blue-50/80! text-blue-700! border-blue-300! dark:bg-blue-950/80! dark:text-blue-300! dark:border-blue-700!\",\n\t\t\t\t},\n\t\t\t}}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Toaster.js","sourceRoot":"","sources":["../../../components/sonner/Toaster.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACvH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAsB,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAqB,MAAM,QAAQ,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,GAAG,KAAK,EAAgB;IACzD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAA+B,SAAS,CAAC,CAAC;IAE5E,SAAS,CAAC,GAAG,EAAE;QACd,MAAM,IAAI,GAAG,QAAQ,CAAC,eAAe,CAAC;QACtC,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC/C,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACN,KAAC,MAAM,IACN,KAAK,EAAE,KAAK;QACZ,sEAAsE;QACtE,SAAS,EAAC,eAAe,EACzB,KAAK,EAAE;YACN,OAAO,EAAE,KAAC,eAAe,IAAC,SAAS,EAAC,QAAQ,GAAG;YAC/C,IAAI,EAAE,KAAC,cAAc,IAAC,SAAS,EAAC,QAAQ,GAAG;YAC3C,OAAO,EAAE,KAAC,iBAAiB,IAAC,SAAS,EAAC,QAAQ,GAAG;YACjD,KAAK,EAAE,KAAC,gBAAgB,IAAC,SAAS,EAAC,QAAQ,GAAG;YAC9C,OAAO,EAAE,KAAC,UAAU,IAAC,SAAS,EAAC,qBAAqB,GAAG;SACvD,EACD,KAAK,EACJ;YACC,aAAa,EAAE,aAAa;YAC5B,eAAe,EAAE,wBAAwB;YACzC,iBAAiB,EAAE,eAAe;YAClC,iBAAiB,EAAE,eAAe;SACjB,EAEnB,YAAY,EAAE;YACb,UAAU,EAAE;gBACX,KAAK,EAAE,2BAA2B;gBAClC,OAAO,EACN,qHAAqH;gBACtH,KAAK,EAAE,yGAAyG;gBAChH,OAAO,EACN,2HAA2H;gBAC5H,IAAI,EAAE,+GAA+G;aACrH;SACD,KACG,KAAK,GACR,CACF,CAAC;AACH,CAAC","sourcesContent":["\"use client\";\n\nimport { IconCircleCheck, IconInfoCircle, IconAlertTriangle, IconAlertOctagon, IconLoader } from \"@tabler/icons-react\";\nimport { useEffect, useState, type CSSProperties } from \"react\";\nimport { Toaster as Sonner, type ToasterProps } from \"sonner\";\n\n/**\n * Renders the Sonner toaster. Render it once near the root of the app.\n * Shows success, info, warning, error and loading icons and follows the dark class on the document.\n * Use toast from sonner to show messages.\n * Accepts Sonner ToasterProps.\n */\nexport default function Toaster({ ...props }: ToasterProps) {\n\tconst [theme, setTheme] = useState<\"light\" | \"dark\" | undefined>(undefined);\n\n\tuseEffect(() => {\n\t\tconst root = document.documentElement;\n\t\tconst isDark = root.classList.contains(\"dark\");\n\t\tsetTheme(isDark ? \"dark\" : \"light\");\n\t}, []);\n\n\treturn (\n\t\t<Sonner\n\t\t\ttheme={theme}\n\t\t\t// eslint-disable-next-line better-tailwindcss/no-unregistered-classes\n\t\t\tclassName=\"toaster group\"\n\t\t\ticons={{\n\t\t\t\tsuccess: <IconCircleCheck className=\"size-4\" />,\n\t\t\t\tinfo: <IconInfoCircle className=\"size-4\" />,\n\t\t\t\twarning: <IconAlertTriangle className=\"size-4\" />,\n\t\t\t\terror: <IconAlertOctagon className=\"size-4\" />,\n\t\t\t\tloading: <IconLoader className=\"size-4 animate-spin\" />,\n\t\t\t}}\n\t\t\tstyle={\n\t\t\t\t{\n\t\t\t\t\t\"--normal-bg\": \"var(--card)\",\n\t\t\t\t\t\"--normal-text\": \"var(--card-foreground)\",\n\t\t\t\t\t\"--normal-border\": \"var(--border)\",\n\t\t\t\t\t\"--border-radius\": \"var(--radius)\",\n\t\t\t\t} as CSSProperties\n\t\t\t}\n\t\t\ttoastOptions={{\n\t\t\t\tclassNames: {\n\t\t\t\t\ttoast: \"cn-toast backdrop-blur-xs\",\n\t\t\t\t\tsuccess:\n\t\t\t\t\t\t\"bg-green-50/80! text-green-700! border-green-300! dark:bg-green-950/80! dark:text-green-300! dark:border-green-700!\",\n\t\t\t\t\terror: \"bg-red-50/80! text-red-700! border-red-300! dark:bg-red-950/80! dark:text-red-300! dark:border-red-700!\",\n\t\t\t\t\twarning:\n\t\t\t\t\t\t\"bg-yellow-50/80! text-yellow-700! border-yellow-300! dark:bg-yellow-950/80! dark:text-yellow-300! dark:border-yellow-700!\",\n\t\t\t\t\tinfo: \"bg-blue-50/80! text-blue-700! border-blue-300! dark:bg-blue-950/80! dark:text-blue-300! dark:border-blue-700!\",\n\t\t\t\t},\n\t\t\t}}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n"]}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { IconLoader } from "@tabler/icons-react";
|
|
2
2
|
import { type ComponentProps } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* An animated loading indicator.
|
|
5
|
+
* role=status and aria-label Loading are built in.
|
|
6
|
+
* Use size-* utilities to resize it, for example inside Button with data-icon inline-start or inline-end.
|
|
7
|
+
* Other props pass through to the Tabler icon.
|
|
8
|
+
*/
|
|
3
9
|
export default function Spinner({ className, ...props }: ComponentProps<typeof IconLoader>): import("react/jsx-runtime").JSX.Element;
|
|
4
10
|
//# sourceMappingURL=Spinner.d.ts.map
|
|
@@ -1 +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
|
+
{"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;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,UAAU,CAAC,2CAIzF"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { IconLoader } from "@tabler/icons-react";
|
|
3
3
|
import cn from "../../cn";
|
|
4
|
+
/**
|
|
5
|
+
* An animated loading indicator.
|
|
6
|
+
* role=status and aria-label Loading are built in.
|
|
7
|
+
* Use size-* utilities to resize it, for example inside Button with data-icon inline-start or inline-end.
|
|
8
|
+
* Other props pass through to the Tabler icon.
|
|
9
|
+
*/
|
|
4
10
|
export default function Spinner({ className, ...props }) {
|
|
5
11
|
return (_jsx(IconLoader, { role: "status", "aria-label": "Loading", className: cn("size-4 animate-spin", className), ...props }));
|
|
6
12
|
}
|