laif-ds
Version:
Design System di Laif con componenti React basati su principi di Atomic Design
38 lines (37 loc) • 779 B
JavaScript
"use client";
import { Info as h } from "./info.js";
import * as s from "./types.js";
const n = (
/** @type {ReadonlyArray<keyof typeof types>} */
Object.keys(s)
);
class d extends h {
/**
* @constructor
* @param {string} property
* Property.
* @param {string} attribute
* Attribute.
* @param {number | null | undefined} [mask]
* Mask.
* @param {Space | undefined} [space]
* Space.
* @returns
* Info.
*/
constructor(t, e, i, p) {
let o = -1;
if (super(t, e), f(this, "space", p), typeof i == "number")
for (; ++o < n.length; ) {
const r = n[o];
f(this, n[o], (i & s[r]) === s[r]);
}
}
}
d.prototype.defined = !0;
function f(c, t, e) {
e && (c[t] = e);
}
export {
d as DefinedInfo
};