@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,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/sidebar/SidebarMenuSub/SidebarMenuSub.tsx
|
|
5
|
+
var a = /* @__PURE__ */ r("<ul data-slot=sidebar-menu-sub data-sidebar=menu-sub>"), 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-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-neutral-200 dark:border-white/10 px-2.5 py-0.5 group-data-[collapsible=icon]:hidden", o.class);
|
|
11
|
+
} }, s), !1, !1), r;
|
|
12
|
+
})();
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { o as SidebarMenuSub };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SidebarMenuSub } from './SidebarMenuSub';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { clsx as e } from "../../../lib/utils/clsx.js";
|
|
2
|
+
import { Dynamic as t, createComponent as n, mergeProps as r } from "solid-js/web";
|
|
3
|
+
import { mergeProps as i, splitProps as a } from "solid-js";
|
|
4
|
+
//#region src/components/sidebar/SidebarMenuSubButton/SidebarMenuSubButton.tsx
|
|
5
|
+
var o = (o) => {
|
|
6
|
+
let [s, c] = a(i({
|
|
7
|
+
isActive: !1,
|
|
8
|
+
size: "md",
|
|
9
|
+
as: "a"
|
|
10
|
+
}, o), [
|
|
11
|
+
"as",
|
|
12
|
+
"isActive",
|
|
13
|
+
"size",
|
|
14
|
+
"class",
|
|
15
|
+
"classList"
|
|
16
|
+
]);
|
|
17
|
+
return n(t, r({
|
|
18
|
+
get component() {
|
|
19
|
+
return s.as;
|
|
20
|
+
},
|
|
21
|
+
"data-slot": "sidebar-menu-sub-button",
|
|
22
|
+
"data-sidebar": "menu-sub-button",
|
|
23
|
+
get "data-size"() {
|
|
24
|
+
return s.size;
|
|
25
|
+
},
|
|
26
|
+
get "data-active"() {
|
|
27
|
+
return s.isActive;
|
|
28
|
+
},
|
|
29
|
+
get class() {
|
|
30
|
+
return e("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-neutral-950 dark:text-neutral-50 ring-neutral-400 dark:ring-neutral-500 outline-hidden group-data-[collapsible=icon]:hidden hover:bg-neutral-100 dark:hover:bg-neutral-800 hover:text-neutral-900 dark:hover:text-neutral-50 focus-visible:ring-2 active:bg-neutral-100 dark:active:bg-neutral-800 active:text-neutral-900 dark:active:text-neutral-50 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-neutral-100 dark:data-active:bg-neutral-800 data-active:text-neutral-900 dark:data-active:text-neutral-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-neutral-900 dark:[&>svg]:text-neutral-50", s.class);
|
|
31
|
+
}
|
|
32
|
+
}, c));
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { o as SidebarMenuSubButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SidebarMenuSubButton } from './SidebarMenuSubButton';
|
|
@@ -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/sidebar/SidebarMenuSubItem/SidebarMenuSubItem.tsx
|
|
5
|
+
var a = /* @__PURE__ */ r("<li data-slot=sidebar-menu-sub-item data-sidebar=menu-sub-item>"), 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("group/menu-sub-item relative", o.class);
|
|
11
|
+
} }, s), !1, !1), r;
|
|
12
|
+
})();
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { o as SidebarMenuSubItem };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SidebarMenuSubItem } from './SidebarMenuSubItem';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
2
|
+
export declare const SIDEBAR_COOKIE_MAX_AGE: number;
|
|
3
|
+
export declare const SIDEBAR_WIDTH = "16rem";
|
|
4
|
+
export declare const SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
5
|
+
export declare const SIDEBAR_WIDTH_ICON = "3rem";
|
|
6
|
+
export declare const SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Accessor } from 'solid-js';
|
|
2
|
+
type SidebarContextProps = {
|
|
3
|
+
state: Accessor<"expanded" | "collapsed">;
|
|
4
|
+
open: Accessor<boolean>;
|
|
5
|
+
setOpen: (open: boolean) => void;
|
|
6
|
+
openMobile: Accessor<boolean>;
|
|
7
|
+
setOpenMobile: (open: boolean) => void;
|
|
8
|
+
isMobile: boolean;
|
|
9
|
+
toggleSidebar: () => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const SidebarContext: import('solid-js').Context<SidebarContextProps | undefined>;
|
|
12
|
+
export declare function useSidebar(): SidebarContextProps;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createContext as e, useContext as t } from "solid-js";
|
|
2
|
+
//#region src/components/sidebar/SidebarProvider/SidebarProvider.context.ts
|
|
3
|
+
var n = e();
|
|
4
|
+
function r() {
|
|
5
|
+
let e = t(n);
|
|
6
|
+
if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
7
|
+
return e;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as SidebarContext, r as useSidebar };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { clsx as e } from "../../../lib/utils/clsx.js";
|
|
2
|
+
import { SIDEBAR_COOKIE_MAX_AGE as t, SIDEBAR_COOKIE_NAME as n, SIDEBAR_WIDTH as r, SIDEBAR_WIDTH_ICON as i } from "./SidebarProvider.consts.js";
|
|
3
|
+
import { SidebarContext as a } from "./SidebarProvider.context.js";
|
|
4
|
+
import { createComponent as o, insert as s, mergeProps as c, spread as l, template as u } from "solid-js/web";
|
|
5
|
+
import { createEffect as d, createMemo as f, createSignal as p, mergeProps as m, onCleanup as h, splitProps as g } from "solid-js";
|
|
6
|
+
//#region src/components/sidebar/SidebarProvider/SidebarProvider.tsx
|
|
7
|
+
var _ = /* @__PURE__ */ u("<div data-slot=sidebar-wrapper>"), v = (u) => {
|
|
8
|
+
let [v, y] = g(m({ defaultOpen: !0 }, u), [
|
|
9
|
+
"open",
|
|
10
|
+
"onOpenChange",
|
|
11
|
+
"defaultOpen",
|
|
12
|
+
"onOpenChange",
|
|
13
|
+
"class",
|
|
14
|
+
"style",
|
|
15
|
+
"children"
|
|
16
|
+
]), [b, x] = p(!1), [S, C] = p(v.defaultOpen), w = f(() => v.open ?? S()), T = (e) => {
|
|
17
|
+
let r = typeof e == "function" ? e(w()) : e;
|
|
18
|
+
v.onOpenChange ? v.onOpenChange(r) : C(r), document.cookie = `${n}=${r}; path=/; max-age=${t}`;
|
|
19
|
+
}, E = () => T((e) => !e);
|
|
20
|
+
d(() => {
|
|
21
|
+
let e = (e) => {
|
|
22
|
+
e.key === "b" && (e.metaKey || e.ctrlKey) && (e.preventDefault(), E());
|
|
23
|
+
};
|
|
24
|
+
window.addEventListener("keydown", e), h(() => window.removeEventListener("keydown", e));
|
|
25
|
+
});
|
|
26
|
+
let D = f(() => w() ? "expanded" : "collapsed");
|
|
27
|
+
return o(a.Provider, {
|
|
28
|
+
value: {
|
|
29
|
+
state: D,
|
|
30
|
+
open: w,
|
|
31
|
+
setOpen: T,
|
|
32
|
+
isMobile: !1,
|
|
33
|
+
openMobile: b,
|
|
34
|
+
setOpenMobile: x,
|
|
35
|
+
toggleSidebar: E
|
|
36
|
+
},
|
|
37
|
+
get children() {
|
|
38
|
+
var t = _();
|
|
39
|
+
return l(t, c({
|
|
40
|
+
get style() {
|
|
41
|
+
return {
|
|
42
|
+
"--sidebar-width": r,
|
|
43
|
+
"--sidebar-width-icon": i,
|
|
44
|
+
...v.style
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
get class() {
|
|
48
|
+
return e("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-neutral-50 dark:has-data-[variant=inset]:bg-neutral-900", v.class);
|
|
49
|
+
}
|
|
50
|
+
}, y), !1, !0), s(t, () => v.children), t;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
export { v as SidebarProvider };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import { BaseProps, PolymorphicProps } from '../../../types';
|
|
3
|
+
export type SidebarProviderProps = PolymorphicProps<"div", BaseProps & {
|
|
4
|
+
defaultOpen?: boolean;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
onOpenChange?: (open: boolean) => void;
|
|
7
|
+
style?: JSX.CSSProperties;
|
|
8
|
+
}, false>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { clsx as e } from "../../../lib/utils/clsx.js";
|
|
2
|
+
import { useSidebar as t } from "../SidebarProvider/SidebarProvider.context.js";
|
|
3
|
+
import { addEventListener as n, delegateEvents as r, mergeProps as i, spread as a, template as o } from "solid-js/web";
|
|
4
|
+
import { splitProps as s } from "solid-js";
|
|
5
|
+
//#region src/components/sidebar/SidebarRail/SidebarRail.tsx
|
|
6
|
+
var c = /* @__PURE__ */ o("<button data-sidebar=rail data-slot=sidebar-rail aria-label=\"Toggle Sidebar\"tabindex=-1 title=\"Toggle Sidebar\">"), l = (r) => {
|
|
7
|
+
let { toggleSidebar: o } = t(), [l, u] = s(r, ["class", "classList"]);
|
|
8
|
+
return (() => {
|
|
9
|
+
var t = c();
|
|
10
|
+
return n(t, "click", o, !0), a(t, i({ get class() {
|
|
11
|
+
return e("absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:inset-s-1/2 after:w-0.5 hover:after:bg-neutral-200 dark:hover:after:bg-white/10 sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2", "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-neutral-50 dark:hover:group-data-[collapsible=offcanvas]:bg-neutral-900", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", l.class);
|
|
12
|
+
} }, u), !1, !1), t;
|
|
13
|
+
})();
|
|
14
|
+
};
|
|
15
|
+
r(["click"]);
|
|
16
|
+
//#endregion
|
|
17
|
+
export { l as SidebarRail };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SidebarRail } from './SidebarRail';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { clsx as e } from "../../../lib/utils/clsx.js";
|
|
2
|
+
import { Separator as t } from "../../separator/Separator.js";
|
|
3
|
+
import { createComponent as n, mergeProps as r } from "solid-js/web";
|
|
4
|
+
import { splitProps as i } from "solid-js";
|
|
5
|
+
//#region src/components/sidebar/SidebarSeparator/SidebarSeparator.tsx
|
|
6
|
+
var a = (a) => {
|
|
7
|
+
let [o, s] = i(a, ["class", "classList"]);
|
|
8
|
+
return n(t, r({
|
|
9
|
+
"data-slot": "sidebar-separator",
|
|
10
|
+
"data-sidebar": "separator",
|
|
11
|
+
get class() {
|
|
12
|
+
return e("mx-2 w-auto bg-sidebar-border", o.class);
|
|
13
|
+
}
|
|
14
|
+
}, s));
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { a as SidebarSeparator };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SidebarSeparator } from './SidebarSeparator';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Button as e } from "../../button/Button.js";
|
|
2
|
+
import { useSidebar as t } from "../SidebarProvider/SidebarProvider.context.js";
|
|
3
|
+
import { createComponent as n, memo as r, mergeProps as i } from "solid-js/web";
|
|
4
|
+
import { splitProps as a } from "solid-js";
|
|
5
|
+
import { PanelLeft as o, PanelRight as s } from "lucide-solid";
|
|
6
|
+
//#region src/components/sidebar/SidebarTrigger/SidebarTrigger.tsx
|
|
7
|
+
var c = (c) => {
|
|
8
|
+
let { toggleSidebar: l, open: u } = t(), [d, f] = a(c, [
|
|
9
|
+
"class",
|
|
10
|
+
"classList",
|
|
11
|
+
"onClick"
|
|
12
|
+
]);
|
|
13
|
+
return n(e, i({
|
|
14
|
+
"data-sidebar": "trigger",
|
|
15
|
+
"data-slot": "sidebar-trigger",
|
|
16
|
+
variant: "ghost",
|
|
17
|
+
size: "sm",
|
|
18
|
+
get class() {
|
|
19
|
+
return d.class;
|
|
20
|
+
},
|
|
21
|
+
onClick: (e) => {
|
|
22
|
+
d.onClick?.(e), l();
|
|
23
|
+
},
|
|
24
|
+
get icon() {
|
|
25
|
+
return r(() => !!u())() ? n(o, { class: "cn-rtl-flip" }) : n(s, { class: "cn-rtl-flip" });
|
|
26
|
+
}
|
|
27
|
+
}, f));
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { c as SidebarTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SidebarTrigger } from './SidebarTrigger';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { SidebarProvider } from './SidebarProvider';
|
|
2
|
+
export { Sidebar } from './Sidebar';
|
|
3
|
+
export { SidebarTrigger } from './SidebarTrigger';
|
|
4
|
+
export { SidebarRail } from './SidebarRail';
|
|
5
|
+
export { SidebarInset } from './SidebarInset';
|
|
6
|
+
export { SidebarInput } from './SidebarInput';
|
|
7
|
+
export { SidebarHeader } from './SidebarHeader';
|
|
8
|
+
export { SidebarFooter } from './SidebarFooter';
|
|
9
|
+
export { SidebarSeparator } from './SidebarSeparator';
|
|
10
|
+
export { SidebarContent } from './SidebarContent';
|
|
11
|
+
export { SidebarGroup } from './SidebarGroup';
|
|
12
|
+
export { SidebarGroupLabel } from './SidebarGroupLabel';
|
|
13
|
+
export { SidebarGroupAction } from './SidebarGroupAction';
|
|
14
|
+
export { SidebarGroupContent } from './SidebarGroupContent';
|
|
15
|
+
export { SidebarMenu } from './SidebarMenu';
|
|
16
|
+
export { SidebarMenuItem } from './SidebarMenuItem';
|
|
17
|
+
export { SidebarMenuButton } from './SidebarMenuButton';
|
|
18
|
+
export { SidebarMenuBadge } from './SidebarMenuBadge';
|
|
19
|
+
export { SidebarMenuSkeleton } from './SidebarMenuSkeleton';
|
|
20
|
+
export { SidebarMenuSub } from './SidebarMenuSub';
|
|
21
|
+
export { SidebarMenuSubItem } from './SidebarMenuSubItem';
|
|
22
|
+
export { SidebarMenuSubButton } from './SidebarMenuSubButton';
|
|
@@ -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/skeleton/Skeleton.tsx
|
|
5
|
+
var a = /* @__PURE__ */ r("<div data-slot=skeleton>"), 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("animate-pulse rounded-md bg-neutral-100 dark:bg-neutral-800", o.class);
|
|
11
|
+
} }, s), !1, !1), r;
|
|
12
|
+
})();
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { o as Skeleton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Skeleton } from './Skeleton';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { clsx as e } from "../../lib/utils/clsx.js";
|
|
2
|
+
import { classes as t } from "./Spinner.styles.js";
|
|
3
|
+
import { createComponent as n, mergeProps as r } from "solid-js/web";
|
|
4
|
+
import { splitProps as i } from "solid-js";
|
|
5
|
+
import { LoaderCircle as a } from "lucide-solid";
|
|
6
|
+
//#region src/components/spinner/Spinner.tsx
|
|
7
|
+
var o = (o) => {
|
|
8
|
+
let [s, c] = i(o, ["class", "classList"]);
|
|
9
|
+
return n(a, r({
|
|
10
|
+
get class() {
|
|
11
|
+
return e(t, s.class);
|
|
12
|
+
},
|
|
13
|
+
role: "status",
|
|
14
|
+
"aria-label": "Loading"
|
|
15
|
+
}, c));
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { o as Spinner };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const classes: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Spinner } from './Spinner';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { clsx as e } from "../../lib/utils/clsx.js";
|
|
2
|
+
import { classes as t } from "./Switch.styles.js";
|
|
3
|
+
import { className as n, delegateEvents as r, effect as i, mergeProps as a, setAttribute as o, spread as s, template as c } from "solid-js/web";
|
|
4
|
+
import { createSignal as l, mergeProps as u, splitProps as d } from "solid-js";
|
|
5
|
+
//#region src/components/switch/Switch.tsx
|
|
6
|
+
var f = /* @__PURE__ */ c("<span data-slot=switch role=switch tabindex=0><span data-slot=switch-thumb>"), p = /* @__PURE__ */ c("<input tabindex=-1 aria-hidden=true type=checkbox>"), m = (r) => {
|
|
7
|
+
let [c, m] = d(u({ size: "md" }, r), [
|
|
8
|
+
"id",
|
|
9
|
+
"defaultChecked",
|
|
10
|
+
"onChange",
|
|
11
|
+
"size",
|
|
12
|
+
"disabled",
|
|
13
|
+
"class",
|
|
14
|
+
"classList"
|
|
15
|
+
]), [h, g] = l(c.defaultChecked), _ = () => {
|
|
16
|
+
let e = !h();
|
|
17
|
+
g(e), c.onChange?.(e);
|
|
18
|
+
};
|
|
19
|
+
return [(() => {
|
|
20
|
+
var r = f(), l = r.firstChild;
|
|
21
|
+
return r.$$click = _, s(r, a({
|
|
22
|
+
get "data-size"() {
|
|
23
|
+
return c.size;
|
|
24
|
+
},
|
|
25
|
+
get "data-checked"() {
|
|
26
|
+
return h() ? "" : void 0;
|
|
27
|
+
},
|
|
28
|
+
get "data-unchecked"() {
|
|
29
|
+
return h() ? void 0 : "";
|
|
30
|
+
},
|
|
31
|
+
get "data-disabled"() {
|
|
32
|
+
return c.disabled ? "" : void 0;
|
|
33
|
+
},
|
|
34
|
+
get "aria-checked"() {
|
|
35
|
+
return h();
|
|
36
|
+
},
|
|
37
|
+
get class() {
|
|
38
|
+
return e(t.switch, c.class);
|
|
39
|
+
}
|
|
40
|
+
}, m), !1, !0), i((e) => {
|
|
41
|
+
var r = t.thumb, i = h() ? "" : void 0, a = h() ? void 0 : "";
|
|
42
|
+
return r !== e.e && n(l, e.e = r), i !== e.t && o(l, "data-checked", e.t = i), a !== e.a && o(l, "data-unchecked", e.a = a), e;
|
|
43
|
+
}, {
|
|
44
|
+
e: void 0,
|
|
45
|
+
t: void 0,
|
|
46
|
+
a: void 0
|
|
47
|
+
}), r;
|
|
48
|
+
})(), (() => {
|
|
49
|
+
var e = p();
|
|
50
|
+
return i((r) => {
|
|
51
|
+
var i = c.id, a = t.input, s = c.disabled;
|
|
52
|
+
return i !== r.e && o(e, "id", r.e = i), a !== r.t && n(e, r.t = a), s !== r.a && (e.disabled = r.a = s), r;
|
|
53
|
+
}, {
|
|
54
|
+
e: void 0,
|
|
55
|
+
t: void 0,
|
|
56
|
+
a: void 0
|
|
57
|
+
}), i(() => e.checked = h()), e;
|
|
58
|
+
})()];
|
|
59
|
+
};
|
|
60
|
+
r(["click"]);
|
|
61
|
+
//#endregion
|
|
62
|
+
export { m as Switch };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { clsx as e } from "../../lib/utils/clsx.js";
|
|
2
|
+
//#region src/components/switch/Switch.styles.ts
|
|
3
|
+
var t = {
|
|
4
|
+
switch: e("relative inline-flex shrink-0 items-center after:absolute after:-inset-x-3 after:-inset-y-2", "rounded-full border border-transparent focus-visible:border-neutral-400 dark:focus-visible:border-neutral-500 aria-invalid:border-red-600 dark:aria-invalid:border-red-400/50", "focus-visible:ring-neutral-400/50 dark:focus-visible:ring-neutral-500/50 aria-invalid:ring-red-600/20 dark:aria-invalid:ring-red-400/40 data-checked:bg-neutral-900 dark:data-checked:bg-neutral-200 data-unchecked:bg-neutral-200 dark:data-unchecked:bg-white/12", "data-[size=md]:h-[18.4px] data-[size=md]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6", "peer group/switch transition-all outline-none focus-visible:ring-3 aria-invalid:ring-3 data-disabled:cursor-not-allowed data-disabled:opacity-50 data-disabled:pointer-events-none"),
|
|
5
|
+
thumb: e("pointer-events-none", "block", "rounded-full", "ring-0", "transition-transform", "group-data-[size=md]/switch:size-4 group-data-[size=sm]/switch:size-3", "group-data-[size=md]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=md]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0", "bg-white dark:bg-neutral-950 dark:data-checked:bg-neutral-900 dark:data-unchecked:bg-neutral-50"),
|
|
6
|
+
input: e("[clip-path:inset(50%)]", "overflow-hidden", "whitespace-nowrap", "border-none", "p-0", "size-px", "-m-1", "fixed", "top-0", "left-0")
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as classes };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseProps, PolymorphicProps } from '../../types';
|
|
2
|
+
export type SwitchProps = Omit<PolymorphicProps<"span", BaseProps & {
|
|
3
|
+
size?: "sm" | "md";
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
defaultChecked?: boolean;
|
|
6
|
+
onChange?: (checked: boolean) => void;
|
|
7
|
+
}, false>, "children">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Switch } from './Switch';
|
|
@@ -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/textarea/Textarea.tsx
|
|
5
|
+
var a = /* @__PURE__ */ r("<textarea data-slot=textarea>"), 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 field-sizing-content min-h-16 w-full rounded-lg border border-neutral-200 dark:border-white/15 bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-neutral-500 dark:placeholder:text-neutral-400 focus-visible:border-neutral-400 dark:focus-visible:border-neutral-500 focus-visible:ring-3 focus-visible:ring-neutral-400/50 dark:focus-visible:ring-neutral-500/50 disabled:cursor-not-allowed disabled:bg-neutral-200/50 disabled:opacity-50 aria-invalid:border-red-600 aria-invalid:ring-3 aria-invalid:ring-red-600/20 md:text-sm dark:bg-white/4.5 dark:disabled:bg-white/12 dark:aria-invalid:border-red-400/50 dark:aria-invalid:ring-red-400/40", o.class);
|
|
11
|
+
} }, s), !1, !1), r;
|
|
12
|
+
})();
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { o as Textarea };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Textarea } from './Textarea';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JSX, Component } from 'solid-js';
|
|
2
|
+
import { ToastTypes } from '../types';
|
|
3
|
+
export declare function getAsset(type: ToastTypes): JSX.Element;
|
|
4
|
+
interface LoaderProps {
|
|
5
|
+
visible: boolean;
|
|
6
|
+
class?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const Loader: Component<LoaderProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { className as e, createComponent as t, effect as n, insert as r, setAttribute as i, template as a } from "solid-js/web";
|
|
2
|
+
import { For as o } from "solid-js";
|
|
3
|
+
//#region src/components/toast/components/Assets.tsx
|
|
4
|
+
var s = /* @__PURE__ */ a("<div><div class=sonner-spinner>"), c = /* @__PURE__ */ a("<div class=sonner-loading-bar>"), l = /* @__PURE__ */ a("<svg xmlns=http://www.w3.org/2000/svg viewBox=\"0 0 20 20\"fill=currentColor height=20 width=20><title>Success</title><path fill-rule=evenodd d=\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\"clip-rule=evenodd>"), u = /* @__PURE__ */ a("<svg xmlns=http://www.w3.org/2000/svg viewBox=\"0 0 24 24\"fill=currentColor height=20 width=20><title>Warning</title><path fill-rule=evenodd d=\"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z\"clip-rule=evenodd>"), d = /* @__PURE__ */ a("<svg xmlns=http://www.w3.org/2000/svg viewBox=\"0 0 20 20\"fill=currentColor height=20 width=20><title>Info</title><path fill-rule=evenodd d=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z\"clip-rule=evenodd>"), f = /* @__PURE__ */ a("<svg xmlns=http://www.w3.org/2000/svg viewBox=\"0 0 20 20\"fill=currentColor height=20 width=20><title>Error</title><path fill-rule=evenodd d=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z\"clip-rule=evenodd>");
|
|
5
|
+
function p(e) {
|
|
6
|
+
switch (e) {
|
|
7
|
+
case "success": return t(h, {});
|
|
8
|
+
case "info": return t(_, {});
|
|
9
|
+
case "warning": return t(g, {});
|
|
10
|
+
case "error": return t(v, {});
|
|
11
|
+
default: return null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
var m = (a) => (() => {
|
|
15
|
+
var l = s(), u = l.firstChild;
|
|
16
|
+
return r(u, t(o, {
|
|
17
|
+
get each() {
|
|
18
|
+
return Array(12).fill(0);
|
|
19
|
+
},
|
|
20
|
+
children: () => c()
|
|
21
|
+
})), n((t) => {
|
|
22
|
+
var n = ["sonner-loading-wrapper", a.class].filter(Boolean).join(" "), r = a.visible;
|
|
23
|
+
return n !== t.e && e(l, t.e = n), r !== t.t && i(l, "data-visible", t.t = r), t;
|
|
24
|
+
}, {
|
|
25
|
+
e: void 0,
|
|
26
|
+
t: void 0
|
|
27
|
+
}), l;
|
|
28
|
+
})(), h = () => l(), g = () => u(), _ = () => d(), v = () => f();
|
|
29
|
+
//#endregion
|
|
30
|
+
export { m as Loader, p as getAsset };
|