UNPKG

@kelvininc/ui-components

Version:
31 lines (26 loc) 2.28 kB
'use strict'; var index = require('./index-DpuMIXDY.js'); var components = require('./components-D2lyDQ_a.js'); require('./lib-config-QLtHwxiM.js'); const actionButtonTextCss = "@property --rotation{syntax:\"<angle>\";initial-value:0deg;inherits:false}@keyframes rotate-border{to{--rotation:360deg}}:host{--button-icon-width:16px;--button-icon-height:16px}kv-icon{--icon-width:var(--button-icon-width);--icon-height:var(--button-icon-width);margin-right:var(--kv-spacing-2x, 8px)}.action-button-text{white-space:nowrap}kv-action-button[size=large] .action-button-text{font-family:var(--kv-primary-font, \"proxima-nova\", sans-serif, \"Arial\");font-size:14px;font-weight:600;font-stretch:normal;font-style:normal;line-height:21px;letter-spacing:normal;text-transform:none}kv-action-button[size=small] .action-button-text{font-family:var(--kv-primary-font, \"proxima-nova\", sans-serif, \"Arial\");font-size:12px;font-weight:600;font-stretch:normal;font-style:normal;line-height:18px;letter-spacing:normal;text-transform:none}"; const KvActionButtonText = class { constructor(hostRef) { index.registerInstance(this, hostRef); this.clickButton = index.createEvent(this, "clickButton", 7); this.focusButton = index.createEvent(this, "focusButton", 7); this.blurButton = index.createEvent(this, "blurButton", 7); /** @inheritdoc */ this.disabled = false; /** @inheritdoc */ this.active = false; /** @inheritdoc */ this.loading = false; /** @inheritdoc */ this.size = components.EComponentSize.Large; } render() { return (index.h(index.Host, { key: 'b47d2526a0fbf3582fc6c1b19b44ea8edfe78b4e' }, index.h("kv-action-button", { key: '9f84ac33f8ea003b94d866e321183458b2045335', active: this.active, loading: this.loading, type: this.type, disabled: this.disabled, size: this.size, exportparts: "button" }, this.icon && index.h("kv-icon", { key: '4d121624e8572d8d3c3cae37513a138d8844086a', name: this.icon, exportparts: "icon" }), index.h("span", { key: '0b9c9fa2a02df17e3aa317281c9055cff614175e', class: "action-button-text", part: "button-text" }, this.text)))); } }; KvActionButtonText.style = actionButtonTextCss; exports.kv_action_button_text = KvActionButtonText;