UNPKG

@sandlada/mdc

Version:

@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.

7 lines (6 loc) 385 B
import{a as e}from"./query-DifSdHBD.js"; /** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function t(t){return(r,o)=>{const{slot:n,selector:s}={},a="slot"+(n?`[name=${n}]`:":not([name])");return e(r,o,{get(){const e=this.renderRoot?.querySelector(a),r=e?.assignedElements(t)??[];return void 0===s?r:r.filter(e=>e.matches(s))}})}}export{t as o};