@vchasno/ui-kit 0.4.25 → 0.4.26
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/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.4.26] - 2024-11-22
|
|
11
|
+
|
|
12
|
+
## Fixed
|
|
13
|
+
|
|
14
|
+
- wrap FullScreenModal into React.PropsWithChildren for 18+ versions of React
|
|
15
|
+
|
|
10
16
|
## [0.4.25] - 2024-11-22
|
|
11
17
|
|
|
12
18
|
## Added
|
|
@@ -7,6 +7,6 @@ interface FullScreenModalProps {
|
|
|
7
7
|
headerChildren?: React.ReactNode;
|
|
8
8
|
showAnimation?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const FullScreenModal: React.FC<FullScreenModalProps
|
|
10
|
+
declare const FullScreenModal: React.FC<React.PropsWithChildren<FullScreenModalProps>>;
|
|
11
11
|
|
|
12
12
|
export { type FullScreenModalProps, FullScreenModal as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullScreenModal.js","sources":["../../../src/components/FullScreenModal/FullScreenModal.tsx"],"sourcesContent":["import React from 'react';\n\nimport cn from 'classnames';\n\nimport BodyPortal from '../BodyPortal';\nimport ScrollableBox from '../ScrollableBox';\nimport { useLockBodyScroll } from './useLockBodyScroll';\n\nimport './FullScreenModal.global.css';\n\nexport interface FullScreenModalProps {\n className?: string;\n headerClassName?: string;\n contentClassName?: string;\n headerChildren?: React.ReactNode;\n showAnimation?: boolean;\n}\nconst FullScreenModal: React.FC<FullScreenModalProps
|
|
1
|
+
{"version":3,"file":"FullScreenModal.js","sources":["../../../src/components/FullScreenModal/FullScreenModal.tsx"],"sourcesContent":["import React from 'react';\n\nimport cn from 'classnames';\n\nimport BodyPortal from '../BodyPortal';\nimport ScrollableBox from '../ScrollableBox';\nimport { useLockBodyScroll } from './useLockBodyScroll';\n\nimport './FullScreenModal.global.css';\n\nexport interface FullScreenModalProps {\n className?: string;\n headerClassName?: string;\n contentClassName?: string;\n headerChildren?: React.ReactNode;\n showAnimation?: boolean;\n}\nconst FullScreenModal: React.FC<React.PropsWithChildren<FullScreenModalProps>> = ({\n children,\n headerChildren,\n className,\n headerClassName,\n contentClassName,\n showAnimation,\n}) => {\n useLockBodyScroll();\n\n return (\n <BodyPortal>\n <div\n className={cn('vchasno-ui-full-screen-modal', className, {\n 'vchasno-ui-full-screen-modal--animation': showAnimation,\n })}\n >\n <header className={cn('vchasno-ui-full-screen-modal__header', headerClassName)}>\n {headerChildren}\n </header>\n <ScrollableBox\n scrollHeight=\"calc(100vh - var(--header-height))\"\n className={cn('vchasno-ui-full-screen-modal__content', contentClassName)}\n >\n {children}\n </ScrollableBox>\n </div>\n </BodyPortal>\n );\n};\n\nexport default FullScreenModal;\n"],"names":["FullScreenModal","param","children","headerChildren","className","headerClassName","contentClassName","showAnimation","useLockBodyScroll","React","createElement","BodyPortal","div","cn","header","ScrollableBox","scrollHeight"],"mappings":"sMAiBA,IAAMA,EAA2E,SAAAC,CAAA,MAC7EC,EAAAA,EAAAA,QAAAA,CACAC,IAAAA,cACAC,CAAAA,EAAAA,EAAAA,UACAC,EAAAA,EAAAA,eAAAA,CACAC,EAAAA,EAAAA,gBAAAA,CACAC,EAAAA,EAAAA,aAAAA,CAIA,OAFAC,IAGI,WAAA,EAAAC,EAAAC,aAAA,CAACC,oBACGF,EAACG,aAAAA,CAAAA,MAAAA,CACGR,UAAWS,EAAG,+BAAgCT,EAAW,CACrD,0CAA2CG,CAC/C,iBAEAE,EAACK,aAAAA,CAAAA,SAAAA,CAAOV,UAAWS,EAAG,uCAAwCR,EACzDF,EAAAA,GAAAA,WAAAA,EAELM,EAACM,aAAAA,CAAAA,EAAAA,CACGC,aAAa,qCACbZ,UAAWS,EAAG,wCAAyCP,EAEtDJ,EAAAA,IAKrB"}
|