@neut/ui 0.0.15 → 0.0.16
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/dist/components/accordion/Accordion/Accordion.context.d.ts +1 -1
- package/dist/components/accordion/Accordion/Accordion.context.js.map +1 -1
- package/dist/components/accordion/Accordion/Accordion.d.ts +1 -1
- package/dist/components/accordion/Accordion/Accordion.js.map +1 -1
- package/dist/components/accordion/Accordion/Accordion.styles.js.map +1 -1
- package/dist/components/accordion/Accordion/useAccordion.js.map +1 -1
- package/dist/components/accordion/AccordionContent/AccordionContent.d.ts +1 -1
- package/dist/components/accordion/AccordionContent/AccordionContent.js.map +1 -1
- package/dist/components/accordion/AccordionContent/AccordionContent.styles.js.map +1 -1
- package/dist/components/accordion/AccordionItem/AccordionItem.context.js.map +1 -1
- package/dist/components/accordion/AccordionItem/AccordionItem.d.ts +1 -1
- package/dist/components/accordion/AccordionItem/AccordionItem.js.map +1 -1
- package/dist/components/accordion/AccordionItem/AccordionItem.styles.js.map +1 -1
- package/dist/components/accordion/AccordionTrigger/AccordionTrigger.d.ts +1 -1
- package/dist/components/accordion/AccordionTrigger/AccordionTrigger.js.map +1 -1
- package/dist/components/accordion/AccordionTrigger/AccordionTrigger.styles.js.map +1 -1
- package/dist/components/alert/Alert/Alert.d.ts +1 -1
- package/dist/components/alert/Alert/Alert.js.map +1 -1
- package/dist/components/alert/Alert/Alert.styles.js.map +1 -1
- package/dist/components/alert/AlertAction/AlertAction.d.ts +1 -1
- package/dist/components/alert/AlertAction/AlertAction.js.map +1 -1
- package/dist/components/alert/AlertAction/AlertAction.styles.js.map +1 -1
- package/dist/components/alert/AlertDescription/AlertDescription.d.ts +1 -1
- package/dist/components/alert/AlertDescription/AlertDescription.js.map +1 -1
- package/dist/components/alert/AlertDescription/AlertDescription.styles.js.map +1 -1
- package/dist/components/alert/AlertTitle/AlertTitle.d.ts +1 -1
- package/dist/components/alert/AlertTitle/AlertTitle.js.map +1 -1
- package/dist/components/alert/AlertTitle/AlertTitle.styles.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialog/AlertDialog.d.ts +6 -1
- package/dist/components/alert-dialog/AlertDialog/AlertDialog.js +4 -19
- package/dist/components/alert-dialog/AlertDialog/AlertDialog.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialog/AlertDialog.types.d.ts +6 -2
- package/dist/components/alert-dialog/AlertDialog/index.d.ts +1 -1
- package/dist/components/alert-dialog/AlertDialogAction/AlertDialogAction.d.ts +1 -1
- package/dist/components/alert-dialog/AlertDialogAction/AlertDialogAction.js +13 -4
- package/dist/components/alert-dialog/AlertDialogAction/AlertDialogAction.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogCancel/AlertDialogCancel.d.ts +1 -1
- package/dist/components/alert-dialog/AlertDialogCancel/AlertDialogCancel.js +1 -1
- package/dist/components/alert-dialog/AlertDialogCancel/AlertDialogCancel.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogContent/AlertDialogContent.d.ts +1 -1
- package/dist/components/alert-dialog/AlertDialogContent/AlertDialogContent.js +19 -53
- package/dist/components/alert-dialog/AlertDialogContent/AlertDialogContent.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogContent/AlertDialogContent.styles.d.ts +1 -1
- package/dist/components/alert-dialog/AlertDialogContent/AlertDialogContent.styles.js +1 -1
- package/dist/components/alert-dialog/AlertDialogContent/AlertDialogContent.styles.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogContent/AlertDialogContent.types.d.ts +1 -1
- package/dist/components/alert-dialog/AlertDialogContent/index.d.ts +1 -1
- package/dist/components/alert-dialog/AlertDialogDescription/AlertDialogDescription.d.ts +1 -1
- package/dist/components/alert-dialog/AlertDialogDescription/AlertDialogDescription.js +1 -1
- package/dist/components/alert-dialog/AlertDialogDescription/AlertDialogDescription.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogDescription/AlertDialogDescription.styles.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogFooter/AlertDialogFooter.d.ts +1 -1
- package/dist/components/alert-dialog/AlertDialogFooter/AlertDialogFooter.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogFooter/AlertDialogFooter.styles.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogHeader/AlertDialogHeader.d.ts +1 -1
- package/dist/components/alert-dialog/AlertDialogHeader/AlertDialogHeader.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogHeader/AlertDialogHeader.styles.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogMedia/AlertDialogMedia.d.ts +1 -1
- package/dist/components/alert-dialog/AlertDialogMedia/AlertDialogMedia.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogMedia/AlertDialogMedia.styles.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogOverlay/AlertDialogOverlay.d.ts +1 -1
- package/dist/components/alert-dialog/AlertDialogOverlay/AlertDialogOverlay.js +4 -22
- package/dist/components/alert-dialog/AlertDialogOverlay/AlertDialogOverlay.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogPortal/AlertDialogPortal.d.ts +1 -1
- package/dist/components/alert-dialog/AlertDialogPortal/AlertDialogPortal.js +4 -6
- package/dist/components/alert-dialog/AlertDialogPortal/AlertDialogPortal.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogTitle/AlertDialogTitle.d.ts +1 -1
- package/dist/components/alert-dialog/AlertDialogTitle/AlertDialogTitle.js +1 -1
- package/dist/components/alert-dialog/AlertDialogTitle/AlertDialogTitle.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogTitle/AlertDialogTitle.styles.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogTrigger/AlertDialogTrigger.d.ts +8 -2
- package/dist/components/alert-dialog/AlertDialogTrigger/AlertDialogTrigger.js +27 -6
- package/dist/components/alert-dialog/AlertDialogTrigger/AlertDialogTrigger.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogTrigger/AlertDialogTrigger.types.d.ts +4 -0
- package/dist/components/alert-dialog/AlertDialogTrigger/index.d.ts +1 -0
- package/dist/components/alert-dialog/index.js +13 -15
- package/dist/components/aspect-ratio/AspectRatio.d.ts +1 -1
- package/dist/components/aspect-ratio/AspectRatio.js.map +1 -1
- package/dist/components/aspect-ratio/AspectRatio.styles.js.map +1 -1
- package/dist/components/attachment/Attachment/Attachment.d.ts +6 -0
- package/dist/components/attachment/Attachment/Attachment.js +46 -0
- package/dist/components/attachment/Attachment/Attachment.js.map +1 -0
- package/dist/components/attachment/Attachment/Attachment.styles.d.ts +4 -0
- package/dist/components/attachment/Attachment/Attachment.styles.js +17 -0
- package/dist/components/attachment/Attachment/Attachment.styles.js.map +1 -0
- package/dist/components/attachment/Attachment/Attachment.types.d.ts +8 -0
- package/dist/components/attachment/Attachment/index.d.ts +2 -0
- package/dist/components/attachment/AttachmentAction/AttachmentAction.d.ts +3 -0
- package/dist/components/attachment/AttachmentAction/AttachmentAction.js +15 -0
- package/dist/components/attachment/AttachmentAction/AttachmentAction.js.map +1 -0
- package/dist/components/attachment/AttachmentAction/AttachmentAction.types.d.ts +2 -0
- package/dist/components/attachment/AttachmentAction/index.d.ts +2 -0
- package/dist/components/attachment/AttachmentActions/AttachmentActions.d.ts +3 -0
- package/dist/components/attachment/AttachmentActions/AttachmentActions.js +24 -0
- package/dist/components/attachment/AttachmentActions/AttachmentActions.js.map +1 -0
- package/dist/components/attachment/AttachmentActions/AttachmentActions.styles.d.ts +1 -0
- package/dist/components/attachment/AttachmentActions/AttachmentActions.styles.js +6 -0
- package/dist/components/attachment/AttachmentActions/AttachmentActions.styles.js.map +1 -0
- package/dist/components/attachment/AttachmentActions/AttachmentActions.types.d.ts +2 -0
- package/dist/components/attachment/AttachmentActions/index.d.ts +2 -0
- package/dist/components/attachment/AttachmentContent/AttachmentContent.d.ts +3 -0
- package/dist/components/attachment/AttachmentContent/AttachmentContent.js +23 -0
- package/dist/components/attachment/AttachmentContent/AttachmentContent.js.map +1 -0
- package/dist/components/attachment/AttachmentContent/AttachmentContent.types.d.ts +2 -0
- package/dist/components/attachment/AttachmentContent/index.d.ts +2 -0
- package/dist/components/attachment/AttachmentDescription/AttachmentDescription.d.ts +3 -0
- package/dist/components/attachment/AttachmentDescription/AttachmentDescription.js +24 -0
- package/dist/components/attachment/AttachmentDescription/AttachmentDescription.js.map +1 -0
- package/dist/components/attachment/AttachmentDescription/AttachmentDescription.styles.d.ts +1 -0
- package/dist/components/attachment/AttachmentDescription/AttachmentDescription.styles.js +6 -0
- package/dist/components/attachment/AttachmentDescription/AttachmentDescription.styles.js.map +1 -0
- package/dist/components/attachment/AttachmentDescription/AttachmentDescription.types.d.ts +2 -0
- package/dist/components/attachment/AttachmentDescription/index.d.ts +2 -0
- package/dist/components/attachment/AttachmentGroup/AttachmentGroup.d.ts +3 -0
- package/dist/components/attachment/AttachmentGroup/AttachmentGroup.js +24 -0
- package/dist/components/attachment/AttachmentGroup/AttachmentGroup.js.map +1 -0
- package/dist/components/attachment/AttachmentGroup/AttachmentGroup.styles.d.ts +1 -0
- package/dist/components/attachment/AttachmentGroup/AttachmentGroup.styles.js +6 -0
- package/dist/components/attachment/AttachmentGroup/AttachmentGroup.styles.js.map +1 -0
- package/dist/components/attachment/AttachmentGroup/AttachmentGroup.types.d.ts +2 -0
- package/dist/components/attachment/AttachmentGroup/index.d.ts +2 -0
- package/dist/components/attachment/AttachmentMedia/AttachmentMedia.d.ts +3 -0
- package/dist/components/attachment/AttachmentMedia/AttachmentMedia.js +31 -0
- package/dist/components/attachment/AttachmentMedia/AttachmentMedia.js.map +1 -0
- package/dist/components/attachment/AttachmentMedia/AttachmentMedia.styles.d.ts +3 -0
- package/dist/components/attachment/AttachmentMedia/AttachmentMedia.styles.js +13 -0
- package/dist/components/attachment/AttachmentMedia/AttachmentMedia.styles.js.map +1 -0
- package/dist/components/attachment/AttachmentMedia/AttachmentMedia.types.d.ts +4 -0
- package/dist/components/attachment/AttachmentMedia/index.d.ts +2 -0
- package/dist/components/attachment/AttachmentTitle/AttachmentTitle.d.ts +3 -0
- package/dist/components/attachment/AttachmentTitle/AttachmentTitle.js +24 -0
- package/dist/components/attachment/AttachmentTitle/AttachmentTitle.js.map +1 -0
- package/dist/components/attachment/AttachmentTitle/AttachmentTitle.styles.d.ts +1 -0
- package/dist/components/attachment/AttachmentTitle/AttachmentTitle.styles.js +6 -0
- package/dist/components/attachment/AttachmentTitle/AttachmentTitle.styles.js.map +1 -0
- package/dist/components/attachment/AttachmentTitle/AttachmentTitle.types.d.ts +2 -0
- package/dist/components/attachment/AttachmentTitle/index.d.ts +2 -0
- package/dist/components/attachment/AttachmentTrigger/AttachmentTrigger.d.ts +7 -0
- package/dist/components/attachment/AttachmentTrigger/AttachmentTrigger.js +18 -0
- package/dist/components/attachment/AttachmentTrigger/AttachmentTrigger.js.map +1 -0
- package/dist/components/attachment/AttachmentTrigger/AttachmentTrigger.types.d.ts +5 -0
- package/dist/components/attachment/AttachmentTrigger/index.d.ts +2 -0
- package/dist/components/attachment/index.d.ts +18 -0
- package/dist/components/attachment/index.js +10 -0
- package/dist/components/avatar/Avatar/Avatar.context.js.map +1 -1
- package/dist/components/avatar/Avatar/Avatar.d.ts +1 -1
- package/dist/components/avatar/Avatar/Avatar.js.map +1 -1
- package/dist/components/avatar/AvatarBadge/AvatarBadge.d.ts +1 -1
- package/dist/components/avatar/AvatarBadge/AvatarBadge.js.map +1 -1
- package/dist/components/avatar/AvatarFallback/AvatarFallback.d.ts +1 -1
- package/dist/components/avatar/AvatarFallback/AvatarFallback.js.map +1 -1
- package/dist/components/avatar/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/components/avatar/AvatarGroup/AvatarGroup.js.map +1 -1
- package/dist/components/avatar/AvatarGroupCount/AvatarGroupCount.d.ts +1 -1
- package/dist/components/avatar/AvatarGroupCount/AvatarGroupCount.js.map +1 -1
- package/dist/components/avatar/AvatarImage/AvatarImage.d.ts +1 -1
- package/dist/components/avatar/AvatarImage/AvatarImage.js.map +1 -1
- package/dist/components/badge/Badge.d.ts +1 -1
- package/dist/components/badge/Badge.js.map +1 -1
- package/dist/components/badge/Badge.styles.js.map +1 -1
- package/dist/components/breadcrumb/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/components/breadcrumb/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbEllipsis/BreadcrumbEllipsis.d.ts +1 -1
- package/dist/components/breadcrumb/BreadcrumbEllipsis/BreadcrumbEllipsis.js.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbEllipsis/BreadcrumbEllipsis.styles.js.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbItem/BreadcrumbItem.d.ts +1 -1
- package/dist/components/breadcrumb/BreadcrumbItem/BreadcrumbItem.js.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbItem/BreadcrumbItem.styles.js.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbLink/BreadcrumbLink.d.ts +1 -1
- package/dist/components/breadcrumb/BreadcrumbLink/BreadcrumbLink.js.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbLink/BreadcrumbLink.styles.js.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbList/BreadcrumbList.d.ts +1 -1
- package/dist/components/breadcrumb/BreadcrumbList/BreadcrumbList.js.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbList/BreadcrumbList.styles.js.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbPage/BreadcrumbPage.d.ts +1 -1
- package/dist/components/breadcrumb/BreadcrumbPage/BreadcrumbPage.js.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbPage/BreadcrumbPage.styles.js.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbSeparator/BreadcrumbSeparator.d.ts +1 -1
- package/dist/components/breadcrumb/BreadcrumbSeparator/BreadcrumbSeparator.js.map +1 -1
- package/dist/components/breadcrumb/BreadcrumbSeparator/BreadcrumbSeparator.styles.js.map +1 -1
- package/dist/components/button/Button.d.ts +1 -1
- package/dist/components/button/Button.js +1 -1
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/button/Button.styles.js.map +1 -1
- package/dist/components/button-group/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/components/button-group/ButtonGroup/ButtonGroup.js.map +1 -1
- package/dist/components/button-group/ButtonGroup/ButtonGroup.styles.js.map +1 -1
- package/dist/components/button-group/ButtonGroupSeparator/ButtonGroupSeparator.d.ts +1 -1
- package/dist/components/button-group/ButtonGroupSeparator/ButtonGroupSeparator.js.map +1 -1
- package/dist/components/button-group/ButtonGroupSeparator/ButtonGroupSeparator.styles.js.map +1 -1
- package/dist/components/button-group/ButtonGroupText/ButtonGroupText.d.ts +1 -1
- package/dist/components/button-group/ButtonGroupText/ButtonGroupText.js.map +1 -1
- package/dist/components/button-group/ButtonGroupText/ButtonGroupText.styles.js.map +1 -1
- package/dist/components/calendar/Calendar/Calendar.js.map +1 -1
- package/dist/components/calendar/Calendar/Calendar.utils.js.map +1 -1
- package/dist/components/card/Card/Card.d.ts +1 -1
- package/dist/components/card/Card/Card.js.map +1 -1
- package/dist/components/card/Card/Card.styles.js.map +1 -1
- package/dist/components/card/CardAction/CardAction.d.ts +1 -1
- package/dist/components/card/CardAction/CardAction.js.map +1 -1
- package/dist/components/card/CardAction/CardAction.styles.js.map +1 -1
- package/dist/components/card/CardContent/CardContent.d.ts +1 -1
- package/dist/components/card/CardContent/CardContent.js.map +1 -1
- package/dist/components/card/CardContent/CardContent.styles.js.map +1 -1
- package/dist/components/card/CardDescription/CardDescription.d.ts +1 -1
- package/dist/components/card/CardDescription/CardDescription.js.map +1 -1
- package/dist/components/card/CardDescription/CardDescription.styles.js.map +1 -1
- package/dist/components/card/CardFooter/CardFooter.d.ts +1 -1
- package/dist/components/card/CardFooter/CardFooter.js.map +1 -1
- package/dist/components/card/CardFooter/CardFooter.styles.js.map +1 -1
- package/dist/components/card/CardHeader/CardHeader.d.ts +1 -1
- package/dist/components/card/CardHeader/CardHeader.js.map +1 -1
- package/dist/components/card/CardHeader/CardHeader.styles.js.map +1 -1
- package/dist/components/card/CardTitle/CardTitle.d.ts +1 -1
- package/dist/components/card/CardTitle/CardTitle.js.map +1 -1
- package/dist/components/card/CardTitle/CardTitle.styles.js.map +1 -1
- package/dist/components/carousel/Carousel/Carousel.context.js.map +1 -1
- package/dist/components/carousel/Carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel/Carousel.js.map +1 -1
- package/dist/components/carousel/Carousel/Carousel.styles.js.map +1 -1
- package/dist/components/carousel/Carousel/useAutoPlay.js.map +1 -1
- package/dist/components/carousel/Carousel/useCarousel.js.map +1 -1
- package/dist/components/carousel/Carousel/useKeyboardNavigation.js.map +1 -1
- package/dist/components/carousel/CarouselContent/CarouselContent.d.ts +1 -1
- package/dist/components/carousel/CarouselContent/CarouselContent.js.map +1 -1
- package/dist/components/carousel/CarouselContent/useItemSizeMeasure.js.map +1 -1
- package/dist/components/carousel/CarouselDots/CarouselDots.d.ts +1 -1
- package/dist/components/carousel/CarouselDots/CarouselDots.js.map +1 -1
- package/dist/components/carousel/CarouselItem/CarouselItem.d.ts +1 -1
- package/dist/components/carousel/CarouselItem/CarouselItem.js.map +1 -1
- package/dist/components/carousel/CarouselNext/CarouselNext.d.ts +1 -1
- package/dist/components/carousel/CarouselNext/CarouselNext.js.map +1 -1
- package/dist/components/carousel/CarouselPrevious/CarouselPrevious.d.ts +1 -1
- package/dist/components/carousel/CarouselPrevious/CarouselPrevious.js.map +1 -1
- package/dist/components/checkbox/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/checkbox/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/checkbox/Checkbox/Checkbox.styles.js.map +1 -1
- package/dist/components/checkbox/CheckboxIndicator/CheckboxIndicator.d.ts +1 -1
- package/dist/components/checkbox/CheckboxIndicator/CheckboxIndicator.js.map +1 -1
- package/dist/components/checkbox/CheckboxIndicator/CheckboxIndicator.styles.js.map +1 -1
- package/dist/components/collapsible/Collapsible/Collapsible.context.js.map +1 -1
- package/dist/components/collapsible/Collapsible/Collapsible.d.ts +1 -1
- package/dist/components/collapsible/Collapsible/Collapsible.js.map +1 -1
- package/dist/components/collapsible/CollapsibleContent/CollapsibleContent.d.ts +1 -1
- package/dist/components/collapsible/CollapsibleContent/CollapsibleContent.js.map +1 -1
- package/dist/components/collapsible/CollapsibleTrigger/CollapsibleTrigger.d.ts +1 -1
- package/dist/components/collapsible/CollapsibleTrigger/CollapsibleTrigger.js.map +1 -1
- package/dist/components/combobox/Combobox/Combobox.context.js.map +1 -1
- package/dist/components/combobox/Combobox/Combobox.js +50 -47
- package/dist/components/combobox/Combobox/Combobox.js.map +1 -1
- package/dist/components/combobox/Combobox/Combobox.types.d.ts +5 -0
- package/dist/components/combobox/ComboboxChip/ComboboxChip.js.map +1 -1
- package/dist/components/combobox/ComboboxChips/ComboboxChips.js.map +1 -1
- package/dist/components/combobox/ComboboxChipsInput/ComboboxChipsInput.d.ts +1 -1
- package/dist/components/combobox/ComboboxChipsInput/ComboboxChipsInput.js.map +1 -1
- package/dist/components/combobox/ComboboxClear/ComboboxClear.d.ts +1 -1
- package/dist/components/combobox/ComboboxClear/ComboboxClear.js.map +1 -1
- package/dist/components/combobox/ComboboxCollection/ComboboxCollection.js.map +1 -1
- package/dist/components/combobox/ComboboxContent/ComboboxContent.d.ts +1 -1
- package/dist/components/combobox/ComboboxContent/ComboboxContent.js.map +1 -1
- package/dist/components/combobox/ComboboxContent/ComboboxContent.utils.js.map +1 -1
- package/dist/components/combobox/ComboboxContent/useComboboxContent.js.map +1 -1
- package/dist/components/combobox/ComboboxEmpty/ComboboxEmpty.js.map +1 -1
- package/dist/components/combobox/ComboboxGroup/ComboboxGroup.js.map +1 -1
- package/dist/components/combobox/ComboboxInput/ComboboxInput.js.map +1 -1
- package/dist/components/combobox/ComboboxItem/ComboboxItem.js.map +1 -1
- package/dist/components/combobox/ComboboxLabel/ComboboxLabel.js.map +1 -1
- package/dist/components/combobox/ComboboxList/ComboboxList.js +13 -12
- package/dist/components/combobox/ComboboxList/ComboboxList.js.map +1 -1
- package/dist/components/combobox/ComboboxSeparator/ComboboxSeparator.d.ts +1 -1
- package/dist/components/combobox/ComboboxSeparator/ComboboxSeparator.js.map +1 -1
- package/dist/components/combobox/ComboboxTrigger/ComboboxTrigger.js.map +1 -1
- package/dist/components/combobox/ComboboxValue/ComboboxValue.js.map +1 -1
- package/dist/components/combobox/useComboboxAnchor/useComboboxAnchor.js.map +1 -1
- package/dist/components/context-menu/ContextMenu/ContextMenu.context.d.ts +3 -0
- package/dist/components/context-menu/ContextMenu/ContextMenu.context.js +12 -0
- package/dist/components/context-menu/ContextMenu/ContextMenu.context.js.map +1 -0
- package/dist/components/context-menu/ContextMenu/ContextMenu.d.ts +23 -0
- package/dist/components/context-menu/ContextMenu/ContextMenu.js +73 -0
- package/dist/components/context-menu/ContextMenu/ContextMenu.js.map +1 -0
- package/dist/components/context-menu/ContextMenu/ContextMenu.types.d.ts +28 -0
- package/dist/components/context-menu/ContextMenu/index.d.ts +3 -0
- package/dist/components/context-menu/ContextMenuCheckboxItem/ContextMenuCheckboxItem.d.ts +6 -0
- package/dist/components/context-menu/ContextMenuCheckboxItem/ContextMenuCheckboxItem.js +78 -0
- package/dist/components/context-menu/ContextMenuCheckboxItem/ContextMenuCheckboxItem.js.map +1 -0
- package/dist/components/context-menu/ContextMenuCheckboxItem/ContextMenuCheckboxItem.types.d.ts +20 -0
- package/dist/components/context-menu/ContextMenuCheckboxItem/index.d.ts +2 -0
- package/dist/components/context-menu/ContextMenuContent/ContextMenuContent.d.ts +9 -0
- package/dist/components/context-menu/ContextMenuContent/ContextMenuContent.js +64 -0
- package/dist/components/context-menu/ContextMenuContent/ContextMenuContent.js.map +1 -0
- package/dist/components/context-menu/ContextMenuContent/ContextMenuContent.types.d.ts +26 -0
- package/dist/components/context-menu/ContextMenuContent/ContextMenuPopupSurface.d.ts +31 -0
- package/dist/components/context-menu/ContextMenuContent/ContextMenuPopupSurface.js +102 -0
- package/dist/components/context-menu/ContextMenuContent/ContextMenuPopupSurface.js.map +1 -0
- package/dist/components/context-menu/ContextMenuContent/index.d.ts +2 -0
- package/dist/components/context-menu/ContextMenuContent/useContextMenuContent.d.ts +52 -0
- package/dist/components/context-menu/ContextMenuContent/useContextMenuContent.js +153 -0
- package/dist/components/context-menu/ContextMenuContent/useContextMenuContent.js.map +1 -0
- package/dist/components/context-menu/ContextMenuGroup/ContextMenuGroup.d.ts +6 -0
- package/dist/components/context-menu/ContextMenuGroup/ContextMenuGroup.js +29 -0
- package/dist/components/context-menu/ContextMenuGroup/ContextMenuGroup.js.map +1 -0
- package/dist/components/context-menu/ContextMenuGroup/ContextMenuGroup.types.d.ts +9 -0
- package/dist/components/context-menu/ContextMenuGroup/index.d.ts +2 -0
- package/dist/components/context-menu/ContextMenuItem/ContextMenuItem.d.ts +6 -0
- package/dist/components/context-menu/ContextMenuItem/ContextMenuItem.js +59 -0
- package/dist/components/context-menu/ContextMenuItem/ContextMenuItem.js.map +1 -0
- package/dist/components/context-menu/ContextMenuItem/ContextMenuItem.types.d.ts +22 -0
- package/dist/components/context-menu/ContextMenuItem/index.d.ts +2 -0
- package/dist/components/context-menu/ContextMenuLabel/ContextMenuLabel.d.ts +6 -0
- package/dist/components/context-menu/ContextMenuLabel/ContextMenuLabel.js +31 -0
- package/dist/components/context-menu/ContextMenuLabel/ContextMenuLabel.js.map +1 -0
- package/dist/components/context-menu/ContextMenuLabel/ContextMenuLabel.types.d.ts +8 -0
- package/dist/components/context-menu/ContextMenuLabel/index.d.ts +2 -0
- package/dist/components/context-menu/ContextMenuPortal/ContextMenuPortal.d.ts +16 -0
- package/dist/components/context-menu/ContextMenuPortal/ContextMenuPortal.js +18 -0
- package/dist/components/context-menu/ContextMenuPortal/ContextMenuPortal.js.map +1 -0
- package/dist/components/context-menu/ContextMenuPortal/index.d.ts +2 -0
- package/dist/components/context-menu/ContextMenuRadioGroup/ContextMenuRadioGroup.d.ts +12 -0
- package/dist/components/context-menu/ContextMenuRadioGroup/ContextMenuRadioGroup.js +48 -0
- package/dist/components/context-menu/ContextMenuRadioGroup/ContextMenuRadioGroup.js.map +1 -0
- package/dist/components/context-menu/ContextMenuRadioGroup/ContextMenuRadioGroup.types.d.ts +14 -0
- package/dist/components/context-menu/ContextMenuRadioGroup/index.d.ts +2 -0
- package/dist/components/context-menu/ContextMenuRadioItem/ContextMenuRadioItem.d.ts +6 -0
- package/dist/components/context-menu/ContextMenuRadioItem/ContextMenuRadioItem.js +74 -0
- package/dist/components/context-menu/ContextMenuRadioItem/ContextMenuRadioItem.js.map +1 -0
- package/dist/components/context-menu/ContextMenuRadioItem/ContextMenuRadioItem.types.d.ts +16 -0
- package/dist/components/context-menu/ContextMenuRadioItem/index.d.ts +2 -0
- package/dist/components/context-menu/ContextMenuSeparator/ContextMenuSeparator.d.ts +9 -0
- package/dist/components/context-menu/ContextMenuSeparator/ContextMenuSeparator.js +25 -0
- package/dist/components/context-menu/ContextMenuSeparator/ContextMenuSeparator.js.map +1 -0
- package/dist/components/context-menu/ContextMenuSeparator/ContextMenuSeparator.types.d.ts +8 -0
- package/dist/components/context-menu/ContextMenuSeparator/index.d.ts +2 -0
- package/dist/components/context-menu/ContextMenuShortcut/ContextMenuShortcut.d.ts +6 -0
- package/dist/components/context-menu/ContextMenuShortcut/ContextMenuShortcut.js +19 -0
- package/dist/components/context-menu/ContextMenuShortcut/ContextMenuShortcut.js.map +1 -0
- package/dist/components/context-menu/ContextMenuShortcut/ContextMenuShortcut.types.d.ts +6 -0
- package/dist/components/context-menu/ContextMenuShortcut/index.d.ts +2 -0
- package/dist/components/context-menu/ContextMenuSub/ContextMenuSub.d.ts +7 -0
- package/dist/components/context-menu/ContextMenuSub/ContextMenuSub.js +55 -0
- package/dist/components/context-menu/ContextMenuSub/ContextMenuSub.js.map +1 -0
- package/dist/components/context-menu/ContextMenuSub/ContextMenuSub.types.d.ts +18 -0
- package/dist/components/context-menu/ContextMenuSub/index.d.ts +2 -0
- package/dist/components/context-menu/ContextMenuSubContent/ContextMenuSubContent.d.ts +6 -0
- package/dist/components/context-menu/ContextMenuSubContent/ContextMenuSubContent.js +83 -0
- package/dist/components/context-menu/ContextMenuSubContent/ContextMenuSubContent.js.map +1 -0
- package/dist/components/context-menu/ContextMenuSubContent/ContextMenuSubContent.types.d.ts +17 -0
- package/dist/components/context-menu/ContextMenuSubContent/index.d.ts +2 -0
- package/dist/components/context-menu/ContextMenuSubTrigger/ContextMenuSubTrigger.d.ts +6 -0
- package/dist/components/context-menu/ContextMenuSubTrigger/ContextMenuSubTrigger.js +96 -0
- package/dist/components/context-menu/ContextMenuSubTrigger/ContextMenuSubTrigger.js.map +1 -0
- package/dist/components/context-menu/ContextMenuSubTrigger/ContextMenuSubTrigger.types.d.ts +21 -0
- package/dist/components/context-menu/ContextMenuSubTrigger/index.d.ts +2 -0
- package/dist/components/context-menu/ContextMenuTrigger/ContextMenuTrigger.d.ts +13 -0
- package/dist/components/context-menu/ContextMenuTrigger/ContextMenuTrigger.js +34 -0
- package/dist/components/context-menu/ContextMenuTrigger/ContextMenuTrigger.js.map +1 -0
- package/dist/components/context-menu/ContextMenuTrigger/ContextMenuTrigger.types.d.ts +15 -0
- package/dist/components/context-menu/ContextMenuTrigger/index.d.ts +4 -0
- package/dist/components/context-menu/ContextMenuTrigger/useContextMenuTrigger.d.ts +23 -0
- package/dist/components/context-menu/ContextMenuTrigger/useContextMenuTrigger.js +47 -0
- package/dist/components/context-menu/ContextMenuTrigger/useContextMenuTrigger.js.map +1 -0
- package/dist/components/context-menu/context-menu.context.d.ts +14 -0
- package/dist/components/context-menu/context-menu.context.js +25 -0
- package/dist/components/context-menu/context-menu.context.js.map +1 -0
- package/dist/components/context-menu/context-menu.entry.d.ts +28 -0
- package/dist/components/context-menu/context-menu.entry.js +31 -0
- package/dist/components/context-menu/context-menu.entry.js.map +1 -0
- package/dist/components/context-menu/context-menu.styles.d.ts +18 -0
- package/dist/components/context-menu/context-menu.styles.js +6 -0
- package/dist/components/context-menu/context-menu.styles.js.map +1 -0
- package/dist/components/context-menu/context-menu.types.d.ts +151 -0
- package/dist/components/context-menu/context-menu.utils.d.ts +28 -0
- package/dist/components/context-menu/context-menu.utils.js +51 -0
- package/dist/components/context-menu/context-menu.utils.js.map +1 -0
- package/dist/components/context-menu/index.d.ts +31 -0
- package/dist/components/context-menu/index.js +16 -0
- package/dist/components/data-table/createRowModel.d.ts +20 -0
- package/dist/components/data-table/createRowModel.js +46 -0
- package/dist/components/data-table/createRowModel.js.map +1 -0
- package/dist/components/data-table/createTable.d.ts +16 -0
- package/dist/components/data-table/createTable.js +94 -0
- package/dist/components/data-table/createTable.js.map +1 -0
- package/dist/components/data-table/createTableColumns.d.ts +19 -0
- package/dist/components/data-table/createTableColumns.js +68 -0
- package/dist/components/data-table/createTableColumns.js.map +1 -0
- package/dist/components/data-table/createTableHeaders.d.ts +10 -0
- package/dist/components/data-table/createTableHeaders.js +26 -0
- package/dist/components/data-table/createTableHeaders.js.map +1 -0
- package/dist/components/data-table/createTableRows.d.ts +16 -0
- package/dist/components/data-table/createTableRows.js +57 -0
- package/dist/components/data-table/createTableRows.js.map +1 -0
- package/dist/components/data-table/createTableSelection.d.ts +12 -0
- package/dist/components/data-table/createTableSelection.js +23 -0
- package/dist/components/data-table/createTableSelection.js.map +1 -0
- package/dist/components/data-table/createTableState.d.ts +16 -0
- package/dist/components/data-table/createTableState.js +34 -0
- package/dist/components/data-table/createTableState.js.map +1 -0
- package/dist/components/data-table/data-table.types.d.ts +123 -0
- package/dist/components/data-table/data-table.utils.d.ts +4 -0
- package/dist/components/data-table/data-table.utils.js +11 -0
- package/dist/components/data-table/data-table.utils.js.map +1 -0
- package/dist/components/data-table/index.d.ts +2 -0
- package/dist/components/data-table/index.js +2 -0
- package/dist/components/date-picker/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/dialog/Dialog/Dialog.context.js.map +1 -1
- package/dist/components/dialog/Dialog/Dialog.d.ts +1 -1
- package/dist/components/dialog/Dialog/Dialog.js +18 -16
- package/dist/components/dialog/Dialog/Dialog.js.map +1 -1
- package/dist/components/dialog/Dialog/Dialog.types.d.ts +5 -0
- package/dist/components/dialog/DialogClose/DialogClose.d.ts +1 -1
- package/dist/components/dialog/DialogClose/DialogClose.js +5 -5
- package/dist/components/dialog/DialogClose/DialogClose.js.map +1 -1
- package/dist/components/dialog/DialogClose/DialogClose.styles.js.map +1 -1
- package/dist/components/dialog/DialogContent/DialogContent.context.js.map +1 -1
- package/dist/components/dialog/DialogContent/DialogContent.d.ts +1 -1
- package/dist/components/dialog/DialogContent/DialogContent.js +23 -55
- package/dist/components/dialog/DialogContent/DialogContent.js.map +1 -1
- package/dist/components/dialog/DialogContent/DialogContent.styles.js.map +1 -1
- package/dist/components/dialog/DialogDescription/DialogDescription.d.ts +1 -1
- package/dist/components/dialog/DialogDescription/DialogDescription.js.map +1 -1
- package/dist/components/dialog/DialogDescription/DialogDescription.styles.js.map +1 -1
- package/dist/components/dialog/DialogFooter/DialogFooter.d.ts +1 -1
- package/dist/components/dialog/DialogFooter/DialogFooter.js.map +1 -1
- package/dist/components/dialog/DialogFooter/DialogFooter.styles.js.map +1 -1
- package/dist/components/dialog/DialogHeader/DialogHeader.d.ts +1 -1
- package/dist/components/dialog/DialogHeader/DialogHeader.js.map +1 -1
- package/dist/components/dialog/DialogHeader/DialogHeader.styles.js.map +1 -1
- package/dist/components/dialog/DialogOverlay/DialogOverlay.d.ts +1 -1
- package/dist/components/dialog/DialogOverlay/DialogOverlay.js +18 -10
- package/dist/components/dialog/DialogOverlay/DialogOverlay.js.map +1 -1
- package/dist/components/dialog/DialogOverlay/DialogOverlay.styles.js.map +1 -1
- package/dist/components/dialog/DialogOverlay/DialogOverlay.types.d.ts +4 -1
- package/dist/components/dialog/DialogPortal/DialogPortal.d.ts +1 -1
- package/dist/components/dialog/DialogPortal/DialogPortal.js.map +1 -1
- package/dist/components/dialog/DialogSurface/DialogSurface.d.ts +2 -0
- package/dist/components/dialog/DialogSurface/DialogSurface.js +77 -0
- package/dist/components/dialog/DialogSurface/DialogSurface.js.map +1 -0
- package/dist/components/dialog/DialogSurface/DialogSurface.types.d.ts +15 -0
- package/dist/components/dialog/DialogSurface/index.d.ts +2 -0
- package/dist/components/dialog/DialogTitle/DialogTitle.d.ts +1 -1
- package/dist/components/dialog/DialogTitle/DialogTitle.js.map +1 -1
- package/dist/components/dialog/DialogTitle/DialogTitle.styles.js.map +1 -1
- package/dist/components/dialog/DialogTrigger/DialogTrigger.d.ts +1 -1
- package/dist/components/dialog/DialogTrigger/DialogTrigger.js.map +1 -1
- package/dist/components/dialog/DialogTrigger/useDialogTrigger.js.map +1 -1
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/dialog/index.js +9 -8
- package/dist/components/dropdown-menu/DropdownMenu/DropdownMenu.context.d.ts +3 -0
- package/dist/components/dropdown-menu/DropdownMenu/DropdownMenu.context.js +12 -0
- package/dist/components/dropdown-menu/DropdownMenu/DropdownMenu.context.js.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenu/DropdownMenu.d.ts +9 -0
- package/dist/components/dropdown-menu/DropdownMenu/DropdownMenu.js +82 -0
- package/dist/components/dropdown-menu/DropdownMenu/DropdownMenu.js.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenu/DropdownMenu.types.d.ts +26 -0
- package/dist/components/dropdown-menu/DropdownMenu/index.d.ts +3 -0
- package/dist/components/dropdown-menu/DropdownMenuCheckboxItem/DropdownMenuCheckboxItem.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuCheckboxItem/DropdownMenuCheckboxItem.js +78 -0
- package/dist/components/dropdown-menu/DropdownMenuCheckboxItem/DropdownMenuCheckboxItem.js.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuCheckboxItem/DropdownMenuCheckboxItem.types.d.ts +14 -0
- package/dist/components/dropdown-menu/DropdownMenuCheckboxItem/index.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuContent/DropdownMenuContent.d.ts +6 -0
- package/dist/components/dropdown-menu/DropdownMenuContent/DropdownMenuContent.js +64 -0
- package/dist/components/dropdown-menu/DropdownMenuContent/DropdownMenuContent.js.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuContent/DropdownMenuContent.types.d.ts +13 -0
- package/dist/components/dropdown-menu/DropdownMenuContent/index.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuGroup/DropdownMenuGroup.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuGroup/DropdownMenuGroup.js +29 -0
- package/dist/components/dropdown-menu/DropdownMenuGroup/DropdownMenuGroup.js.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuGroup/DropdownMenuGroup.types.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuGroup/index.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuItem/DropdownMenuItem.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuItem/DropdownMenuItem.js +59 -0
- package/dist/components/dropdown-menu/DropdownMenuItem/DropdownMenuItem.js.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuItem/DropdownMenuItem.types.d.ts +14 -0
- package/dist/components/dropdown-menu/DropdownMenuItem/index.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuLabel/DropdownMenuLabel.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuLabel/DropdownMenuLabel.js +31 -0
- package/dist/components/dropdown-menu/DropdownMenuLabel/DropdownMenuLabel.js.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuLabel/DropdownMenuLabel.types.d.ts +4 -0
- package/dist/components/dropdown-menu/DropdownMenuLabel/index.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuPortal/DropdownMenuPortal.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuPortal/DropdownMenuPortal.js +10 -0
- package/dist/components/dropdown-menu/DropdownMenuPortal/DropdownMenuPortal.js.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuPortal/DropdownMenuPortal.types.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuPortal/index.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuRadioGroup/DropdownMenuRadioGroup.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuRadioGroup/DropdownMenuRadioGroup.js +48 -0
- package/dist/components/dropdown-menu/DropdownMenuRadioGroup/DropdownMenuRadioGroup.js.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuRadioGroup/DropdownMenuRadioGroup.types.d.ts +10 -0
- package/dist/components/dropdown-menu/DropdownMenuRadioGroup/index.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuRadioItem/DropdownMenuRadioItem.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuRadioItem/DropdownMenuRadioItem.js +74 -0
- package/dist/components/dropdown-menu/DropdownMenuRadioItem/DropdownMenuRadioItem.js.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuRadioItem/DropdownMenuRadioItem.types.d.ts +11 -0
- package/dist/components/dropdown-menu/DropdownMenuRadioItem/index.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuSeparator/DropdownMenuSeparator.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuSeparator/DropdownMenuSeparator.js +25 -0
- package/dist/components/dropdown-menu/DropdownMenuSeparator/DropdownMenuSeparator.js.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuSeparator/DropdownMenuSeparator.types.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuSeparator/index.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuShortcut/DropdownMenuShortcut.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuShortcut/DropdownMenuShortcut.js +19 -0
- package/dist/components/dropdown-menu/DropdownMenuShortcut/DropdownMenuShortcut.js.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuShortcut/DropdownMenuShortcut.types.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuShortcut/index.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuSub/DropdownMenuSub.d.ts +4 -0
- package/dist/components/dropdown-menu/DropdownMenuSub/DropdownMenuSub.js +10 -0
- package/dist/components/dropdown-menu/DropdownMenuSub/DropdownMenuSub.js.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuSub/DropdownMenuSub.types.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuSub/index.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuSubContent/DropdownMenuSubContent.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuSubContent/DropdownMenuSubContent.js +82 -0
- package/dist/components/dropdown-menu/DropdownMenuSubContent/DropdownMenuSubContent.js.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuSubContent/DropdownMenuSubContent.types.d.ts +15 -0
- package/dist/components/dropdown-menu/DropdownMenuSubContent/index.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger/DropdownMenuSubTrigger.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger/DropdownMenuSubTrigger.js +96 -0
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger/DropdownMenuSubTrigger.js.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger/DropdownMenuSubTrigger.types.d.ts +12 -0
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger/index.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger/DropdownMenuTrigger.d.ts +5 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger/DropdownMenuTrigger.js +42 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger/DropdownMenuTrigger.js.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger/DropdownMenuTrigger.types.d.ts +4 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger/index.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger/useDropdownMenuTrigger.d.ts +4 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger/useDropdownMenuTrigger.js +30 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger/useDropdownMenuTrigger.js.map +1 -0
- package/dist/components/dropdown-menu/dropdown-menu.styles.d.ts +11 -0
- package/dist/components/dropdown-menu/dropdown-menu.styles.js +6 -0
- package/dist/components/dropdown-menu/dropdown-menu.styles.js.map +1 -0
- package/dist/components/dropdown-menu/index.d.ts +30 -0
- package/dist/components/dropdown-menu/index.js +16 -0
- package/dist/components/empty/Empty/Empty.d.ts +1 -1
- package/dist/components/empty/Empty/Empty.js.map +1 -1
- package/dist/components/empty/EmptyContent/EmptyContent.d.ts +1 -1
- package/dist/components/empty/EmptyContent/EmptyContent.js.map +1 -1
- package/dist/components/empty/EmptyDescription/EmptyDescription.d.ts +1 -1
- package/dist/components/empty/EmptyDescription/EmptyDescription.js.map +1 -1
- package/dist/components/empty/EmptyHeader/EmptyHeader.d.ts +1 -1
- package/dist/components/empty/EmptyHeader/EmptyHeader.js.map +1 -1
- package/dist/components/empty/EmptyMedia/EmptyMedia.d.ts +1 -1
- package/dist/components/empty/EmptyMedia/EmptyMedia.js.map +1 -1
- package/dist/components/empty/EmptyMedia/EmptyMedia.styles.js.map +1 -1
- package/dist/components/empty/EmptyTitle/EmptyTitle.d.ts +1 -1
- package/dist/components/empty/EmptyTitle/EmptyTitle.js.map +1 -1
- package/dist/components/field/Field/Field.d.ts +1 -1
- package/dist/components/field/Field/Field.js.map +1 -1
- package/dist/components/field/Field/Field.styles.js.map +1 -1
- package/dist/components/field/FieldContent/FieldContent.d.ts +1 -1
- package/dist/components/field/FieldContent/FieldContent.js.map +1 -1
- package/dist/components/field/FieldDescription/FieldDescription.d.ts +1 -1
- package/dist/components/field/FieldDescription/FieldDescription.js.map +1 -1
- package/dist/components/field/FieldError/FieldError.d.ts +1 -1
- package/dist/components/field/FieldError/FieldError.js.map +1 -1
- package/dist/components/field/FieldGroup/FieldGroup.d.ts +1 -1
- package/dist/components/field/FieldGroup/FieldGroup.js.map +1 -1
- package/dist/components/field/FieldLabel/FieldLabel.d.ts +1 -1
- package/dist/components/field/FieldLabel/FieldLabel.js.map +1 -1
- package/dist/components/field/FieldLegend/FieldLegend.d.ts +1 -1
- package/dist/components/field/FieldLegend/FieldLegend.js.map +1 -1
- package/dist/components/field/FieldSeparator/FieldSeparator.d.ts +1 -1
- package/dist/components/field/FieldSeparator/FieldSeparator.js.map +1 -1
- package/dist/components/field/FieldSet/FieldSet.d.ts +1 -1
- package/dist/components/field/FieldSet/FieldSet.js.map +1 -1
- package/dist/components/field/FieldTitle/FieldTitle.d.ts +1 -1
- package/dist/components/field/FieldTitle/FieldTitle.js.map +1 -1
- package/dist/components/image/Image.config.js.map +1 -1
- package/dist/components/image/Image.js.map +1 -1
- package/dist/components/image/Image.utils.js +2 -2
- package/dist/components/image/Image.utils.js.map +1 -1
- package/dist/components/image/ImageElement.js.map +1 -1
- package/dist/components/image/ImagePreload.js.map +1 -1
- package/dist/components/input/Input.js.map +1 -1
- package/dist/components/input-group/InputGroup/InputGroup.d.ts +1 -1
- package/dist/components/input-group/InputGroup/InputGroup.js.map +1 -1
- package/dist/components/input-group/InputGroupAddon/InputGroupAddon.d.ts +1 -1
- package/dist/components/input-group/InputGroupAddon/InputGroupAddon.js.map +1 -1
- package/dist/components/input-group/InputGroupAddon/InputGroupAddon.styles.js.map +1 -1
- package/dist/components/input-group/InputGroupButton/InputGroupButton.d.ts +1 -1
- package/dist/components/input-group/InputGroupButton/InputGroupButton.js.map +1 -1
- package/dist/components/input-group/InputGroupButton/InputGroupButton.styles.js.map +1 -1
- package/dist/components/input-group/InputGroupInput/InputGroupInput.d.ts +1 -1
- package/dist/components/input-group/InputGroupInput/InputGroupInput.js.map +1 -1
- package/dist/components/input-group/InputGroupText/InputGroupText.d.ts +1 -1
- package/dist/components/input-group/InputGroupText/InputGroupText.js.map +1 -1
- package/dist/components/input-group/InputGroupTextarea/InputGroupTextarea.d.ts +1 -1
- package/dist/components/input-group/InputGroupTextarea/InputGroupTextarea.js.map +1 -1
- package/dist/components/item/Item/Item.d.ts +1 -1
- package/dist/components/item/Item/Item.js.map +1 -1
- package/dist/components/item/Item/Item.styles.js.map +1 -1
- package/dist/components/item/ItemActions/ItemActions.d.ts +1 -1
- package/dist/components/item/ItemActions/ItemActions.js.map +1 -1
- package/dist/components/item/ItemContent/ItemContent.d.ts +1 -1
- package/dist/components/item/ItemContent/ItemContent.js.map +1 -1
- package/dist/components/item/ItemDescription/ItemDescription.d.ts +1 -1
- package/dist/components/item/ItemDescription/ItemDescription.js.map +1 -1
- package/dist/components/item/ItemFooter/ItemFooter.d.ts +1 -1
- package/dist/components/item/ItemFooter/ItemFooter.js.map +1 -1
- package/dist/components/item/ItemGroup/ItemGroup.d.ts +1 -1
- package/dist/components/item/ItemGroup/ItemGroup.js.map +1 -1
- package/dist/components/item/ItemHeader/ItemHeader.d.ts +1 -1
- package/dist/components/item/ItemHeader/ItemHeader.js.map +1 -1
- package/dist/components/item/ItemMedia/ItemMedia.d.ts +1 -1
- package/dist/components/item/ItemMedia/ItemMedia.js.map +1 -1
- package/dist/components/item/ItemMedia/ItemMedia.styles.js.map +1 -1
- package/dist/components/item/ItemSeparator/ItemSeparator.d.ts +1 -1
- package/dist/components/item/ItemSeparator/ItemSeparator.js.map +1 -1
- package/dist/components/item/ItemTitle/ItemTitle.d.ts +1 -1
- package/dist/components/item/ItemTitle/ItemTitle.js.map +1 -1
- package/dist/components/kbd/Kbd.d.ts +2 -2
- package/dist/components/kbd/Kbd.js.map +1 -1
- package/dist/components/label/Label.d.ts +1 -1
- package/dist/components/label/Label.js.map +1 -1
- package/dist/components/number-input/NumberInput/NumberInput.d.ts +19 -0
- package/dist/components/number-input/NumberInput/NumberInput.js +153 -0
- package/dist/components/number-input/NumberInput/NumberInput.js.map +1 -0
- package/dist/components/number-input/NumberInput/NumberInput.types.d.ts +41 -0
- package/dist/components/number-input/NumberInput/NumberInput.utils.d.ts +10 -0
- package/dist/components/number-input/NumberInput/NumberInput.utils.js +24 -0
- package/dist/components/number-input/NumberInput/NumberInput.utils.js.map +1 -0
- package/dist/components/number-input/NumberInput/create-change-event-details.d.ts +8 -0
- package/dist/components/number-input/NumberInput/create-change-event-details.js +25 -0
- package/dist/components/number-input/NumberInput/create-change-event-details.js.map +1 -0
- package/dist/components/number-input/NumberInput/index.d.ts +2 -0
- package/dist/components/number-input/index.d.ts +2 -0
- package/dist/components/number-input/index.js +2 -0
- package/dist/components/pagination/Pagination/Pagination.d.ts +1 -1
- package/dist/components/pagination/Pagination/Pagination.js.map +1 -1
- package/dist/components/pagination/PaginationContent/PaginationContent.d.ts +1 -1
- package/dist/components/pagination/PaginationContent/PaginationContent.js.map +1 -1
- package/dist/components/pagination/PaginationEllipsis/PaginationEllipsis.d.ts +1 -1
- package/dist/components/pagination/PaginationEllipsis/PaginationEllipsis.js.map +1 -1
- package/dist/components/pagination/PaginationItem/PaginationItem.d.ts +1 -1
- package/dist/components/pagination/PaginationItem/PaginationItem.js.map +1 -1
- package/dist/components/pagination/PaginationLink/PaginationLink.d.ts +1 -1
- package/dist/components/pagination/PaginationLink/PaginationLink.js +1 -1
- package/dist/components/pagination/PaginationLink/PaginationLink.js.map +1 -1
- package/dist/components/pagination/PaginationNext/PaginationNext.d.ts +1 -1
- package/dist/components/pagination/PaginationNext/PaginationNext.js.map +1 -1
- package/dist/components/pagination/PaginationPrevious/PaginationPrevious.d.ts +1 -1
- package/dist/components/pagination/PaginationPrevious/PaginationPrevious.js.map +1 -1
- package/dist/components/popover/Popover/Popover.context.js.map +1 -1
- package/dist/components/popover/Popover/Popover.js +25 -22
- package/dist/components/popover/Popover/Popover.js.map +1 -1
- package/dist/components/popover/Popover/Popover.types.d.ts +5 -0
- package/dist/components/popover/PopoverContent/PopoverContent.d.ts +1 -1
- package/dist/components/popover/PopoverContent/PopoverContent.js.map +1 -1
- package/dist/components/popover/PopoverContent/PopoverContent.utils.js.map +1 -1
- package/dist/components/popover/PopoverContent/usePopoverContent.js.map +1 -1
- package/dist/components/popover/PopoverDescription/PopoverDescription.d.ts +1 -1
- package/dist/components/popover/PopoverDescription/PopoverDescription.js.map +1 -1
- package/dist/components/popover/PopoverHeader/PopoverHeader.d.ts +1 -1
- package/dist/components/popover/PopoverHeader/PopoverHeader.js.map +1 -1
- package/dist/components/popover/PopoverTitle/PopoverTitle.d.ts +1 -1
- package/dist/components/popover/PopoverTitle/PopoverTitle.js.map +1 -1
- package/dist/components/popover/PopoverTrigger/PopoverTrigger.d.ts +1 -1
- package/dist/components/popover/PopoverTrigger/PopoverTrigger.js.map +1 -1
- package/dist/components/popover/PopoverTrigger/usePopoverTrigger.js.map +1 -1
- package/dist/components/progress/Progress/Progress.context.js.map +1 -1
- package/dist/components/progress/Progress/Progress.d.ts +1 -1
- package/dist/components/progress/Progress/Progress.js.map +1 -1
- package/dist/components/progress/Progress/Progress.styles.js.map +1 -1
- package/dist/components/progress/ProgressIndicator/ProgressIndicator.d.ts +1 -1
- package/dist/components/progress/ProgressIndicator/ProgressIndicator.js.map +1 -1
- package/dist/components/progress/ProgressIndicator/ProgressIndicator.styles.js.map +1 -1
- package/dist/components/progress/ProgressLabel/ProgressLabel.d.ts +1 -1
- package/dist/components/progress/ProgressLabel/ProgressLabel.js.map +1 -1
- package/dist/components/progress/ProgressLabel/ProgressLabel.styles.js.map +1 -1
- package/dist/components/progress/ProgressTrack/ProgressTrack.d.ts +1 -1
- package/dist/components/progress/ProgressTrack/ProgressTrack.js.map +1 -1
- package/dist/components/progress/ProgressTrack/ProgressTrack.styles.js.map +1 -1
- package/dist/components/progress/ProgressValue/ProgressValue.d.ts +1 -1
- package/dist/components/progress/ProgressValue/ProgressValue.js.map +1 -1
- package/dist/components/progress/ProgressValue/ProgressValue.styles.js.map +1 -1
- package/dist/components/radio-group/RadioGroup/RadioGroup.context.js.map +1 -1
- package/dist/components/radio-group/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/components/radio-group/RadioGroupItem/RadioGroupItem.d.ts +1 -1
- package/dist/components/radio-group/RadioGroupItem/RadioGroupItem.js.map +1 -1
- package/dist/components/scroll-area/ScrollArea/ScrollArea.context.js.map +1 -1
- package/dist/components/scroll-area/ScrollArea/ScrollArea.d.ts +1 -1
- package/dist/components/scroll-area/ScrollArea/ScrollArea.js.map +1 -1
- package/dist/components/scroll-area/ScrollArea/ScrollArea.utils.js.map +1 -1
- package/dist/components/scroll-area/ScrollBar/ScrollBar.d.ts +1 -1
- package/dist/components/scroll-area/ScrollBar/ScrollBar.js.map +1 -1
- package/dist/components/scroll-arrows/ScrollArrowButton.d.ts +9 -0
- package/dist/components/scroll-arrows/ScrollArrowButton.js +51 -0
- package/dist/components/scroll-arrows/ScrollArrowButton.js.map +1 -0
- package/dist/components/scroll-arrows/ScrollArrows.d.ts +8 -0
- package/dist/components/scroll-arrows/ScrollArrows.js +35 -0
- package/dist/components/scroll-arrows/ScrollArrows.js.map +1 -0
- package/dist/components/scroll-arrows/ScrollArrows.types.d.ts +17 -0
- package/dist/components/scroll-arrows/index.d.ts +2 -0
- package/dist/components/scroll-arrows/index.js +2 -0
- package/dist/components/select/Select/Select.context.js.map +1 -1
- package/dist/components/select/Select/Select.js +36 -33
- package/dist/components/select/Select/Select.js.map +1 -1
- package/dist/components/select/Select/Select.types.d.ts +5 -0
- package/dist/components/select/SelectContent/SelectContent.d.ts +1 -1
- package/dist/components/select/SelectContent/SelectContent.js +45 -40
- package/dist/components/select/SelectContent/SelectContent.js.map +1 -1
- package/dist/components/select/SelectContent/SelectContent.utils.js.map +1 -1
- package/dist/components/select/SelectContent/useSelectContent.js.map +1 -1
- package/dist/components/select/SelectGroup/SelectGroup.d.ts +1 -1
- package/dist/components/select/SelectGroup/SelectGroup.js.map +1 -1
- package/dist/components/select/SelectItem/SelectItem.d.ts +1 -1
- package/dist/components/select/SelectItem/SelectItem.js.map +1 -1
- package/dist/components/select/SelectItem/useSelectItem.js.map +1 -1
- package/dist/components/select/SelectLabel/SelectLabel.d.ts +1 -1
- package/dist/components/select/SelectLabel/SelectLabel.js.map +1 -1
- package/dist/components/select/SelectSeparator/SelectSeparator.d.ts +1 -1
- package/dist/components/select/SelectSeparator/SelectSeparator.js.map +1 -1
- package/dist/components/select/SelectTrigger/SelectTrigger.d.ts +1 -1
- package/dist/components/select/SelectTrigger/SelectTrigger.js.map +1 -1
- package/dist/components/select/SelectTrigger/useSelectTrigger.js.map +1 -1
- package/dist/components/select/SelectValue/SelectValue.d.ts +1 -1
- package/dist/components/select/SelectValue/SelectValue.js.map +1 -1
- package/dist/components/separator/Separator.d.ts +1 -1
- package/dist/components/separator/Separator.js.map +1 -1
- package/dist/components/separator/Separator.styles.js.map +1 -1
- package/dist/components/sidebar/Sidebar/Sidebar.d.ts +1 -1
- package/dist/components/sidebar/Sidebar/Sidebar.js.map +1 -1
- package/dist/components/sidebar/SidebarContent/SidebarContent.d.ts +1 -1
- package/dist/components/sidebar/SidebarContent/SidebarContent.js.map +1 -1
- package/dist/components/sidebar/SidebarFooter/SidebarFooter.d.ts +1 -1
- package/dist/components/sidebar/SidebarFooter/SidebarFooter.js.map +1 -1
- package/dist/components/sidebar/SidebarGroup/SidebarGroup.d.ts +1 -1
- package/dist/components/sidebar/SidebarGroup/SidebarGroup.js.map +1 -1
- package/dist/components/sidebar/SidebarGroupAction/SidebarGroupAction.d.ts +1 -1
- package/dist/components/sidebar/SidebarGroupAction/SidebarGroupAction.js.map +1 -1
- package/dist/components/sidebar/SidebarGroupContent/SidebarGroupContent.d.ts +1 -1
- package/dist/components/sidebar/SidebarGroupContent/SidebarGroupContent.js.map +1 -1
- package/dist/components/sidebar/SidebarGroupLabel/SidebarGroupLabel.d.ts +1 -1
- package/dist/components/sidebar/SidebarGroupLabel/SidebarGroupLabel.js.map +1 -1
- package/dist/components/sidebar/SidebarHeader/SidebarHeader.d.ts +1 -1
- package/dist/components/sidebar/SidebarHeader/SidebarHeader.js.map +1 -1
- package/dist/components/sidebar/SidebarInput/SidebarInput.d.ts +1 -1
- package/dist/components/sidebar/SidebarInput/SidebarInput.js.map +1 -1
- package/dist/components/sidebar/SidebarInset/SidebarInset.d.ts +1 -1
- package/dist/components/sidebar/SidebarInset/SidebarInset.js.map +1 -1
- package/dist/components/sidebar/SidebarMenu/SidebarMenu.d.ts +1 -1
- package/dist/components/sidebar/SidebarMenu/SidebarMenu.js.map +1 -1
- package/dist/components/sidebar/SidebarMenuBadge/SidebarMenuBadge.d.ts +1 -1
- package/dist/components/sidebar/SidebarMenuBadge/SidebarMenuBadge.js.map +1 -1
- package/dist/components/sidebar/SidebarMenuButton/SidebarMenuButton.d.ts +1 -1
- package/dist/components/sidebar/SidebarMenuButton/SidebarMenuButton.js.map +1 -1
- package/dist/components/sidebar/SidebarMenuButton/SidebarMenuButton.styles.js.map +1 -1
- package/dist/components/sidebar/SidebarMenuItem/SidebarMenuItem.d.ts +1 -1
- package/dist/components/sidebar/SidebarMenuItem/SidebarMenuItem.js.map +1 -1
- package/dist/components/sidebar/SidebarMenuSkeleton/SidebarMenuSkeleton.d.ts +1 -1
- package/dist/components/sidebar/SidebarMenuSkeleton/SidebarMenuSkeleton.js.map +1 -1
- package/dist/components/sidebar/SidebarMenuSub/SidebarMenuSub.d.ts +1 -1
- package/dist/components/sidebar/SidebarMenuSub/SidebarMenuSub.js.map +1 -1
- package/dist/components/sidebar/SidebarMenuSubButton/SidebarMenuSubButton.d.ts +1 -1
- package/dist/components/sidebar/SidebarMenuSubButton/SidebarMenuSubButton.js.map +1 -1
- package/dist/components/sidebar/SidebarMenuSubItem/SidebarMenuSubItem.d.ts +1 -1
- package/dist/components/sidebar/SidebarMenuSubItem/SidebarMenuSubItem.js.map +1 -1
- package/dist/components/sidebar/SidebarProvider/SidebarProvider.consts.js.map +1 -1
- package/dist/components/sidebar/SidebarProvider/SidebarProvider.context.js.map +1 -1
- package/dist/components/sidebar/SidebarProvider/SidebarProvider.d.ts +1 -1
- package/dist/components/sidebar/SidebarProvider/SidebarProvider.js.map +1 -1
- package/dist/components/sidebar/SidebarRail/SidebarRail.d.ts +1 -1
- package/dist/components/sidebar/SidebarRail/SidebarRail.js.map +1 -1
- package/dist/components/sidebar/SidebarSeparator/SidebarSeparator.d.ts +1 -1
- package/dist/components/sidebar/SidebarSeparator/SidebarSeparator.js.map +1 -1
- package/dist/components/sidebar/SidebarTrigger/SidebarTrigger.d.ts +1 -1
- package/dist/components/sidebar/SidebarTrigger/SidebarTrigger.js.map +1 -1
- package/dist/components/skeleton/Skeleton.d.ts +1 -1
- package/dist/components/skeleton/Skeleton.js.map +1 -1
- package/dist/components/slider/Slider/Slider.context.js.map +1 -1
- package/dist/components/slider/Slider/Slider.d.ts +1 -1
- package/dist/components/slider/Slider/Slider.js.map +1 -1
- package/dist/components/slider/Slider/Slider.styles.js.map +1 -1
- package/dist/components/slider/Slider/useSlider.js.map +1 -1
- package/dist/components/slider/SliderControl/SliderControl.d.ts +1 -1
- package/dist/components/slider/SliderControl/SliderControl.js.map +1 -1
- package/dist/components/slider/SliderControl/SliderControl.styles.js.map +1 -1
- package/dist/components/slider/SliderControl/useSliderControl.js.map +1 -1
- package/dist/components/slider/SliderIndicator/SliderIndicator.d.ts +1 -1
- package/dist/components/slider/SliderIndicator/SliderIndicator.js.map +1 -1
- package/dist/components/slider/SliderIndicator/SliderIndicator.styles.js.map +1 -1
- package/dist/components/slider/SliderIndicator/useSliderIndicator.js.map +1 -1
- package/dist/components/slider/SliderThumb/SliderThumb.d.ts +1 -1
- package/dist/components/slider/SliderThumb/SliderThumb.js.map +1 -1
- package/dist/components/slider/SliderThumb/SliderThumb.styles.js.map +1 -1
- package/dist/components/slider/SliderThumb/useSliderThumb.js.map +1 -1
- package/dist/components/slider/SliderTrack/SliderTrack.d.ts +1 -1
- package/dist/components/slider/SliderTrack/SliderTrack.js.map +1 -1
- package/dist/components/slider/SliderTrack/SliderTrack.styles.js.map +1 -1
- package/dist/components/spinner/Spinner.d.ts +1 -1
- package/dist/components/spinner/Spinner.js.map +1 -1
- package/dist/components/spinner/Spinner.styles.js.map +1 -1
- package/dist/components/switch/Switch.d.ts +1 -1
- package/dist/components/switch/Switch.js.map +1 -1
- package/dist/components/switch/Switch.styles.js.map +1 -1
- package/dist/components/table/Table/Table.d.ts +3 -0
- package/dist/components/table/Table/Table.js +24 -0
- package/dist/components/table/Table/Table.js.map +1 -0
- package/dist/components/table/Table/Table.types.d.ts +2 -0
- package/dist/components/table/Table/index.d.ts +2 -0
- package/dist/components/table/TableBody/TableBody.d.ts +2 -0
- package/dist/components/table/TableBody/TableBody.js +24 -0
- package/dist/components/table/TableBody/TableBody.js.map +1 -0
- package/dist/components/table/TableBody/TableBody.types.d.ts +2 -0
- package/dist/components/table/TableBody/index.d.ts +2 -0
- package/dist/components/table/TableCaption/TableCaption.d.ts +2 -0
- package/dist/components/table/TableCaption/TableCaption.js +24 -0
- package/dist/components/table/TableCaption/TableCaption.js.map +1 -0
- package/dist/components/table/TableCaption/TableCaption.types.d.ts +2 -0
- package/dist/components/table/TableCaption/index.d.ts +2 -0
- package/dist/components/table/TableCell/TableCell.d.ts +2 -0
- package/dist/components/table/TableCell/TableCell.js +24 -0
- package/dist/components/table/TableCell/TableCell.js.map +1 -0
- package/dist/components/table/TableCell/TableCell.types.d.ts +2 -0
- package/dist/components/table/TableCell/index.d.ts +2 -0
- package/dist/components/table/TableFooter/TableFooter.d.ts +2 -0
- package/dist/components/table/TableFooter/TableFooter.js +24 -0
- package/dist/components/table/TableFooter/TableFooter.js.map +1 -0
- package/dist/components/table/TableFooter/TableFooter.types.d.ts +2 -0
- package/dist/components/table/TableFooter/index.d.ts +2 -0
- package/dist/components/table/TableHead/TableHead.d.ts +2 -0
- package/dist/components/table/TableHead/TableHead.js +24 -0
- package/dist/components/table/TableHead/TableHead.js.map +1 -0
- package/dist/components/table/TableHead/TableHead.types.d.ts +2 -0
- package/dist/components/table/TableHead/index.d.ts +2 -0
- package/dist/components/table/TableHeader/TableHeader.d.ts +2 -0
- package/dist/components/table/TableHeader/TableHeader.js +24 -0
- package/dist/components/table/TableHeader/TableHeader.js.map +1 -0
- package/dist/components/table/TableHeader/TableHeader.types.d.ts +2 -0
- package/dist/components/table/TableHeader/index.d.ts +2 -0
- package/dist/components/table/TableRow/TableRow.d.ts +2 -0
- package/dist/components/table/TableRow/TableRow.js +24 -0
- package/dist/components/table/TableRow/TableRow.js.map +1 -0
- package/dist/components/table/TableRow/TableRow.types.d.ts +2 -0
- package/dist/components/table/TableRow/index.d.ts +2 -0
- package/dist/components/table/index.d.ts +16 -0
- package/dist/components/table/index.js +9 -0
- package/dist/components/tabs/Tabs/Tabs.context.d.ts +1 -1
- package/dist/components/tabs/Tabs/Tabs.context.js.map +1 -1
- package/dist/components/tabs/Tabs/Tabs.d.ts +1 -1
- package/dist/components/tabs/Tabs/Tabs.js.map +1 -1
- package/dist/components/tabs/Tabs/call-event-handler.js.map +1 -1
- package/dist/components/tabs/Tabs/useTabsKeyboard.js.map +1 -1
- package/dist/components/tabs/TabsContent/TabsContent.js.map +1 -1
- package/dist/components/tabs/TabsList/TabsList.context.js.map +1 -1
- package/dist/components/tabs/TabsList/TabsList.d.ts +1 -1
- package/dist/components/tabs/TabsList/TabsList.js.map +1 -1
- package/dist/components/tabs/TabsList/TabsList.styles.js.map +1 -1
- package/dist/components/tabs/TabsTrigger/TabsTrigger.d.ts +1 -1
- package/dist/components/tabs/TabsTrigger/TabsTrigger.js.map +1 -1
- package/dist/components/tabs/TabsTrigger/TabsTrigger.styles.js.map +1 -1
- package/dist/components/textarea/Textarea.d.ts +1 -1
- package/dist/components/textarea/Textarea.js.map +1 -1
- package/dist/components/time-picker/TimePicker/TimePicker.context.d.ts +29 -0
- package/dist/components/time-picker/TimePicker/TimePicker.context.js +49 -0
- package/dist/components/time-picker/TimePicker/TimePicker.context.js.map +1 -0
- package/dist/components/time-picker/TimePicker/TimePicker.d.ts +23 -0
- package/dist/components/time-picker/TimePicker/TimePicker.js +52 -0
- package/dist/components/time-picker/TimePicker/TimePicker.js.map +1 -0
- package/dist/components/time-picker/TimePicker/TimePicker.types.d.ts +91 -0
- package/dist/components/time-picker/TimePicker/create-change-event-details.d.ts +8 -0
- package/dist/components/time-picker/TimePicker/create-change-event-details.js +25 -0
- package/dist/components/time-picker/TimePicker/create-change-event-details.js.map +1 -0
- package/dist/components/time-picker/TimePicker/index.d.ts +4 -0
- package/dist/components/time-picker/TimePicker/time-picker.utils.d.ts +28 -0
- package/dist/components/time-picker/TimePicker/time-picker.utils.js +103 -0
- package/dist/components/time-picker/TimePicker/time-picker.utils.js.map +1 -0
- package/dist/components/time-picker/TimePickerColumn/TimePickerColumn.d.ts +10 -0
- package/dist/components/time-picker/TimePickerColumn/TimePickerColumn.js +60 -0
- package/dist/components/time-picker/TimePickerColumn/TimePickerColumn.js.map +1 -0
- package/dist/components/time-picker/TimePickerColumn/TimePickerColumn.types.d.ts +8 -0
- package/dist/components/time-picker/TimePickerColumn/index.d.ts +2 -0
- package/dist/components/time-picker/TimePickerColumn/useTimePickerColumn.d.ts +16 -0
- package/dist/components/time-picker/TimePickerColumn/useTimePickerColumn.js +75 -0
- package/dist/components/time-picker/TimePickerColumn/useTimePickerColumn.js.map +1 -0
- package/dist/components/time-picker/TimePickerContent/TimePickerContent.d.ts +7 -0
- package/dist/components/time-picker/TimePickerContent/TimePickerContent.js +48 -0
- package/dist/components/time-picker/TimePickerContent/TimePickerContent.js.map +1 -0
- package/dist/components/time-picker/TimePickerContent/TimePickerContent.types.d.ts +11 -0
- package/dist/components/time-picker/TimePickerContent/index.d.ts +2 -0
- package/dist/components/time-picker/TimePickerOption/TimePickerOption.d.ts +9 -0
- package/dist/components/time-picker/TimePickerOption/TimePickerOption.js +52 -0
- package/dist/components/time-picker/TimePickerOption/TimePickerOption.js.map +1 -0
- package/dist/components/time-picker/TimePickerOption/TimePickerOption.types.d.ts +11 -0
- package/dist/components/time-picker/TimePickerOption/index.d.ts +2 -0
- package/dist/components/time-picker/TimePickerTrigger/TimePickerTrigger.d.ts +9 -0
- package/dist/components/time-picker/TimePickerTrigger/TimePickerTrigger.js +37 -0
- package/dist/components/time-picker/TimePickerTrigger/TimePickerTrigger.js.map +1 -0
- package/dist/components/time-picker/TimePickerTrigger/TimePickerTrigger.types.d.ts +5 -0
- package/dist/components/time-picker/TimePickerTrigger/index.d.ts +2 -0
- package/dist/components/time-picker/index.d.ts +10 -0
- package/dist/components/time-picker/index.js +7 -0
- package/dist/components/toast/Toast/Toast.js.map +1 -1
- package/dist/components/toast/Toast/Toast.styles.js.map +1 -1
- package/dist/components/toast/Toast/Toast.types.js.map +1 -1
- package/dist/components/toast/Toaster/Toaster.js.map +1 -1
- package/dist/components/toast/Toaster/Toaster.styles.js.map +1 -1
- package/dist/components/toast/Toaster/Toaster.utils.js.map +1 -1
- package/dist/components/toast/state/toast.js.map +1 -1
- package/dist/components/toggle/Toggle/Toggle.js.map +1 -1
- package/dist/components/toggle/Toggle/Toggle.styles.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroup/ToggleGroup.context.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroup/ToggleGroup.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroup/ToggleGroup.styles.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroup/create-change-event-details.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroup/useToggleGroupKeyboard.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroupItem/ToggleGroupItem.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroupItem/ToggleGroupItem.styles.js.map +1 -1
- package/dist/components/toggle-group/call-event-handler.js.map +1 -1
- package/dist/components/tooltip/Tooltip/Tooltip.context.js.map +1 -1
- package/dist/components/tooltip/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/tooltip/TooltipArrow/TooltipArrow.d.ts +1 -1
- package/dist/components/tooltip/TooltipArrow/TooltipArrow.js.map +1 -1
- package/dist/components/tooltip/TooltipContent/TooltipContent.context.js.map +1 -1
- package/dist/components/tooltip/TooltipContent/TooltipContent.d.ts +1 -1
- package/dist/components/tooltip/TooltipContent/TooltipContent.js.map +1 -1
- package/dist/components/tooltip/TooltipContent/TooltipContent.utils.js.map +1 -1
- package/dist/components/tooltip/TooltipContent/useTooltipContent.js.map +1 -1
- package/dist/components/tooltip/TooltipGroup/TooltipGroup.context.js.map +1 -1
- package/dist/components/tooltip/TooltipGroup/TooltipGroup.d.ts +1 -1
- package/dist/components/tooltip/TooltipGroup/TooltipGroup.js.map +1 -1
- package/dist/components/tooltip/TooltipProvider/TooltipProvider.context.js.map +1 -1
- package/dist/components/tooltip/TooltipProvider/TooltipProvider.js.map +1 -1
- package/dist/components/tooltip/TooltipTrigger/TooltipTrigger.d.ts +1 -1
- package/dist/components/tooltip/TooltipTrigger/TooltipTrigger.js.map +1 -1
- package/dist/components/tooltip/TooltipTrigger/useTooltipTrigger.js.map +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +3 -1
- package/dist/hooks/useFontLoader.js.map +1 -1
- package/dist/hooks/useScrollEdges.d.ts +16 -0
- package/dist/hooks/useScrollEdges.js +34 -0
- package/dist/hooks/useScrollEdges.js.map +1 -0
- package/dist/hooks/useScrollLock.d.ts +16 -0
- package/dist/hooks/useScrollLock.js +61 -0
- package/dist/hooks/useScrollLock.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +251 -194
- package/dist/lib/positioner/auto-update.js.map +1 -1
- package/dist/lib/positioner/core/compute-position.js.map +1 -1
- package/dist/lib/positioner/core/placement.js.map +1 -1
- package/dist/lib/positioner/create-positioner.js.map +1 -1
- package/dist/lib/positioner/middleware/arrow.js.map +1 -1
- package/dist/lib/positioner/middleware/containing-block-offset.js.map +1 -1
- package/dist/lib/positioner/middleware/flip.js.map +1 -1
- package/dist/lib/positioner/middleware/hide.js.map +1 -1
- package/dist/lib/positioner/middleware/offset.js.map +1 -1
- package/dist/lib/positioner/middleware/shift.js.map +1 -1
- package/dist/lib/positioner/middleware/size.js.map +1 -1
- package/dist/lib/positioner/utils/dom.js.map +1 -1
- package/dist/lib/positioner/virtual-element.js +18 -0
- package/dist/lib/positioner/virtual-element.js.map +1 -0
- package/dist/ui.css +1 -1
- package/dist/utils/clsx.js.map +1 -1
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/ref.js.map +1 -1
- package/dist/utils/warn-once.js.map +1 -1
- package/package.json +6 -6
- package/dist/components/alert-dialog/AlertDialog/AlertDialog.context.d.ts +0 -10
- package/dist/components/alert-dialog/AlertDialog/AlertDialog.context.js +0 -11
- package/dist/components/alert-dialog/AlertDialog/AlertDialog.context.js.map +0 -1
- package/dist/components/alert-dialog/AlertDialogContent/AlertDialogContent.context.d.ts +0 -8
- package/dist/components/alert-dialog/AlertDialogContent/AlertDialogContent.context.js +0 -11
- package/dist/components/alert-dialog/AlertDialogContent/AlertDialogContent.context.js.map +0 -1
- package/dist/components/alert-dialog/AlertDialogOverlay/AlertDialogOverlay.styles.d.ts +0 -2
- package/dist/components/alert-dialog/AlertDialogOverlay/AlertDialogOverlay.styles.js +0 -6
- package/dist/components/alert-dialog/AlertDialogOverlay/AlertDialogOverlay.styles.js.map +0 -1
- package/dist/components/alert-dialog/AlertDialogTrigger/useAlertDialogTrigger.d.ts +0 -2
- package/dist/components/alert-dialog/AlertDialogTrigger/useAlertDialogTrigger.js +0 -26
- package/dist/components/alert-dialog/AlertDialogTrigger/useAlertDialogTrigger.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ItemSeparatorProps } from './ItemSeparator.types';
|
|
2
|
-
export declare const ItemSeparator: (props: ItemSeparatorProps) => import(
|
|
2
|
+
export declare const ItemSeparator: (props: ItemSeparatorProps) => import('solid-js').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemSeparator.js","names":["splitProps","clsx","ItemSeparatorProps","Separator","ItemSeparator","props","local","others","_$createComponent","_$mergeProps","orientation","class"],"sources":["../../../../src/components/item/ItemSeparator/ItemSeparator.tsx"],"sourcesContent":["import { splitProps } from \"solid-js\";\nimport { clsx } from \"~/utils\";\nimport type { ItemSeparatorProps } from \"./ItemSeparator.types\";\nimport { Separator } from \"~/components/separator\";\n\nexport const ItemSeparator = (props: ItemSeparatorProps) => {\n const [local, others] = splitProps(props, [\"class\", \"classList\"]);\n\n return (\n <Separator\n data-slot=\"item-separator\"\n orientation=\"horizontal\"\n class={clsx(\"my-2\", local.class)}\n {...others}\n />\n );\n};\n"],"mappings":";;;;;AAKA,IAAaI,KAAiBC,MAA8B;CAC1D,IAAM,CAACC,GAAOC,KAAUP,EAAWK,GAAO,CAAC,SAAS,WAAW,CAAC;CAEhE,OAAAG,EACGL,GAASM,EAAA;EAAA,aAAA;EAERC,aAAW;EAAA,
|
|
1
|
+
{"version":3,"file":"ItemSeparator.js","names":["splitProps","clsx","ItemSeparatorProps","Separator","ItemSeparator","props","local","others","_$createComponent","_$mergeProps","orientation","class","_$createComponent","_$mergeProps","ItemSeparator","local","others","splitProps","props","createComponent","Separator","mergeProps","\"class\"","clsx"],"sources":["../../../../src/components/item/ItemSeparator/ItemSeparator.tsx"],"sourcesContent":["import { splitProps } from \"solid-js\";\nimport { clsx } from \"~/utils\";\nimport type { ItemSeparatorProps } from \"./ItemSeparator.types\";\nimport { Separator } from \"~/components/separator\";\n\nexport const ItemSeparator = (props: ItemSeparatorProps) => {\n const [local, others] = splitProps(props, [\"class\", \"classList\"]);\n\n return (\n <Separator\n data-slot=\"item-separator\"\n orientation=\"horizontal\"\n class={clsx(\"my-2\", local.class)}\n {...others}\n />\n );\n};\n"],"mappings":";;;;;AAKA,IAAaI,KAAiBC,MAA8B;CAC1D,IAAM,CAACC,GAAOC,KAAUP,EAAWK,GAAO,CAAC,SAAS,WAAW,CAAC;CAEhE,OAAAG,EACGL,GAASM,EAAA;EAAA,aAAA;EAERC,aAAW;EAAA,IAAAY,QAAA;GAAA,OACJrB,EAAK,QAAQK,EAAMK,KAAK;EAAC;CAAA,GAC5BJ,CAAM,CAAA;AAGhB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ItemTitleProps } from './ItemTitle.types';
|
|
2
|
-
export declare const ItemTitle: (props: ItemTitleProps) => import(
|
|
2
|
+
export declare const ItemTitle: (props: ItemTitleProps) => import('solid-js').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemTitle.js","names":["splitProps","clsx","ItemTitleProps","ItemTitle","props","local","others","_el$","_tmpl$","_$spread","_$mergeProps","class"],"sources":["../../../../src/components/item/ItemTitle/ItemTitle.tsx"],"sourcesContent":["import { splitProps } from \"solid-js\";\nimport { clsx } from \"~/utils\";\nimport type { ItemTitleProps } from \"./ItemTitle.types\";\n\nexport const ItemTitle = (props: ItemTitleProps) => {\n const [local, others] = splitProps(props, [\"class\", \"classList\"]);\n\n return (\n <div\n data-slot=\"item-title\"\n class={clsx(\n \"line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4\",\n local.class,\n )}\n {...others}\n />\n );\n};\n"],"mappings":";;;;uDAIaG,KAAaC,MAA0B;CAClD,IAAM,CAACC,GAAOC,KAAUN,EAAWI,GAAO,CAAC,SAAS,WAAW,CAAC;CAEhE,cAAA;EAAA,IAAAG,IAAAC,EAAA;EAOc,OAPdC,EAAAF,GAAAG,EAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"ItemTitle.js","names":["splitProps","clsx","ItemTitleProps","ItemTitle","props","local","others","_el$","_tmpl$","_$spread","_$mergeProps","class","_$mergeProps","_tmpl$","ItemTitle","local","others","splitProps","props","_el$","spread","mergeProps","\"class\"","clsx"],"sources":["../../../../src/components/item/ItemTitle/ItemTitle.tsx"],"sourcesContent":["import { splitProps } from \"solid-js\";\nimport { clsx } from \"~/utils\";\nimport type { ItemTitleProps } from \"./ItemTitle.types\";\n\nexport const ItemTitle = (props: ItemTitleProps) => {\n const [local, others] = splitProps(props, [\"class\", \"classList\"]);\n\n return (\n <div\n data-slot=\"item-title\"\n class={clsx(\n \"line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4\",\n local.class,\n )}\n {...others}\n />\n );\n};\n"],"mappings":";;;;uDAIaG,KAAaC,MAA0B;CAClD,IAAM,CAACC,GAAOC,KAAUN,EAAWI,GAAO,CAAC,SAAS,WAAW,CAAC;CAEhE,cAAA;EAAA,IAAAG,IAAAC,EAAA;EAOc,OAPdC,EAAAF,GAAAG,EAAA,EAAA,IAAAY,QAAA;GAAA,OAGWrB,EACL,kGACAI,EAAMM,KACR;EAAC,EAAA,GACGL,CAAM,GAAA,IAAA,EAAA,GAAAC;CAAA,EAAA,CAAA;AAGhB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { KbdGroupProps, KbdProps } from './Kbd.types';
|
|
2
|
-
export declare const Kbd: (props: KbdProps) => import(
|
|
3
|
-
export declare const KbdGroup: (props: KbdGroupProps) => import(
|
|
2
|
+
export declare const Kbd: (props: KbdProps) => import('solid-js').JSX.Element;
|
|
3
|
+
export declare const KbdGroup: (props: KbdGroupProps) => import('solid-js').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Kbd.js","names":["splitProps","KbdGroupProps","KbdProps","clsx","Kbd","props","local","others","_el$","_tmpl$","_$spread","_$mergeProps","class","KbdGroup","_el$2","_tmpl$2"],"sources":["../../../src/components/kbd/Kbd.tsx"],"sourcesContent":["import { splitProps } from \"solid-js\";\nimport type { KbdGroupProps, KbdProps } from \"./Kbd.types\";\nimport { clsx } from \"~/utils\";\n\nexport const Kbd = (props: KbdProps) => {\n const [local, others] = splitProps(props, [\"class\", \"classList\"]);\n\n return (\n <kbd\n data-slot=\"kbd\"\n class={clsx(\n \"pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3\",\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const KbdGroup = (props: KbdGroupProps) => {\n const [local, others] = splitProps(props, [\"class\", \"classList\"]);\n\n return (\n <kbd\n data-slot=\"kbd-group\"\n class={clsx(\"inline-flex items-center gap-1\", local.class)}\n {...others}\n />\n );\n};\n"],"mappings":";;;;kGAIaI,KAAOC,MAAoB;CACtC,IAAM,CAACC,GAAOC,KAAUP,EAAWK,GAAO,CAAC,SAAS,WAAW,CAAC;CAEhE,cAAA;EAAA,IAAAG,IAAAC,EAAA;EAOc,OAPdC,EAAAF,GAAAG,EAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"Kbd.js","names":["splitProps","KbdGroupProps","KbdProps","clsx","Kbd","props","local","others","_el$","_tmpl$","_$spread","_$mergeProps","class","KbdGroup","_el$2","_tmpl$2","_$mergeProps","_tmpl$","_tmpl$2","Kbd","local","others","splitProps","props","_el$","spread","mergeProps","\"class\"","clsx","KbdGroup","_el$2"],"sources":["../../../src/components/kbd/Kbd.tsx"],"sourcesContent":["import { splitProps } from \"solid-js\";\nimport type { KbdGroupProps, KbdProps } from \"./Kbd.types\";\nimport { clsx } from \"~/utils\";\n\nexport const Kbd = (props: KbdProps) => {\n const [local, others] = splitProps(props, [\"class\", \"classList\"]);\n\n return (\n <kbd\n data-slot=\"kbd\"\n class={clsx(\n \"pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3\",\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const KbdGroup = (props: KbdGroupProps) => {\n const [local, others] = splitProps(props, [\"class\", \"classList\"]);\n\n return (\n <kbd\n data-slot=\"kbd-group\"\n class={clsx(\"inline-flex items-center gap-1\", local.class)}\n {...others}\n />\n );\n};\n"],"mappings":";;;;kGAIaI,KAAOC,MAAoB;CACtC,IAAM,CAACC,GAAOC,KAAUP,EAAWK,GAAO,CAAC,SAAS,WAAW,CAAC;CAEhE,cAAA;EAAA,IAAAG,IAAAC,EAAA;EAOc,OAPdC,EAAAF,GAAAG,EAAA,EAAA,IAAAgB,QAAA;GAAA,OAGWxB,EACL,yWACAG,EAAMM,KACR;EAAC,EAAA,GACGL,CAAM,GAAA,IAAA,EAAA,GAAAC;CAAA,EAAA,CAAA;AAGhB,GAEaK,KAAYR,MAAyB;CAChD,IAAM,CAACC,GAAOC,KAAUP,EAAWK,GAAO,CAAC,SAAS,WAAW,CAAC;CAEhE,cAAA;EAAA,IAAAS,IAAAC,EAAA;EAIc,OAJdL,EAAAI,GAAAH,EAAA,EAAA,IAAAgB,QAAA;GAAA,OAGWxB,EAAK,kCAAkCG,EAAMM,KAAK;EAAC,EAAA,GACtDL,CAAM,GAAA,IAAA,EAAA,GAAAO;CAAA,EAAA,CAAA;AAGhB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { LabelProps } from './Label.types';
|
|
2
|
-
export declare const Label: (props: LabelProps) => import(
|
|
2
|
+
export declare const Label: (props: LabelProps) => import('solid-js').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.js","names":["splitProps","LabelProps","clsx","Label","props","ref","HTMLLabelElement","local","others","handleClick","e","MouseEvent","htmlFor","for","target","document","querySelector","HTMLElement","click","contains","Node","preventDefault","_el$","_tmpl$","$$click","_ref$","_$use","_$spread","_$mergeProps","class","_$delegateEvents"],"sources":["../../../src/components/label/Label.tsx"],"sourcesContent":["import { splitProps } from \"solid-js\";\nimport type { LabelProps } from \"./Label.types\";\nimport { clsx } from \"~/utils\";\n\nexport const Label = (props: LabelProps) => {\n let ref: HTMLLabelElement | undefined;\n const [local, others] = splitProps(props, [\"for\", \"class\", \"classList\"]);\n\n const handleClick = (e: MouseEvent) => {\n // 兄弟元素用 for 查找\n const htmlFor = local.for;\n if (htmlFor) {\n const target = document.querySelector<HTMLElement>(\n `[aria-labelledby=\"${htmlFor}\"]`,\n );\n if (!target) return;\n target.click();\n return;\n }\n\n // 子元素直接查询有 `aria-labelledby` 属性\n const target = ref?.querySelector<HTMLElement>(\"[aria-labelledby]\");\n if (target && !target.contains(e.target as Node)) {\n e.preventDefault(); // 阻止 label 原生的自动点击转发\n target.click(); // 手动触发一次\n }\n };\n\n return (\n // biome-ignore lint/a11y/noLabelWithoutControl: ignore\n <label\n ref={ref}\n for={local.for}\n data-slot=\"label\"\n class={clsx(\n \"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n local.class,\n )}\n onClick={handleClick}\n {...others}\n />\n );\n};\n"],"mappings":";;;;oDAIaG,KAASC,MAAsB;CAC1C,IAAIC,GACE,CAACE,GAAOC,KAAUR,EAAWI,GAAO;EAAC;EAAO;EAAS;CAAW,CAAC,GAEjEK,KAAeC,MAAkB;EAErC,IAAME,IAAUL,EAAMM;EACtB,IAAID,GAAS;GACX,IAAME,IAASC,SAASC,cACtB,qBAAqBJ,EAAO,GAC9B;GACA,IAAI,CAACE,GAAQ;GACbA,EAAOI,MAAM;GACb;EACF;EAGA,IAAMJ,IAAST,GAAKW,cAA2B,mBAAmB;EAClE,AAAIF,KAAU,CAACA,EAAOK,SAAST,EAAEI,MAAc,MAC7CJ,EAAEW,eAAe,GACjBP,EAAOI,MAAM;CAEjB;CAEA,cACE;EAAA,IAAAI,IAAAC,EAAA;EAAAD,EAAAE,UASWf;EAAW,IAAAgB,IAPfpB;EAQK,OARF,OAAAoB,KAAA,aAAAC,EAAAD,GAAAH,CAAA,IAAHjB,IAAGiB,GAAAK,EAAAL,GAAAM,EAAA;GAAA,
|
|
1
|
+
{"version":3,"file":"Label.js","names":["splitProps","LabelProps","clsx","Label","props","ref","HTMLLabelElement","local","others","handleClick","e","MouseEvent","htmlFor","for","target","document","querySelector","HTMLElement","click","contains","Node","preventDefault","_el$","_tmpl$","$$click","_ref$","_$use","_$spread","_$mergeProps","class","_$delegateEvents","_$use","_$mergeProps","_$delegateEvents","_tmpl$","Label","ref","local","others","splitProps","props","handleClick","htmlFor","target","_el$","_ref$","use","spread","mergeProps","\"for\"","\"class\"","clsx","delegateEvents"],"sources":["../../../src/components/label/Label.tsx"],"sourcesContent":["import { splitProps } from \"solid-js\";\nimport type { LabelProps } from \"./Label.types\";\nimport { clsx } from \"~/utils\";\n\nexport const Label = (props: LabelProps) => {\n let ref: HTMLLabelElement | undefined;\n const [local, others] = splitProps(props, [\"for\", \"class\", \"classList\"]);\n\n const handleClick = (e: MouseEvent) => {\n // 兄弟元素用 for 查找\n const htmlFor = local.for;\n if (htmlFor) {\n const target = document.querySelector<HTMLElement>(\n `[aria-labelledby=\"${htmlFor}\"]`,\n );\n if (!target) return;\n target.click();\n return;\n }\n\n // 子元素直接查询有 `aria-labelledby` 属性\n const target = ref?.querySelector<HTMLElement>(\"[aria-labelledby]\");\n if (target && !target.contains(e.target as Node)) {\n e.preventDefault(); // 阻止 label 原生的自动点击转发\n target.click(); // 手动触发一次\n }\n };\n\n return (\n // biome-ignore lint/a11y/noLabelWithoutControl: ignore\n <label\n ref={ref}\n for={local.for}\n data-slot=\"label\"\n class={clsx(\n \"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n local.class,\n )}\n onClick={handleClick}\n {...others}\n />\n );\n};\n"],"mappings":";;;;oDAIaG,KAASC,MAAsB;CAC1C,IAAIC,GACE,CAACE,GAAOC,KAAUR,EAAWI,GAAO;EAAC;EAAO;EAAS;CAAW,CAAC,GAEjEK,KAAeC,MAAkB;EAErC,IAAME,IAAUL,EAAMM;EACtB,IAAID,GAAS;GACX,IAAME,IAASC,SAASC,cACtB,qBAAqBJ,EAAO,GAC9B;GACA,IAAI,CAACE,GAAQ;GACbA,EAAOI,MAAM;GACb;EACF;EAGA,IAAMJ,IAAST,GAAKW,cAA2B,mBAAmB;EAClE,AAAIF,KAAU,CAACA,EAAOK,SAAST,EAAEI,MAAc,MAC7CJ,EAAEW,eAAe,GACjBP,EAAOI,MAAM;CAEjB;CAEA,cACE;EAAA,IAAAI,IAAAC,EAAA;EAAAD,EAAAE,UASWf;EAAW,IAAAgB,IAPfpB;EAQK,OARF,OAAAoB,KAAA,aAAAC,EAAAD,GAAAH,CAAA,IAAHjB,IAAGiB,GAAAK,EAAAL,GAAAM,EAAA;GAAA,IAAAqB,MAAA;IAAA,OACH1C,EAAMM;GAAG;GAAA,IAAAqC,QAAA;IAAA,OAEPhD,EACL,uNACAK,EAAMsB,KACR;GAAC;EAAA,GAEGrB,CAAM,GAAA,IAAA,EAAA,GAAAc;CAAA,EAAA,CAAA;AAGhB;AAAEQ,EAAA,CAAA,OAAA,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import { NumberInputProps } from './NumberInput.types';
|
|
3
|
+
/**
|
|
4
|
+
* NumberInput:数字输入框,带自定义的减/加按钮,避开原生 `type="number"`
|
|
5
|
+
* 在各浏览器里样式与行为都不一致的 spinner。
|
|
6
|
+
*
|
|
7
|
+
* 复用 `InputGroup` 系列(InputGroupAddon/InputGroupButton/InputGroupInput),
|
|
8
|
+
* 输入框用 `type="text"` + `inputmode="decimal"` + `role="spinbutton"`。
|
|
9
|
+
*
|
|
10
|
+
* 这是便捷封装;可组合的 parts(Increment/Decrement/ScrubArea 等)与更多能力
|
|
11
|
+
* 见同目录的 DESIGN.md「后续待实现」。
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const [qty, setQty] = createSignal<number | null>(1);
|
|
16
|
+
* <NumberInput value={qty()} onValueChange={(v) => setQty(v)} min={1} max={99} />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare function NumberInput(props: NumberInputProps): JSX.Element;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { clsx as e } from "../../../utils/clsx.js";
|
|
2
|
+
import { InputGroup as t } from "../../input-group/InputGroup/InputGroup.js";
|
|
3
|
+
import { InputGroupAddon as n } from "../../input-group/InputGroupAddon/InputGroupAddon.js";
|
|
4
|
+
import { InputGroupButton as r } from "../../input-group/InputGroupButton/InputGroupButton.js";
|
|
5
|
+
import { InputGroupInput as i } from "../../input-group/InputGroupInput/InputGroupInput.js";
|
|
6
|
+
import { createNumberInputChangeEventDetails as a } from "./create-change-event-details.js";
|
|
7
|
+
import { clamp as o, defaultFormatNumber as s, defaultParseNumber as c, roundToStep as l } from "./NumberInput.utils.js";
|
|
8
|
+
import { createComponent as u } from "solid-js/web";
|
|
9
|
+
import { createEffect as d, createSignal as f } from "solid-js";
|
|
10
|
+
import { Minus as p, Plus as m } from "lucide-solid";
|
|
11
|
+
//#region src/components/number-input/NumberInput/NumberInput.tsx
|
|
12
|
+
function h(h) {
|
|
13
|
+
let g = () => h.step ?? 1, _ = () => h.largeStep ?? g() * 10, v = (e) => (h.parse ?? c)(e), y = (e) => e === null ? "" : (h.format ?? s)(e), b = () => h.value !== void 0, [x, S] = f(h.defaultValue ?? null), C = () => b() ? h.value ?? null : x(), [w, T] = f(!1), [E, D] = f(y(C()));
|
|
14
|
+
d(() => {
|
|
15
|
+
let e = C();
|
|
16
|
+
w() || D(y(e));
|
|
17
|
+
});
|
|
18
|
+
let O = (e, t, n) => {
|
|
19
|
+
let r = a(t, n);
|
|
20
|
+
h.onValueChange?.(e, r), !r.isCanceled && (b() || S(e));
|
|
21
|
+
}, k = (e, t, n) => {
|
|
22
|
+
let r = o(l(e, g()), h.min, h.max);
|
|
23
|
+
O(r, t, n), D(y(r));
|
|
24
|
+
}, A = (e, t, n) => {
|
|
25
|
+
let r = C() ?? h.min ?? 0;
|
|
26
|
+
k(r + e, t, n);
|
|
27
|
+
}, j = (e) => {
|
|
28
|
+
D(e);
|
|
29
|
+
let t = v(e);
|
|
30
|
+
t !== null && O(t, "input");
|
|
31
|
+
}, M = () => {
|
|
32
|
+
T(!1);
|
|
33
|
+
let e = v(E());
|
|
34
|
+
if (e === null) {
|
|
35
|
+
C() !== null && O(null, "blur"), D(y(null));
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
k(e, "blur");
|
|
39
|
+
}, N = (e) => {
|
|
40
|
+
if (!(h.disabled || h.readOnly)) switch (e.key) {
|
|
41
|
+
case "ArrowUp":
|
|
42
|
+
e.preventDefault(), A(g(), "keyboard", e);
|
|
43
|
+
break;
|
|
44
|
+
case "ArrowDown":
|
|
45
|
+
e.preventDefault(), A(-g(), "keyboard", e);
|
|
46
|
+
break;
|
|
47
|
+
case "PageUp":
|
|
48
|
+
e.preventDefault(), A(_(), "keyboard", e);
|
|
49
|
+
break;
|
|
50
|
+
case "PageDown":
|
|
51
|
+
e.preventDefault(), A(-_(), "keyboard", e);
|
|
52
|
+
break;
|
|
53
|
+
case "Home":
|
|
54
|
+
h.min !== void 0 && (e.preventDefault(), k(h.min, "keyboard", e));
|
|
55
|
+
break;
|
|
56
|
+
case "End":
|
|
57
|
+
h.max !== void 0 && (e.preventDefault(), k(h.max, "keyboard", e));
|
|
58
|
+
break;
|
|
59
|
+
case "Enter": {
|
|
60
|
+
e.preventDefault();
|
|
61
|
+
let t = v(E());
|
|
62
|
+
t !== null && k(t, "keyboard", e);
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
case "Escape": e.preventDefault(), D(y(C()));
|
|
66
|
+
}
|
|
67
|
+
}, P = () => !h.disabled && !h.readOnly && !(C() !== null && h.min !== void 0 && C() <= h.min), F = () => !h.disabled && !h.readOnly && !(C() !== null && h.max !== void 0 && C() >= h.max);
|
|
68
|
+
return u(t, {
|
|
69
|
+
get class() {
|
|
70
|
+
return e("w-32", h.class);
|
|
71
|
+
},
|
|
72
|
+
get children() {
|
|
73
|
+
return [
|
|
74
|
+
u(n, {
|
|
75
|
+
align: "inline-start",
|
|
76
|
+
get children() {
|
|
77
|
+
return u(r, {
|
|
78
|
+
get icon() {
|
|
79
|
+
return u(p, {});
|
|
80
|
+
},
|
|
81
|
+
"aria-label": "Decrease",
|
|
82
|
+
get disabled() {
|
|
83
|
+
return !P();
|
|
84
|
+
},
|
|
85
|
+
onClick: () => A(-g(), "button-press")
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}),
|
|
89
|
+
u(i, {
|
|
90
|
+
get id() {
|
|
91
|
+
return h.id;
|
|
92
|
+
},
|
|
93
|
+
role: "spinbutton",
|
|
94
|
+
inputmode: "decimal",
|
|
95
|
+
autocomplete: "off",
|
|
96
|
+
get value() {
|
|
97
|
+
return E();
|
|
98
|
+
},
|
|
99
|
+
onInput: (e) => j(e),
|
|
100
|
+
onFocus: () => T(!0),
|
|
101
|
+
onBlur: M,
|
|
102
|
+
onKeyDown: N,
|
|
103
|
+
get disabled() {
|
|
104
|
+
return h.disabled;
|
|
105
|
+
},
|
|
106
|
+
get readOnly() {
|
|
107
|
+
return h.readOnly;
|
|
108
|
+
},
|
|
109
|
+
get required() {
|
|
110
|
+
return h.required;
|
|
111
|
+
},
|
|
112
|
+
get name() {
|
|
113
|
+
return h.name;
|
|
114
|
+
},
|
|
115
|
+
get placeholder() {
|
|
116
|
+
return h.placeholder;
|
|
117
|
+
},
|
|
118
|
+
get "aria-label"() {
|
|
119
|
+
return h["aria-label"];
|
|
120
|
+
},
|
|
121
|
+
get "aria-valuenow"() {
|
|
122
|
+
return C() ?? void 0;
|
|
123
|
+
},
|
|
124
|
+
get "aria-valuemin"() {
|
|
125
|
+
return h.min;
|
|
126
|
+
},
|
|
127
|
+
get "aria-valuemax"() {
|
|
128
|
+
return h.max;
|
|
129
|
+
}
|
|
130
|
+
}),
|
|
131
|
+
u(n, {
|
|
132
|
+
align: "inline-end",
|
|
133
|
+
get children() {
|
|
134
|
+
return u(r, {
|
|
135
|
+
get icon() {
|
|
136
|
+
return u(m, {});
|
|
137
|
+
},
|
|
138
|
+
"aria-label": "Increase",
|
|
139
|
+
get disabled() {
|
|
140
|
+
return !F();
|
|
141
|
+
},
|
|
142
|
+
onClick: () => A(g(), "button-press")
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
})
|
|
146
|
+
];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
//#endregion
|
|
151
|
+
export { h as NumberInput };
|
|
152
|
+
|
|
153
|
+
//# sourceMappingURL=NumberInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberInput.js","names":["createEffect","createSignal","JSX","Minus","Plus","InputGroup","InputGroupAddon","InputGroupButton","InputGroupInput","clsx","createNumberInputChangeEventDetails","clamp","defaultFormatNumber","defaultParseNumber","roundToStep","NumberInputChangeReason","NumberInputProps","NumberInput","props","Element","step","largeStep","parse","text","format","value","isControlled","undefined","internalValue","setInternalValue","defaultValue","focused","setFocused","setText","next","commit","reason","event","Event","details","onValueChange","isCanceled","commitClamped","clamped","min","max","stepBy","delta","base","handleInput","raw","parsed","handleBlur","handleKeyDown","KeyboardEvent","disabled","readOnly","key","preventDefault","canDecrement","canIncrement","_$createComponent","class","children","align","icon","onClick","id","role","inputmode","autocomplete","onInput","onFocus","onBlur","onKeyDown","required","name","placeholder","aria-label","aria-valuenow","aria-valuemin","aria-valuemax","_$createComponent","NumberInput","step","props","largeStep","parse","defaultParseNumber","text","format","value","defaultFormatNumber","isControlled","internalValue","setInternalValue","createSignal","focused","setFocused","setText","next","commit","details","createNumberInputChangeEventDetails","reason","event","commitClamped","clamped","clamp","roundToStep","stepBy","base","delta","handleInput","raw","parsed","handleBlur","handleKeyDown","canDecrement","canIncrement","createComponent","InputGroup","\"class\"","clsx","InputGroupAddon","InputGroupButton","Minus","InputGroupInput","Plus"],"sources":["../../../../src/components/number-input/NumberInput/NumberInput.tsx"],"sourcesContent":["import { createEffect, createSignal, type JSX } from \"solid-js\";\nimport { Minus, Plus } from \"lucide-solid\";\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n} from \"~/components/input-group\";\nimport { clsx } from \"~/utils\";\nimport { createNumberInputChangeEventDetails } from \"./create-change-event-details\";\nimport {\n clamp,\n defaultFormatNumber,\n defaultParseNumber,\n roundToStep,\n} from \"./NumberInput.utils\";\nimport type {\n NumberInputChangeReason,\n NumberInputProps,\n} from \"./NumberInput.types\";\n\n/**\n * NumberInput:数字输入框,带自定义的减/加按钮,避开原生 `type=\"number\"`\n * 在各浏览器里样式与行为都不一致的 spinner。\n *\n * 复用 `InputGroup` 系列(InputGroupAddon/InputGroupButton/InputGroupInput),\n * 输入框用 `type=\"text\"` + `inputmode=\"decimal\"` + `role=\"spinbutton\"`。\n *\n * 这是便捷封装;可组合的 parts(Increment/Decrement/ScrubArea 等)与更多能力\n * 见同目录的 DESIGN.md「后续待实现」。\n *\n * @example\n * ```tsx\n * const [qty, setQty] = createSignal<number | null>(1);\n * <NumberInput value={qty()} onValueChange={(v) => setQty(v)} min={1} max={99} />\n * ```\n */\nexport function NumberInput(props: NumberInputProps): JSX.Element {\n const step = () => props.step ?? 1;\n const largeStep = () => props.largeStep ?? step() * 10;\n const parse = (text: string) => (props.parse ?? defaultParseNumber)(text);\n const format = (value: number | null) =>\n value === null ? \"\" : (props.format ?? defaultFormatNumber)(value);\n\n const isControlled = () => props.value !== undefined;\n const [internalValue, setInternalValue] = createSignal<number | null>(\n props.defaultValue ?? null,\n );\n const value = (): number | null =>\n isControlled() ? (props.value ?? null) : internalValue();\n\n const [focused, setFocused] = createSignal(false);\n const [text, setText] = createSignal(format(value()));\n\n // 外部值变化时同步显示文本;正在输入时不要覆盖用户正在敲的内容\n createEffect(() => {\n const next = value();\n if (focused()) return;\n setText(format(next));\n });\n\n const commit = (\n next: number | null,\n reason: NumberInputChangeReason,\n event?: Event,\n ) => {\n const details = createNumberInputChangeEventDetails(reason, event);\n props.onValueChange?.(next, details);\n if (details.isCanceled) return;\n if (!isControlled()) setInternalValue(next);\n };\n\n const commitClamped = (\n next: number,\n reason: NumberInputChangeReason,\n event?: Event,\n ) => {\n const clamped = clamp(roundToStep(next, step()), props.min, props.max);\n commit(clamped, reason, event);\n setText(format(clamped));\n };\n\n const stepBy = (\n delta: number,\n reason: NumberInputChangeReason,\n event?: Event,\n ) => {\n const base = value() ?? props.min ?? 0;\n commitClamped(base + delta, reason, event);\n };\n\n const handleInput = (raw: string) => {\n setText(raw);\n const parsed = parse(raw);\n // 输入过程中不立即 clamp,否则无法敲入越界中间值;失焦/回车再收敛\n if (parsed !== null) commit(parsed, \"input\");\n };\n\n const handleBlur = () => {\n setFocused(false);\n const parsed = parse(text());\n if (parsed === null) {\n if (value() !== null) commit(null, \"blur\");\n setText(format(null));\n return;\n }\n commitClamped(parsed, \"blur\");\n };\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (props.disabled || props.readOnly) return;\n switch (event.key) {\n case \"ArrowUp\":\n event.preventDefault();\n stepBy(step(), \"keyboard\", event);\n break;\n case \"ArrowDown\":\n event.preventDefault();\n stepBy(-step(), \"keyboard\", event);\n break;\n case \"PageUp\":\n event.preventDefault();\n stepBy(largeStep(), \"keyboard\", event);\n break;\n case \"PageDown\":\n event.preventDefault();\n stepBy(-largeStep(), \"keyboard\", event);\n break;\n case \"Home\":\n if (props.min !== undefined) {\n event.preventDefault();\n commitClamped(props.min, \"keyboard\", event);\n }\n break;\n case \"End\":\n if (props.max !== undefined) {\n event.preventDefault();\n commitClamped(props.max, \"keyboard\", event);\n }\n break;\n case \"Enter\": {\n event.preventDefault();\n const parsed = parse(text());\n if (parsed !== null) commitClamped(parsed, \"keyboard\", event);\n break;\n }\n case \"Escape\":\n event.preventDefault();\n setText(format(value()));\n break;\n default:\n break;\n }\n };\n\n const canDecrement = () =>\n !props.disabled &&\n !props.readOnly &&\n !(value() !== null && props.min !== undefined && value()! <= props.min);\n const canIncrement = () =>\n !props.disabled &&\n !props.readOnly &&\n !(value() !== null && props.max !== undefined && value()! >= props.max);\n\n return (\n <InputGroup class={clsx(\"w-32\", props.class)}>\n <InputGroupAddon align=\"inline-start\">\n <InputGroupButton\n icon={<Minus />}\n aria-label=\"Decrease\"\n disabled={!canDecrement()}\n onClick={() => stepBy(-step(), \"button-press\")}\n />\n </InputGroupAddon>\n <InputGroupInput\n id={props.id}\n role=\"spinbutton\"\n inputmode=\"decimal\"\n autocomplete=\"off\"\n value={text()}\n onInput={(next: string) => handleInput(next)}\n onFocus={() => setFocused(true)}\n onBlur={handleBlur}\n onKeyDown={handleKeyDown}\n disabled={props.disabled}\n readOnly={props.readOnly}\n required={props.required}\n name={props.name}\n placeholder={props.placeholder}\n aria-label={props[\"aria-label\"]}\n aria-valuenow={value() ?? undefined}\n aria-valuemin={props.min}\n aria-valuemax={props.max}\n />\n <InputGroupAddon align=\"inline-end\">\n <InputGroupButton\n icon={<Plus />}\n aria-label=\"Increase\"\n disabled={!canIncrement()}\n onClick={() => stepBy(step(), \"button-press\")}\n />\n </InputGroupAddon>\n </InputGroup>\n );\n}\n"],"mappings":";;;;;;;;;;;AAqCA,SAAgBiB,EAAYC,GAAsC;CAChE,IAAME,UAAaF,EAAME,QAAQ,GAC3BC,UAAkBH,EAAMG,aAAaD,EAAK,IAAI,IAC9CE,KAASC,OAAkBL,EAAMI,SAAST,EAAAA,CAAoBU,CAAI,GAClEC,KAAUC,MACdA,MAAU,OAAO,MAAMP,EAAMM,UAAUZ,EAAAA,CAAqBa,CAAK,GAE7DC,UAAqBR,EAAMO,UAAUE,KAAAA,GACrC,CAACC,GAAeC,KAAoB5B,EACxCiB,EAAMY,gBAAgB,IACxB,GACML,UACJC,EAAa,IAAKR,EAAMO,SAAS,OAAQG,EAAc,GAEnD,CAACG,GAASC,KAAc/B,EAAa,EAAK,GAC1C,CAACsB,GAAMU,KAAWhC,EAAauB,EAAOC,EAAM,CAAC,CAAC;CAGpDzB,QAAmB;EACjB,IAAMkC,IAAOT,EAAM;EACnB,AAAIM,EAAQ,KACZE,EAAQT,EAAOU,CAAI,CAAC;CACtB,CAAC;CAED,IAAMC,KACJD,GACAE,GACAC,MACG;EACH,IAAME,IAAU7B,EAAoC0B,GAAQC,CAAK;EAEjE,AADAnB,EAAMsB,gBAAgBN,GAAMK,CAAO,GAC/BA,GAAQE,eACPf,EAAa,KAAGG,EAAiBK,CAAI;CAC5C,GAEMQ,KACJR,GACAE,GACAC,MACG;EACH,IAAMM,IAAUhC,EAAMG,EAAYoB,GAAMd,EAAK,CAAC,GAAGF,EAAM0B,KAAK1B,EAAM2B,GAAG;EAErEZ,AADAE,EAAOQ,GAASP,GAAQC,CAAK,GAC7BJ,EAAQT,EAAOmB,CAAO,CAAC;CACzB,GAEMG,KACJC,GACAX,GACAC,MACG;EACH,IAAMW,IAAOvB,EAAM,KAAKP,EAAM0B,OAAO;EACrCF,EAAcM,IAAOD,GAAOX,GAAQC,CAAK;CAC3C,GAEMY,KAAeC,MAAgB;EACnCjB,EAAQiB,CAAG;EACX,IAAMC,IAAS7B,EAAM4B,CAAG;EAExB,AAAIC,MAAW,QAAMhB,EAAOgB,GAAQ,OAAO;CAC7C,GAEMC,UAAmB;EACvBpB,EAAW,EAAK;EAChB,IAAMmB,IAAS7B,EAAMC,EAAK,CAAC;EAC3B,IAAI4B,MAAW,MAAM;GAEnBlB,AADIR,EAAM,MAAM,QAAMU,EAAO,MAAM,MAAM,GACzCF,EAAQT,EAAO,IAAI,CAAC;GACpB;EACF;EACAkB,EAAcS,GAAQ,MAAM;CAC9B,GAEME,KAAiBhB,MAAyB;EAC9C,IAAInB,IAAMqC,YAAYrC,EAAMsC,WAC5B,QAAQnB,EAAMoB,KAAd;GACE,KAAK;IAEHX,AADAT,EAAMqB,eAAe,GACrBZ,EAAO1B,EAAK,GAAG,YAAYiB,CAAK;IAChC;GACF,KAAK;IAEHS,AADAT,EAAMqB,eAAe,GACrBZ,EAAO,CAAC1B,EAAK,GAAG,YAAYiB,CAAK;IACjC;GACF,KAAK;IAEHS,AADAT,EAAMqB,eAAe,GACrBZ,EAAOzB,EAAU,GAAG,YAAYgB,CAAK;IACrC;GACF,KAAK;IAEHS,AADAT,EAAMqB,eAAe,GACrBZ,EAAO,CAACzB,EAAU,GAAG,YAAYgB,CAAK;IACtC;GACF,KAAK;IACH,AAAInB,EAAM0B,QAAQjB,KAAAA,MAChBU,EAAMqB,eAAe,GACrBhB,EAAcxB,EAAM0B,KAAK,YAAYP,CAAK;IAE5C;GACF,KAAK;IACH,AAAInB,EAAM2B,QAAQlB,KAAAA,MAChBU,EAAMqB,eAAe,GACrBhB,EAAcxB,EAAM2B,KAAK,YAAYR,CAAK;IAE5C;GACF,KAAK,SAAS;IACZA,EAAMqB,eAAe;IACrB,IAAMP,IAAS7B,EAAMC,EAAK,CAAC;IAC3B,AAAI4B,MAAW,QAAMT,EAAcS,GAAQ,YAAYd,CAAK;IAC5D;GACF;GACA,KAAK,UAEHJ,AADAI,EAAMqB,eAAe,GACrBzB,EAAQT,EAAOC,EAAM,CAAC,CAAC;EAI3B;CACF,GAEMkC,UACJ,CAACzC,EAAMqC,YACP,CAACrC,EAAMsC,YACP,EAAE/B,EAAM,MAAM,QAAQP,EAAM0B,QAAQjB,KAAAA,KAAaF,EAAM,KAAMP,EAAM0B,MAC/DgB,UACJ,CAAC1C,EAAMqC,YACP,CAACrC,EAAMsC,YACP,EAAE/B,EAAM,MAAM,QAAQP,EAAM2B,QAAQlB,KAAAA,KAAaF,EAAM,KAAMP,EAAM2B;CAErE,OAAAgB,EACGxD,GAAU;EAAA,IAAAqH,QAAA;GAAA,OAAQjH,EAAK,QAAQS,EAAM4C,KAAK;EAAC;EAAA,IAAAC,WAAA;GAAA,OAAA;IAAAF,EACzCvD,GAAe;KAAC0D,OAAK;KAAA,IAAAD,WAAA;MAAA,OAAAF,EACnBtD,GAAgB;OAAA,IACf0D,OAAI;QAAA,OAAAJ,EAAG1D,GAAK,CAAA,CAAA;OAAA;OAAA,cAAA;OAAA,IAEZoD,WAAQ;QAAA,OAAE,CAACI,EAAa;OAAC;OACzBO,eAAepB,EAAO,CAAC1B,EAAK,GAAG,cAAc;MAAC,CAAA;KAAA;IAAA,CAAA;IAAAyC,EAGjDrD,GAAe;KAAA,IACd2D,KAAE;MAAA,OAAEjD,EAAMiD;KAAE;KACZC,MAAI;KACJC,WAAS;KACTC,cAAY;KAAA,IACZ7C,QAAK;MAAA,OAAEF,EAAK;KAAC;KACbgD,UAAUrC,MAAiBe,EAAYf,CAAI;KAC3CsC,eAAexC,EAAW,EAAI;KAC9ByC,QAAQrB;KACRsB,WAAWrB;KAAa,IACxBE,WAAQ;MAAA,OAAErC,EAAMqC;KAAQ;KAAA,IACxBC,WAAQ;MAAA,OAAEtC,EAAMsC;KAAQ;KAAA,IACxBmB,WAAQ;MAAA,OAAEzD,EAAMyD;KAAQ;KAAA,IACxBC,OAAI;MAAA,OAAE1D,EAAM0D;KAAI;KAAA,IAChBC,cAAW;MAAA,OAAE3D,EAAM2D;KAAW;KAAA,IAAA,eAAA;MAAA,OAClB3D,EAAM;KAAa;KAAA,IAAA,kBAAA;MAAA,OAChBO,EAAM,KAAKE,KAAAA;KAAS;KAAA,IAAA,kBAAA;MAAA,OACpBT,EAAM0B;KAAG;KAAA,IAAA,kBAAA;MAAA,OACT1B,EAAM2B;KAAG;IAAA,CAAA;IAAAgB,EAEzBvD,GAAe;KAAC0D,OAAK;KAAA,IAAAD,WAAA;MAAA,OAAAF,EACnBtD,GAAgB;OAAA,IACf0D,OAAI;QAAA,OAAAJ,EAAGzD,GAAI,CAAA,CAAA;OAAA;OAAA,cAAA;OAAA,IAEXmD,WAAQ;QAAA,OAAE,CAACK,EAAa;OAAC;OACzBM,eAAepB,EAAO1B,EAAK,GAAG,cAAc;MAAC,CAAA;KAAA;IAAA,CAAA;GAAA;EAAA;CAAA,CAAA;AAKvD"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { BaseProps } from '../../../types';
|
|
2
|
+
export type NumberInputChangeReason = "input" | "button-press" | "keyboard" | "blur" | "none";
|
|
3
|
+
/**
|
|
4
|
+
* onValueChange 的第二个参数,语义对齐仓库既有的 `ChangeEventDetails`。
|
|
5
|
+
*
|
|
6
|
+
* - `cancel()`:阻止组件提交本次变更(受控模式下状态由外部决定,组件本就不提交)
|
|
7
|
+
* - `allowPropagation()`:API 对齐保留;本实现不主动阻止事件传播,因此是空操作
|
|
8
|
+
*/
|
|
9
|
+
export interface NumberInputChangeEventDetails {
|
|
10
|
+
reason: NumberInputChangeReason;
|
|
11
|
+
event?: Event;
|
|
12
|
+
trigger?: Element;
|
|
13
|
+
cancel: () => void;
|
|
14
|
+
allowPropagation: () => void;
|
|
15
|
+
readonly isCanceled: boolean;
|
|
16
|
+
readonly isPropagationAllowed: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface NumberInputProps extends BaseProps {
|
|
19
|
+
/** 受控数值;不传则内部自管理(非受控模式)。null 表示空值 */
|
|
20
|
+
value?: number | null;
|
|
21
|
+
/** 非受控模式下的初始数值 */
|
|
22
|
+
defaultValue?: number | null;
|
|
23
|
+
onValueChange?: (value: number | null, details: NumberInputChangeEventDetails) => void;
|
|
24
|
+
min?: number;
|
|
25
|
+
max?: number;
|
|
26
|
+
/** 按钮/方向键步长,默认 1 */
|
|
27
|
+
step?: number;
|
|
28
|
+
/** PageUp/PageDown 步长,默认 step * 10 */
|
|
29
|
+
largeStep?: number;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
readOnly?: boolean;
|
|
32
|
+
required?: boolean;
|
|
33
|
+
name?: string;
|
|
34
|
+
placeholder?: string;
|
|
35
|
+
id?: string;
|
|
36
|
+
"aria-label"?: string;
|
|
37
|
+
/** 自定义格式化(用于失焦/步进后回显),默认 String(value) */
|
|
38
|
+
format?: (value: number) => string;
|
|
39
|
+
/** 自定义解析;解析失败返回 null,默认接受十进制文本 */
|
|
40
|
+
parse?: (text: string) => number | null;
|
|
41
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** 限制到 [min, max](两者都可缺省) */
|
|
2
|
+
export declare function clamp(value: number, min?: number, max?: number): number;
|
|
3
|
+
/** 一个数的小数位数 */
|
|
4
|
+
export declare function decimalPlaces(value: number): number;
|
|
5
|
+
/** 按步长的小数位数四舍五入,抵消浮点误差(如 0.1 + 0.2) */
|
|
6
|
+
export declare function roundToStep(value: number, step: number): number;
|
|
7
|
+
/** 默认解析:接受十进制文本(",",作小数点也接受);空/非法返回 null */
|
|
8
|
+
export declare function defaultParseNumber(text: string): number | null;
|
|
9
|
+
/** 默认格式化 */
|
|
10
|
+
export declare function defaultFormatNumber(value: number): string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/components/number-input/NumberInput/NumberInput.utils.ts
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
return t !== void 0 && e < t ? t : n !== void 0 && e > n ? n : e;
|
|
4
|
+
}
|
|
5
|
+
function t(e) {
|
|
6
|
+
let t = String(e), n = t.indexOf(".");
|
|
7
|
+
return n === -1 ? 0 : t.length - n - 1;
|
|
8
|
+
}
|
|
9
|
+
function n(e, n) {
|
|
10
|
+
return Number(e.toFixed(t(n)));
|
|
11
|
+
}
|
|
12
|
+
function r(e) {
|
|
13
|
+
let t = e.trim().replace(/\s+/g, "").replace(/,/g, ".");
|
|
14
|
+
if (t === "" || t === "-" || t === "." || t === "-.") return null;
|
|
15
|
+
let n = Number(t);
|
|
16
|
+
return Number.isFinite(n) ? n : null;
|
|
17
|
+
}
|
|
18
|
+
function i(e) {
|
|
19
|
+
return String(e);
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { e as clamp, t as decimalPlaces, i as defaultFormatNumber, r as defaultParseNumber, n as roundToStep };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=NumberInput.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberInput.utils.js","names":["clamp","min","value","max","decimalPlaces","text","index","roundToStep","step","defaultParseNumber","normalized","defaultFormatNumber"],"sources":["../../../../src/components/number-input/NumberInput/NumberInput.utils.ts"],"sourcesContent":["/** 限制到 [min, max](两者都可缺省) */\nexport function clamp(value: number, min?: number, max?: number): number {\n if (min !== undefined && value < min) return min;\n if (max !== undefined && value > max) return max;\n return value;\n}\n\n/** 一个数的小数位数 */\nexport function decimalPlaces(value: number): number {\n const text = String(value);\n const index = text.indexOf(\".\");\n return index === -1 ? 0 : text.length - index - 1;\n}\n\n/** 按步长的小数位数四舍五入,抵消浮点误差(如 0.1 + 0.2) */\nexport function roundToStep(value: number, step: number): number {\n return Number(value.toFixed(decimalPlaces(step)));\n}\n\n/** 默认解析:接受十进制文本(\",\",作小数点也接受);空/非法返回 null */\nexport function defaultParseNumber(text: string): number | null {\n const normalized = text.trim().replace(/\\s+/g, \"\").replace(/,/g, \".\");\n if (\n normalized === \"\" ||\n normalized === \"-\" ||\n normalized === \".\" ||\n normalized === \"-.\"\n ) {\n return null;\n }\n const value = Number(normalized);\n return Number.isFinite(value) ? value : null;\n}\n\n/** 默认格式化 */\nexport function defaultFormatNumber(value: number): string {\n return String(value);\n}\n"],"mappings":";AACA,SAAgBA,EAAM,GAAe,GAAc,GAAsB;CAGvE,OAFIC,MAAQ,KAAA,KAAaC,IAAQD,IAAYA,IACzCE,MAAQ,KAAA,KAAaD,IAAQC,IAAYA,IACtCD;AACT;AAGA,SAAgBE,EAAc,GAAuB;CACnD,IAAMC,IAAO,OAAOH,CAAK,GACnBI,IAAQD,EAAK,QAAQ,GAAG;CAC9B,OAAOC,MAAU,KAAK,IAAID,EAAK,SAASC,IAAQ;AAClD;AAGA,SAAgBC,EAAY,GAAe,GAAsB;CAC/D,OAAO,OAAOL,EAAM,QAAQE,EAAcI,CAAI,CAAC,CAAC;AAClD;AAGA,SAAgBC,EAAmB,GAA6B;CAC9D,IAAMC,IAAaL,EAAK,KAAK,CAAC,CAAC,QAAQ,QAAQ,EAAE,CAAC,CAAC,QAAQ,MAAM,GAAG;CACpE,IACEK,MAAe,MACfA,MAAe,OACfA,MAAe,OACfA,MAAe,MAEf,OAAO;CAET,IAAMR,IAAQ,OAAOQ,CAAU;CAC/B,OAAO,OAAO,SAASR,CAAK,IAAIA,IAAQ;AAC1C;AAGA,SAAgBS,EAAoB,GAAuB;CACzD,OAAO,OAAOT,CAAK;AACrB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NumberInputChangeEventDetails, NumberInputChangeReason } from './NumberInput.types';
|
|
2
|
+
/**
|
|
3
|
+
* 构造 onValueChange 的事件详情(对齐 base-ui 的 `ChangeEventDetails`)。
|
|
4
|
+
*
|
|
5
|
+
* `isCanceled` / `isPropagationAllowed` 用 getter 暴露:回调内部可以即时读到
|
|
6
|
+
* `cancel()` / `allowPropagation()` 之后的最新值,而不是创建时的快照。
|
|
7
|
+
*/
|
|
8
|
+
export declare function createNumberInputChangeEventDetails(reason: NumberInputChangeReason, event?: Event, trigger?: Element): NumberInputChangeEventDetails;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/components/number-input/NumberInput/create-change-event-details.ts
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
let r = !1, i = !1;
|
|
4
|
+
return {
|
|
5
|
+
reason: e,
|
|
6
|
+
event: t,
|
|
7
|
+
trigger: n,
|
|
8
|
+
cancel: () => {
|
|
9
|
+
r = !0;
|
|
10
|
+
},
|
|
11
|
+
allowPropagation: () => {
|
|
12
|
+
i = !0;
|
|
13
|
+
},
|
|
14
|
+
get isCanceled() {
|
|
15
|
+
return r;
|
|
16
|
+
},
|
|
17
|
+
get isPropagationAllowed() {
|
|
18
|
+
return i;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { e as createNumberInputChangeEventDetails };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=create-change-event-details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-change-event-details.js","names":["createNumberInputChangeEventDetails","canceled","propagationAllowed"],"sources":["../../../../src/components/number-input/NumberInput/create-change-event-details.ts"],"sourcesContent":["import type {\n NumberInputChangeEventDetails,\n NumberInputChangeReason,\n} from \"./NumberInput.types\";\n\n/**\n * 构造 onValueChange 的事件详情(对齐 base-ui 的 `ChangeEventDetails`)。\n *\n * `isCanceled` / `isPropagationAllowed` 用 getter 暴露:回调内部可以即时读到\n * `cancel()` / `allowPropagation()` 之后的最新值,而不是创建时的快照。\n */\nexport function createNumberInputChangeEventDetails(\n reason: NumberInputChangeReason,\n event?: Event,\n trigger?: Element,\n): NumberInputChangeEventDetails {\n let canceled = false;\n let propagationAllowed = false;\n\n return {\n reason,\n event,\n trigger,\n cancel: () => {\n canceled = true;\n },\n allowPropagation: () => {\n propagationAllowed = true;\n },\n get isCanceled() {\n return canceled;\n },\n get isPropagationAllowed() {\n return propagationAllowed;\n },\n };\n}\n"],"mappings":";AAWA,SAAgBA,EACd,GACA,GACA,GAC+B;CAC/B,IAAIC,IAAW,IACXC,IAAqB;CAEzB,OAAO;EACL;EACA;EACA;EACA,cAAc;GACZ,IAAW;EACb;EACA,wBAAwB;GACtB,IAAqB;EACvB;EACA,IAAI,aAAa;GACf,OAAOD;EACT;EACA,IAAI,uBAAuB;GACzB,OAAOC;EACT;CACF;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PaginationProps } from './Pagination.types';
|
|
2
|
-
export declare const Pagination: (props: PaginationProps) => import(
|
|
2
|
+
export declare const Pagination: (props: PaginationProps) => import('solid-js').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.js","names":["splitProps","PaginationProps","clsx","Pagination","props","local","others","_el$","_tmpl$","_$spread","_$mergeProps","class"],"sources":["../../../../src/components/pagination/Pagination/Pagination.tsx"],"sourcesContent":["import { splitProps } from \"solid-js\";\nimport type { PaginationProps } from \"./Pagination.types\";\nimport { clsx } from \"~/utils\";\n\nexport const Pagination = (props: PaginationProps) => {\n const [local, others] = splitProps(props, [\"class\", \"classList\"]);\n\n return (\n <nav\n aria-label=\"pagination\"\n data-slot=\"pagination\"\n class={clsx(\"mx-auto flex w-full justify-center\", local.class)}\n {...others}\n />\n );\n};\n"],"mappings":";;;;6EAIaG,KAAcC,MAA2B;CACpD,IAAM,CAACC,GAAOC,KAAUN,EAAWI,GAAO,CAAC,SAAS,WAAW,CAAC;CAEhE,cAAA;EAAA,IAAAG,IAAAC,EAAA;EAKc,OALdC,EAAAF,GAAAG,EAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"Pagination.js","names":["splitProps","PaginationProps","clsx","Pagination","props","local","others","_el$","_tmpl$","_$spread","_$mergeProps","class","_$mergeProps","_tmpl$","Pagination","local","others","splitProps","props","_el$","spread","mergeProps","\"class\"","clsx"],"sources":["../../../../src/components/pagination/Pagination/Pagination.tsx"],"sourcesContent":["import { splitProps } from \"solid-js\";\nimport type { PaginationProps } from \"./Pagination.types\";\nimport { clsx } from \"~/utils\";\n\nexport const Pagination = (props: PaginationProps) => {\n const [local, others] = splitProps(props, [\"class\", \"classList\"]);\n\n return (\n <nav\n aria-label=\"pagination\"\n data-slot=\"pagination\"\n class={clsx(\"mx-auto flex w-full justify-center\", local.class)}\n {...others}\n />\n );\n};\n"],"mappings":";;;;6EAIaG,KAAcC,MAA2B;CACpD,IAAM,CAACC,GAAOC,KAAUN,EAAWI,GAAO,CAAC,SAAS,WAAW,CAAC;CAEhE,cAAA;EAAA,IAAAG,IAAAC,EAAA;EAKc,OALdC,EAAAF,GAAAG,EAAA,EAAA,IAAAY,QAAA;GAAA,OAIWpB,EAAK,sCAAsCG,EAAMM,KAAK;EAAC,EAAA,GAC1DL,CAAM,GAAA,IAAA,EAAA,GAAAC;CAAA,EAAA,CAAA;AAGhB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PaginationContentProps } from './PaginationContent.types';
|
|
2
|
-
export declare const PaginationContent: (props: PaginationContentProps) => import(
|
|
2
|
+
export declare const PaginationContent: (props: PaginationContentProps) => import('solid-js').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationContent.js","names":["splitProps","PaginationContentProps","clsx","PaginationContent","props","local","others","_el$","_tmpl$","_$spread","_$mergeProps","class"],"sources":["../../../../src/components/pagination/PaginationContent/PaginationContent.tsx"],"sourcesContent":["import { splitProps } from \"solid-js\";\nimport type { PaginationContentProps } from \"./PaginationContent.types\";\nimport { clsx } from \"~/utils\";\n\nexport const PaginationContent = (props: PaginationContentProps) => {\n const [local, others] = splitProps(props, [\"class\", \"classList\"]);\n\n return (\n <ul\n data-slot=\"pagination-content\"\n class={clsx(\"flex items-center gap-0.5\", local.class)}\n {...others}\n />\n );\n};\n"],"mappings":";;;;8DAIaG,KAAqBC,MAAkC;CAClE,IAAM,CAACC,GAAOC,KAAUN,EAAWI,GAAO,CAAC,SAAS,WAAW,CAAC;CAEhE,cAAA;EAAA,IAAAG,IAAAC,EAAA;EAIc,OAJdC,EAAAF,GAAAG,EAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"PaginationContent.js","names":["splitProps","PaginationContentProps","clsx","PaginationContent","props","local","others","_el$","_tmpl$","_$spread","_$mergeProps","class","_$mergeProps","_tmpl$","PaginationContent","local","others","splitProps","props","_el$","spread","mergeProps","\"class\"","clsx"],"sources":["../../../../src/components/pagination/PaginationContent/PaginationContent.tsx"],"sourcesContent":["import { splitProps } from \"solid-js\";\nimport type { PaginationContentProps } from \"./PaginationContent.types\";\nimport { clsx } from \"~/utils\";\n\nexport const PaginationContent = (props: PaginationContentProps) => {\n const [local, others] = splitProps(props, [\"class\", \"classList\"]);\n\n return (\n <ul\n data-slot=\"pagination-content\"\n class={clsx(\"flex items-center gap-0.5\", local.class)}\n {...others}\n />\n );\n};\n"],"mappings":";;;;8DAIaG,KAAqBC,MAAkC;CAClE,IAAM,CAACC,GAAOC,KAAUN,EAAWI,GAAO,CAAC,SAAS,WAAW,CAAC;CAEhE,cAAA;EAAA,IAAAG,IAAAC,EAAA;EAIc,OAJdC,EAAAF,GAAAG,EAAA,EAAA,IAAAY,QAAA;GAAA,OAGWpB,EAAK,6BAA6BG,EAAMM,KAAK;EAAC,EAAA,GACjDL,CAAM,GAAA,IAAA,EAAA,GAAAC;CAAA,EAAA,CAAA;AAGhB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PaginationEllipsisProps } from './PaginationEllipsis.types';
|
|
2
|
-
export declare const PaginationEllipsis: (props: PaginationEllipsisProps) => import(
|
|
2
|
+
export declare const PaginationEllipsis: (props: PaginationEllipsisProps) => import('solid-js').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationEllipsis.js","names":["splitProps","PaginationEllipsisProps","clsx","Ellipsis","PaginationEllipsis","props","local","others","_el$","_tmpl$","_el$2","firstChild","_$spread","_$mergeProps","class","_$insert","_$createComponent"],"sources":["../../../../src/components/pagination/PaginationEllipsis/PaginationEllipsis.tsx"],"sourcesContent":["import { splitProps } from \"solid-js\";\nimport type { PaginationEllipsisProps } from \"./PaginationEllipsis.types\";\nimport { clsx } from \"~/utils\";\nimport { Ellipsis } from \"lucide-solid\";\n\nexport const PaginationEllipsis = (props: PaginationEllipsisProps) => {\n const [local, others] = splitProps(props, [\"class\", \"classList\"]);\n\n return (\n <span\n aria-hidden\n data-slot=\"pagination-ellipsis\"\n class={clsx(\n \"flex size-8 items-center justify-center [&_svg:not([class*='size-'])]:size-4\",\n local.class,\n )}\n {...others}\n >\n <Ellipsis />\n <span class=\"sr-only\">More pages</span>\n </span>\n );\n};\n"],"mappings":";;;;;2GAKaI,KAAsBC,MAAmC;CACpE,IAAM,CAACC,GAAOC,KAAUP,EAAWK,GAAO,CAAC,SAAS,WAAW,CAAC;CAEhE,cAAA;EAAA,IAAAG,IAAAC,EAAA,GAAAC,IAAAF,EAAAG;EAUa,OAVbC,EAAAJ,GAAAK,EAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"PaginationEllipsis.js","names":["splitProps","PaginationEllipsisProps","clsx","Ellipsis","PaginationEllipsis","props","local","others","_el$","_tmpl$","_el$2","firstChild","_$spread","_$mergeProps","class","_$insert","_$createComponent","_$mergeProps","_$createComponent","_tmpl$","PaginationEllipsis","local","others","splitProps","props","_el$","_el$2","spread","mergeProps","\"class\"","clsx","insert","createComponent","Ellipsis"],"sources":["../../../../src/components/pagination/PaginationEllipsis/PaginationEllipsis.tsx"],"sourcesContent":["import { splitProps } from \"solid-js\";\nimport type { PaginationEllipsisProps } from \"./PaginationEllipsis.types\";\nimport { clsx } from \"~/utils\";\nimport { Ellipsis } from \"lucide-solid\";\n\nexport const PaginationEllipsis = (props: PaginationEllipsisProps) => {\n const [local, others] = splitProps(props, [\"class\", \"classList\"]);\n\n return (\n <span\n aria-hidden\n data-slot=\"pagination-ellipsis\"\n class={clsx(\n \"flex size-8 items-center justify-center [&_svg:not([class*='size-'])]:size-4\",\n local.class,\n )}\n {...others}\n >\n <Ellipsis />\n <span class=\"sr-only\">More pages</span>\n </span>\n );\n};\n"],"mappings":";;;;;2GAKaI,KAAsBC,MAAmC;CACpE,IAAM,CAACC,GAAOC,KAAUP,EAAWK,GAAO,CAAC,SAAS,WAAW,CAAC;CAEhE,cAAA;EAAA,IAAAG,IAAAC,EAAA,GAAAC,IAAAF,EAAAG;EAUa,OAVbC,EAAAJ,GAAAK,EAAA,EAAA,IAAAgB,QAAA;GAAA,OAIW3B,EACL,gFACAI,EAAMQ,KACR;EAAC,EAAA,GACGP,CAAM,GAAA,IAAA,EAAA,GAAAQ,EAAAP,GAAAQ,EAETb,GAAQ,CAAA,CAAA,GAAAO,CAAA,GAAAF;CAAA,EAAA,CAAA;AAIf"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PaginationItemProps } from './PaginationItem.types';
|
|
2
|
-
export declare const PaginationItem: (props: PaginationItemProps) => import(
|
|
2
|
+
export declare const PaginationItem: (props: PaginationItemProps) => import('solid-js').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationItem.js","names":["PaginationItemProps","PaginationItem","props","_el$","_tmpl$","_$spread"],"sources":["../../../../src/components/pagination/PaginationItem/PaginationItem.tsx"],"sourcesContent":["import type { PaginationItemProps } from \"./PaginationItem.types\";\n\nexport const PaginationItem = (props: PaginationItemProps) => {\n return <li data-slot=\"pagination-item\" {...props} />;\n};\n"],"mappings":";;2DAEaC,KAAkBC,aAC7B;CAAA,IAAAC,IAAAC,EAAA;CAAgD,OAAhDC,EAAAF,GAA2CD,GAAK,IAAA,EAAA,GAAAC;AAAA,EAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"PaginationItem.js","names":["PaginationItemProps","PaginationItem","props","_el$","_tmpl$","_$spread","_tmpl$","PaginationItem","_el$","spread","props"],"sources":["../../../../src/components/pagination/PaginationItem/PaginationItem.tsx"],"sourcesContent":["import type { PaginationItemProps } from \"./PaginationItem.types\";\n\nexport const PaginationItem = (props: PaginationItemProps) => {\n return <li data-slot=\"pagination-item\" {...props} />;\n};\n"],"mappings":";;2DAEaC,KAAkBC,aAC7B;CAAA,IAAAC,IAAAC,EAAA;CAAgD,OAAhDC,EAAAF,GAA2CD,GAAK,IAAA,EAAA,GAAAC;AAAA,EAAA,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PaginationLinkProps } from './PaginationLink.types';
|
|
2
|
-
export declare const PaginationLink: (props: PaginationLinkProps) => import(
|
|
2
|
+
export declare const PaginationLink: (props: PaginationLinkProps) => import('solid-js').JSX.Element;
|
|
@@ -34,7 +34,7 @@ var s = (s) => {
|
|
|
34
34
|
return l.page;
|
|
35
35
|
},
|
|
36
36
|
get "aria-label"() {
|
|
37
|
-
return r(() => l.page
|
|
37
|
+
return r(() => !(l.page === void 0 || l.children))() ? `Page ${l.page}` : void 0;
|
|
38
38
|
}
|
|
39
39
|
}, u, { get children() {
|
|
40
40
|
return r(() => l.page === void 0)() && l.children;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationLink.js","names":["mergeProps","splitProps","PaginationLinkProps","clsx","Button","PaginationLink","props","merged","size","const","local","others","_$createComponent","_$mergeProps","component","variant","isActive","aria-current","undefined","data-active","class","icon","page","aria-label","_$memo","children"],"sources":["../../../../src/components/pagination/PaginationLink/PaginationLink.tsx"],"sourcesContent":["import { mergeProps, splitProps } from \"solid-js\";\nimport type { PaginationLinkProps } from \"./PaginationLink.types\";\nimport { clsx } from \"~/utils\";\nimport { Button } from \"~/components/button\";\n\nexport const PaginationLink = (props: PaginationLinkProps) => {\n const merged = mergeProps({ size: \"md\" } as const, props);\n\n const [local, others] = splitProps(merged, [\n \"size\",\n \"isActive\",\n \"class\",\n \"classList\",\n \"page\",\n \"children\",\n ]);\n\n return (\n <Button\n component=\"a\"\n variant={local.isActive ? \"outline\" : \"ghost\"}\n size={local.size}\n aria-current={local.isActive ? \"page\" : undefined}\n data-slot=\"pagination-link\"\n data-active={local.isActive}\n class={clsx(local.class)}\n icon={local.page}\n aria-label={\n local.page !== undefined && !local.children\n ? `Page ${local.page}`\n : undefined\n }\n {...others}\n >\n {local.page === undefined && local.children}\n </Button>\n );\n};\n"],"mappings":";;;;;AAKA,IAAaK,KAAkBC,MAA+B;CAC5D,IAAMC,IAASP,EAAW,EAAEQ,MAAM,KAAK,GAAYF,CAAK,GAElD,CAACI,GAAOC,KAAUV,EAAWM,GAAQ;EACzC;EACA;EACA;EACA;EACA;EACA;CAAU,CACX;CAED,OAAAK,EACGR,GAAMS,EAAA;EACLC,WAAS;EAAA,IACTC,UAAO;GAAA,OAAEL,EAAMM,WAAW,YAAY;EAAO;EAAA,IAC7CR,OAAI;GAAA,OAAEE,EAAMF;EAAI;EAAA,IAAA,iBAAA;GAAA,OACFE,EAAMM,WAAW,SAASE,KAAAA;EAAS;EAAA,aAAA;EAAA,IAAA,gBAAA;GAAA,OAEpCR,EAAMM;EAAQ;EAAA,
|
|
1
|
+
{"version":3,"file":"PaginationLink.js","names":["mergeProps","splitProps","PaginationLinkProps","clsx","Button","PaginationLink","props","merged","size","const","local","others","_$createComponent","_$mergeProps","component","variant","isActive","aria-current","undefined","data-active","class","icon","page","aria-label","_$memo","children","mergeProps","_$createComponent","_$mergeProps","_$memo","mergeProps$1","PaginationLink","merged","props","local","others","splitProps","createComponent","Button","mergeProps","\"class\"","clsx","memo"],"sources":["../../../../src/components/pagination/PaginationLink/PaginationLink.tsx"],"sourcesContent":["import { mergeProps, splitProps } from \"solid-js\";\nimport type { PaginationLinkProps } from \"./PaginationLink.types\";\nimport { clsx } from \"~/utils\";\nimport { Button } from \"~/components/button\";\n\nexport const PaginationLink = (props: PaginationLinkProps) => {\n const merged = mergeProps({ size: \"md\" } as const, props);\n\n const [local, others] = splitProps(merged, [\n \"size\",\n \"isActive\",\n \"class\",\n \"classList\",\n \"page\",\n \"children\",\n ]);\n\n return (\n <Button\n component=\"a\"\n variant={local.isActive ? \"outline\" : \"ghost\"}\n size={local.size}\n aria-current={local.isActive ? \"page\" : undefined}\n data-slot=\"pagination-link\"\n data-active={local.isActive}\n class={clsx(local.class)}\n icon={local.page}\n aria-label={\n local.page !== undefined && !local.children\n ? `Page ${local.page}`\n : undefined\n }\n {...others}\n >\n {local.page === undefined && local.children}\n </Button>\n );\n};\n"],"mappings":";;;;;AAKA,IAAaK,KAAkBC,MAA+B;CAC5D,IAAMC,IAASP,EAAW,EAAEQ,MAAM,KAAK,GAAYF,CAAK,GAElD,CAACI,GAAOC,KAAUV,EAAWM,GAAQ;EACzC;EACA;EACA;EACA;EACA;EACA;CAAU,CACX;CAED,OAAAK,EACGR,GAAMS,EAAA;EACLC,WAAS;EAAA,IACTC,UAAO;GAAA,OAAEL,EAAMM,WAAW,YAAY;EAAO;EAAA,IAC7CR,OAAI;GAAA,OAAEE,EAAMF;EAAI;EAAA,IAAA,iBAAA;GAAA,OACFE,EAAMM,WAAW,SAASE,KAAAA;EAAS;EAAA,aAAA;EAAA,IAAA,gBAAA;GAAA,OAEpCR,EAAMM;EAAQ;EAAA,IAAAwB,QAAA;GAAA,OACpBrC,EAAKO,EAAMU,KAAK;EAAC;EAAA,IACxBC,OAAI;GAAA,OAAEX,EAAMY;EAAI;EAAA,IAAA,eAAA;GAAA,OAEdE,QAAA,EAAAd,EAAMY,SAASJ,KAAAA,KAAcR,EAAMe,SAAQ,CAAA,CAAA,IACvC,QAAQf,EAAMY,SACdJ,KAAAA;EAAS;CAAA,GAEXP,GAAM,EAAA,IAAAc,WAAA;EAAA,OAETD,QAAAd,EAAMY,SAASJ,KAAAA,CAAS,CAAA,CAAA,KAAIR,EAAMe;CAAQ,EAAA,CAAA,CAAA;AAGjD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PaginationNextProps } from './PaginationNext.types';
|
|
2
|
-
export declare const PaginationNext: (props: PaginationNextProps) => import(
|
|
2
|
+
export declare const PaginationNext: (props: PaginationNextProps) => import('solid-js').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationNext.js","names":["mergeProps","splitProps","PaginationNextProps","PaginationLink","clsx","ChevronRight","PaginationNext","props","merged","text","local","others","_$createComponent","_$mergeProps","size","class","children","_el$","_tmpl$","_$insert"],"sources":["../../../../src/components/pagination/PaginationNext/PaginationNext.tsx"],"sourcesContent":["import { mergeProps, splitProps } from \"solid-js\";\nimport type { PaginationNextProps } from \"./PaginationNext.types\";\nimport { PaginationLink } from \"../PaginationLink\";\nimport { clsx } from \"~/utils\";\nimport { ChevronRight } from \"lucide-solid\";\n\nexport const PaginationNext = (props: PaginationNextProps) => {\n const merged = mergeProps({ text: \"Next\" }, props);\n\n const [local, others] = splitProps(merged, [\"text\", \"class\", \"classList\"]);\n\n return (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"md\"\n class={clsx(\"pr-1.5!\", local.class)}\n {...others}\n >\n <span class=\"hidden sm:block\">{local.text}</span>\n <ChevronRight data-icon=\"inline-end\" class=\"cn-rtl-flip\" />\n </PaginationLink>\n );\n};\n"],"mappings":";;;;;;6DAMaM,KAAkBC,MAA+B;CAC5D,IAAMC,IAASR,EAAW,EAAES,MAAM,OAAO,GAAGF,CAAK,GAE3C,CAACG,GAAOC,KAAUV,EAAWO,GAAQ;EAAC;EAAQ;EAAS;CAAW,CAAC;CAEzE,OAAAI,EACGT,GAAcU,EAAA;EAAA,cAAA;EAEbC,MAAI;EAAA,
|
|
1
|
+
{"version":3,"file":"PaginationNext.js","names":["mergeProps","splitProps","PaginationNextProps","PaginationLink","clsx","ChevronRight","PaginationNext","props","merged","text","local","others","_$createComponent","_$mergeProps","size","class","children","_el$","_tmpl$","_$insert","mergeProps","_$createComponent","_$mergeProps","mergeProps$1","_tmpl$","PaginationNext","merged","props","local","others","splitProps","createComponent","PaginationLink","mergeProps","\"class\"","clsx","_el$","insert","ChevronRight"],"sources":["../../../../src/components/pagination/PaginationNext/PaginationNext.tsx"],"sourcesContent":["import { mergeProps, splitProps } from \"solid-js\";\nimport type { PaginationNextProps } from \"./PaginationNext.types\";\nimport { PaginationLink } from \"../PaginationLink\";\nimport { clsx } from \"~/utils\";\nimport { ChevronRight } from \"lucide-solid\";\n\nexport const PaginationNext = (props: PaginationNextProps) => {\n const merged = mergeProps({ text: \"Next\" }, props);\n\n const [local, others] = splitProps(merged, [\"text\", \"class\", \"classList\"]);\n\n return (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"md\"\n class={clsx(\"pr-1.5!\", local.class)}\n {...others}\n >\n <span class=\"hidden sm:block\">{local.text}</span>\n <ChevronRight data-icon=\"inline-end\" class=\"cn-rtl-flip\" />\n </PaginationLink>\n );\n};\n"],"mappings":";;;;;;6DAMaM,KAAkBC,MAA+B;CAC5D,IAAMC,IAASR,EAAW,EAAES,MAAM,OAAO,GAAGF,CAAK,GAE3C,CAACG,GAAOC,KAAUV,EAAWO,GAAQ;EAAC;EAAQ;EAAS;CAAW,CAAC;CAEzE,OAAAI,EACGT,GAAcU,EAAA;EAAA,cAAA;EAEbC,MAAI;EAAA,IAAAoB,QAAA;GAAA,OACG9B,EAAK,WAAWM,EAAMK,KAAK;EAAC;CAAA,GAC/BJ,GAAM,EAAA,IAAAK,WAAA;EAAA,OAAA,QAAA;GAAA,IAAAC,IAAAC,EAAA;GAE+B,OAF/BC,EAAAF,SAEqBP,EAAMD,IAAI,GAAAQ;EAAA,EAAA,CAAA,GAAAL,EACxCP,GAAY;GAAA,aAAA;GAAA6B,OAAA;EAAA,CAAA,CAAA;CAAA,EAAA,CAAA,CAAA;AAGnB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PaginationPreviousProps } from './PaginationPrevious.types';
|
|
2
|
-
export declare const PaginationPrevious: (props: PaginationPreviousProps) => import(
|
|
2
|
+
export declare const PaginationPrevious: (props: PaginationPreviousProps) => import('solid-js').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationPrevious.js","names":["mergeProps","splitProps","PaginationPreviousProps","PaginationLink","clsx","ChevronLeft","PaginationPrevious","props","merged","text","local","others","_$createComponent","_$mergeProps","size","class","children","_el$","_tmpl$","_$insert"],"sources":["../../../../src/components/pagination/PaginationPrevious/PaginationPrevious.tsx"],"sourcesContent":["import { mergeProps, splitProps } from \"solid-js\";\nimport type { PaginationPreviousProps } from \"./PaginationPrevious.types\";\nimport { PaginationLink } from \"../PaginationLink\";\nimport { clsx } from \"~/utils\";\nimport { ChevronLeft } from \"lucide-solid\";\n\nexport const PaginationPrevious = (props: PaginationPreviousProps) => {\n const merged = mergeProps({ text: \"Previous\" }, props);\n\n const [local, others] = splitProps(merged, [\"text\", \"class\", \"classList\"]);\n\n return (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"md\"\n class={clsx(\"pl-1.5!\", local.class)}\n {...others}\n >\n <ChevronLeft data-icon=\"inline-start\" class=\"cn-rtl-flip\" />\n <span class=\"hidden sm:block\">{local.text}</span>\n </PaginationLink>\n );\n};\n"],"mappings":";;;;;;6DAMaM,KAAsBC,MAAmC;CACpE,IAAMC,IAASR,EAAW,EAAES,MAAM,WAAW,GAAGF,CAAK,GAE/C,CAACG,GAAOC,KAAUV,EAAWO,GAAQ;EAAC;EAAQ;EAAS;CAAW,CAAC;CAEzE,OAAAI,EACGT,GAAcU,EAAA;EAAA,cAAA;EAEbC,MAAI;EAAA,
|
|
1
|
+
{"version":3,"file":"PaginationPrevious.js","names":["mergeProps","splitProps","PaginationPreviousProps","PaginationLink","clsx","ChevronLeft","PaginationPrevious","props","merged","text","local","others","_$createComponent","_$mergeProps","size","class","children","_el$","_tmpl$","_$insert","mergeProps","_$createComponent","_$mergeProps","mergeProps$1","_tmpl$","PaginationPrevious","merged","props","local","others","splitProps","createComponent","PaginationLink","mergeProps","\"class\"","clsx","ChevronLeft","_el$","insert"],"sources":["../../../../src/components/pagination/PaginationPrevious/PaginationPrevious.tsx"],"sourcesContent":["import { mergeProps, splitProps } from \"solid-js\";\nimport type { PaginationPreviousProps } from \"./PaginationPrevious.types\";\nimport { PaginationLink } from \"../PaginationLink\";\nimport { clsx } from \"~/utils\";\nimport { ChevronLeft } from \"lucide-solid\";\n\nexport const PaginationPrevious = (props: PaginationPreviousProps) => {\n const merged = mergeProps({ text: \"Previous\" }, props);\n\n const [local, others] = splitProps(merged, [\"text\", \"class\", \"classList\"]);\n\n return (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"md\"\n class={clsx(\"pl-1.5!\", local.class)}\n {...others}\n >\n <ChevronLeft data-icon=\"inline-start\" class=\"cn-rtl-flip\" />\n <span class=\"hidden sm:block\">{local.text}</span>\n </PaginationLink>\n );\n};\n"],"mappings":";;;;;;6DAMaM,KAAsBC,MAAmC;CACpE,IAAMC,IAASR,EAAW,EAAES,MAAM,WAAW,GAAGF,CAAK,GAE/C,CAACG,GAAOC,KAAUV,EAAWO,GAAQ;EAAC;EAAQ;EAAS;CAAW,CAAC;CAEzE,OAAAI,EACGT,GAAcU,EAAA;EAAA,cAAA;EAEbC,MAAI;EAAA,IAAAoB,QAAA;GAAA,OACG9B,EAAK,WAAWM,EAAMK,KAAK;EAAC;CAAA,GAC/BJ,GAAM,EAAA,IAAAK,WAAA;EAAA,OAAA,CAAAJ,EAETP,GAAW;GAAA,aAAA;GAAA6B,OAAA;EAAA,CAAA,UAAA;GAAA,IAAAjB,IAAAC,EAAA;GAC6B,OAD7BC,EAAAF,SACmBP,EAAMD,IAAI,GAAAQ;EAAA,EAAA,CAAA,CAAA;CAAA,EAAA,CAAA,CAAA;AAG/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.context.js","names":[],"sources":["../../../../src/components/popover/Popover/Popover.context.ts"],"sourcesContent":["import { createContext, useContext } from \"solid-js\";\nimport type { PopoverContextValue } from \"./Popover.types\";\n\nexport const PopoverContext = createContext<PopoverContextValue>();\n\nexport function usePopoverContext(component: string): PopoverContextValue {\n const ctx = useContext(PopoverContext);\n if (!ctx) {\n throw new Error(`<${component}> 必须渲染在 <Popover> 内部`);\n }\n return ctx;\n}\n"],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"Popover.context.js","names":["PopoverContext","createContext","usePopoverContext","ctx","useContext","component"],"sources":["../../../../src/components/popover/Popover/Popover.context.ts"],"sourcesContent":["import { createContext, useContext } from \"solid-js\";\nimport type { PopoverContextValue } from \"./Popover.types\";\n\nexport const PopoverContext = createContext<PopoverContextValue>();\n\nexport function usePopoverContext(component: string): PopoverContextValue {\n const ctx = useContext(PopoverContext);\n if (!ctx) {\n throw new Error(`<${component}> 必须渲染在 <Popover> 内部`);\n }\n return ctx;\n}\n"],"mappings":";;AAGA,IAAaA,IAAiBC,EAAmC;AAEjE,SAAgBC,EAAkB,GAAwC;CACxE,IAAMC,IAAMC,EAAWJ,CAAc;CACrC,IAAI,CAACG,GACH,MAAU,MAAM,IAAIE,EAAU,qBAAqB;CAErD,OAAOF;AACT"}
|