import React from "react"; import { Meta, StoryObj } from "@storybook/react"; // import NavLogoIcon from "PUBLIC_DIR/images/nav.logo.opened.react.svg"; // import CatalogEmployeeReactSvgUrl from "PUBLIC_DIR/images/catalog.employee.react.svg?url"; // import CatalogGuestReactSvgUrl from "PUBLIC_DIR/images/catalog.guest.react.svg?url"; // import CopyReactSvgUrl from "PUBLIC_DIR/images/copy.react.svg?url"; // import { IconSizeType } from "../../utils"; // import { DropDownItem } from "../drop-down-item"; import { ComboBox } from "./ComboBox"; // import RadioButton from "../radio-button"; // import ComboBoxDocs from "./Combobox.docs.mdx"; import { ComboboxProps } from "./Combobox.types"; const meta = { title: "Components/ComboBox", component: ComboBox, // tags: ["autodocs"], parameters: { docs: { // page: ComboBoxDocs, }, }, } satisfies Meta; type Story = StoryObj; export default meta; // const comboOptions = [ // { // key: 1, // icon: CatalogEmployeeReactSvgUrl, // label: "Option 1", // }, // { // key: 2, // icon: CatalogGuestReactSvgUrl, // label: "Option 2", // }, // { // key: 3, // disabled: true, // label: "Option 3", // }, // { // key: 4, // label: "Option 4", // }, // { // key: 5, // icon: CopyReactSvgUrl, // label: "Option 5", // }, // { // key: 6, // label: "Option 6", // }, // { // key: 7, // label: "Option 7", // }, // ]; // const childrenArr = []; // const advancedOptions = ( // <> // // {/* */} // // // {/* */} // // // // {/* */} // // // {/* */} // // // ); const Wrapper = ({ children }: { children: React.ReactNode }) => { return
{children}
; }; // const childrenItems = childrenArr.length > 0 ? childrenArr : null; // const BadgeTypeTemplate = (args: ComboboxProps) => ( // // // // ); const Template = (args: ComboboxProps) => ( ); // const BaseOptionsTemplate = (args: ComboboxProps) => ( // // args.onSelect(option)} // selectedOption={{ // key: 0, // label: "Select", // default: true, // }} // > // {childrenItems} // // // ); // const AdvancedOptionsTemplate = (args: ComboboxProps) => { // const { onSelect } = args; // return ( // // onSelect(option)} // selectedOption={{ // key: 0, // label: "Select", // default: true, // }} // > // // // // ); // }; export const Default: Story = { render: (args) =>