@contentful/f36-modal
Advanced tools
Comparing version 4.0.1-next-v4-6859.2287 to 4.0.1-next-v4-7604.2322
import React from "react"; | ||
import { PrimitiveProps, CommonProps } from "@contentful/f36-core"; | ||
import { PropsWithHTMLElement, CommonProps } from "@contentful/f36-core"; | ||
import ReactModal from "react-modal"; | ||
export interface ModalHeaderProps extends PrimitiveProps<'div'> { | ||
interface ModalHeaderInternalProps extends CommonProps { | ||
title: string; | ||
onClose?: Function; | ||
as?: 'div'; | ||
} | ||
export type ModalHeaderProps = PropsWithHTMLElement<ModalHeaderInternalProps, 'div'>; | ||
export function ModalHeader({ onClose, title, testId, className, ...otherProps }: ModalHeaderProps): React.ReactElement; | ||
export interface ModalContentProps extends PrimitiveProps<'div'> { | ||
interface ModalContentInternalProps extends CommonProps { | ||
children: React.ReactNode; | ||
as?: 'div'; | ||
} | ||
export type ModalContentProps = PropsWithHTMLElement<ModalContentInternalProps, 'div'>; | ||
export function ModalContent({ testId, className, children, ...otherProps }: ModalContentProps): JSX.Element; | ||
export interface ModalControlsProps extends PrimitiveProps<'div'> { | ||
as?: 'div'; | ||
interface ModalControlsInternalProps extends CommonProps { | ||
children: React.ReactElement[] | React.ReactElement; | ||
} | ||
export type ModalControlsProps = PropsWithHTMLElement<ModalControlsInternalProps, 'div'>; | ||
export function ModalControls({ testId, className, children, ...otherProps }: ModalControlsProps): React.ReactElement; | ||
@@ -20,0 +20,0 @@ type ModalSizeType = 'small' | 'medium' | 'large' | 'fullWidth' | 'zen' | string | number; |
{ | ||
"name": "@contentful/f36-modal", | ||
"version": "4.0.1-next-v4-6859.2287+1c884886", | ||
"version": "4.0.1-next-v4-7604.2322+0bee7360", | ||
"description": "Forma 36: Modal component", | ||
@@ -10,7 +10,7 @@ "scripts": { | ||
"@babel/runtime": "^7.6.2", | ||
"@contentful/f36-button": "4.0.1-next-v4-6859.2287+1c884886", | ||
"@contentful/f36-core": "4.0.1-next-v4-6859.2287+1c884886", | ||
"@contentful/f36-icons": "4.0.1-next-v4-6859.2287+1c884886", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-6859.2287+1c884886", | ||
"@contentful/f36-typography": "4.0.1-next-v4-6859.2287+1c884886", | ||
"@contentful/f36-button": "4.0.1-next-v4-7604.2322+0bee7360", | ||
"@contentful/f36-core": "4.0.1-next-v4-7604.2322+0bee7360", | ||
"@contentful/f36-icons": "4.0.1-next-v4-7604.2322+0bee7360", | ||
"@contentful/f36-tokens": "4.0.1-next-v4-7604.2322+0bee7360", | ||
"@contentful/f36-typography": "4.0.1-next-v4-7604.2322+0bee7360", | ||
"@types/react-modal": "^3.12.1", | ||
@@ -41,3 +41,3 @@ "emotion": "^10.0.17", | ||
}, | ||
"gitHead": "1c884886dfbd1a17e16a1c06523e23861922e466" | ||
"gitHead": "0bee7360d2456674a913f221d51a3b08d75a14bb" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
234702
961
Updated@contentful/f36-button@4.0.1-next-v4-7604.2322+0bee7360
Updated@contentful/f36-core@4.0.1-next-v4-7604.2322+0bee7360
Updated@contentful/f36-icons@4.0.1-next-v4-7604.2322+0bee7360
Updated@contentful/f36-tokens@4.0.1-next-v4-7604.2322+0bee7360
Updated@contentful/f36-typography@4.0.1-next-v4-7604.2322+0bee7360