@peculiar/fortify-webcomponents
Version:
Web-components for creating CSR or Certificate and viewing certificates list using Fortify
29 lines (23 loc) • 1.7 kB
JavaScript
/*!
* © Peculiar Ventures https://peculiarventures.com/ - BSD 3-Clause License
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
const index = require('./index-39af7d9f.js');
const button = require('./button-528dbba8.js');
const arrow_top = require('./arrow_top-8b910a28.js');
require('./typography-526424d5.js');
const textHiderCss = ".sc-peculiar-text-hider-h{display:-ms-flexbox;display:flex;width:100%;gap: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 PeculiarTextHiderStyle0 = textHiderCss;
const TextHider = class {
constructor(hostRef) {
index.registerInstance(this, hostRef);
this.opened = false;
}
render() {
return (index.h(index.Host, { key: '8e4789c87df5e4b37a5fdce7b9489e1f26d52fd9', "aria-expanded": String(this.opened) }, index.h("div", { key: 'd98c5a205b320e9590953cf1e66ef7087413c24c', class: "content" }, index.h("slot", { key: 'c20480b3144c9b05a719d3bd33a9569a937f176d' })), index.h(button.Button, { key: 'a1913fb7cb9a79437e3c84553d38a7245824211a', class: "action", onClick: () => { this.opened = !this.opened; }, startIcon: this.opened ? index.h(arrow_top.ArrowTopIcon, { color: "secondary" }) : index.h(arrow_top.ArrowBottomIcon, { color: "secondary" }) })));
}
};
TextHider.style = PeculiarTextHiderStyle0;
exports.peculiar_text_hider = TextHider;
//# sourceMappingURL=peculiar-text-hider.cjs.entry.js.map