@bitrise/bitkit 12.0.2 → 12.1.1
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/package.json
CHANGED
|
@@ -6,16 +6,18 @@ import {
|
|
|
6
6
|
AccordionPanel,
|
|
7
7
|
AccordionIcon,
|
|
8
8
|
useAccordionStyles,
|
|
9
|
+
CollapseProps,
|
|
9
10
|
} from '@chakra-ui/react';
|
|
10
11
|
|
|
11
12
|
export interface AccordionItemProps {
|
|
12
13
|
buttonContent: ReactNode | ((props: { isExpanded: boolean; isDisabled: boolean }) => ReactNode);
|
|
13
14
|
children?: ReactNode | ((props: { isExpanded: boolean; isDisabled: boolean }) => ReactNode);
|
|
14
15
|
id?: ChakraAccordionItemProps['id'];
|
|
16
|
+
motionProps?: CollapseProps;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
const AccordionItem = (props: AccordionItemProps) => {
|
|
18
|
-
const { buttonContent, children, id } = props;
|
|
20
|
+
const { buttonContent, children, id, motionProps } = props;
|
|
19
21
|
const styles = useAccordionStyles();
|
|
20
22
|
|
|
21
23
|
return (
|
|
@@ -27,7 +29,9 @@ const AccordionItem = (props: AccordionItemProps) => {
|
|
|
27
29
|
<AccordionIcon sx={styles.icon} />
|
|
28
30
|
</AccordionButton>
|
|
29
31
|
{!!children && (
|
|
30
|
-
<AccordionPanel
|
|
32
|
+
<AccordionPanel motionProps={motionProps}>
|
|
33
|
+
{typeof children === 'function' ? children(renderProps) : children}
|
|
34
|
+
</AccordionPanel>
|
|
31
35
|
)}
|
|
32
36
|
</>
|
|
33
37
|
)}
|
package/src/index.ts
CHANGED
|
@@ -53,6 +53,9 @@ export { default as TabList } from './Components/Tabs/TabList';
|
|
|
53
53
|
export type { TabProps } from './Components/Tabs/Tab';
|
|
54
54
|
export { default as Tab } from './Components/Tabs/Tab';
|
|
55
55
|
|
|
56
|
+
export type { ContainedTabProps } from './Components/Tabs/ContainedTab';
|
|
57
|
+
export { default as ContainedTab } from './Components/Tabs/ContainedTab';
|
|
58
|
+
|
|
56
59
|
export type { TabPanelsProps } from './Components/Tabs/TabPanels';
|
|
57
60
|
export { default as TabPanels } from './Components/Tabs/TabPanels';
|
|
58
61
|
|