@peculiar/fortify-webcomponents
Version:
Web-components for creating CSR or Certificate and viewing certificates list using Fortify
26 lines (21 loc) • 1.59 kB
JavaScript
/*!
* © Peculiar Ventures https://peculiarventures.com/ - BSD 3-Clause License
*/
;
var index = require('./index-C-N1xkRB.js');
var button = require('./button-CdL8Icyk.js');
var arrow_top = require('./arrow_top-DK3Vc4ep.js');
require('./typography-BzZd2J3Y.js');
const textHiderCss = () => `.sc-peculiar-text-hider-h{display:-ms-flexbox;display:flex;width:100%;gap:calc(var(--pv-size-base) * 4)}[aria-expanded=true].sc-peculiar-text-hider-h .content.sc-peculiar-text-hider{white-space:initial}.content.sc-peculiar-text-hider{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.action.sc-peculiar-text-hider{-ms-flex-negative:0;flex-shrink:0;margin-top:calc(var(--pv-size-base) * -1)}`;
const TextHider = class {
constructor(hostRef) {
index.registerInstance(this, hostRef);
this.opened = false;
}
render() {
return (index.h(index.Host, { key: 'e62e0ae5bad2145d9d0f8e47493d89f1c9bdd559', "aria-expanded": String(this.opened) }, index.h("div", { key: 'ee6a5b678e4ff568d017fde3168a37c818c241da', class: "content" }, index.h("slot", { key: 'b9d073a716fec21e5e9c1dadc66da3fef292d00b' })), index.h(button.Button, { key: '398b81d7ec84ccac8803f46dd4d78104a86b9be7', class: "action", startIcon: this.opened ? index.h(arrow_top.ArrowTopIcon, { color: "secondary" }) : index.h(arrow_top.ArrowBottomIcon, { color: "secondary" }), onClick: () => { this.opened = !this.opened; } })));
}
};
TextHider.style = textHiderCss();
exports.peculiar_text_hider = TextHider;
//# sourceMappingURL=peculiar-text-hider.entry.cjs.js.map