import React from "react"; import ComboBox from "./"; import RadioButton from "../radio-button"; import DropDownItem from "../drop-down-item"; import NavLogoIcon from "../../../public/images/nav.logo.opened.react.svg"; const comboOptions = [ { key: 1, icon: "static/images/catalog.employee.react.svg", label: "Option 1", }, { key: 2, icon: "static/images/catalog.guest.react.svg", label: "Option 2", }, { key: 3, disabled: true, label: "Option 3", }, { key: 4, label: "Option 4", }, { key: 5, icon: "static/images/copy.react.svg", label: "Option 5", }, { key: 6, label: "Option 6", }, { key: 7, label: "Option 7", }, ]; let children = []; const advancedOptions = ( <> ); const Wrapper = (props) => (
{props.children}
); const childrenItems = children.length > 0 ? children : null; const Template = (args) => ( ); const BaseOptionsTemplate = (args) => ( args.onSelect(option)} selectedOption={{ key: 0, label: "Select", default: true, }} > {childrenItems} ); const AdvancedOptionsTemplate = (args) => ( args.onSelect(option)} selectedOption={{ key: 0, label: "Select", default: true, }} > ); export const basic = Template.bind({}); basic.args = { opened: true, scaled: false, }; export const baseOption = BaseOptionsTemplate.bind({}); baseOption.args = { scaledOptions: false, scaled: false, noBorder: false, isDisabled: false, opened: true, }; export const advancedOption = AdvancedOptionsTemplate.bind({}); advancedOption.args = { opened: true, isDisabled: false, scaled: false, size: "content", directionX: "right", directionY: "bottom", };