Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* add to the pattern library
*/
const SimpleIconPickerPattern = {
of: "Pattern Library/Atoms/Forms",
name: "Icon Picker",
file: require("raw-loader!./demo/index.html"),
replacements: []
};
window.StorybookUtilities.instance.addPattern(SimpleIconPickerPattern);
/**
* add the live demo
*/
const props = Object.assign(
SimpleIconPicker.properties,
SimplePicker.properties
);
delete props.hideOptionLabels;
delete props.options;
delete props.titleAsHtml;
props.label.value = "Pick an Icon";
props.icons.value = [
"check",
"clear",
"search",
"arrow-back",
"arrow-downward",
"arrow-forward",
"arrow-upward"
];
const SimpleIconPickerStory = {
of: "Web Components",