jsxRuntime jsx jsxFrag import * as React from "react" ; import * as p from "@plasmicapp/react-web" ; import { hasVariant , classNames , wrapWithClassName , createPlasmicElementProxy , makeFragment , MultiChoiceArg , SingleBooleanChoiceArg , SingleChoiceArg , pick , omit , useTrigger , StrictProps , deriveRenderOpts , ensureGlobalVariants , } from "@plasmicapp/react-web" ; import "@plasmicapp/react-web/lib/plasmic.css" ; import * as defaultcss from "../plasmic__default_style.module.css" ; import * as projectcss from "./plasmic_plume_main.module.css" ; import * as sty from "./PlasmicSelect__Option.module.css" ; import SUPER__PlasmicSelect from "./PlasmicSelect" ; export type PlasmicSelect__Option__VariantMembers = { isSelected : "isSelected" ; isHighlighted : "isHighlighted" ; isDisabled : "isDisabled" ; } ; export type PlasmicSelect__Option__VariantsArgs = { isSelected ? : SingleBooleanChoiceArg < "isSelected" > ; isHighlighted ? : SingleBooleanChoiceArg < "isHighlighted" > ; isDisabled ? : SingleBooleanChoiceArg < "isDisabled" > ; } ; type VariantPropType = keyof PlasmicSelect__Option__VariantsArgs ; export const PlasmicSelect__Option__VariantProps = new Array < VariantPropType > ( "isSelected" , "isHighlighted" , "isDisabled" ) ; export type PlasmicSelect__Option__ArgsType = { children ? : React . ReactNode ; value ? : string ; textValue ? : string ; } ; type ArgPropType = keyof PlasmicSelect__Option__ArgsType ; export const PlasmicSelect__Option__ArgProps = new Array < ArgPropType > ( "children" , "value" , "textValue" ) ; export type PlasmicSelect__Option__OverridesType = { root ? : p . Flex < "div" > ; } ; export interface DefaultSelect__OptionProps extends p . BaseSelectOptionProps { } function PlasmicSelect__Option__RenderFunc ( props ) { const { variants , args , overrides , forNode } = props ; const superContexts = { Select : React . useContext ( SUPER__PlasmicSelect . Context ) , } ; return ( < div data - plasmic - name = { "root" } data - plasmic - override = { overrides . root } data - plasmic - root = { true } data - plasmic - for - node = { forNode } className = { classNames ( defaultcss . all , projectcss . root_reset , sty . root , { [ sty . root__isDisabled ] : hasVariant ( variants , "isDisabled" , "isDisabled" ) , [ sty . root__isHighlighted ] : hasVariant ( variants , "isHighlighted" , "isHighlighted" ) , } ) } > { p . renderPlasmicSlot ( { defaultContents : "Option" , value : args . children , className : classNames ( sty . slotChildren , { [ sty . slotChildren__isSelected ] : hasVariant ( variants , "isSelected" , "isSelected" ) , } ) , } ) } < /div>) as React.ReactElement | null; } function useBehavior < P extends p . BaseSelectOptionProps > ( props , ref ) { return p . useSelectOption ( PlasmicSelect__Option , props , { isSelectedVariant : { group : "isSelected" , variant : "isSelected" } , isDisabledVariant : { group : "isDisabled" , variant : "isDisabled" } , isHighlightedVariant : { group : "isHighlighted" , variant : "isHighlighted" , } , labelSlot : "children" , root : "root" , labelContainer : "labelContainer" , } , ref ) ; } const PlasmicDescendants = { root : [ "root" ] , } as const ; type NodeNameType = keyof typeof PlasmicDescendants ; type DescendantsType < T extends NodeNameType > = typeof PlasmicDescendants [ T ] [ number ] ; type NodeDefaultElementType = { root : "div" ; } ; type ReservedPropsType = "variants" | "args" | "overrides" ; type NodeOverridesType < T extends NodeNameType > = Pick < PlasmicSelect__Option__OverridesType , DescendantsType < T > > ; type NodeComponentProps < T extends NodeNameType > = { variants ? : PlasmicSelect__Option__VariantsArgs ; args ? : PlasmicSelect__Option__ArgsType ; overrides ? : NodeOverridesType < T > ; } & Omit < PlasmicSelect__Option__VariantsArgs , ReservedPropsType > & Omit < PlasmicSelect__Option__ArgsType , ReservedPropsType > & Omit < NodeOverridesType < T > , ReservedPropsType | VariantPropType | ArgPropType > & Omit < Partial < React . ComponentProps < NodeDefaultElementType [ T ] > > , ReservedPropsType | VariantPropType | ArgPropType | DescendantsType < T > > ; function makeNodeComponent < NodeName extends NodeNameType > ( nodeName ) { type PropsType = NodeComponentProps < NodeName > & { key ? : React . Key ; } ; const func = function < T extends PropsType > ( props ) { const { variants , args , overrides } = deriveRenderOpts ( props , { name : nodeName , descendantNames : [ ... PlasmicDescendants [ nodeName ] ] , internalArgPropNames : PlasmicSelect__Option__ArgProps , internalVariantPropNames : PlasmicSelect__Option__VariantProps , } ) ; return PlasmicSelect__Option__RenderFunc ( { variants , args , overrides , forNode : nodeName , } ) ; } ; if ( nodeName === "root" ) { func . displayName = "PlasmicSelect__Option" ; } else { func . displayName = `PlasmicSelect__Option.${ nodeName }` ; } return func ; } export const PlasmicSelect__Option = Object . assign ( makeNodeComponent ( "root" ) , { internalVariantProps : PlasmicSelect__Option__VariantProps , internalArgProps : PlasmicSelect__Option__ArgProps , useBehavior , } ) ; export default PlasmicSelect__Option ;