Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const StatusViewVariants = {
NODATA: 'no-data',
NOMATCHINGRESULTS: 'no-matching-results',
NOTAUTHORIZED: 'not-authorized',
ERROR: 'error',
};
/* eslint-disable react/forbid-foreign-prop-types */
const propTypes = {
/**
* An array of objects containing terra-button properties. A key attribute is required for each object.
* This array is used to render buttons in the bottom section.
* Example:`[{ text: 'Button 1', key: 1, size: 'medium', variant: 'action', onClick: onClickFunction}]`
*/
buttonAttrs: PropTypes.arrayOf(PropTypes.shape(Button.propTypes)),
/**
* Display a custom glyph. Overrides a variant's default glyph.
*/
customGlyph: PropTypes.node,
/**
* Aligns the component at the top of the container rather than "centered"
*/
isAlignedTop: PropTypes.bool,
/**
* Determines if the glyph should be displayed.
*/
isGlyphHidden: PropTypes.bool,
isIconOnly
text={backText}
variant={Button.Opts.Variants.UTILITY}
/>
);
const closeText = intl.formatMessage({ id: 'Terra.application.utility.close' });
const closeButton = (
<button>}
isCompact
isIconOnly
aria-describedby="utility-menu-header"
text={closeText}
variant={Button.Opts.Variants.UTILITY}
className={closeButtonClassNames}
/>
);
let headerText;
if (currentItem !== undefined) {
headerText = currentItem.title;
}
const header = (
<div>
<span>
<span>
{!firstPage && backButton}
<span aria-level="2" role="heading" id="utility-menu-header">{headerText}</span>
</span>
<span></span></span></div></button>
validate={required}
component={({ input }) => (
)}
/>
<button type="{Button.Opts.Types.SUBMIT}">
);
}
</button>
>
{({ input, meta }) => (
{ input.onChange(e.target.value); }}
inputAttrs={{ ...input }}
value={input.value}
required
/>
)}
<button type="{Button.Opts.Types.SUBMIT}">
);
}
</button>
{ input.onChange(e.target.value); }}
value={input.value}
required
/>
)}
<button type="{Button.Opts.Types.SUBMIT}">
{this.state.submittedValues
&& (
<div>
<p>Form Submitted Successfully With</p>
<pre>{JSON.stringify(this.state.submittedValues, 0, 2)}</pre>
</div>
)}
);
}
</button>
{({ input, meta }) => (
{ input.onChange(date); }}
/>
)}
<button type="{Button.Opts.Types.SUBMIT}">
);
}
</button>
{ input.onChange(e.target.value); }}
value={input.value}
required
/>
)}
<button type="{Button.Opts.Types.SUBMIT}">
);
}
</button>
{<h1>{title}</h1>}
<div>
<p>{message}</p>
</div>
<div>
<button>
</button><button>
</button></div>
<button>
);
}
}</button>
const themes = Object.keys(config.themes);
return (
)}
footer={(
<spacer>
<button> {
onChangeSettings({
locale,
theme,
direction,
}, disclosureManager.dismiss);
}}
/>
</button><button id="cancel"> {
disclosureManager.dismiss();
}}
/></button></spacer>
const ButtonAttrsToggleButton = () => (
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
);