@momentum-ui/react-collaboration
Version:
Cisco Momentum UI Framework for React Collaboration Applications
143 lines (138 loc) • 3.62 kB
text/typescript
import { commonStyles, extendArgTypes } from '../../storybook/helper.stories.argtypes';
import { overlayArgTypes } from '../Overlay/Overlay.stories.args';
import { MODAL_CONTAINER_CONSTANTS } from '../ModalContainer';
import { OVERLAY_CONSTANTS } from '../Overlay';
import { OVERLAY_ALERT_CONSTANTS } from '.';
const overlayAlertArgTypes = {
actions: {
description:
'Provides a collection of action components to this component. These appear at the bottom of this component.',
control: { type: 'none' },
table: {
type: {
summary: 'ButtonSimple | Array<ButtonSimple> | ButtonGroup | Array<ButtonGroup>',
},
defaultValue: {
summary: 'undefined',
},
},
},
children: {
description: 'Provides the child nodes for this element. This overrides the `details` prop.',
control: { type: 'text' },
table: {
type: {
summary: 'ReactNode',
},
defaultValue: {
summary: 'undefined',
},
},
},
controls: {
description:
'Provides a collection of control components to this component. These appear at the top of this component.',
control: { type: 'none' },
table: {
type: {
summary: 'ButtonControl | Array<ButtonControl>',
},
defaultValue: {
summary: 'undefined',
},
},
},
details: {
description:
'Provides details within this component as a `string`. This can be overwritten by the `children` prop.',
control: { type: 'text' },
table: {
type: {
summary: 'string',
},
defaultValue: {
summary: 'undefined',
},
},
},
modalColor: {
description: 'Provides the color for the modal container of this element.',
control: { type: 'select' },
options: [undefined, ...Object.values(MODAL_CONTAINER_CONSTANTS.COLORS)],
table: {
type: {
summary: 'ReactNode',
},
defaultValue: {
summary: MODAL_CONTAINER_CONSTANTS.DEFAULTS.COLOR,
},
},
},
overlayColor: {
description: 'Provides the color for the overlay of this element.',
control: { type: 'select' },
options: [undefined, ...Object.values(OVERLAY_CONSTANTS.COLORS)],
table: {
type: {
summary: 'ReactNode',
},
defaultValue: {
summary: OVERLAY_ALERT_CONSTANTS.DEFAULTS.OVERLAY_COLOR,
},
},
},
title: {
description: 'Provides the title within this component as a `string`.',
control: { type: 'text' },
table: {
type: {
summary: 'string',
},
defaultValue: {
summary: 'undefined',
},
},
},
ariaLabel: {
description: 'Provides the ariaLabel within this component as a `string`.',
control: { type: 'text' },
table: {
type: {
summary: 'string',
},
defaultValue: {
summary: 'undefined',
},
},
},
ariaLabelledby: {
description: 'Provides the ariaLabelledby within this component as a `string`.',
control: { type: 'text' },
table: {
type: {
summary: 'string',
},
defaultValue: {
summary: 'undefined',
},
},
},
ariaDescribedby: {
description: 'Provides the ariaDescribedby within this component as a `string`.',
control: { type: 'text' },
table: {
type: {
summary: 'string',
},
defaultValue: {
summary: 'undefined',
},
},
},
};
export { overlayAlertArgTypes };
export default {
...commonStyles,
...extendArgTypes('Overlay', overlayArgTypes, ['color']),
...overlayAlertArgTypes,
};