UNPKG

@sandlada/mdc

Version:

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

7 lines (6 loc) 654 B
/** * @license * Copyright 2025 Kai-Orion & Sandlada * SPDX-License-Identifier: MIT */ function $($,t,r,e=!0){const a="all"===r?Object.keys(t):r;return Object.entries(t).filter(([$,t])=>a.includes($)).reduce((t,[r,a])=>{const n=(e?"--_":"")+r;return{...t,[`${n}-start-start`]:`${e?`var(${$}-${r}-start-start, `:""}var(${$}-${r}, ${a})${e?")":""}`,[`${n}-start-end`]:`${e?`var(${$}-${r}-start-end, `:""}var(${$}-${r}, ${a})${e?")":""}`,[`${n}-end-end`]:`${e?`var(${$}-${r}-end-end, `:""}var(${$}-${r}, ${a})${e?")":""}`,[`${n}-end-start`]:`${e?`var(${$}-${r}-end-start, `:""}var(${$}-${r}, ${a})${e?")":""}`}},{})}export{$ as createLogicShapeTokens};