@frontify/fondue
Version:
Design system of Frontify
25 lines (24 loc) • 802 B
JavaScript
var r = Object.defineProperty;
var o = (s, e, t) => e in s ? r(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
var l = (s, e, t) => o(s, typeof e != "symbol" ? e + "" : e, t);
import { Plugin as x } from "../Plugin.es.js";
import { TextStyleButton as i } from "./TextStyleDropdown/TextStyleButton.es.js";
import { withTextStyles as m } from "./TextStyleDropdown/withTextStyles.es.js";
import { TEXT_STYLE_PLUGIN as S } from "./id.es.js";
class p extends x {
constructor({ ...t }) {
super(S, {
button: m(i, t.textStyles),
...t
});
l(this, "textStyles");
this.textStyles = t.textStyles;
}
plugins() {
return this.textStyles.map((t) => t.plugins()).flat();
}
}
export {
p as TextStylePlugin
};
//# sourceMappingURL=index.es.js.map