@radix-ui/react-accordion
Advanced tools
Comparing version 1.2.1 to 1.2.2-rc.1
@@ -1,19 +0,8 @@ | ||
import * as React from 'react'; | ||
import React__default from 'react'; | ||
import * as _radix_ui_react_context from '@radix-ui/react-context'; | ||
import React from 'react'; | ||
import { Primitive } from '@radix-ui/react-primitive'; | ||
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible'; | ||
type Scope<C = any> = { | ||
[scopeName: string]: React.Context<C>[]; | ||
} | undefined; | ||
type ScopeHook = (scope: Scope) => { | ||
[__scopeProp: string]: Scope; | ||
}; | ||
interface CreateScope { | ||
scopeName: string; | ||
(): ScopeHook; | ||
} | ||
type Direction = 'ltr' | 'rtl'; | ||
declare const createAccordionScope: CreateScope; | ||
declare const createAccordionScope: _radix_ui_react_context.CreateScope; | ||
interface AccordionSingleProps extends AccordionImplSingleProps { | ||
@@ -25,3 +14,3 @@ type: 'single'; | ||
} | ||
declare const Accordion: React__default.ForwardRefExoticComponent<(AccordionSingleProps | AccordionMultipleProps) & React__default.RefAttributes<HTMLDivElement>>; | ||
declare const Accordion: React.ForwardRefExoticComponent<(AccordionSingleProps | AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>; | ||
interface AccordionImplSingleProps extends AccordionImplProps { | ||
@@ -62,3 +51,3 @@ /** | ||
} | ||
type PrimitiveDivProps = React__default.ComponentPropsWithoutRef<typeof Primitive.div>; | ||
type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>; | ||
interface AccordionImplProps extends PrimitiveDivProps { | ||
@@ -75,3 +64,3 @@ /** | ||
*/ | ||
orientation?: React__default.AriaAttributes['aria-orientation']; | ||
orientation?: React.AriaAttributes['aria-orientation']; | ||
/** | ||
@@ -82,3 +71,3 @@ * The language read direction. | ||
} | ||
type CollapsibleProps = React__default.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Root>; | ||
type CollapsibleProps = React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Root>; | ||
interface AccordionItemProps extends Omit<CollapsibleProps, 'open' | 'defaultOpen' | 'onOpenChange'> { | ||
@@ -99,4 +88,4 @@ /** | ||
*/ | ||
declare const AccordionItem: React__default.ForwardRefExoticComponent<AccordionItemProps & React__default.RefAttributes<HTMLDivElement>>; | ||
type PrimitiveHeading3Props = React__default.ComponentPropsWithoutRef<typeof Primitive.h3>; | ||
declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDivElement>>; | ||
type PrimitiveHeading3Props = React.ComponentPropsWithoutRef<typeof Primitive.h3>; | ||
interface AccordionHeaderProps extends PrimitiveHeading3Props { | ||
@@ -108,4 +97,4 @@ } | ||
*/ | ||
declare const AccordionHeader: React__default.ForwardRefExoticComponent<AccordionHeaderProps & React__default.RefAttributes<HTMLHeadingElement>>; | ||
type CollapsibleTriggerProps = React__default.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Trigger>; | ||
declare const AccordionHeader: React.ForwardRefExoticComponent<AccordionHeaderProps & React.RefAttributes<HTMLHeadingElement>>; | ||
type CollapsibleTriggerProps = React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Trigger>; | ||
interface AccordionTriggerProps extends CollapsibleTriggerProps { | ||
@@ -117,4 +106,4 @@ } | ||
*/ | ||
declare const AccordionTrigger: React__default.ForwardRefExoticComponent<AccordionTriggerProps & React__default.RefAttributes<HTMLButtonElement>>; | ||
type CollapsibleContentProps = React__default.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Content>; | ||
declare const AccordionTrigger: React.ForwardRefExoticComponent<AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>; | ||
type CollapsibleContentProps = React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Content>; | ||
interface AccordionContentProps extends CollapsibleContentProps { | ||
@@ -125,9 +114,9 @@ } | ||
*/ | ||
declare const AccordionContent: React__default.ForwardRefExoticComponent<AccordionContentProps & React__default.RefAttributes<HTMLDivElement>>; | ||
declare const Root: React__default.ForwardRefExoticComponent<(AccordionSingleProps | AccordionMultipleProps) & React__default.RefAttributes<HTMLDivElement>>; | ||
declare const Item: React__default.ForwardRefExoticComponent<AccordionItemProps & React__default.RefAttributes<HTMLDivElement>>; | ||
declare const Header: React__default.ForwardRefExoticComponent<AccordionHeaderProps & React__default.RefAttributes<HTMLHeadingElement>>; | ||
declare const Trigger: React__default.ForwardRefExoticComponent<AccordionTriggerProps & React__default.RefAttributes<HTMLButtonElement>>; | ||
declare const Content: React__default.ForwardRefExoticComponent<AccordionContentProps & React__default.RefAttributes<HTMLDivElement>>; | ||
declare const AccordionContent: React.ForwardRefExoticComponent<AccordionContentProps & React.RefAttributes<HTMLDivElement>>; | ||
declare const Root: React.ForwardRefExoticComponent<(AccordionSingleProps | AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>; | ||
declare const Item: React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDivElement>>; | ||
declare const Header: React.ForwardRefExoticComponent<AccordionHeaderProps & React.RefAttributes<HTMLHeadingElement>>; | ||
declare const Trigger: React.ForwardRefExoticComponent<AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>; | ||
declare const Content: React.ForwardRefExoticComponent<AccordionContentProps & React.RefAttributes<HTMLDivElement>>; | ||
export { Accordion, AccordionContent, type AccordionContentProps, AccordionHeader, type AccordionHeaderProps, AccordionItem, type AccordionItemProps, type AccordionMultipleProps, type AccordionSingleProps, AccordionTrigger, type AccordionTriggerProps, Content, Header, Item, Root, Trigger, createAccordionScope }; |
{ | ||
"name": "@radix-ui/react-accordion", | ||
"version": "1.2.1", | ||
"version": "1.2.2-rc.1", | ||
"license": "MIT", | ||
@@ -31,10 +31,10 @@ "exports": { | ||
"dependencies": { | ||
"@radix-ui/primitive": "1.1.0", | ||
"@radix-ui/react-collapsible": "1.1.1", | ||
"@radix-ui/react-collection": "1.1.0", | ||
"@radix-ui/react-compose-refs": "1.1.0", | ||
"@radix-ui/primitive": "1.1.1-rc.1", | ||
"@radix-ui/react-collapsible": "1.1.2-rc.1", | ||
"@radix-ui/react-collection": "1.1.1-rc.1", | ||
"@radix-ui/react-compose-refs": "1.1.1-rc.1", | ||
"@radix-ui/react-context": "1.1.1", | ||
"@radix-ui/react-direction": "1.1.0", | ||
"@radix-ui/react-id": "1.1.0", | ||
"@radix-ui/react-primitive": "2.0.0", | ||
"@radix-ui/react-primitive": "2.0.1-rc.1", | ||
"@radix-ui/react-use-controllable-state": "1.1.0" | ||
@@ -63,3 +63,4 @@ }, | ||
"url": "https://github.com/radix-ui/primitives/issues" | ||
} | ||
}, | ||
"stableVersion": "1.2.1" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
88383
779
1
+ Added@radix-ui/primitive@1.1.1-rc.1(transitive)
+ Added@radix-ui/react-collapsible@1.1.2-rc.1(transitive)
+ Added@radix-ui/react-collection@1.1.1-rc.1(transitive)
+ Added@radix-ui/react-compose-refs@1.1.1-rc.1(transitive)
+ Added@radix-ui/react-presence@1.1.2-rc.1(transitive)
+ Added@radix-ui/react-primitive@2.0.1-rc.1(transitive)
+ Added@radix-ui/react-slot@1.1.1-rc.1(transitive)
- Removed@radix-ui/primitive@1.1.0(transitive)
- Removed@radix-ui/react-collapsible@1.1.1(transitive)
- Removed@radix-ui/react-collection@1.1.0(transitive)
- Removed@radix-ui/react-compose-refs@1.1.0(transitive)
- Removed@radix-ui/react-context@1.1.0(transitive)
- Removed@radix-ui/react-presence@1.1.1(transitive)
- Removed@radix-ui/react-primitive@2.0.0(transitive)
- Removed@radix-ui/react-slot@1.1.0(transitive)