@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,29 @@
|
|
|
1
|
+
import { clsx as e } from "../../../lib/utils/clsx.js";
|
|
2
|
+
import { Button as t } from "../../button/Button.js";
|
|
3
|
+
import { useCarouselContext as n } from "../Carousel/Carousel.context.js";
|
|
4
|
+
import { createComponent as r, mergeProps as i } from "solid-js/web";
|
|
5
|
+
import { mergeProps as a, splitProps as o } from "solid-js";
|
|
6
|
+
import { ChevronLeft as s } from "lucide-solid";
|
|
7
|
+
//#region src/components/carousel/CarouselPrevious/CarouselPrevious.tsx
|
|
8
|
+
var c = (c) => {
|
|
9
|
+
let { scrollPrev: l, canScrollPrev: u, orientation: d } = n(), [f, p] = o(a({
|
|
10
|
+
variant: "outline",
|
|
11
|
+
size: "sm"
|
|
12
|
+
}, c), ["class", "classList"]);
|
|
13
|
+
return r(t, i({
|
|
14
|
+
"data-slot": "carousel-previous",
|
|
15
|
+
get class() {
|
|
16
|
+
return e("absolute touch-manipulation rounded-full", d() === "horizontal" && "active:data-[slot=carousel-previous]:translate-y-[calc(-50%+1px)]", d() === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", f.class);
|
|
17
|
+
},
|
|
18
|
+
get disabled() {
|
|
19
|
+
return !u();
|
|
20
|
+
},
|
|
21
|
+
onClick: l,
|
|
22
|
+
"aria-label": "Previous slide",
|
|
23
|
+
get icon() {
|
|
24
|
+
return r(s, { class: "cn-rtl-flip" });
|
|
25
|
+
}
|
|
26
|
+
}, p));
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { c as CarouselPrevious };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CarouselPrevious } from './CarouselPrevious';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Carousel } from './Carousel';
|
|
2
|
+
export { CarouselContent } from './CarouselContent';
|
|
3
|
+
export { CarouselDots } from './CarouselDots';
|
|
4
|
+
export { CarouselItem } from './CarouselItem';
|
|
5
|
+
export { CarouselNext } from './CarouselNext';
|
|
6
|
+
export { CarouselPrevious } from './CarouselPrevious';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { clsx as e } from "../../../lib/utils/clsx.js";
|
|
2
|
+
import { fieldVariants as t } from "./Field.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/field/Field/Field.tsx
|
|
6
|
+
var s = /* @__PURE__ */ i("<div role=group data-slot=field>"), c = (i) => {
|
|
7
|
+
let [c, l] = o(a({ orientation: "vertical" }, 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 class() {
|
|
19
|
+
return e(t({ orientation: c.orientation }), c.class);
|
|
20
|
+
}
|
|
21
|
+
}, l), !1, !1), i;
|
|
22
|
+
})();
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { c as Field };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { cva as e } from "class-variance-authority";
|
|
2
|
+
//#region src/components/field/Field/Field.styles.ts
|
|
3
|
+
var t = e("group/field flex w-full gap-2 data-[invalid=true]:text-red-600 dark:data-[invalid=true]:text-red-400", {
|
|
4
|
+
variants: { orientation: {
|
|
5
|
+
vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
|
|
6
|
+
horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
|
|
7
|
+
responsive: "flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
|
|
8
|
+
} },
|
|
9
|
+
defaultVariants: { orientation: "vertical" }
|
|
10
|
+
});
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as fieldVariants };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { BaseProps, PolymorphicProps } from '../../../types';
|
|
3
|
+
import { fieldVariants } from './Field.styles';
|
|
4
|
+
export type FieldProps = PolymorphicProps<"div", BaseProps & VariantProps<typeof fieldVariants>, false>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Field } from './Field';
|
|
@@ -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/field/FieldContent/FieldContent.tsx
|
|
5
|
+
var a = /* @__PURE__ */ r("<div data-slot=field-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("group/field-content flex flex-1 flex-col gap-0.5 leading-snug", o.class);
|
|
11
|
+
} }, s), !1, !1), r;
|
|
12
|
+
})();
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { o as FieldContent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FieldContent } from './FieldContent';
|
|
@@ -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/field/FieldDescription/FieldDescription.tsx
|
|
5
|
+
var a = /* @__PURE__ */ r("<p data-slot=field-description>"), 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("text-left text-sm leading-normal font-normal text-neutral-500 dark:text-neutral-400 group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-neutral-900 dark:[&>a:hover]:text-neutral-200", o.class);
|
|
11
|
+
} }, s), !1, !1), r;
|
|
12
|
+
})();
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { o as FieldDescription };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FieldDescription } from './FieldDescription';
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { Show as o, children as s, splitProps as c } from "solid-js";
|
|
4
|
+
//#region src/components/field/FieldError/FieldError.tsx
|
|
5
|
+
var l = /* @__PURE__ */ a("<ul class=\"ml-4 flex list-disc flex-col gap-1\">"), u = /* @__PURE__ */ a("<li>"), d = /* @__PURE__ */ a("<div role=alert data-slot=field-error>"), f = (a) => {
|
|
6
|
+
let [f, p] = c(a, [
|
|
7
|
+
"errors",
|
|
8
|
+
"class",
|
|
9
|
+
"classList",
|
|
10
|
+
"children"
|
|
11
|
+
]), m = s(() => {
|
|
12
|
+
if (f.children) return f.children;
|
|
13
|
+
if (!f.errors?.length) return null;
|
|
14
|
+
let e = [...new Map(f.errors.map((e) => [e?.message, e])).values()];
|
|
15
|
+
return e?.length === 1 ? e[0]?.message : (() => {
|
|
16
|
+
var t = l();
|
|
17
|
+
return n(t, () => e.map((e) => e?.message && (() => {
|
|
18
|
+
var t = u();
|
|
19
|
+
return n(t, () => e.message), t;
|
|
20
|
+
})())), t;
|
|
21
|
+
})();
|
|
22
|
+
});
|
|
23
|
+
return t(o, {
|
|
24
|
+
get when() {
|
|
25
|
+
return m();
|
|
26
|
+
},
|
|
27
|
+
get children() {
|
|
28
|
+
var t = d();
|
|
29
|
+
return i(t, r({ get class() {
|
|
30
|
+
return e("text-sm font-normal text-red-600 dark:text-red-400", f.class);
|
|
31
|
+
} }, p), !1, !0), n(t, m), t;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { f as FieldError };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FieldError } from './FieldError';
|
|
File without changes
|
|
@@ -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/field/FieldGroup/FieldGroup.tsx
|
|
5
|
+
var a = /* @__PURE__ */ r("<div data-slot=field-group>"), 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/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4", o.class);
|
|
11
|
+
} }, s), !1, !1), r;
|
|
12
|
+
})();
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { o as FieldGroup };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FieldGroup } from './FieldGroup';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { clsx as e } from "../../../lib/utils/clsx.js";
|
|
2
|
+
import { Label as t } from "../../label/Label.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/field/FieldLabel/FieldLabel.tsx
|
|
6
|
+
var a = (a) => {
|
|
7
|
+
let [o, s] = i(a, ["class", "classList"]);
|
|
8
|
+
return n(t, r({
|
|
9
|
+
"data-slot": "field-label",
|
|
10
|
+
get class() {
|
|
11
|
+
return e("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-neutral-900/30 has-data-checked:bg-neutral-900/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5 dark:has-data-checked:border-neutral-200/20 dark:has-data-checked:bg-neutral-200/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", o.class);
|
|
12
|
+
}
|
|
13
|
+
}, s));
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { a as FieldLabel };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FieldLabel } from './FieldLabel';
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { mergeProps as i, splitProps as a } from "solid-js";
|
|
4
|
+
//#region src/components/field/FieldLegend/FieldLegend.tsx
|
|
5
|
+
var o = /* @__PURE__ */ r("<legend data-slot=field-legend>"), s = (r) => {
|
|
6
|
+
let [s, c] = a(i({ variant: "legend" }, r), [
|
|
7
|
+
"variant",
|
|
8
|
+
"class",
|
|
9
|
+
"classList"
|
|
10
|
+
]);
|
|
11
|
+
return (() => {
|
|
12
|
+
var r = o();
|
|
13
|
+
return n(r, t({
|
|
14
|
+
get "data-variant"() {
|
|
15
|
+
return s.variant;
|
|
16
|
+
},
|
|
17
|
+
get class() {
|
|
18
|
+
return e("mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", s.class);
|
|
19
|
+
}
|
|
20
|
+
}, c), !1, !1), r;
|
|
21
|
+
})();
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { s as FieldLegend };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FieldLegend } from './FieldLegend';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { clsx as e } from "../../../lib/utils/clsx.js";
|
|
2
|
+
import { Separator as t } from "../../separator/Separator.js";
|
|
3
|
+
import { className as n, createComponent as r, effect as i, insert as a, mergeProps as o, spread as s, template as c } from "solid-js/web";
|
|
4
|
+
import { Show as l, splitProps as u } from "solid-js";
|
|
5
|
+
//#region src/components/field/FieldSeparator/FieldSeparator.tsx
|
|
6
|
+
var d = /* @__PURE__ */ c("<span data-slot=field-separator-content>"), f = /* @__PURE__ */ c("<div data-slot=field-separator>"), p = (c) => {
|
|
7
|
+
let [p, m] = u(c, [
|
|
8
|
+
"class",
|
|
9
|
+
"classList",
|
|
10
|
+
"children"
|
|
11
|
+
]);
|
|
12
|
+
return (() => {
|
|
13
|
+
var c = f();
|
|
14
|
+
return s(c, o({
|
|
15
|
+
get "data-content"() {
|
|
16
|
+
return !!p.children;
|
|
17
|
+
},
|
|
18
|
+
get class() {
|
|
19
|
+
return e("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", p.class);
|
|
20
|
+
}
|
|
21
|
+
}, m), !1, !0), a(c, r(t, { class: "absolute inset-0 top-1/2" }), null), a(c, r(l, {
|
|
22
|
+
get when() {
|
|
23
|
+
return p.children;
|
|
24
|
+
},
|
|
25
|
+
get children() {
|
|
26
|
+
var t = d();
|
|
27
|
+
return a(t, () => p.children), i(() => n(t, e("relative mx-auto block w-fit px-2", "bg-white text-neutral-500", "dark:bg-neutral-950 dark:text-neutral-400"))), t;
|
|
28
|
+
}
|
|
29
|
+
}), null), c;
|
|
30
|
+
})();
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { p as FieldSeparator };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FieldSeparator } from './FieldSeparator';
|
|
@@ -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/field/FieldSet/FieldSet.tsx
|
|
5
|
+
var a = /* @__PURE__ */ r("<fieldset data-slot=field-set>"), 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 flex-col gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", o.class);
|
|
11
|
+
} }, s), !1, !1), r;
|
|
12
|
+
})();
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { o as FieldSet };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FieldSet } from './FieldSet';
|
|
@@ -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/field/FieldTitle/FieldTitle.tsx
|
|
5
|
+
var a = /* @__PURE__ */ r("<div data-slot=field-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 w-fit items-center gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50", o.class);
|
|
11
|
+
} }, s), !1, !1), r;
|
|
12
|
+
})();
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { o as FieldTitle };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FieldTitle } from './FieldTitle';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { FieldSet } from './FieldSet';
|
|
2
|
+
export { FieldLegend } from './FieldLegend';
|
|
3
|
+
export { FieldGroup } from './FieldGroup';
|
|
4
|
+
export { Field } from './Field';
|
|
5
|
+
export { FieldContent } from './FieldContent';
|
|
6
|
+
export { FieldLabel } from './FieldLabel';
|
|
7
|
+
export { FieldTitle } from './FieldTitle';
|
|
8
|
+
export { FieldError } from './FieldError';
|
|
9
|
+
export { FieldDescription } from './FieldDescription';
|
|
10
|
+
export { FieldSeparator } from './FieldSeparator';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ImageConfigComplete } from './Image.types';
|
|
2
|
+
export declare const imageConfigDefault: ImageConfigComplete;
|
|
3
|
+
/**
|
|
4
|
+
* 向子树提供自定义图片配置。
|
|
5
|
+
* 用法:
|
|
6
|
+
* <ImageConfigProvider value={myConfig}>
|
|
7
|
+
* <App />
|
|
8
|
+
* </ImageConfigProvider>
|
|
9
|
+
*/
|
|
10
|
+
export declare const ImageConfigContext: import('solid-js').Context<ImageConfigComplete>;
|
|
11
|
+
export declare function useImageConfig(): ImageConfigComplete;
|
|
12
|
+
/**
|
|
13
|
+
* 将上下文配置与运行时注入的配置合并,
|
|
14
|
+
* 并预计算派生字段(allSizes、排序后的 deviceSizes / qualities)。
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveConfig(contextConfig: ImageConfigComplete, envConfig?: Partial<ImageConfigComplete>): ImageConfigComplete;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { createContext as e, useContext as t } from "solid-js";
|
|
2
|
+
//#region src/components/image/Image.config.ts
|
|
3
|
+
var n = {
|
|
4
|
+
deviceSizes: [
|
|
5
|
+
640,
|
|
6
|
+
750,
|
|
7
|
+
828,
|
|
8
|
+
1080,
|
|
9
|
+
1200,
|
|
10
|
+
1920,
|
|
11
|
+
2048,
|
|
12
|
+
3840
|
|
13
|
+
],
|
|
14
|
+
imageSizes: [
|
|
15
|
+
16,
|
|
16
|
+
32,
|
|
17
|
+
48,
|
|
18
|
+
64,
|
|
19
|
+
96,
|
|
20
|
+
128,
|
|
21
|
+
256,
|
|
22
|
+
384
|
|
23
|
+
],
|
|
24
|
+
loader: "default",
|
|
25
|
+
path: "/_next/image",
|
|
26
|
+
loaderFile: "",
|
|
27
|
+
domains: [],
|
|
28
|
+
disableStaticImages: !1,
|
|
29
|
+
minimumCacheTTL: 60,
|
|
30
|
+
formats: ["image/webp"],
|
|
31
|
+
dangerouslyAllowSVG: !1,
|
|
32
|
+
contentSecurityPolicy: "script-src 'none'; frame-src 'none'; sandbox;",
|
|
33
|
+
contentDispositionType: "attachment",
|
|
34
|
+
remotePatterns: [],
|
|
35
|
+
unoptimized: !1
|
|
36
|
+
}, r = e(n);
|
|
37
|
+
function i() {
|
|
38
|
+
return t(r);
|
|
39
|
+
}
|
|
40
|
+
function a(e, t) {
|
|
41
|
+
let n = {
|
|
42
|
+
...e,
|
|
43
|
+
...t ?? {}
|
|
44
|
+
}, r = [...n.deviceSizes, ...n.imageSizes].sort((e, t) => e - t), i = [...n.deviceSizes].sort((e, t) => e - t), a = n.qualities ? [...n.qualities].sort((e, t) => e - t) : void 0;
|
|
45
|
+
return {
|
|
46
|
+
...n,
|
|
47
|
+
allSizes: r,
|
|
48
|
+
deviceSizes: i,
|
|
49
|
+
qualities: a
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
export { n as imageConfigDefault, a as resolveConfig, i as useImageConfig };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Component } from 'solid-js';
|
|
2
|
+
import { ImageProps } from './Image.types';
|
|
3
|
+
/**
|
|
4
|
+
* <Image> 组件
|
|
5
|
+
*
|
|
6
|
+
* 与 Next.js Image 功能对等:
|
|
7
|
+
* - 自动 srcSet 生成
|
|
8
|
+
* - blur placeholder 支持
|
|
9
|
+
* - fill 模式
|
|
10
|
+
* - priority preload
|
|
11
|
+
* - 开发环境警告
|
|
12
|
+
*/
|
|
13
|
+
export declare const Image: Component<ImageProps>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { resolveConfig as e, useImageConfig as t } from "./Image.config.js";
|
|
2
|
+
import { getImgProps as n } from "./Image.utils.js";
|
|
3
|
+
import r from "./ImageElement.js";
|
|
4
|
+
import i from "./ImagePreload.js";
|
|
5
|
+
import { createComponent as a, mergeProps as o } from "solid-js/web";
|
|
6
|
+
import { Show as s, createMemo as c, createSignal as l } from "solid-js";
|
|
7
|
+
//#region src/components/image/Image.tsx
|
|
8
|
+
var u = (u) => {
|
|
9
|
+
let d = e(t()), [f, p] = l(!1), [m, h] = l(!1), g = c(() => n(u, {
|
|
10
|
+
imgConf: d,
|
|
11
|
+
blurComplete: f(),
|
|
12
|
+
showAltText: m()
|
|
13
|
+
})), _ = () => g().props, v = () => g().meta;
|
|
14
|
+
return [a(r, o(_, {
|
|
15
|
+
get unoptimized() {
|
|
16
|
+
return v().unoptimized;
|
|
17
|
+
},
|
|
18
|
+
get placeholder() {
|
|
19
|
+
return v().placeholder;
|
|
20
|
+
},
|
|
21
|
+
get fill() {
|
|
22
|
+
return v().fill;
|
|
23
|
+
},
|
|
24
|
+
get onLoad() {
|
|
25
|
+
return u.onLoad;
|
|
26
|
+
},
|
|
27
|
+
get onLoadingComplete() {
|
|
28
|
+
return u.onLoadingComplete;
|
|
29
|
+
},
|
|
30
|
+
setBlurComplete: p,
|
|
31
|
+
setShowAltText: h,
|
|
32
|
+
get sizesInput() {
|
|
33
|
+
return u.sizes;
|
|
34
|
+
}
|
|
35
|
+
})), a(s, {
|
|
36
|
+
get when() {
|
|
37
|
+
return v().preload;
|
|
38
|
+
},
|
|
39
|
+
get children() {
|
|
40
|
+
return a(i, { get imgAttributes() {
|
|
41
|
+
return _();
|
|
42
|
+
} });
|
|
43
|
+
}
|
|
44
|
+
})];
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
export { u as Image };
|
|
File without changes
|