@bitrise/bitkit 13.194.0 → 13.195.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/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BoxProps } from '@chakra-ui/react';
|
|
2
|
+
import Divider from '../../Components/Divider/Divider';
|
|
3
|
+
import Box from '../../Components/Box/Box';
|
|
4
|
+
import Text from '../../Components/Text/Text';
|
|
5
|
+
|
|
6
|
+
export type GroupHeaderProps = {
|
|
7
|
+
label: string;
|
|
8
|
+
} & BoxProps;
|
|
9
|
+
|
|
10
|
+
const GroupHeader = ({ label, ...rest }: GroupHeaderProps) => {
|
|
11
|
+
return (
|
|
12
|
+
<Box alignItems="center" display="flex" gap="16" paddingTop="8" paddingRight="8" paddingBottom="4" {...rest}>
|
|
13
|
+
<Text as="h6" textStyle="heading/h6" textColor="text/tertiary">
|
|
14
|
+
{label}
|
|
15
|
+
</Text>
|
|
16
|
+
<Divider flexGrow="1" w="auto" />
|
|
17
|
+
</Box>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default GroupHeader;
|
package/src/index.ts
CHANGED
|
@@ -220,6 +220,9 @@ export { default as DatePicker, DateRange, useDateRange } from './Components/Dat
|
|
|
220
220
|
export type { FadeProps } from './Components/Fade/Fade';
|
|
221
221
|
export { default as Fade } from './Components/Fade/Fade';
|
|
222
222
|
|
|
223
|
+
export type { GroupHeaderProps } from './Patterns/GroupHeader/GroupHeader';
|
|
224
|
+
export { default as GroupHeader } from './Patterns/GroupHeader/GroupHeader';
|
|
225
|
+
|
|
223
226
|
export type { InputProps } from './Components/Form/Input/Input';
|
|
224
227
|
export { default as Input } from './Components/Form/Input/Input';
|
|
225
228
|
|