{"version":3,"names":["createContext","useContext","NOOP_TOOLBAR_GROUP_CONTEXT","disabled","present","ToolbarGroupContext","useToolbarGroupContext"],"sources":["toolbar-group-context.ts"],"sourcesContent":["import { type Accessor, createContext, useContext } from \"solid-js\";\n\n/**\n * Value handed down by `<Toolbar.Group>` to descendant `<Toolbar.Button>`s.\n * A group-wide `disabled` flag cascades through — each button ORs it with\n * the toolbar-level `disabled` and its own `disabled` prop.\n */\nexport interface ToolbarGroupContextValue {\n\tdisabled: Accessor<boolean>;\n\treadonly present: boolean;\n}\n\nexport const NOOP_TOOLBAR_GROUP_CONTEXT: ToolbarGroupContextValue = {\n\tdisabled: () => false,\n\tpresent: false,\n};\n\nexport const ToolbarGroupContext = createContext<ToolbarGroupContextValue>(\n\tNOOP_TOOLBAR_GROUP_CONTEXT,\n);\n\nexport function useToolbarGroupContext(): ToolbarGroupContextValue {\n\treturn useContext(ToolbarGroupContext);\n}\n"],"mappings":"AAAA,SAAwBA,aAAa,EAAEC,UAAU,QAAQ,UAAU;;AAEnE;AACA;AACA;AACA;AACA;;AAMA,OAAO,MAAMC,0BAAoD,GAAG;EACnEC,QAAQ,EAAEA,CAAA,KAAM,KAAK;EACrBC,OAAO,EAAE;AACV,CAAC;AAED,OAAO,MAAMC,mBAAmB,GAAGL,aAAa,CAC/CE,0BACD,CAAC;AAED,OAAO,SAASI,sBAAsBA,CAAA,EAA6B;EAClE,OAAOL,UAAU,CAACI,mBAAmB,CAAC;AACvC","ignoreList":[]}