@vismaux/react-nc4
Advanced tools
Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4
export * from './Modal'; | ||
export * from './enums/ModalSize'; | ||
export * from './enums/ModalType'; |
export * from './Modal'; | ||
export * from './enums/ModalSize'; | ||
export * from './enums/ModalType'; | ||
//# sourceMappingURL=index.js.map |
import * as React from 'react'; | ||
import { ReactNode } from 'react'; | ||
import { ModalSize } from './enums/ModalSize'; | ||
import { ModalType } from './enums/ModalType'; | ||
export declare type ModalSize = 'modal-xl' | 'modal-lg' | 'modal-sm'; | ||
export declare type ModalType = 'modal-info' | 'modal-help' | 'modal-success' | 'modal-warning' | 'modal-error'; | ||
interface IProps { | ||
@@ -9,4 +9,4 @@ className?: string; | ||
onModalClose: () => void; | ||
bodyContent: React.ReactNode; | ||
footerContent?: React.ReactNode; | ||
bodyContent: string | React.ReactNode; | ||
footerContent?: string | React.ReactNode; | ||
modalSize?: ModalSize; | ||
@@ -13,0 +13,0 @@ modalType?: ModalType; |
@@ -26,3 +26,3 @@ var __assign = (this && this.__assign) || function () { | ||
import { isDefined } from '../utils/isDefined'; | ||
import FocusTrap from "focus-trap-react"; | ||
import FocusTrap from 'focus-trap-react'; | ||
export var Modal = function (_a) { | ||
@@ -29,0 +29,0 @@ var className = _a.className, title = _a.title, onModalClose = _a.onModalClose, bodyContent = _a.bodyContent, footerContent = _a.footerContent, modalSize = _a.modalSize, modalType = _a.modalType, others = __rest(_a, ["className", "title", "onModalClose", "bodyContent", "footerContent", "modalSize", "modalType"]); |
{ | ||
"name": "@vismaux/react-nc4", | ||
"version": "1.0.0-alpha.3", | ||
"version": "1.0.0-alpha.4", | ||
"description": "NC4 components for React", | ||
@@ -48,11 +48,11 @@ "main": "lib/index.js", | ||
"@babel/preset-typescript": "^7.12.7", | ||
"@storybook/addon-a11y": "^6.3.0-beta.1", | ||
"@storybook/addon-actions": "^6.3.0-beta.1", | ||
"@storybook/addon-controls": "^6.3.0-beta.1", | ||
"@storybook/addon-docs": "^6.3.0-beta.1", | ||
"@storybook/addon-essentials": "^6.3.0-beta.1", | ||
"@storybook/addon-storysource": "^6.3.0-beta.1", | ||
"@storybook/builder-webpack5": "^6.3.0-beta.1", | ||
"@storybook/manager-webpack5": "^6.3.0-beta.1", | ||
"@storybook/react": "^6.3.0-beta.1", | ||
"@storybook/addon-a11y": "^6.3.0-beta.7", | ||
"@storybook/addon-actions": "^6.3.0-beta.7", | ||
"@storybook/addon-controls": "^6.3.0-beta.7", | ||
"@storybook/addon-docs": "^6.3.0-beta.7", | ||
"@storybook/addon-essentials": "^6.3.0-beta.7", | ||
"@storybook/addon-storysource": "^6.3.0-beta.7", | ||
"@storybook/builder-webpack5": "^6.3.0-beta.7", | ||
"@storybook/manager-webpack5": "^6.3.0-beta.7", | ||
"@storybook/react": "^6.3.0-beta.7", | ||
"@storybook/storybook-deployer": "^2.8.8", | ||
@@ -88,3 +88,3 @@ "@testing-library/jest-dom": "^5.12.0", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^4.0.5", | ||
"typescript": "4.2.2", | ||
"webpack": "^5.22.0", | ||
@@ -91,0 +91,0 @@ "webpack-cli": "^4.5.0", |
Sorry, the diff of this file is too big to display
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
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
478390
91
1369