import{a as e}from"./manifest-J9piKNZo.js";import{i as t}from"./manifest--hA2W8VB.js";const n=`The Dropdown Button renders a button which opens a dropdown when hovered. Selection of any element of the dropdown menu triggers an action.
`,o=`Il Dropdown Button riproduce un pulsante che apre un menù a tendina al passaggio del mouse. La selezione di un qualsiasi elemento del menù attiva un'azione.
`,i={docLink:"https://docs.mia-platform.eu/docs/microfrontend-composer/back-kit/components/dropdown_button",definitions:{action:e},descriptionLong:{en:n,it:o},example:JSON.stringify({tag:"bk-dropdown",properties:{label:{en:"Create new...",it:"Crea nuovo..."},menuItems:[{label:{en:"New rider",it:"Nuovo fattorino"},action:{type:"event",config:{events:"add-new"}}},{label:"New transport type",action:{type:"push",config:{url:"/transport-type"}}}]}}),label:"Dropdown Button",properties:{label:{__mia_configuration:{label:"Label",description:"The label of the button","schema-hint":"localized-text",priority:"high",group:"content"}},iconId:{type:"string",enum:t,__mia_configuration:{label:"Icon",description:"Defines which icon should be rendered into the button, if this property is not defined or doesn't match a provided icon, no icon will be rendered",priority:"medium",attribute:"icon-id",group:"appearance"}},iconPlacement:{type:"string",enum:["default","left","right"],default:"default",__mia_configuration:{attribute:!0,label:"Icon placement",description:"Defines where icon should be rendered, either left or right. It defaults on left",group:"appearance"}},type:{type:"string",enum:["primary","ghost","dashed","link","text","default"],default:"primary",__mia_configuration:{attribute:!0,label:"Type",description:"Chooses whether to render the button as a primary or secondary color regular button, a link, and so on...",group:"appearance"}},shape:{type:"string",enum:["default","circle","round"],default:"round",__mia_configuration:{attribute:!0,label:"Shape",description:"Allows to choose a shaping of the button",group:"appearance"}},listenToLoadingData:{type:"boolean",default:!1,__mia_configuration:{label:"Listen to loading data",description:"Configures the button to be loading when trigger by a `loading-data` event",attribute:"listen-to-loading-data",group:"appearance"}},menuItems:{type:"array",default:[],__mia_configuration:{label:"Menu Items",description:"Menu items configuration",attribute:!1,group:"content",arrayVisualization:{type:"table",configuration:{columns:["label"]}}},items:{type:"object",properties:{label:{__mia_configuration:{label:"Label",description:"Item label","schema-hint":"localized-text"}},action:{$ref:"#/definitions/action",__mia_configuration:{oneOfGuard:"type"}}}}}}};var l=i;export{l as default};
