wiki.techinc.nl/resources/lib/codex/modules/useSlotContents.js
Eric Gardner bc07829e7b Update Codex from v1.2.1 to v1.3.0
Also introduces a new design token (@border-color-muted) and
updates some resource module definitions to use .cjs filenames
per upstream.

Bug: T324688
Bug: T338184
Bug: T338802
Bug: T346815
Bug: T349016
Bug: T350197
Bug: T352585
Bug: T352931
Bug: T354547
Bug: T354759
Bug: T355081
Bug: T355160
Bug: T355551
Change-Id: Idcfdee4583018500d06e37fda2ee4925111f1915
2024-01-23 14:03:05 -08:00

1 line
618 B
JavaScript

"use strict";const o=require("vue");function r(e){const t=[];for(const n of e)typeof n.type=="string"||typeof n.type=="object"?t.push(n):n.type!==o.Comment&&(typeof n.children=="string"&&n.children.trim()!==""?t.push(n.children):Array.isArray(n.children)&&t.push(...r(n.children)));return t}function i(e,t){return typeof e.type=="object"&&"name"in e.type?t!==void 0?e.type.name===t:!0:!1}function s(e,t){return typeof e.type=="string"?t!==void 0?e.type===t.toLowerCase():!0:!1}function f(e){const t=typeof e=="function"?e():e;return t?r(t):[]}exports.isComponentVNode=i;exports.isTagVNode=s;exports.useSlotContents=f;