@neut/ui 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +105 -0
- package/dist/components/accordion/Accordion/Accordion.context.d.ts +17 -0
- package/dist/components/accordion/Accordion/Accordion.context.js +45 -0
- package/dist/components/accordion/Accordion/Accordion.d.ts +2 -0
- package/dist/components/accordion/Accordion/Accordion.js +65 -0
- package/dist/components/accordion/Accordion/Accordion.styles.d.ts +0 -0
- package/dist/components/accordion/Accordion/Accordion.types.d.ts +19 -0
- package/dist/components/accordion/Accordion/index.d.ts +1 -0
- package/dist/components/accordion/Accordion/useAccordion.d.ts +0 -0
- package/dist/components/accordion/AccordionContent/AccordionContent.d.ts +2 -0
- package/dist/components/accordion/AccordionContent/AccordionContent.js +53 -0
- package/dist/components/accordion/AccordionContent/AccordionContent.styles.d.ts +0 -0
- package/dist/components/accordion/AccordionContent/AccordionContent.types.d.ts +7 -0
- package/dist/components/accordion/AccordionContent/index.d.ts +1 -0
- package/dist/components/accordion/AccordionItem/AccordionItem.context.d.ts +13 -0
- package/dist/components/accordion/AccordionItem/AccordionItem.context.js +25 -0
- package/dist/components/accordion/AccordionItem/AccordionItem.d.ts +2 -0
- package/dist/components/accordion/AccordionItem/AccordionItem.js +46 -0
- package/dist/components/accordion/AccordionItem/AccordionItem.styles.d.ts +0 -0
- package/dist/components/accordion/AccordionItem/AccordionItem.types.d.ts +8 -0
- package/dist/components/accordion/AccordionItem/index.d.ts +1 -0
- package/dist/components/accordion/AccordionTrigger/AccordionTrigger.d.ts +2 -0
- package/dist/components/accordion/AccordionTrigger/AccordionTrigger.js +44 -0
- package/dist/components/accordion/AccordionTrigger/AccordionTrigger.styles.d.ts +0 -0
- package/dist/components/accordion/AccordionTrigger/AccordionTrigger.types.d.ts +6 -0
- package/dist/components/accordion/AccordionTrigger/index.d.ts +1 -0
- package/dist/components/accordion/index.d.ts +4 -0
- package/dist/components/aspect-ratio/AspectRatio.d.ts +2 -0
- package/dist/components/aspect-ratio/AspectRatio.js +25 -0
- package/dist/components/aspect-ratio/AspectRatio.styles.d.ts +1 -0
- package/dist/components/aspect-ratio/AspectRatio.styles.js +5 -0
- package/dist/components/aspect-ratio/AspectRatio.types.d.ts +6 -0
- package/dist/components/aspect-ratio/index.d.ts +1 -0
- package/dist/components/avatar/Avatar/Avatar.context.d.ts +8 -0
- package/dist/components/avatar/Avatar/Avatar.context.js +9 -0
- package/dist/components/avatar/Avatar/Avatar.d.ts +2 -0
- package/dist/components/avatar/Avatar/Avatar.js +34 -0
- package/dist/components/avatar/Avatar/Avatar.types.d.ts +4 -0
- package/dist/components/avatar/Avatar/index.d.ts +1 -0
- package/dist/components/avatar/AvatarBadge/AvatarBadge.d.ts +2 -0
- package/dist/components/avatar/AvatarBadge/AvatarBadge.js +15 -0
- package/dist/components/avatar/AvatarBadge/AvatarBadge.types.d.ts +2 -0
- package/dist/components/avatar/AvatarBadge/index.d.ts +1 -0
- package/dist/components/avatar/AvatarFallback/AvatarFallback.d.ts +2 -0
- package/dist/components/avatar/AvatarFallback/AvatarFallback.js +21 -0
- package/dist/components/avatar/AvatarFallback/AvatarFallback.types.d.ts +2 -0
- package/dist/components/avatar/AvatarFallback/index.d.ts +1 -0
- package/dist/components/avatar/AvatarGroup/AvatarGroup.d.ts +2 -0
- package/dist/components/avatar/AvatarGroup/AvatarGroup.js +15 -0
- package/dist/components/avatar/AvatarGroup/AvatarGroup.types.d.ts +2 -0
- package/dist/components/avatar/AvatarGroup/index.d.ts +1 -0
- package/dist/components/avatar/AvatarGroupCount/AvatarGroupCount.d.ts +2 -0
- package/dist/components/avatar/AvatarGroupCount/AvatarGroupCount.js +15 -0
- package/dist/components/avatar/AvatarGroupCount/AvatarGroupCount.types.d.ts +2 -0
- package/dist/components/avatar/AvatarGroupCount/index.d.ts +1 -0
- package/dist/components/avatar/AvatarImage/AvatarImage.d.ts +2 -0
- package/dist/components/avatar/AvatarImage/AvatarImage.js +32 -0
- package/dist/components/avatar/AvatarImage/AvatarImage.types.d.ts +2 -0
- package/dist/components/avatar/AvatarImage/index.d.ts +1 -0
- package/dist/components/avatar/index.d.ts +6 -0
- package/dist/components/badge/Badge.d.ts +2 -0
- package/dist/components/badge/Badge.js +20 -0
- package/dist/components/badge/Badge.styles.d.ts +3 -0
- package/dist/components/badge/Badge.styles.js +16 -0
- package/dist/components/badge/Badge.types.d.ts +6 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/button/Button.d.ts +2 -0
- package/dist/components/button/Button.js +84 -0
- package/dist/components/button/Button.styles.d.ts +7 -0
- package/dist/components/button/Button.styles.js +26 -0
- package/dist/components/button/Button.types.d.ts +23 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button-group/ButtonGroup/ButtonGroup.d.ts +2 -0
- package/dist/components/button-group/ButtonGroup/ButtonGroup.js +25 -0
- package/dist/components/button-group/ButtonGroup/ButtonGroup.styles.d.ts +3 -0
- package/dist/components/button-group/ButtonGroup/ButtonGroup.styles.js +11 -0
- package/dist/components/button-group/ButtonGroup/ButtonGroup.types.d.ts +6 -0
- package/dist/components/button-group/ButtonGroup/index.d.ts +1 -0
- package/dist/components/button-group/ButtonGroupSeparator/ButtonGroupSeparator.d.ts +2 -0
- package/dist/components/button-group/ButtonGroupSeparator/ButtonGroupSeparator.js +20 -0
- package/dist/components/button-group/ButtonGroupSeparator/ButtonGroupSeparator.styles.d.ts +1 -0
- package/dist/components/button-group/ButtonGroupSeparator/ButtonGroupSeparator.styles.js +5 -0
- package/dist/components/button-group/ButtonGroupSeparator/ButtonGroupSeparator.types.d.ts +2 -0
- package/dist/components/button-group/ButtonGroupSeparator/index.d.ts +1 -0
- package/dist/components/button-group/ButtonGroupText/ButtonGroupText.d.ts +2 -0
- package/dist/components/button-group/ButtonGroupText/ButtonGroupText.js +12 -0
- package/dist/components/button-group/ButtonGroupText/ButtonGroupText.styles.d.ts +1 -0
- package/dist/components/button-group/ButtonGroupText/ButtonGroupText.styles.js +5 -0
- package/dist/components/button-group/ButtonGroupText/ButtonGroupText.types.d.ts +2 -0
- package/dist/components/button-group/ButtonGroupText/index.d.ts +1 -0
- package/dist/components/button-group/index.d.ts +3 -0
- package/dist/components/card/Card/Card.d.ts +2 -0
- package/dist/components/card/Card/Card.js +25 -0
- package/dist/components/card/Card/Card.styles.d.ts +1 -0
- package/dist/components/card/Card/Card.styles.js +4 -0
- package/dist/components/card/Card/Card.types.d.ts +6 -0
- package/dist/components/card/Card/index.d.ts +1 -0
- package/dist/components/card/CardAction/CardAction.d.ts +2 -0
- package/dist/components/card/CardAction/CardAction.js +16 -0
- package/dist/components/card/CardAction/CardAction.styles.d.ts +1 -0
- package/dist/components/card/CardAction/CardAction.styles.js +4 -0
- package/dist/components/card/CardAction/CardAction.types.d.ts +2 -0
- package/dist/components/card/CardAction/index.d.ts +1 -0
- package/dist/components/card/CardContent/CardContent.d.ts +2 -0
- package/dist/components/card/CardContent/CardContent.js +16 -0
- package/dist/components/card/CardContent/CardContent.styles.d.ts +1 -0
- package/dist/components/card/CardContent/CardContent.styles.js +4 -0
- package/dist/components/card/CardContent/CardContent.types.d.ts +2 -0
- package/dist/components/card/CardContent/index.d.ts +1 -0
- package/dist/components/card/CardDescription/CardDescription.d.ts +2 -0
- package/dist/components/card/CardDescription/CardDescription.js +16 -0
- package/dist/components/card/CardDescription/CardDescription.styles.d.ts +1 -0
- package/dist/components/card/CardDescription/CardDescription.styles.js +4 -0
- package/dist/components/card/CardDescription/CardDescription.types.d.ts +2 -0
- package/dist/components/card/CardDescription/index.d.ts +1 -0
- package/dist/components/card/CardFooter/CardFooter.d.ts +2 -0
- package/dist/components/card/CardFooter/CardFooter.js +16 -0
- package/dist/components/card/CardFooter/CardFooter.styles.d.ts +1 -0
- package/dist/components/card/CardFooter/CardFooter.styles.js +4 -0
- package/dist/components/card/CardFooter/CardFooter.types.d.ts +2 -0
- package/dist/components/card/CardFooter/index.d.ts +1 -0
- package/dist/components/card/CardHeader/CardHeader.d.ts +2 -0
- package/dist/components/card/CardHeader/CardHeader.js +16 -0
- package/dist/components/card/CardHeader/CardHeader.styles.d.ts +1 -0
- package/dist/components/card/CardHeader/CardHeader.styles.js +4 -0
- package/dist/components/card/CardHeader/CardHeader.types.d.ts +2 -0
- package/dist/components/card/CardHeader/index.d.ts +1 -0
- package/dist/components/card/CardTitle/CardTitle.d.ts +2 -0
- package/dist/components/card/CardTitle/CardTitle.js +16 -0
- package/dist/components/card/CardTitle/CardTitle.styles.d.ts +1 -0
- package/dist/components/card/CardTitle/CardTitle.styles.js +4 -0
- package/dist/components/card/CardTitle/CardTitle.types.d.ts +2 -0
- package/dist/components/card/CardTitle/index.d.ts +1 -0
- package/dist/components/card/index.d.ts +7 -0
- package/dist/components/carousel/Carousel/Carousel.context.d.ts +25 -0
- package/dist/components/carousel/Carousel/Carousel.context.js +10 -0
- package/dist/components/carousel/Carousel/Carousel.d.ts +2 -0
- package/dist/components/carousel/Carousel/Carousel.js +32 -0
- package/dist/components/carousel/Carousel/Carousel.styles.d.ts +0 -0
- package/dist/components/carousel/Carousel/Carousel.types.d.ts +11 -0
- package/dist/components/carousel/Carousel/Carousel.utils.d.ts +0 -0
- package/dist/components/carousel/Carousel/index.d.ts +2 -0
- package/dist/components/carousel/Carousel/useAutoPlay.d.ts +4 -0
- package/dist/components/carousel/Carousel/useAutoPlay.js +14 -0
- package/dist/components/carousel/Carousel/useCarousel.d.ts +17 -0
- package/dist/components/carousel/Carousel/useCarousel.js +29 -0
- package/dist/components/carousel/Carousel/useKeyboardNavigation.d.ts +3 -0
- package/dist/components/carousel/Carousel/useKeyboardNavigation.js +13 -0
- package/dist/components/carousel/CarouselContent/CarouselContent.d.ts +2 -0
- package/dist/components/carousel/CarouselContent/CarouselContent.js +29 -0
- package/dist/components/carousel/CarouselContent/CarouselContent.styles.d.ts +0 -0
- package/dist/components/carousel/CarouselContent/CarouselContent.types.d.ts +2 -0
- package/dist/components/carousel/CarouselContent/index.d.ts +1 -0
- package/dist/components/carousel/CarouselContent/useItemSizeMeasure.d.ts +3 -0
- package/dist/components/carousel/CarouselContent/useItemSizeMeasure.js +17 -0
- package/dist/components/carousel/CarouselDots/CarouselDots.d.ts +2 -0
- package/dist/components/carousel/CarouselDots/CarouselDots.js +22 -0
- package/dist/components/carousel/CarouselDots/CarouselDots.types.d.ts +2 -0
- package/dist/components/carousel/CarouselDots/index.d.ts +1 -0
- package/dist/components/carousel/CarouselItem/CarouselItem.d.ts +2 -0
- package/dist/components/carousel/CarouselItem/CarouselItem.js +25 -0
- package/dist/components/carousel/CarouselItem/CarouselItem.types.d.ts +6 -0
- package/dist/components/carousel/CarouselItem/index.d.ts +1 -0
- package/dist/components/carousel/CarouselNext/CarouselNext.d.ts +2 -0
- package/dist/components/carousel/CarouselNext/CarouselNext.js +29 -0
- package/dist/components/carousel/CarouselNext/CarouselNext.types.d.ts +2 -0
- package/dist/components/carousel/CarouselNext/index.d.ts +1 -0
- package/dist/components/carousel/CarouselPrevious/CarouselPrevious.d.ts +2 -0
- package/dist/components/carousel/CarouselPrevious/CarouselPrevious.js +29 -0
- package/dist/components/carousel/CarouselPrevious/CarouselPrevious.types.d.ts +2 -0
- package/dist/components/carousel/CarouselPrevious/index.d.ts +1 -0
- package/dist/components/carousel/index.d.ts +6 -0
- package/dist/components/field/Field/Field.d.ts +2 -0
- package/dist/components/field/Field/Field.js +25 -0
- package/dist/components/field/Field/Field.styles.d.ts +3 -0
- package/dist/components/field/Field/Field.styles.js +12 -0
- package/dist/components/field/Field/Field.types.d.ts +4 -0
- package/dist/components/field/Field/index.d.ts +1 -0
- package/dist/components/field/FieldContent/FieldContent.d.ts +2 -0
- package/dist/components/field/FieldContent/FieldContent.js +15 -0
- package/dist/components/field/FieldContent/FieldContent.types.d.ts +2 -0
- package/dist/components/field/FieldContent/index.d.ts +1 -0
- package/dist/components/field/FieldDescription/FieldDescription.d.ts +2 -0
- package/dist/components/field/FieldDescription/FieldDescription.js +15 -0
- package/dist/components/field/FieldDescription/FieldDescription.types.d.ts +2 -0
- package/dist/components/field/FieldDescription/index.d.ts +1 -0
- package/dist/components/field/FieldError/FieldError.d.ts +2 -0
- package/dist/components/field/FieldError/FieldError.js +36 -0
- package/dist/components/field/FieldError/FieldError.types.d.ts +6 -0
- package/dist/components/field/FieldError/index.d.ts +1 -0
- package/dist/components/field/FieldError/useFieldError.d.ts +0 -0
- package/dist/components/field/FieldGroup/FieldGroup.d.ts +2 -0
- package/dist/components/field/FieldGroup/FieldGroup.js +15 -0
- package/dist/components/field/FieldGroup/FieldGroup.types.d.ts +2 -0
- package/dist/components/field/FieldGroup/index.d.ts +1 -0
- package/dist/components/field/FieldLabel/FieldLabel.d.ts +2 -0
- package/dist/components/field/FieldLabel/FieldLabel.js +16 -0
- package/dist/components/field/FieldLabel/FieldLabel.types.d.ts +3 -0
- package/dist/components/field/FieldLabel/index.d.ts +1 -0
- package/dist/components/field/FieldLegend/FieldLegend.d.ts +2 -0
- package/dist/components/field/FieldLegend/FieldLegend.js +24 -0
- package/dist/components/field/FieldLegend/FieldLegend.types.d.ts +4 -0
- package/dist/components/field/FieldLegend/index.d.ts +1 -0
- package/dist/components/field/FieldSeparator/FieldSeparator.d.ts +2 -0
- package/dist/components/field/FieldSeparator/FieldSeparator.js +33 -0
- package/dist/components/field/FieldSeparator/FieldSeparator.types.d.ts +2 -0
- package/dist/components/field/FieldSeparator/index.d.ts +1 -0
- package/dist/components/field/FieldSet/FieldSet.d.ts +2 -0
- package/dist/components/field/FieldSet/FieldSet.js +15 -0
- package/dist/components/field/FieldSet/FieldSet.types.d.ts +2 -0
- package/dist/components/field/FieldSet/index.d.ts +1 -0
- package/dist/components/field/FieldTitle/FieldTitle.d.ts +2 -0
- package/dist/components/field/FieldTitle/FieldTitle.js +15 -0
- package/dist/components/field/FieldTitle/FieldTitle.types.d.ts +2 -0
- package/dist/components/field/FieldTitle/index.d.ts +1 -0
- package/dist/components/field/index.d.ts +10 -0
- package/dist/components/image/Image.config.d.ts +16 -0
- package/dist/components/image/Image.config.js +53 -0
- package/dist/components/image/Image.d.ts +13 -0
- package/dist/components/image/Image.js +47 -0
- package/dist/components/image/Image.styles.d.ts +0 -0
- package/dist/components/image/Image.types.d.ts +140 -0
- package/dist/components/image/Image.utils.d.ts +20 -0
- package/dist/components/image/Image.utils.js +238 -0
- package/dist/components/image/ImageElement.d.ts +16 -0
- package/dist/components/image/ImageElement.js +80 -0
- package/dist/components/image/ImagePreload.d.ts +15 -0
- package/dist/components/image/ImagePreload.js +26 -0
- package/dist/components/image/index.d.ts +1 -0
- package/dist/components/image/useImage.d.ts +0 -0
- package/dist/components/input/Input.d.ts +3 -0
- package/dist/components/input/Input.js +31 -0
- package/dist/components/input/Input.types.d.ts +15 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input-group/InputGroup/InputGroup.d.ts +2 -0
- package/dist/components/input-group/InputGroup/InputGroup.js +15 -0
- package/dist/components/input-group/InputGroup/InputGroup.styles.d.ts +0 -0
- package/dist/components/input-group/InputGroup/InputGroup.types.d.ts +2 -0
- package/dist/components/input-group/InputGroup/index.d.ts +1 -0
- package/dist/components/input-group/InputGroupAddon/InputGroupAddon.d.ts +2 -0
- package/dist/components/input-group/InputGroupAddon/InputGroupAddon.js +28 -0
- package/dist/components/input-group/InputGroupAddon/InputGroupAddon.styles.d.ts +3 -0
- package/dist/components/input-group/InputGroupAddon/InputGroupAddon.styles.js +13 -0
- package/dist/components/input-group/InputGroupAddon/InputGroupAddon.types.d.ts +4 -0
- package/dist/components/input-group/InputGroupAddon/index.d.ts +1 -0
- package/dist/components/input-group/InputGroupButton/InputGroupButton.d.ts +2 -0
- package/dist/components/input-group/InputGroupButton/InputGroupButton.js +34 -0
- package/dist/components/input-group/InputGroupButton/InputGroupButton.styles.d.ts +4 -0
- package/dist/components/input-group/InputGroupButton/InputGroupButton.styles.js +17 -0
- package/dist/components/input-group/InputGroupButton/InputGroupButton.types.d.ts +5 -0
- package/dist/components/input-group/InputGroupButton/index.d.ts +1 -0
- package/dist/components/input-group/InputGroupInput/InputGroupInput.d.ts +2 -0
- package/dist/components/input-group/InputGroupInput/InputGroupInput.js +16 -0
- package/dist/components/input-group/InputGroupInput/InputGroupInput.styles.d.ts +0 -0
- package/dist/components/input-group/InputGroupInput/InputGroupInput.types.d.ts +2 -0
- package/dist/components/input-group/InputGroupInput/index.d.ts +1 -0
- package/dist/components/input-group/InputGroupText/InputGroupText.d.ts +2 -0
- package/dist/components/input-group/InputGroupText/InputGroupText.js +15 -0
- package/dist/components/input-group/InputGroupText/InputGroupText.styles.d.ts +0 -0
- package/dist/components/input-group/InputGroupText/InputGroupText.types.d.ts +2 -0
- package/dist/components/input-group/InputGroupText/index.d.ts +1 -0
- package/dist/components/input-group/InputGroupTextarea/InputGroupTextarea.d.ts +2 -0
- package/dist/components/input-group/InputGroupTextarea/InputGroupTextarea.js +16 -0
- package/dist/components/input-group/InputGroupTextarea/InputGroupTextarea.types.d.ts +2 -0
- package/dist/components/input-group/InputGroupTextarea/index.d.ts +1 -0
- package/dist/components/input-group/index.d.ts +6 -0
- package/dist/components/item/Item/Item.d.ts +3 -0
- package/dist/components/item/Item/Item.js +32 -0
- package/dist/components/item/Item/Item.styles.d.ts +4 -0
- package/dist/components/item/Item/Item.styles.js +21 -0
- package/dist/components/item/Item/Item.types.d.ts +5 -0
- package/dist/components/item/Item/index.d.ts +1 -0
- package/dist/components/item/ItemActions/ItemActions.d.ts +2 -0
- package/dist/components/item/ItemActions/ItemActions.js +15 -0
- package/dist/components/item/ItemActions/ItemActions.types.d.ts +2 -0
- package/dist/components/item/ItemActions/index.d.ts +1 -0
- package/dist/components/item/ItemContent/ItemContent.d.ts +2 -0
- package/dist/components/item/ItemContent/ItemContent.js +15 -0
- package/dist/components/item/ItemContent/ItemContent.types.d.ts +2 -0
- package/dist/components/item/ItemContent/index.d.ts +1 -0
- package/dist/components/item/ItemDescription/ItemDescription.d.ts +2 -0
- package/dist/components/item/ItemDescription/ItemDescription.js +15 -0
- package/dist/components/item/ItemDescription/ItemDescription.types.d.ts +2 -0
- package/dist/components/item/ItemDescription/index.d.ts +1 -0
- package/dist/components/item/ItemFooter/ItemFooter.d.ts +2 -0
- package/dist/components/item/ItemFooter/ItemFooter.js +15 -0
- package/dist/components/item/ItemFooter/ItemFooter.types.d.ts +2 -0
- package/dist/components/item/ItemFooter/index.d.ts +1 -0
- package/dist/components/item/ItemGroup/ItemGroup.d.ts +2 -0
- package/dist/components/item/ItemGroup/ItemGroup.js +15 -0
- package/dist/components/item/ItemGroup/ItemGroup.types.d.ts +2 -0
- package/dist/components/item/ItemGroup/index.d.ts +1 -0
- package/dist/components/item/ItemHeader/ItemHeader.d.ts +2 -0
- package/dist/components/item/ItemHeader/ItemHeader.js +15 -0
- package/dist/components/item/ItemHeader/ItemHeader.types.d.ts +2 -0
- package/dist/components/item/ItemHeader/index.d.ts +1 -0
- package/dist/components/item/ItemMedia/ItemMedia.d.ts +2 -0
- package/dist/components/item/ItemMedia/ItemMedia.js +25 -0
- package/dist/components/item/ItemMedia/ItemMedia.styles.d.ts +3 -0
- package/dist/components/item/ItemMedia/ItemMedia.styles.js +12 -0
- package/dist/components/item/ItemMedia/ItemMedia.types.d.ts +4 -0
- package/dist/components/item/ItemMedia/index.d.ts +1 -0
- package/dist/components/item/ItemSeparator/ItemSeparator.d.ts +2 -0
- package/dist/components/item/ItemSeparator/ItemSeparator.js +17 -0
- package/dist/components/item/ItemSeparator/ItemSeparator.types.d.ts +2 -0
- package/dist/components/item/ItemSeparator/index.d.ts +1 -0
- package/dist/components/item/ItemTitle/ItemTitle.d.ts +2 -0
- package/dist/components/item/ItemTitle/ItemTitle.js +15 -0
- package/dist/components/item/ItemTitle/ItemTitle.types.d.ts +2 -0
- package/dist/components/item/ItemTitle/index.d.ts +1 -0
- package/dist/components/item/index.d.ts +10 -0
- package/dist/components/kbd/Kbd.d.ts +3 -0
- package/dist/components/kbd/Kbd.js +23 -0
- package/dist/components/kbd/Kbd.types.d.ts +3 -0
- package/dist/components/kbd/index.d.ts +1 -0
- package/dist/components/label/Label.d.ts +2 -0
- package/dist/components/label/Label.js +15 -0
- package/dist/components/label/Label.types.d.ts +2 -0
- package/dist/components/label/index.d.ts +1 -0
- package/dist/components/pagination/Pagination/Pagination.d.ts +2 -0
- package/dist/components/pagination/Pagination/Pagination.js +15 -0
- package/dist/components/pagination/Pagination/Pagination.types.d.ts +2 -0
- package/dist/components/pagination/Pagination/index.d.ts +1 -0
- package/dist/components/pagination/PaginationContent/PaginationContent.d.ts +2 -0
- package/dist/components/pagination/PaginationContent/PaginationContent.js +15 -0
- package/dist/components/pagination/PaginationContent/PaginationContent.types.d.ts +2 -0
- package/dist/components/pagination/PaginationContent/index.d.ts +1 -0
- package/dist/components/pagination/PaginationEllipsis/PaginationEllipsis.d.ts +2 -0
- package/dist/components/pagination/PaginationEllipsis/PaginationEllipsis.js +16 -0
- package/dist/components/pagination/PaginationEllipsis/PaginationEllipsis.types.d.ts +2 -0
- package/dist/components/pagination/PaginationEllipsis/index.d.ts +1 -0
- package/dist/components/pagination/PaginationItem/PaginationItem.d.ts +2 -0
- package/dist/components/pagination/PaginationItem/PaginationItem.js +8 -0
- package/dist/components/pagination/PaginationItem/PaginationItem.types.d.ts +2 -0
- package/dist/components/pagination/PaginationItem/index.d.ts +1 -0
- package/dist/components/pagination/PaginationLink/PaginationLink.d.ts +2 -0
- package/dist/components/pagination/PaginationLink/PaginationLink.js +41 -0
- package/dist/components/pagination/PaginationLink/PaginationLink.types.d.ts +11 -0
- package/dist/components/pagination/PaginationLink/index.d.ts +1 -0
- package/dist/components/pagination/PaginationNext/PaginationNext.d.ts +2 -0
- package/dist/components/pagination/PaginationNext/PaginationNext.js +30 -0
- package/dist/components/pagination/PaginationNext/PaginationNext.types.d.ts +4 -0
- package/dist/components/pagination/PaginationNext/index.d.ts +1 -0
- package/dist/components/pagination/PaginationPrevious/PaginationPrevious.d.ts +2 -0
- package/dist/components/pagination/PaginationPrevious/PaginationPrevious.js +30 -0
- package/dist/components/pagination/PaginationPrevious/PaginationPrevious.types.d.ts +4 -0
- package/dist/components/pagination/PaginationPrevious/index.d.ts +1 -0
- package/dist/components/pagination/index.d.ts +7 -0
- package/dist/components/scroll-area/ScrollArea/ScrollArea.context.d.ts +13 -0
- package/dist/components/scroll-area/ScrollArea/ScrollArea.context.js +9 -0
- package/dist/components/scroll-area/ScrollArea/ScrollArea.d.ts +2 -0
- package/dist/components/scroll-area/ScrollArea/ScrollArea.js +65 -0
- package/dist/components/scroll-area/ScrollArea/ScrollArea.types.d.ts +13 -0
- package/dist/components/scroll-area/ScrollArea/ScrollArea.utils.d.ts +2 -0
- package/dist/components/scroll-area/ScrollArea/ScrollArea.utils.js +17 -0
- package/dist/components/scroll-area/ScrollArea/index.d.ts +2 -0
- package/dist/components/scroll-area/ScrollBar/ScrollBar.d.ts +2 -0
- package/dist/components/scroll-area/ScrollBar/ScrollBar.js +96 -0
- package/dist/components/scroll-area/ScrollBar/ScrollBar.types.d.ts +4 -0
- package/dist/components/scroll-area/ScrollBar/index.d.ts +1 -0
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/separator/Separator.d.ts +2 -0
- package/dist/components/separator/Separator.js +31 -0
- package/dist/components/separator/Separator.styles.d.ts +1 -0
- package/dist/components/separator/Separator.styles.js +5 -0
- package/dist/components/separator/Separator.types.d.ts +8 -0
- package/dist/components/separator/index.d.ts +2 -0
- package/dist/components/sidebar/Sidebar/Sidebar.d.ts +2 -0
- package/dist/components/sidebar/Sidebar/Sidebar.js +60 -0
- package/dist/components/sidebar/Sidebar/Sidebar.types.d.ts +6 -0
- package/dist/components/sidebar/Sidebar/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarContent/SidebarContent.d.ts +2 -0
- package/dist/components/sidebar/SidebarContent/SidebarContent.js +15 -0
- package/dist/components/sidebar/SidebarContent/SidebarContent.types.d.ts +2 -0
- package/dist/components/sidebar/SidebarContent/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarFooter/SidebarFooter.d.ts +2 -0
- package/dist/components/sidebar/SidebarFooter/SidebarFooter.js +15 -0
- package/dist/components/sidebar/SidebarFooter/SidebarFooter.types.d.ts +2 -0
- package/dist/components/sidebar/SidebarFooter/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarGroup/SidebarGroup.d.ts +2 -0
- package/dist/components/sidebar/SidebarGroup/SidebarGroup.js +15 -0
- package/dist/components/sidebar/SidebarGroup/SidebarGroup.types.d.ts +2 -0
- package/dist/components/sidebar/SidebarGroup/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarGroupAction/SidebarGroupAction.d.ts +3 -0
- package/dist/components/sidebar/SidebarGroupAction/SidebarGroupAction.js +23 -0
- package/dist/components/sidebar/SidebarGroupAction/SidebarGroupAction.types.d.ts +3 -0
- package/dist/components/sidebar/SidebarGroupAction/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarGroupContent/SidebarGroupContent.d.ts +2 -0
- package/dist/components/sidebar/SidebarGroupContent/SidebarGroupContent.js +15 -0
- package/dist/components/sidebar/SidebarGroupContent/SidebarGroupContent.types.d.ts +2 -0
- package/dist/components/sidebar/SidebarGroupContent/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarGroupLabel/SidebarGroupLabel.d.ts +3 -0
- package/dist/components/sidebar/SidebarGroupLabel/SidebarGroupLabel.js +23 -0
- package/dist/components/sidebar/SidebarGroupLabel/SidebarGroupLabel.types.d.ts +3 -0
- package/dist/components/sidebar/SidebarGroupLabel/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarHeader/SidebarHeader.d.ts +2 -0
- package/dist/components/sidebar/SidebarHeader/SidebarHeader.js +15 -0
- package/dist/components/sidebar/SidebarHeader/SidebarHeader.types.d.ts +2 -0
- package/dist/components/sidebar/SidebarHeader/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarInput/SidebarInput.d.ts +2 -0
- package/dist/components/sidebar/SidebarInput/SidebarInput.js +17 -0
- package/dist/components/sidebar/SidebarInput/SidebarInput.types.d.ts +2 -0
- package/dist/components/sidebar/SidebarInput/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarInset/SidebarInset.d.ts +2 -0
- package/dist/components/sidebar/SidebarInset/SidebarInset.js +15 -0
- package/dist/components/sidebar/SidebarInset/SidebarInset.types.d.ts +2 -0
- package/dist/components/sidebar/SidebarInset/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarMenu/SidebarMenu.d.ts +2 -0
- package/dist/components/sidebar/SidebarMenu/SidebarMenu.js +15 -0
- package/dist/components/sidebar/SidebarMenu/SidebarMenu.types.d.ts +2 -0
- package/dist/components/sidebar/SidebarMenu/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarMenuBadge/SidebarMenuBadge.d.ts +2 -0
- package/dist/components/sidebar/SidebarMenuBadge/SidebarMenuBadge.js +15 -0
- package/dist/components/sidebar/SidebarMenuBadge/SidebarMenuBadge.types.d.ts +2 -0
- package/dist/components/sidebar/SidebarMenuBadge/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarMenuButton/SidebarMenuButton.d.ts +3 -0
- package/dist/components/sidebar/SidebarMenuButton/SidebarMenuButton.js +66 -0
- package/dist/components/sidebar/SidebarMenuButton/SidebarMenuButton.styles.d.ts +4 -0
- package/dist/components/sidebar/SidebarMenuButton/SidebarMenuButton.styles.js +21 -0
- package/dist/components/sidebar/SidebarMenuButton/SidebarMenuButton.types.d.ts +9 -0
- package/dist/components/sidebar/SidebarMenuButton/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarMenuItem/SidebarMenuItem.d.ts +2 -0
- package/dist/components/sidebar/SidebarMenuItem/SidebarMenuItem.js +15 -0
- package/dist/components/sidebar/SidebarMenuItem/SidebarMenuItem.types.d.ts +2 -0
- package/dist/components/sidebar/SidebarMenuItem/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarMenuSkeleton/SidebarMenuSkeleton.d.ts +2 -0
- package/dist/components/sidebar/SidebarMenuSkeleton/SidebarMenuSkeleton.js +36 -0
- package/dist/components/sidebar/SidebarMenuSkeleton/SidebarMenuSkeleton.types.d.ts +4 -0
- package/dist/components/sidebar/SidebarMenuSkeleton/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarMenuSub/SidebarMenuSub.d.ts +2 -0
- package/dist/components/sidebar/SidebarMenuSub/SidebarMenuSub.js +15 -0
- package/dist/components/sidebar/SidebarMenuSub/SidebarMenuSub.types.d.ts +2 -0
- package/dist/components/sidebar/SidebarMenuSub/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarMenuSubButton/SidebarMenuSubButton.d.ts +3 -0
- package/dist/components/sidebar/SidebarMenuSubButton/SidebarMenuSubButton.js +35 -0
- package/dist/components/sidebar/SidebarMenuSubButton/SidebarMenuSubButton.types.d.ts +6 -0
- package/dist/components/sidebar/SidebarMenuSubButton/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarMenuSubItem/SidebarMenuSubItem.d.ts +2 -0
- package/dist/components/sidebar/SidebarMenuSubItem/SidebarMenuSubItem.js +15 -0
- package/dist/components/sidebar/SidebarMenuSubItem/SidebarMenuSubItem.types.d.ts +2 -0
- package/dist/components/sidebar/SidebarMenuSubItem/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarProvider/SidebarProvider.consts.d.ts +6 -0
- package/dist/components/sidebar/SidebarProvider/SidebarProvider.consts.js +4 -0
- package/dist/components/sidebar/SidebarProvider/SidebarProvider.context.d.ts +13 -0
- package/dist/components/sidebar/SidebarProvider/SidebarProvider.context.js +10 -0
- package/dist/components/sidebar/SidebarProvider/SidebarProvider.d.ts +2 -0
- package/dist/components/sidebar/SidebarProvider/SidebarProvider.js +55 -0
- package/dist/components/sidebar/SidebarProvider/SidebarProvider.types.d.ts +8 -0
- package/dist/components/sidebar/SidebarProvider/index.d.ts +2 -0
- package/dist/components/sidebar/SidebarRail/SidebarRail.d.ts +2 -0
- package/dist/components/sidebar/SidebarRail/SidebarRail.js +17 -0
- package/dist/components/sidebar/SidebarRail/SidebarRail.types.d.ts +2 -0
- package/dist/components/sidebar/SidebarRail/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarSeparator/SidebarSeparator.d.ts +2 -0
- package/dist/components/sidebar/SidebarSeparator/SidebarSeparator.js +17 -0
- package/dist/components/sidebar/SidebarSeparator/SidebarSeparator.types.d.ts +2 -0
- package/dist/components/sidebar/SidebarSeparator/index.d.ts +1 -0
- package/dist/components/sidebar/SidebarTrigger/SidebarTrigger.d.ts +2 -0
- package/dist/components/sidebar/SidebarTrigger/SidebarTrigger.js +30 -0
- package/dist/components/sidebar/SidebarTrigger/SidebarTrigger.types.d.ts +2 -0
- package/dist/components/sidebar/SidebarTrigger/index.d.ts +1 -0
- package/dist/components/sidebar/index.d.ts +22 -0
- package/dist/components/skeleton/Skeleton.d.ts +2 -0
- package/dist/components/skeleton/Skeleton.js +15 -0
- package/dist/components/skeleton/Skeleton.types.d.ts +2 -0
- package/dist/components/skeleton/index.d.ts +1 -0
- package/dist/components/spinner/Spinner.d.ts +2 -0
- package/dist/components/spinner/Spinner.js +18 -0
- package/dist/components/spinner/Spinner.styles.d.ts +1 -0
- package/dist/components/spinner/Spinner.styles.js +5 -0
- package/dist/components/spinner/Spinner.types.d.ts +5 -0
- package/dist/components/spinner/index.d.ts +1 -0
- package/dist/components/switch/Switch.d.ts +2 -0
- package/dist/components/switch/Switch.js +62 -0
- package/dist/components/switch/Switch.styles.d.ts +5 -0
- package/dist/components/switch/Switch.styles.js +9 -0
- package/dist/components/switch/Switch.types.d.ts +7 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/textarea/Textarea.d.ts +2 -0
- package/dist/components/textarea/Textarea.js +15 -0
- package/dist/components/textarea/Textarea.types.d.ts +2 -0
- package/dist/components/textarea/index.d.ts +1 -0
- package/dist/components/toast/components/Assets.d.ts +9 -0
- package/dist/components/toast/components/Assets.js +30 -0
- package/dist/components/toast/components/Toast.d.ts +3 -0
- package/dist/components/toast/components/Toast.js +150 -0
- package/dist/components/toast/components/ToastActions.d.ts +12 -0
- package/dist/components/toast/components/ToastActions.js +60 -0
- package/dist/components/toast/components/ToastContent.d.ts +9 -0
- package/dist/components/toast/components/ToastContent.js +34 -0
- package/dist/components/toast/components/ToastIcon.d.ts +9 -0
- package/dist/components/toast/components/ToastIcon.js +57 -0
- package/dist/components/toast/components/Toaster.d.ts +3 -0
- package/dist/components/toast/components/Toaster.js +161 -0
- package/dist/components/toast/constants.d.ts +16 -0
- package/dist/components/toast/constants.js +4 -0
- package/dist/components/toast/hooks/useSwipe.d.ts +23 -0
- package/dist/components/toast/hooks/useSwipe.js +57 -0
- package/dist/components/toast/hooks/useTheme.d.ts +2 -0
- package/dist/components/toast/hooks/useTheme.js +20 -0
- package/dist/components/toast/hooks/useToastHeight.d.ts +11 -0
- package/dist/components/toast/hooks/useToastHeight.js +33 -0
- package/dist/components/toast/hooks/useToastSubscription.d.ts +5 -0
- package/dist/components/toast/hooks/useToastSubscription.js +35 -0
- package/dist/components/toast/hooks/useToastTimer.d.ts +11 -0
- package/dist/components/toast/hooks/useToastTimer.js +20 -0
- package/dist/components/toast/hooks/useToasterKeyboard.d.ts +7 -0
- package/dist/components/toast/hooks/useToasterKeyboard.js +12 -0
- package/dist/components/toast/hooks.d.ts +13 -0
- package/dist/components/toast/hooks.js +34 -0
- package/dist/components/toast/index.d.ts +10 -0
- package/dist/components/toast/state.d.ts +52 -0
- package/dist/components/toast/state.js +168 -0
- package/dist/components/toast/types.d.ts +168 -0
- package/dist/components/toast/types.js +4 -0
- package/dist/components/toast/utils.d.ts +10 -0
- package/dist/components/toast/utils.js +37 -0
- package/dist/components/tooltip/Tooltip/Tooltip.context.d.ts +12 -0
- package/dist/components/tooltip/Tooltip/Tooltip.context.js +10 -0
- package/dist/components/tooltip/Tooltip/Tooltip.d.ts +5 -0
- package/dist/components/tooltip/Tooltip/Tooltip.js +25 -0
- package/dist/components/tooltip/Tooltip/Tooltip.types.d.ts +0 -0
- package/dist/components/tooltip/Tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/TooltipArrow/TooltipArrow.d.ts +1 -0
- package/dist/components/tooltip/TooltipArrow/TooltipArrow.js +19 -0
- package/dist/components/tooltip/TooltipArrow/index.d.ts +1 -0
- package/dist/components/tooltip/TooltipContent/TooltipContent.context.d.ts +6 -0
- package/dist/components/tooltip/TooltipContent/TooltipContent.context.js +10 -0
- package/dist/components/tooltip/TooltipContent/TooltipContent.d.ts +2 -0
- package/dist/components/tooltip/TooltipContent/TooltipContent.js +66 -0
- package/dist/components/tooltip/TooltipContent/TooltipContent.types.d.ts +9 -0
- package/dist/components/tooltip/TooltipContent/TooltipContent.utils.d.ts +6 -0
- package/dist/components/tooltip/TooltipContent/TooltipContent.utils.js +62 -0
- package/dist/components/tooltip/TooltipContent/index.d.ts +1 -0
- package/dist/components/tooltip/TooltipContent/useTooltipContent.d.ts +10 -0
- package/dist/components/tooltip/TooltipContent/useTooltipContent.js +51 -0
- package/dist/components/tooltip/TooltipTrigger/TooltipTrigger.d.ts +2 -0
- package/dist/components/tooltip/TooltipTrigger/TooltipTrigger.js +9 -0
- package/dist/components/tooltip/TooltipTrigger/TooltipTrigger.types.d.ts +0 -0
- package/dist/components/tooltip/TooltipTrigger/index.d.ts +1 -0
- package/dist/components/tooltip/TooltipTrigger/useTooltipTrigger.d.ts +2 -0
- package/dist/components/tooltip/TooltipTrigger/useTooltipTrigger.js +20 -0
- package/dist/components/tooltip/index.d.ts +4 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +104 -0
- package/dist/lib/utils/clsx.d.ts +1 -0
- package/dist/lib/utils/clsx.js +5 -0
- package/dist/lib/utils/get-style.d.ts +14 -0
- package/dist/lib/utils/index.d.ts +2 -0
- package/dist/lib/utils/warn-once.d.ts +2 -0
- package/dist/styles/animate.css +250 -0
- package/dist/styles/index.css +100 -0
- package/dist/styles/toast.css +745 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/props.types.d.ts +20 -0
- package/package.json +39 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Kbd, KbdGroup } from './Kbd';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { clsx as e } from "../../lib/utils/clsx.js";
|
|
2
|
+
import { mergeProps as t, spread as n, template as r } from "solid-js/web";
|
|
3
|
+
import { splitProps as i } from "solid-js";
|
|
4
|
+
//#region src/components/label/Label.tsx
|
|
5
|
+
var a = /* @__PURE__ */ r("<label data-slot=label>"), o = (r) => {
|
|
6
|
+
let [o, s] = i(r, ["class", "classList"]);
|
|
7
|
+
return (() => {
|
|
8
|
+
var r = a();
|
|
9
|
+
return n(r, t({ get class() {
|
|
10
|
+
return e("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", o.class);
|
|
11
|
+
} }, s), !1, !1), r;
|
|
12
|
+
})();
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { o as Label };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Label } from './Label';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { clsx as e } from "../../../lib/utils/clsx.js";
|
|
2
|
+
import { mergeProps as t, spread as n, template as r } from "solid-js/web";
|
|
3
|
+
import { splitProps as i } from "solid-js";
|
|
4
|
+
//#region src/components/pagination/Pagination/Pagination.tsx
|
|
5
|
+
var a = /* @__PURE__ */ r("<nav aria-label=pagination data-slot=pagination>"), o = (r) => {
|
|
6
|
+
let [o, s] = i(r, ["class", "classList"]);
|
|
7
|
+
return (() => {
|
|
8
|
+
var r = a();
|
|
9
|
+
return n(r, t({ get class() {
|
|
10
|
+
return e("mx-auto flex w-full justify-center", o.class);
|
|
11
|
+
} }, s), !1, !1), r;
|
|
12
|
+
})();
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { o as Pagination };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Pagination } from './Pagination';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { clsx as e } from "../../../lib/utils/clsx.js";
|
|
2
|
+
import { mergeProps as t, spread as n, template as r } from "solid-js/web";
|
|
3
|
+
import { splitProps as i } from "solid-js";
|
|
4
|
+
//#region src/components/pagination/PaginationContent/PaginationContent.tsx
|
|
5
|
+
var a = /* @__PURE__ */ r("<ul data-slot=pagination-content>"), o = (r) => {
|
|
6
|
+
let [o, s] = i(r, ["class", "classList"]);
|
|
7
|
+
return (() => {
|
|
8
|
+
var r = a();
|
|
9
|
+
return n(r, t({ get class() {
|
|
10
|
+
return e("flex items-center gap-0.5", o.class);
|
|
11
|
+
} }, s), !1, !1), r;
|
|
12
|
+
})();
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { o as PaginationContent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PaginationContent } from './PaginationContent';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { clsx as e } from "../../../lib/utils/clsx.js";
|
|
2
|
+
import { createComponent as t, insert as n, mergeProps as r, spread as i, template as a } from "solid-js/web";
|
|
3
|
+
import { splitProps as o } from "solid-js";
|
|
4
|
+
import { Ellipsis as s } from "lucide-solid";
|
|
5
|
+
//#region src/components/pagination/PaginationEllipsis/PaginationEllipsis.tsx
|
|
6
|
+
var c = /* @__PURE__ */ a("<span aria-hidden data-slot=pagination-ellipsis><span class=sr-only>More pages"), l = (a) => {
|
|
7
|
+
let [l, u] = o(a, ["class", "classList"]);
|
|
8
|
+
return (() => {
|
|
9
|
+
var a = c(), o = a.firstChild;
|
|
10
|
+
return i(a, r({ get class() {
|
|
11
|
+
return e("flex size-8 items-center justify-center [&_svg:not([class*='size-'])]:size-4", l.class);
|
|
12
|
+
} }, u), !1, !0), n(a, t(s, {}), o), a;
|
|
13
|
+
})();
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { l as PaginationEllipsis };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PaginationEllipsis } from './PaginationEllipsis';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { spread as e, template as t } from "solid-js/web";
|
|
2
|
+
//#region src/components/pagination/PaginationItem/PaginationItem.tsx
|
|
3
|
+
var n = /* @__PURE__ */ t("<li data-slot=pagination-item>"), r = (t) => (() => {
|
|
4
|
+
var r = n();
|
|
5
|
+
return e(r, t, !1, !1), r;
|
|
6
|
+
})();
|
|
7
|
+
//#endregion
|
|
8
|
+
export { r as PaginationItem };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PaginationItem } from './PaginationItem';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { clsx as e } from "../../../lib/utils/clsx.js";
|
|
2
|
+
import { Button as t } from "../../button/Button.js";
|
|
3
|
+
import { createComponent as n, memo as r, mergeProps as i } from "solid-js/web";
|
|
4
|
+
import { mergeProps as a, splitProps as o } from "solid-js";
|
|
5
|
+
//#region src/components/pagination/PaginationLink/PaginationLink.tsx
|
|
6
|
+
var s = (s) => {
|
|
7
|
+
let [c, l] = o(a({ size: "md" }, s), [
|
|
8
|
+
"size",
|
|
9
|
+
"isActive",
|
|
10
|
+
"class",
|
|
11
|
+
"classList",
|
|
12
|
+
"page",
|
|
13
|
+
"children"
|
|
14
|
+
]);
|
|
15
|
+
return n(t, i({
|
|
16
|
+
as: "a",
|
|
17
|
+
get variant() {
|
|
18
|
+
return c.isActive ? "outline" : "ghost";
|
|
19
|
+
},
|
|
20
|
+
get size() {
|
|
21
|
+
return c.size;
|
|
22
|
+
},
|
|
23
|
+
get "aria-current"() {
|
|
24
|
+
return c.isActive ? "page" : void 0;
|
|
25
|
+
},
|
|
26
|
+
"data-slot": "pagination-link",
|
|
27
|
+
get "data-active"() {
|
|
28
|
+
return c.isActive;
|
|
29
|
+
},
|
|
30
|
+
get class() {
|
|
31
|
+
return e(c.class);
|
|
32
|
+
},
|
|
33
|
+
get icon() {
|
|
34
|
+
return r(() => "page" in c)() ? c.page : void 0;
|
|
35
|
+
}
|
|
36
|
+
}, l, { get children() {
|
|
37
|
+
return c.children;
|
|
38
|
+
} }));
|
|
39
|
+
};
|
|
40
|
+
//#endregion
|
|
41
|
+
export { s as PaginationLink };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSX, JSXElement } from 'solid-js';
|
|
2
|
+
import { ButtonProps } from '../../button';
|
|
3
|
+
export type PaginationLinkProps = Pick<ButtonProps<"a">, "size" | "onClick"> & {
|
|
4
|
+
isActive?: boolean;
|
|
5
|
+
} & Omit<JSX.IntrinsicElements["a"], "children" | "onClick"> & ({
|
|
6
|
+
page: number;
|
|
7
|
+
children?: never;
|
|
8
|
+
} | {
|
|
9
|
+
page?: never;
|
|
10
|
+
children: JSXElement;
|
|
11
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PaginationLink } from './PaginationLink';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { clsx as e } from "../../../lib/utils/clsx.js";
|
|
2
|
+
import { PaginationLink as t } from "../PaginationLink/PaginationLink.js";
|
|
3
|
+
import { createComponent as n, insert as r, mergeProps as i, template as a } from "solid-js/web";
|
|
4
|
+
import { mergeProps as o, splitProps as s } from "solid-js";
|
|
5
|
+
import { ChevronRight as c } from "lucide-solid";
|
|
6
|
+
//#region src/components/pagination/PaginationNext/PaginationNext.tsx
|
|
7
|
+
var l = /* @__PURE__ */ a("<span class=\"hidden sm:block\">"), u = (a) => {
|
|
8
|
+
let [u, d] = s(o({ text: "Next" }, a), [
|
|
9
|
+
"text",
|
|
10
|
+
"class",
|
|
11
|
+
"classList"
|
|
12
|
+
]);
|
|
13
|
+
return n(t, i({
|
|
14
|
+
"aria-label": "Go to next page",
|
|
15
|
+
size: "md",
|
|
16
|
+
get class() {
|
|
17
|
+
return e("pr-1.5!", u.class);
|
|
18
|
+
}
|
|
19
|
+
}, d, { get children() {
|
|
20
|
+
return [(() => {
|
|
21
|
+
var e = l();
|
|
22
|
+
return r(e, () => u.text), e;
|
|
23
|
+
})(), n(c, {
|
|
24
|
+
"data-icon": "inline-end",
|
|
25
|
+
class: "cn-rtl-flip"
|
|
26
|
+
})];
|
|
27
|
+
} }));
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { u as PaginationNext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PaginationNext } from './PaginationNext';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { clsx as e } from "../../../lib/utils/clsx.js";
|
|
2
|
+
import { PaginationLink as t } from "../PaginationLink/PaginationLink.js";
|
|
3
|
+
import { createComponent as n, insert as r, mergeProps as i, template as a } from "solid-js/web";
|
|
4
|
+
import { mergeProps as o, splitProps as s } from "solid-js";
|
|
5
|
+
import { ChevronLeft as c } from "lucide-solid";
|
|
6
|
+
//#region src/components/pagination/PaginationPrevious/PaginationPrevious.tsx
|
|
7
|
+
var l = /* @__PURE__ */ a("<span class=\"hidden sm:block\">"), u = (a) => {
|
|
8
|
+
let [u, d] = s(o({ text: "Previous" }, a), [
|
|
9
|
+
"text",
|
|
10
|
+
"class",
|
|
11
|
+
"classList"
|
|
12
|
+
]);
|
|
13
|
+
return n(t, i({
|
|
14
|
+
"aria-label": "Go to previous page",
|
|
15
|
+
size: "md",
|
|
16
|
+
get class() {
|
|
17
|
+
return e("pl-1.5!", u.class);
|
|
18
|
+
}
|
|
19
|
+
}, d, { get children() {
|
|
20
|
+
return [n(c, {
|
|
21
|
+
"data-icon": "inline-start",
|
|
22
|
+
class: "cn-rtl-flip"
|
|
23
|
+
}), (() => {
|
|
24
|
+
var e = l();
|
|
25
|
+
return r(e, () => u.text), e;
|
|
26
|
+
})()];
|
|
27
|
+
} }));
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { u as PaginationPrevious };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PaginationPrevious } from './PaginationPrevious';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Pagination } from './Pagination';
|
|
2
|
+
export { PaginationContent } from './PaginationContent';
|
|
3
|
+
export { PaginationItem } from './PaginationItem';
|
|
4
|
+
export { PaginationLink } from './PaginationLink';
|
|
5
|
+
export { PaginationPrevious } from './PaginationPrevious';
|
|
6
|
+
export { PaginationNext } from './PaginationNext';
|
|
7
|
+
export { PaginationEllipsis } from './PaginationEllipsis';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Accessor, Setter } from 'solid-js';
|
|
2
|
+
import { ScrollMetrics } from './ScrollArea.types';
|
|
3
|
+
interface ScrollAreaContextValue {
|
|
4
|
+
hovering: Accessor<boolean>;
|
|
5
|
+
viewportRef: () => HTMLDivElement;
|
|
6
|
+
dragging: Accessor<"vertical" | "horizontal" | null>;
|
|
7
|
+
setDragging: Setter<"vertical" | "horizontal" | null>;
|
|
8
|
+
vertical: Accessor<ScrollMetrics>;
|
|
9
|
+
horizontal: Accessor<ScrollMetrics>;
|
|
10
|
+
}
|
|
11
|
+
export declare const ScrollAreaContext: import('solid-js').Context<ScrollAreaContextValue | undefined>;
|
|
12
|
+
export declare const useScrollAreaContext: () => ScrollAreaContextValue;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createContext as e, useContext as t } from "solid-js";
|
|
2
|
+
//#region src/components/scroll-area/ScrollArea/ScrollArea.context.ts
|
|
3
|
+
var n = e(), r = () => {
|
|
4
|
+
let e = t(n);
|
|
5
|
+
if (!e) throw Error("useScrollAreaContext must be used within a ScrollAreaProvider");
|
|
6
|
+
return e;
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as ScrollAreaContext, r as useScrollAreaContext };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { clsx as e } from "../../../lib/utils/clsx.js";
|
|
2
|
+
import { ScrollBar as t } from "../ScrollBar/ScrollBar.js";
|
|
3
|
+
import { ScrollAreaContext as n } from "./ScrollArea.context.js";
|
|
4
|
+
import { computeMetrics as r } from "./ScrollArea.utils.js";
|
|
5
|
+
import { className as i, createComponent as a, effect as o, insert as s, mergeProps as c, setAttribute as l, spread as u, template as d, use as f } from "solid-js/web";
|
|
6
|
+
import { createSignal as p, onCleanup as m, onMount as h, splitProps as g } from "solid-js";
|
|
7
|
+
//#region src/components/scroll-area/ScrollArea/ScrollArea.tsx
|
|
8
|
+
var _ = /* @__PURE__ */ d("<div data-slot=scroll-area-viewport role=region>"), v = /* @__PURE__ */ d("<div data-slot=scroll-area>"), y = (d) => {
|
|
9
|
+
let y, [b, x] = g(d, [
|
|
10
|
+
"orientation",
|
|
11
|
+
"class",
|
|
12
|
+
"classList",
|
|
13
|
+
"children",
|
|
14
|
+
"aria-label"
|
|
15
|
+
]), [S, C] = p(!1), [w, T] = p(null), [E, D] = p({
|
|
16
|
+
thumbRatio: 1,
|
|
17
|
+
thumbOffset: 0,
|
|
18
|
+
scrollable: !1
|
|
19
|
+
}), [O, k] = p({
|
|
20
|
+
thumbRatio: 1,
|
|
21
|
+
thumbOffset: 0,
|
|
22
|
+
scrollable: !1
|
|
23
|
+
});
|
|
24
|
+
function A() {
|
|
25
|
+
let e = y;
|
|
26
|
+
e && (D(r(e.clientHeight, e.scrollTop, e.scrollHeight)), k(r(e.clientWidth, e.scrollLeft, e.scrollWidth)));
|
|
27
|
+
}
|
|
28
|
+
return h(() => {
|
|
29
|
+
A();
|
|
30
|
+
let e = new ResizeObserver(A);
|
|
31
|
+
e.observe(y), y.firstElementChild && e.observe(y.firstElementChild), y.addEventListener("scroll", A, { passive: !0 }), m(() => {
|
|
32
|
+
e.disconnect(), y.removeEventListener("scroll", A);
|
|
33
|
+
});
|
|
34
|
+
}), (() => {
|
|
35
|
+
var r = v();
|
|
36
|
+
return r.addEventListener("mouseleave", () => C(!1)), r.addEventListener("mouseenter", () => C(!0)), u(r, c({ get class() {
|
|
37
|
+
return e("relative", b.class);
|
|
38
|
+
} }, x), !1, !0), s(r, a(n.Provider, {
|
|
39
|
+
value: {
|
|
40
|
+
hovering: S,
|
|
41
|
+
viewportRef: () => y,
|
|
42
|
+
dragging: w,
|
|
43
|
+
setDragging: T,
|
|
44
|
+
vertical: E,
|
|
45
|
+
horizontal: O
|
|
46
|
+
},
|
|
47
|
+
get children() {
|
|
48
|
+
return [(() => {
|
|
49
|
+
var t = _(), n = y;
|
|
50
|
+
return typeof n == "function" ? f(n, t) : y = t, s(t, () => b.children), o((n) => {
|
|
51
|
+
var r = b["aria-label"] ?? "Scrollable content", a = e("size-full rounded-[inherit] outline-none", "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden", "focus-visible:ring-2 focus-visible:ring-offset-1", "focus-visible:ring-neutral-400/70 dark:focus-visible:ring-neutral-500/70", b.orientation === "vertical" ? "overflow-y-scroll overflow-x-hidden" : b.orientation === "horizontal" ? "overflow-x-scroll overflow-y-hidden" : "overflow-scroll");
|
|
52
|
+
return r !== n.e && l(t, "aria-label", n.e = r), a !== n.t && i(t, n.t = a), n;
|
|
53
|
+
}, {
|
|
54
|
+
e: void 0,
|
|
55
|
+
t: void 0
|
|
56
|
+
}), t;
|
|
57
|
+
})(), a(t, { get orientation() {
|
|
58
|
+
return b.orientation;
|
|
59
|
+
} })];
|
|
60
|
+
}
|
|
61
|
+
})), r;
|
|
62
|
+
})();
|
|
63
|
+
};
|
|
64
|
+
//#endregion
|
|
65
|
+
export { y as ScrollArea };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseProps, PolymorphicProps } from '../../../types';
|
|
2
|
+
export type ScrollAreaProps = PolymorphicProps<"div", BaseProps & {
|
|
3
|
+
"aria-label"?: string;
|
|
4
|
+
orientation?: "horizontal" | "vertical";
|
|
5
|
+
}, false>;
|
|
6
|
+
export interface ScrollMetrics {
|
|
7
|
+
/** 0–1 fraction of viewport / content */
|
|
8
|
+
thumbRatio: number;
|
|
9
|
+
/** 0–1 scroll position fraction */
|
|
10
|
+
thumbOffset: number;
|
|
11
|
+
/** Whether the axis is scrollable at all */
|
|
12
|
+
scrollable: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/components/scroll-area/ScrollArea/ScrollArea.utils.ts
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
let r = n > e + 1;
|
|
4
|
+
if (!r) return {
|
|
5
|
+
thumbRatio: 1,
|
|
6
|
+
thumbOffset: 0,
|
|
7
|
+
scrollable: !1
|
|
8
|
+
};
|
|
9
|
+
let i = e / n, a = n - e;
|
|
10
|
+
return {
|
|
11
|
+
thumbRatio: i,
|
|
12
|
+
thumbOffset: a > 0 ? t / a : 0,
|
|
13
|
+
scrollable: r
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { e as computeMetrics };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { clsx as e } from "../../../lib/utils/clsx.js";
|
|
2
|
+
import { useScrollAreaContext as t } from "../ScrollArea/ScrollArea.context.js";
|
|
3
|
+
import { className as n, delegateEvents as r, effect as i, mergeProps as a, setAttribute as o, spread as s, style as c, template as l, use as u } from "solid-js/web";
|
|
4
|
+
import { createMemo as d, createSignal as f, mergeProps as p, onCleanup as m, splitProps as h } from "solid-js";
|
|
5
|
+
//#region src/components/scroll-area/ScrollBar/ScrollBar.tsx
|
|
6
|
+
var g = /* @__PURE__ */ l("<div data-slot=scroll-area-scrollbar role=scrollbar aria-controls=scroll-area-viewport aria-valuemin=0 aria-valuemax=100 tabindex=0><div data-slot=scroll-area-thumb>"), _ = 20, v = (r) => {
|
|
7
|
+
let l = t(), v, [y, b] = h(p({ orientation: "vertical" }, r), [
|
|
8
|
+
"orientation",
|
|
9
|
+
"class",
|
|
10
|
+
"classList"
|
|
11
|
+
]), [x, S] = f(!1), C = () => y.orientation === "vertical", w = d(() => C() ? l.vertical() : l.horizontal()), T = d(() => {
|
|
12
|
+
let e = w(), t = (C() ? v?.clientHeight ?? 0 : v?.clientWidth ?? 0) - 2, n = t * e.thumbRatio, r = Math.max(n, _), i = Math.max(0, t - r) * e.thumbOffset;
|
|
13
|
+
return C() ? {
|
|
14
|
+
height: `${r}px`,
|
|
15
|
+
transform: `translateY(${i}px)`
|
|
16
|
+
} : {
|
|
17
|
+
width: `${r}px`,
|
|
18
|
+
transform: `translateX(${i}px)`
|
|
19
|
+
};
|
|
20
|
+
}), E = d(() => Math.round(w().thumbOffset * 100));
|
|
21
|
+
function D(e) {
|
|
22
|
+
e.preventDefault(), e.stopPropagation();
|
|
23
|
+
let t = l.viewportRef();
|
|
24
|
+
if (!t) return;
|
|
25
|
+
l.setDragging(y.orientation), S(!0);
|
|
26
|
+
let n = C() ? e.clientY : e.clientX, r = C() ? t.scrollTop : t.scrollLeft, i = C() ? t.scrollHeight - t.clientHeight : t.scrollWidth - t.clientWidth, a = i / ((C() ? v.clientHeight : v.clientWidth) - 2 - (C() ? e.currentTarget.clientHeight : e.currentTarget.clientWidth));
|
|
27
|
+
function o(e) {
|
|
28
|
+
let o = (C() ? e.clientY : e.clientX) - n, s = Math.max(0, Math.min(i, r + o * a));
|
|
29
|
+
C() ? t.scrollTop = s : t.scrollLeft = s;
|
|
30
|
+
}
|
|
31
|
+
function s() {
|
|
32
|
+
l.setDragging(null), S(!1), window.removeEventListener("pointermove", o), window.removeEventListener("pointerup", s);
|
|
33
|
+
}
|
|
34
|
+
window.addEventListener("pointermove", o), window.addEventListener("pointerup", s), m(() => {
|
|
35
|
+
window.removeEventListener("pointermove", o), window.removeEventListener("pointerup", s);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function O(e) {
|
|
39
|
+
if (e.target.dataset.slot === "scroll-area-thumb") return;
|
|
40
|
+
let t = l.viewportRef();
|
|
41
|
+
if (!t) return;
|
|
42
|
+
let n = v.getBoundingClientRect(), r = (C() ? (e.clientY - n.top) / n.height : (e.clientX - n.left) / n.width) * (C() ? t.scrollHeight - t.clientHeight : t.scrollWidth - t.clientWidth);
|
|
43
|
+
t.scrollTo({
|
|
44
|
+
[C() ? "top" : "left"]: r,
|
|
45
|
+
behavior: "smooth"
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function k(e) {
|
|
49
|
+
let t = l.viewportRef();
|
|
50
|
+
if (!t) return;
|
|
51
|
+
let n = C() ? t.clientHeight : t.clientWidth, r = {
|
|
52
|
+
ArrowDown: 40,
|
|
53
|
+
ArrowRight: 40,
|
|
54
|
+
ArrowUp: -40,
|
|
55
|
+
ArrowLeft: -40,
|
|
56
|
+
PageDown: n,
|
|
57
|
+
PageUp: -n,
|
|
58
|
+
Home: -Infinity,
|
|
59
|
+
End: Infinity
|
|
60
|
+
}[e.key];
|
|
61
|
+
r !== void 0 && (e.preventDefault(), C() ? t.scrollTop = Math.max(0, Math.min(t.scrollHeight - t.clientHeight, r === Infinity ? t.scrollHeight : r === -Infinity ? 0 : t.scrollTop + r)) : t.scrollLeft = Math.max(0, Math.min(t.scrollWidth - t.clientWidth, r === Infinity ? t.scrollWidth : r === -Infinity ? 0 : t.scrollLeft + r)));
|
|
62
|
+
}
|
|
63
|
+
let A = d(() => l.hovering() || l.dragging() === r.orientation || x());
|
|
64
|
+
return (() => {
|
|
65
|
+
var t = g(), r = t.firstChild;
|
|
66
|
+
t.$$keydown = k, t.$$pointerdown = O;
|
|
67
|
+
var d = v;
|
|
68
|
+
return typeof d == "function" ? u(d, t) : v = t, s(t, a({
|
|
69
|
+
get "aria-orientation"() {
|
|
70
|
+
return y.orientation;
|
|
71
|
+
},
|
|
72
|
+
get "aria-valuenow"() {
|
|
73
|
+
return E();
|
|
74
|
+
},
|
|
75
|
+
get "data-orientation"() {
|
|
76
|
+
return y.orientation;
|
|
77
|
+
},
|
|
78
|
+
get "data-hovering"() {
|
|
79
|
+
return l.hovering() ? "" : void 0;
|
|
80
|
+
},
|
|
81
|
+
get class() {
|
|
82
|
+
return e("absolute touch-none select-none transition-opacity duration-150", A() ? "opacity-100" : "opacity-0", C() ? "right-0 top-0 h-full w-2.5 border-l border-l-transparent p-px flex flex-col" : "bottom-0 left-0 w-full h-2.5 border-t border-t-transparent p-px flex flex-row", "outline-none focus-visible:ring-2 focus-visible:ring-neutral-400/70 dark:focus-visible:ring-neutral-500/70", y.class);
|
|
83
|
+
}
|
|
84
|
+
}, b), !1, !0), r.$$pointerdown = D, i((t) => {
|
|
85
|
+
var i = y.orientation, a = e("relative rounded-full", "bg-neutral-300 dark:bg-white/20", "hover:bg-neutral-400 dark:hover:bg-white/30", x() ? "bg-neutral-500 dark:bg-white/40" : "", "transition-colors duration-100", C() ? "min-h-5 w-full" : "min-w-5 h-full"), s = T();
|
|
86
|
+
return i !== t.e && o(r, "data-orientation", t.e = i), a !== t.t && n(r, t.t = a), t.a = c(r, s, t.a), t;
|
|
87
|
+
}, {
|
|
88
|
+
e: void 0,
|
|
89
|
+
t: void 0,
|
|
90
|
+
a: void 0
|
|
91
|
+
}), t;
|
|
92
|
+
})();
|
|
93
|
+
};
|
|
94
|
+
r(["pointerdown", "keydown"]);
|
|
95
|
+
//#endregion
|
|
96
|
+
export { v as ScrollBar };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ScrollBar } from './ScrollBar';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { clsx as e } from "../../lib/utils/clsx.js";
|
|
2
|
+
import { classes as t } from "./Separator.styles.js";
|
|
3
|
+
import { mergeProps as n, spread as r, template as i } from "solid-js/web";
|
|
4
|
+
import { mergeProps as a, splitProps as o } from "solid-js";
|
|
5
|
+
//#region src/components/separator/Separator.tsx
|
|
6
|
+
var s = /* @__PURE__ */ i("<div data-slot=separator>"), c = (i) => {
|
|
7
|
+
let [c, l] = o(a({ orientation: "horizontal" }, i), [
|
|
8
|
+
"orientation",
|
|
9
|
+
"class",
|
|
10
|
+
"classList"
|
|
11
|
+
]);
|
|
12
|
+
return (() => {
|
|
13
|
+
var i = s();
|
|
14
|
+
return r(i, n({
|
|
15
|
+
get "data-orientation"() {
|
|
16
|
+
return c.orientation;
|
|
17
|
+
},
|
|
18
|
+
get "data-horizontal"() {
|
|
19
|
+
return c.orientation === "horizontal" ? "" : void 0;
|
|
20
|
+
},
|
|
21
|
+
get "data-vertical"() {
|
|
22
|
+
return c.orientation === "vertical" ? "" : void 0;
|
|
23
|
+
},
|
|
24
|
+
get class() {
|
|
25
|
+
return e(t, c.class);
|
|
26
|
+
}
|
|
27
|
+
}, l), !1, !1), i;
|
|
28
|
+
})();
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { c as Separator };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const classes: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { clsx as e } from "../../lib/utils/clsx.js";
|
|
2
|
+
//#region src/components/separator/Separator.styles.ts
|
|
3
|
+
var t = e("shrink-0 bg-neutral-200 dark:bg-white/10 data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch");
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t as classes };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import { BaseProps, PolymorphicProps } from '../../types';
|
|
3
|
+
interface BaseSeparatorProps extends BaseProps {
|
|
4
|
+
orientation?: "horizontal" | "vertical";
|
|
5
|
+
style?: JSX.CSSProperties;
|
|
6
|
+
}
|
|
7
|
+
export type SeparatorProps = PolymorphicProps<"div", BaseSeparatorProps, false>;
|
|
8
|
+
export {};
|