@targetprocess/popover 12.20.1-alpha.4 → 12.20.2-alpha.0

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/PopoverBody.tsx CHANGED
@@ -1,37 +1,40 @@
1
- import React from 'react'
2
- import PropTypes from 'prop-types'
3
- import styles from './style/index.css'
4
- import classNames from 'classnames'
5
-
6
- export type PopoverBodyProps = {
7
- children?: React.ReactNode
8
- className?: string
9
- classNameBody?: string
10
- noPadding?: boolean
11
- }
12
-
13
- export const PopoverBody: React.FunctionComponent<PopoverBodyProps> = ({
14
- children,
15
- className,
16
- classNameBody,
17
- noPadding
18
- }) => (
19
- <div className={classNames(className, styles['popover-body-container'])}>
20
- <div
21
- className={classNames(
22
- classNameBody,
23
- styles['popover-body'],
24
- noPadding && styles['popover-body--no-padding']
25
- )}
26
- >
27
- {children}
28
- </div>
29
- </div>
30
- )
31
-
32
- PopoverBody.propTypes = {
33
- children: PropTypes.node,
34
- className: PropTypes.string,
35
- classNameBody: PropTypes.string,
36
- noPadding: PropTypes.bool
37
- }
1
+ /*********************************************************************
2
+ * © Copyright IBM Corp. 2024
3
+ *********************************************************************/
4
+ import React from 'react'
5
+ import PropTypes from 'prop-types'
6
+ import styles from './style/index.css'
7
+ import classNames from 'classnames'
8
+
9
+ export type PopoverBodyProps = {
10
+ children?: React.ReactNode
11
+ className?: string
12
+ classNameBody?: string
13
+ noPadding?: boolean
14
+ }
15
+
16
+ export const PopoverBody: React.FunctionComponent<PopoverBodyProps> = ({
17
+ children,
18
+ className,
19
+ classNameBody,
20
+ noPadding
21
+ }) => (
22
+ <div className={classNames(className, styles['popover-body-container'])}>
23
+ <div
24
+ className={classNames(
25
+ classNameBody,
26
+ styles['popover-body'],
27
+ noPadding && styles['popover-body--no-padding']
28
+ )}
29
+ >
30
+ {children}
31
+ </div>
32
+ </div>
33
+ )
34
+
35
+ PopoverBody.propTypes = {
36
+ children: PropTypes.node,
37
+ className: PropTypes.string,
38
+ classNameBody: PropTypes.string,
39
+ noPadding: PropTypes.bool
40
+ }