@sandlada/mdc
Version:
@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.
7 lines (6 loc) • 382 B
JavaScript
import{e}from"./base-hbm3XPKy.js";
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/function t(t){return(r,o)=>{const{slot:n,selector:s}=t??{},c="slot"+(n?`[name=${n}]`:":not([name])");return e(r,o,{get(){const e=this.renderRoot?.querySelector(c),r=e?.assignedElements(t)??[];return void 0===s?r:r.filter(e=>e.matches(s))}})}}export{t as o};