@scania/tegel 1.36.0-tag-component-beta.1 → 1.37.0-dropdown-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +1 -6
- package/dist/cjs/tds-button.cjs.entry.js +4 -9
- package/dist/cjs/tds-checkbox.cjs.entry.js +2 -7
- package/dist/cjs/tds-chip.cjs.entry.js +1 -6
- package/dist/cjs/tds-datetime.cjs.entry.js +3 -8
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +7 -17
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +3 -10
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +1 -6
- package/dist/cjs/tds-header-launcher.cjs.entry.js +2 -7
- package/dist/cjs/tds-table-body-row.cjs.entry.js +1 -1
- package/dist/cjs/tds-tag.cjs.entry.js +9 -9
- package/dist/cjs/tds-text-field.cjs.entry.js +6 -11
- package/dist/cjs/tds-textarea.cjs.entry.js +3 -8
- package/dist/cjs/tds-toast.cjs.entry.js +3 -3
- package/dist/cjs/tds-toggle.cjs.entry.js +4 -7
- package/dist/cjs/tds-tooltip.cjs.entry.js +2 -2
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +1 -6
- package/dist/collection/components/button/button.css +3 -3
- package/dist/collection/components/button/button.js +3 -8
- package/dist/collection/components/checkbox/checkbox.js +2 -7
- package/dist/collection/components/chip/chip.js +1 -6
- package/dist/collection/components/datetime/datetime.js +3 -8
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +1 -6
- package/dist/collection/components/dropdown/dropdown.js +6 -11
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +3 -10
- package/dist/collection/components/header/header-hamburger/header-hamburger.js +1 -6
- package/dist/collection/components/header/header-launcher/header-launcher.js +2 -7
- package/dist/collection/components/table/table-body-row/table-body-row.css +4 -0
- package/dist/collection/components/tag/tag.css +14 -63
- package/dist/collection/components/tag/tag.js +14 -15
- package/dist/collection/components/text-field/text-field.css +5 -32
- package/dist/collection/components/text-field/text-field.js +5 -10
- package/dist/collection/components/textarea/textarea.js +3 -8
- package/dist/collection/components/toast/toast.js +3 -3
- package/dist/collection/components/toggle/toggle.js +4 -7
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/components/{p-3edd7602.js → p-40253725.js} +2 -2
- package/dist/components/{p-23aab3b9.js → p-44f5b5e1.js} +2 -7
- package/dist/components/{p-ffbaebb1.js → p-a18f92a6.js} +6 -11
- package/dist/components/{p-19edd11a.js → p-d64878cb.js} +2 -7
- package/dist/components/tds-breadcrumbs.js +1 -6
- package/dist/components/tds-button.js +4 -9
- package/dist/components/tds-checkbox.js +1 -1
- package/dist/components/tds-chip.js +1 -6
- package/dist/components/tds-datetime.js +3 -8
- package/dist/components/tds-dropdown-option.js +1 -1
- package/dist/components/tds-dropdown.js +1 -1
- package/dist/components/tds-header-dropdown.js +3 -10
- package/dist/components/tds-header-hamburger.js +1 -6
- package/dist/components/tds-header-launcher.js +2 -7
- package/dist/components/tds-table-body-row.js +2 -2
- package/dist/components/tds-table-footer.js +3 -3
- package/dist/components/tds-table-header.js +1 -1
- package/dist/components/tds-tag.js +9 -9
- package/dist/components/tds-text-field.js +7 -12
- package/dist/components/tds-textarea.js +4 -9
- package/dist/components/tds-toast.js +3 -3
- package/dist/components/tds-toggle.js +4 -7
- package/dist/components/tds-tooltip.js +1 -1
- package/dist/esm/tds-breadcrumbs.entry.js +1 -6
- package/dist/esm/tds-button.entry.js +4 -9
- package/dist/esm/tds-checkbox.entry.js +2 -7
- package/dist/esm/tds-chip.entry.js +1 -6
- package/dist/esm/tds-datetime.entry.js +3 -8
- package/dist/esm/tds-dropdown_2.entry.js +7 -17
- package/dist/esm/tds-header-dropdown.entry.js +3 -10
- package/dist/esm/tds-header-hamburger.entry.js +1 -6
- package/dist/esm/tds-header-launcher.entry.js +2 -7
- package/dist/esm/tds-table-body-row.entry.js +1 -1
- package/dist/esm/tds-tag.entry.js +9 -9
- package/dist/esm/tds-text-field.entry.js +6 -11
- package/dist/esm/tds-textarea.entry.js +3 -8
- package/dist/esm/tds-toast.entry.js +3 -3
- package/dist/esm/tds-toggle.entry.js +4 -7
- package/dist/esm/tds-tooltip.entry.js +2 -2
- package/dist/tegel/p-1b471db7.entry.js +1 -0
- package/dist/tegel/{p-c7841820.entry.js → p-23fb4dee.entry.js} +1 -1
- package/dist/tegel/p-3022d31d.entry.js +1 -0
- package/dist/tegel/p-303acf88.entry.js +1 -0
- package/dist/tegel/p-3ebe93ff.entry.js +1 -0
- package/dist/tegel/{p-0803e5c6.entry.js → p-49364819.entry.js} +1 -1
- package/dist/tegel/p-704682d6.entry.js +1 -0
- package/dist/tegel/p-8c2695af.entry.js +1 -0
- package/dist/tegel/p-9b0c886e.entry.js +1 -0
- package/dist/tegel/p-a6238890.entry.js +1 -0
- package/dist/tegel/p-a74cb560.entry.js +1 -0
- package/dist/tegel/p-a98767ea.entry.js +1 -0
- package/dist/tegel/p-c95c07e7.entry.js +1 -0
- package/dist/tegel/p-cd5103e3.entry.js +1 -0
- package/dist/tegel/{p-614cc097.entry.js → p-d0f09796.entry.js} +1 -1
- package/dist/tegel/p-f9c17612.entry.js +1 -0
- package/dist/tegel/tegel.css +4 -4
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +0 -1
- package/dist/types/components/button/button.d.ts +0 -1
- package/dist/types/components/checkbox/checkbox.d.ts +0 -1
- package/dist/types/components/chip/chip.d.ts +0 -1
- package/dist/types/components/datetime/datetime.d.ts +0 -1
- package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +0 -1
- package/dist/types/components/dropdown/dropdown.d.ts +0 -1
- package/dist/types/components/header/header-dropdown/header-dropdown.d.ts +0 -1
- package/dist/types/components/header/header-hamburger/header-hamburger.d.ts +0 -1
- package/dist/types/components/header/header-launcher/header-launcher.d.ts +0 -1
- package/dist/types/components/tag/tag.d.ts +2 -2
- package/dist/types/components/text-field/text-field.d.ts +0 -1
- package/dist/types/components/textarea/textarea.d.ts +0 -1
- package/dist/types/components/toggle/toggle.d.ts +0 -1
- package/dist/types/components.d.ts +3 -3
- package/package.json +1 -1
- package/dist/tegel/p-23ea1922.entry.js +0 -1
- package/dist/tegel/p-2c56421f.entry.js +0 -1
- package/dist/tegel/p-3656ec98.entry.js +0 -1
- package/dist/tegel/p-3beb34ff.entry.js +0 -1
- package/dist/tegel/p-5020a688.entry.js +0 -1
- package/dist/tegel/p-618d6b4f.entry.js +0 -1
- package/dist/tegel/p-83831252.entry.js +0 -1
- package/dist/tegel/p-88b90df0.entry.js +0 -1
- package/dist/tegel/p-9e75f2ec.entry.js +0 -1
- package/dist/tegel/p-9fe97da7.entry.js +0 -1
- package/dist/tegel/p-ab103d0c.entry.js +0 -1
- package/dist/tegel/p-b58194f9.entry.js +0 -1
- package/dist/tegel/p-e122a85d.entry.js +0 -1
|
@@ -71,14 +71,9 @@ const TdsTextarea = class {
|
|
|
71
71
|
}
|
|
72
72
|
return modeVariant;
|
|
73
73
|
}
|
|
74
|
-
connectedCallback() {
|
|
75
|
-
if (!this.tdsAriaLabel && !this.label) {
|
|
76
|
-
console.warn('Tegel Textarea component: specify label or tdsAriaLabel prop for accessibility');
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
74
|
render() {
|
|
80
75
|
var _a;
|
|
81
|
-
return (index.h("div", { key: '
|
|
76
|
+
return (index.h("div", { key: '873fc5866c777549e56d115e7bce64a62fdd5c0c', class: {
|
|
82
77
|
'textarea-container': true,
|
|
83
78
|
'textarea-label-inside': this.labelPosition === 'inside',
|
|
84
79
|
'textarea-focus': this.focusInput,
|
|
@@ -88,7 +83,7 @@ const TdsTextarea = class {
|
|
|
88
83
|
'textarea-data': this.value !== '',
|
|
89
84
|
[`textarea-${this.state}`]: this.state === 'error' || this.state === 'success',
|
|
90
85
|
'no-min-width': this.noMinWidth,
|
|
91
|
-
} }, this.labelPosition !== 'no-label' && (index.h("label", { key: '
|
|
86
|
+
} }, this.labelPosition !== 'no-label' && (index.h("label", { key: '09f5df4efb39b7e3eb71d8567adc5cffd374ad66', htmlFor: `textarea-element-${this.uuid}`, class: 'textarea-label' }, this.label)), index.h("div", { key: '57bd6d6e2e7a1919d668625a675e4a20421af965', class: "textarea-wrapper" }, index.h("textarea", { key: '69955de378170f86c7a942d5f8101aa2ff9440f4', id: `textarea-element-${this.uuid}`, class: 'textarea-input', ref: (inputEl) => {
|
|
92
87
|
this.textEl = inputEl;
|
|
93
88
|
}, disabled: this.disabled, readonly: !this.disabled && this.readOnly, placeholder: this.placeholder, value: this.value, name: this.name, autofocus: this.autofocus, maxlength: this.maxLength, cols: this.cols, rows: this.rows, onFocus: (event) => {
|
|
94
89
|
if (!this.readOnly) {
|
|
@@ -98,7 +93,7 @@ const TdsTextarea = class {
|
|
|
98
93
|
if (!this.readOnly) {
|
|
99
94
|
this.handleBlur(event);
|
|
100
95
|
}
|
|
101
|
-
}, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": this.state === 'error' ? 'true' : 'false', "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), index.h("span", { key: '
|
|
96
|
+
}, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": this.state === 'error' ? 'true' : 'false', "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), index.h("span", { key: '0fded8e72f3f6d8e6f53cb57df94f480df17ce53', class: "textarea-resizer-icon" }, index.h("svg", { key: '6b41ae06bbedfa5ba88991bc6856f80ca8a4b6f8', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: 'c4f731e7483bade2d0dbd545302afc278039a122', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), !this.disabled && !this.hideReadOnlyIcon && this.readOnly && (index.h("span", { key: '94bc8eed69418751ad240087201827a0ef0185b4', class: "textarea-icon__readonly" }, index.h("tds-tooltip", { key: '231983d3994030724a06358f37dd0e53f91d78d4', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), index.h("tds-icon", { key: '9e7f16d10939227a5c8c87f00ddd653a58c094ad', id: "readonly-tooltip", name: "edit_inactive", svgTitle: "inactive" })))), index.h("span", { key: '67222f0c93979caf49881c591cd99eb4c97ebdc1', class: 'textarea-helper', "aria-live": "assertive", id: `textarea-helper-element-${this.uuid}` }, this.state === 'error' && this.helper && !this.readOnly && (index.h("tds-icon", { key: 'cbde13084b090f7eea4bd80da47373ec941e1981', name: "error", size: "16px" })), this.helper), this.maxLength > 0 && (index.h("div", { key: '5895277b2e07f4c8f2990f624eb0797dffd0b1f0', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, index.h("span", { key: '97afedbb5aaf02461a38f39643298b6c2650c52f', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
|
|
102
97
|
}
|
|
103
98
|
};
|
|
104
99
|
TdsTextarea.style = TdsTextareaStyle0;
|
|
@@ -70,12 +70,12 @@ const TdsToast = class {
|
|
|
70
70
|
const usesHeaderSlot = hasSlot.hasSlot('header', this.host);
|
|
71
71
|
const usesSubheaderSlot = hasSlot.hasSlot('subheader', this.host);
|
|
72
72
|
const usesActionsSlot = hasSlot.hasSlot('actions', this.host);
|
|
73
|
-
return (index.h(index.Host, { key: '
|
|
73
|
+
return (index.h(index.Host, { key: 'b630cb558fea6c5b2d90f2ad1872429d86bc14c0', "aria-live": this.tdsAriaLive, toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
|
|
74
74
|
hide: this.hidden,
|
|
75
75
|
show: !this.hidden,
|
|
76
|
-
} }, index.h("div", { key: '
|
|
76
|
+
} }, index.h("div", { key: '7ef66776e9ad60108fee1ba8b080b606c19d2543', class: `
|
|
77
77
|
wrapper
|
|
78
|
-
${this.variant}` }, index.h("tds-icon", { key: '
|
|
78
|
+
${this.variant}` }, index.h("tds-icon", { key: '1010ab1efbad6a3e2315c8abbff7701e6398a21b', name: this.getIconName(), size: "20px", svgTitle: this.getIconName() }), index.h("div", { key: '292683b02d6db016d9ad39253ef0734dce245be7', class: `content` }, index.h("div", { key: 'c24661c9e1967e79bf0077389cf2dc03ec23ba62', class: "header-subheader" }, this.header && index.h("div", { key: 'f5e47f479a30fc2c5d37573e2d3b154f8a0400ab', class: "header" }, this.header), usesHeaderSlot && index.h("slot", { key: '141519b5effd90e894f206a16e94a824ebd77339', name: "header" }), this.subheader && index.h("div", { key: 'a41dd5610b6c2cead6a544f9ab0d8bdef8f5fff8', class: "subheader" }, this.subheader), usesSubheaderSlot && index.h("slot", { key: '057233bcb1fd6c4abe7fbc1b396bc0649218fffa', name: "subheader" })), usesActionsSlot && (index.h("div", { key: '96a117a124c595fc46cf053d708e46c2ef47de5e', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, index.h("slot", { key: 'f2e390259a9fee09e54558a47e8dfdd604e5ef57', name: "actions" })))), this.closable && (index.h("button", { key: '878dec1fdc115fa5886577034d94ecf503e5b293', id: "my-button", "aria-label": this.tdsCloseAriaLabel, onClick: this.handleClose, class: "close" }, index.h("tds-icon", { key: '207073210d39ceb50fe39ccd4101f7aeaa5cf8fc', name: "cross", size: "20px", svgTitle: "cross" }))))));
|
|
79
79
|
}
|
|
80
80
|
get host() { return index.getElement(this); }
|
|
81
81
|
};
|
|
@@ -45,16 +45,13 @@ const TdsToggle = class {
|
|
|
45
45
|
componentWillLoad() {
|
|
46
46
|
this.labelSlot = this.host.querySelector("[slot='label']");
|
|
47
47
|
}
|
|
48
|
-
connectedCallback() {
|
|
49
|
-
if (!this.tdsAriaLabel) {
|
|
50
|
-
console.warn('Tegel Toggle component: tdsAriaLabel prop is missing');
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
48
|
render() {
|
|
54
|
-
return (index.h("div", { key: '
|
|
49
|
+
return (index.h("div", { key: '68e34abfad735ed96e35e0f7966670e226dcbc82', class: "tds-toggle" }, this.headline && (index.h("div", { key: '3784ca8234261dd269d0f641a5f2515abae0ece4', class: {
|
|
55
50
|
'toggle-headline': true,
|
|
56
51
|
'disabled': this.disabled,
|
|
57
|
-
} }, this.headline)), index.h("input", { key: '
|
|
52
|
+
} }, this.headline)), index.h("input", { key: '675a0c941bce13fc053411b8faf7fe583cbf3245', ref: (inputEl) => {
|
|
53
|
+
this.inputElement = inputEl;
|
|
54
|
+
}, "aria-label": this.tdsAriaLabel, "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), this.labelSlot && (index.h("label", { key: '2c73df3e48968f3c95de4b4e14817abf57423f98', class: { disabled: this.disabled }, htmlFor: this.toggleId }, index.h("slot", { key: 'd1f660a5f25b8bd2ffef2e6cf9574d429cb4ca8a', name: "label" })))));
|
|
58
55
|
}
|
|
59
56
|
get host() { return index.getElement(this); }
|
|
60
57
|
};
|
|
@@ -64,7 +64,7 @@ const TdsTooltip = class {
|
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
66
|
var _a;
|
|
67
|
-
return (index.h(index.Host, { key: '
|
|
67
|
+
return (index.h(index.Host, { key: 'f7cb08fb945145d94c8e839b002c22fc8a579395', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, index.h("tds-popover-core", Object.assign({ key: 'ae724dbc9b49bd881c03c6c970f6bb6a8a77d61e' }, this.inheritedAttributes, { class: {
|
|
68
68
|
'tds-tooltip': true,
|
|
69
69
|
[`tds-tooltip-${this.border}`]: true,
|
|
70
70
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
@@ -77,7 +77,7 @@ const TdsTooltip = class {
|
|
|
77
77
|
// @ts-ignore
|
|
78
78
|
onInternalTdsClose: () => {
|
|
79
79
|
this.show = false;
|
|
80
|
-
}, defaultShow: this.defaultShow }), this.text, index.h("slot", { key: '
|
|
80
|
+
}, defaultShow: this.defaultShow }), this.text, index.h("slot", { key: '5da20b1a16adbba2f8a211d8c1cb4885ae6806f6' }))));
|
|
81
81
|
}
|
|
82
82
|
get host() { return index.getElement(this); }
|
|
83
83
|
};
|
|
@@ -6,15 +6,10 @@ export class TdsBreadcrumbs {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
this.tdsAriaLabel = undefined;
|
|
8
8
|
}
|
|
9
|
-
connectedCallback() {
|
|
10
|
-
if (!this.tdsAriaLabel) {
|
|
11
|
-
console.warn('Tegel Breadcrumbs component: missing tdsAriaLabel prop');
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
9
|
render() {
|
|
15
10
|
var _a;
|
|
16
11
|
(_a = this.host.children[this.host.children.length - 1]) === null || _a === void 0 ? void 0 : _a.classList.add('last');
|
|
17
|
-
return (h("nav", { key: '
|
|
12
|
+
return (h("nav", { key: 'd79f99fbdf47a75d66376c7900a1ba2ccfad0ef2', "aria-label": this.tdsAriaLabel }, h("div", { key: 'c06fa49904e230b1fcbaa8eeba1e2d6059f4eccd', role: "list", class: "tds-breadcrumb" }, h("slot", { key: 'fd44b69cd45ffaed95c865988832fa56c545125c' }))));
|
|
18
13
|
}
|
|
19
14
|
static get is() { return "tds-breadcrumbs"; }
|
|
20
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -145,11 +145,11 @@
|
|
|
145
145
|
--tds-btn-ghost-border-color: transparent;
|
|
146
146
|
--tds-btn-ghost-background-hover: transparent;
|
|
147
147
|
--tds-btn-ghost-color-hover: var(--tds-white);
|
|
148
|
-
--tds-btn-ghost-border-color-hover: var(--
|
|
148
|
+
--tds-btn-ghost-border-color-hover: var(--scania-neutral-transparent-inverse-400);
|
|
149
149
|
--tds-btn-ghost-outline-color-hover: var(--tds-white-48);
|
|
150
150
|
--tds-btn-ghost-background-active: transparent;
|
|
151
151
|
--tds-btn-ghost-color-active: var(--tds-white);
|
|
152
|
-
--tds-btn-ghost-border-color-active: var(--
|
|
152
|
+
--tds-btn-ghost-border-color-active: var(--scania-neutral-transparent-inverse-200);
|
|
153
153
|
--tds-btn-ghost-background-focus: transparent;
|
|
154
154
|
--tds-btn-ghost-color-focus: var(--tds-white);
|
|
155
155
|
--tds-btn-ghost-border-color-focus: var(--tds-white);
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
--tds-btn-danger-border-color: transparent;
|
|
166
166
|
--tds-btn-danger-background-hover: var(--scania-extended-red-500);
|
|
167
167
|
--tds-btn-danger-color-hover: var(--tds-white);
|
|
168
|
-
--tds-btn-danger-border-color-hover:
|
|
168
|
+
--tds-btn-danger-border-color-hover: var(--tds-white);
|
|
169
169
|
--tds-btn-danger-background-active: var(--scania-extended-red-600);
|
|
170
170
|
--tds-btn-danger-color-active: var(--tds-white);
|
|
171
171
|
--tds-btn-danger-border-color-active: transparent;
|
|
@@ -19,11 +19,6 @@ export class TdsButton {
|
|
|
19
19
|
this.value = undefined;
|
|
20
20
|
this.onlyIcon = false;
|
|
21
21
|
}
|
|
22
|
-
connectedCallback() {
|
|
23
|
-
if (this.onlyIcon && !this.tdsAriaLabel) {
|
|
24
|
-
console.warn('Tegel button component: please specify the tdsAriaLabel prop when you have the onlyIcon attribute set to true');
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
22
|
handleKeyDown(event) {
|
|
28
23
|
if (event.key === 'Enter' && !this.disabled) {
|
|
29
24
|
this.host.querySelector('button').classList.add('active');
|
|
@@ -40,11 +35,11 @@ export class TdsButton {
|
|
|
40
35
|
if (!this.text && !hasLabelSlot) {
|
|
41
36
|
this.onlyIcon = true;
|
|
42
37
|
}
|
|
43
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '7358240d76e1b7a6df238b2a1e5f1702f9cd33d7', class: {
|
|
44
39
|
[`tds-mode-variant-${this.modeVariant}`]: Boolean(this.modeVariant),
|
|
45
40
|
disabled: Boolean(this.disabled),
|
|
46
41
|
fullbleed: Boolean(this.fullbleed),
|
|
47
|
-
}, disabled: this.disabled }, h("button", Object.assign({ key: '
|
|
42
|
+
}, disabled: this.disabled }, h("button", Object.assign({ key: '971f814b0b832e9b161c77812fb7668ed34312ab', type: this.type, name: this.name ? this.name : undefined, value: this.value ? this.value : undefined, disabled: this.disabled, class: {
|
|
48
43
|
'primary': this.variant === 'primary',
|
|
49
44
|
'secondary': this.variant === 'secondary',
|
|
50
45
|
'ghost': this.variant === 'ghost',
|
|
@@ -58,7 +53,7 @@ export class TdsButton {
|
|
|
58
53
|
'icon': hasIconSlot,
|
|
59
54
|
'only-icon': this.onlyIcon,
|
|
60
55
|
[`animation-${this.animation}`]: this.animation !== 'none',
|
|
61
|
-
} }, (this.onlyIcon && this.tdsAriaLabel && { 'aria-label': this.tdsAriaLabel })), this.text, hasLabelSlot && !this.onlyIcon && h("slot", { key: '
|
|
56
|
+
} }, (this.onlyIcon && this.tdsAriaLabel && { 'aria-label': this.tdsAriaLabel })), this.text, hasLabelSlot && !this.onlyIcon && h("slot", { key: '2dc9400b032af40765d7ba1add85c09249dea64b', name: "label" }), hasIconSlot && h("slot", { key: '01af3eeaa00abc5dc824f4fa4633b2460fb4fe46', name: "icon" }))));
|
|
62
57
|
}
|
|
63
58
|
static get is() { return "tds-button"; }
|
|
64
59
|
static get encapsulation() { return "scoped"; }
|
|
@@ -58,17 +58,12 @@ export class TdsCheckbox {
|
|
|
58
58
|
this.indeterminate = false;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
connectedCallback() {
|
|
62
|
-
if (!this.tdsAriaLabel) {
|
|
63
|
-
console.warn('Tegel Checkbox component: tdsAriaLabel prop is missing');
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
61
|
render() {
|
|
67
|
-
return (h("div", { key: '
|
|
62
|
+
return (h("div", { key: '87d4e8620e183b5fb8a885dca8081424c7497b21', class: "tds-checkbox" }, h("input", { key: 'fa5d4c8e9a33a7a88d1348f6eb66b474e94c0ad1',
|
|
68
63
|
// eslint-disable-next-line no-return-assign
|
|
69
64
|
ref: (inputElement) => (this.inputElement = inputElement), indeterminate: this.indeterminate, "aria-checked": this.checked, "aria-required": this.required, "aria-label": this.tdsAriaLabel, "aria-describedby": this.tdsAriaDescribedby, required: this.required, type: "checkbox", name: this.name, value: this.value, id: this.checkboxId, checked: this.checked, disabled: this.disabled, onFocus: (event) => this.handleFocus(event), onBlur: (event) => this.handleBlur(event), onChange: () => {
|
|
70
65
|
this.handleChange();
|
|
71
|
-
} }), h("label", { key: '
|
|
66
|
+
} }), h("label", { key: '82545f01ad68fae4d613b58d82a770a0c1bce79e', htmlFor: this.checkboxId }, h("slot", { key: '99892e112b596a7f8517427cc42f75e90140c315', name: "label" }))));
|
|
72
67
|
}
|
|
73
68
|
static get is() { return "tds-checkbox"; }
|
|
74
69
|
static get encapsulation() { return "scoped"; }
|
|
@@ -68,11 +68,6 @@ export class TdsChip {
|
|
|
68
68
|
}
|
|
69
69
|
return Object.assign(Object.assign({}, commonAttributes), { onClick: () => this.handleClick() });
|
|
70
70
|
}
|
|
71
|
-
connectedCallback() {
|
|
72
|
-
if (!this.tdsAriaLabel) {
|
|
73
|
-
console.warn('Tegel Chip component: tdsAriaLabel prop is missing');
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
71
|
render() {
|
|
77
72
|
const inputAttributes = this.renderInputAttributes();
|
|
78
73
|
const hasPrefixSlot = hasSlot('prefix', this.host);
|
|
@@ -86,7 +81,7 @@ export class TdsChip {
|
|
|
86
81
|
'suffix': hasSuffixSlot,
|
|
87
82
|
'disabled': this.disabled,
|
|
88
83
|
};
|
|
89
|
-
return (h(Host, { key: '
|
|
84
|
+
return (h(Host, { key: '4a498e81dbdd096e01d502a1bc378bfa9f7ea61d' }, h("div", { key: '441e76b25ec9fb91485f3394e6df08fa2ac0363f', class: "component" }, h("div", { key: '88658da3bae225792261b6b3b7796c514d76e665', class: chipClasses }, h("input", Object.assign({ key: '1e495bd583136ba481b7f11891f008c8584b0b38', type: this.type, id: this.chipId, "aria-checked": this.type === 'button' ? undefined : String(this.checked), role: this.type, "aria-label": this.tdsAriaLabel }, inputAttributes)), h("label", { key: 'ffaff7dd33befe64eb69fc6f786efd38eb654628', onClick: (event) => event.stopPropagation(), htmlFor: this.chipId }, hasPrefixSlot && h("slot", { key: '95a6bf9c4d337a9d9caaf66b598615af657045c3', name: "prefix" }), hasLabelSlot && h("slot", { key: '2e732390348814bbeea2bb0c4c5fa0b9206a6578', name: "label" }), hasSuffixSlot && h("slot", { key: '716254ff0b5995b2d2a99dcd2aaa2f94613255d0', name: "suffix" }))))));
|
|
90
85
|
}
|
|
91
86
|
static get is() { return "tds-chip"; }
|
|
92
87
|
static get encapsulation() { return "scoped"; }
|
|
@@ -103,11 +103,6 @@ export class TdsDatetime {
|
|
|
103
103
|
}
|
|
104
104
|
this.value = value;
|
|
105
105
|
}
|
|
106
|
-
connectedCallback() {
|
|
107
|
-
if (!this.tdsAriaLabel && !this.label) {
|
|
108
|
-
console.warn('Tegel Datetime component: provide the label or tdsAriaLabel prop for improved accessibility');
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
106
|
render() {
|
|
112
107
|
let className = ' tds-datetime-input';
|
|
113
108
|
if (this.size === 'md') {
|
|
@@ -128,7 +123,7 @@ export class TdsDatetime {
|
|
|
128
123
|
'tds-datetime-container-label-inside': this.label && this.labelPosition === 'inside' && this.size !== 'sm',
|
|
129
124
|
};
|
|
130
125
|
const iphone = navigator.userAgent.toLowerCase().includes('iphone');
|
|
131
|
-
return (h("div", { key: '
|
|
126
|
+
return (h("div", { key: 'f397a4fc034fb7cd4dcb8ed7b0cbf2ab2e51177a', class: classNames, onKeyDown: (e) => {
|
|
132
127
|
if (e.key === 'Enter') {
|
|
133
128
|
const browserIsChrome = navigator.userAgent.toLowerCase().includes('chrome');
|
|
134
129
|
if (browserIsChrome) {
|
|
@@ -136,9 +131,9 @@ export class TdsDatetime {
|
|
|
136
131
|
this.textInput.showPicker();
|
|
137
132
|
}
|
|
138
133
|
}
|
|
139
|
-
} }, this.labelPosition === 'outside' && this.label && (h("label", { key: '
|
|
134
|
+
} }, this.labelPosition === 'outside' && this.label && (h("label", { key: 'e5dd50563ed2d464983016bc608d81b77c379add', htmlFor: this.name, class: "tds-datetime-label" }, this.label)), h("div", { key: 'b2c01f96bb7d8fa7279ac27048328204cc249547', onClick: (e) => this.handleFocusClick(e), class: "tds-datetime-container" }, h("div", { key: 'e7002fc416e62d2c93c337aee1869aa817997df9', class: `tds-datetime-input-container type-${this.type}` }, h("input", { key: '3fdf8d55b15f5a00d4fb0755d5774fee93f100b9', ref: (inputEl) => {
|
|
140
135
|
this.textInput = inputEl;
|
|
141
|
-
}, class: className, type: this.type, disabled: this.disabled, value: this.value, min: this.min, max: this.max, autofocus: this.autofocus, name: this.name, id: this.name, onInput: (e) => this.handleInput(e), onBlur: (e) => this.handleBlur(e), onChange: (e) => this.handleChange(e), "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label }), this.labelPosition === 'inside' && this.size !== 'sm' && this.label && (h("label", { key: '
|
|
136
|
+
}, class: className, type: this.type, disabled: this.disabled, value: this.value, min: this.min, max: this.max, autofocus: this.autofocus, name: this.name, id: this.name, onInput: (e) => this.handleInput(e), onBlur: (e) => this.handleBlur(e), onChange: (e) => this.handleChange(e), "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label }), this.labelPosition === 'inside' && this.size !== 'sm' && this.label && (h("label", { key: '48d096356ad9f547bacbf407af12c4411d5dd45f', class: `tds-datetime-label-inside ${iphone && 'iphone'}`, htmlFor: this.name }, this.label)), h("div", { key: '0ea83c4003923ffed9b11ef22131000bb696a80f', class: "datetime-icon icon-datetime-local" }, h("tds-icon", { key: '6ab6fde60c3d8ce0ad212c0d248c597a23cc6ce7', size: "20px", name: "calendar", svgTitle: "Calendar" })), h("div", { key: '4c304db3c9e6159a7827b6a83c6f81d04cbf0d19', class: "datetime-icon icon-time" }, h("tds-icon", { key: '2a91a579dc5307d35ffbd47aa67616e2e692dd1c', size: "20px", name: "clock", svgTitle: "Clock" }))), h("div", { key: '80dec676d32fd856e7a7dcee7b7e6acbb8b66827', class: "tds-datetime-bar" })), this.helper && (h("div", { key: 'ff276d3c174c88c14081d7a5da689c278844422a', class: "tds-datetime-helper" }, h("div", { key: '9401ca569dd8c23e1bcbdccb39d9f8134fc027db', class: "tds-helper" }, this.state === 'error' && h("tds-icon", { key: 'dada47e75f30dac9b132477ffd73720d0e1a7530', name: "error", size: "16px", svgTitle: "error" }), this.helper)))));
|
|
142
137
|
}
|
|
143
138
|
static get is() { return "tds-datetime"; }
|
|
144
139
|
static get encapsulation() { return "scoped"; }
|
|
@@ -80,13 +80,8 @@ export class TdsDropdownOption {
|
|
|
80
80
|
componentWillLoad() {
|
|
81
81
|
this.internalValue = convertToString(this.value);
|
|
82
82
|
}
|
|
83
|
-
connectedCallback() {
|
|
84
|
-
if (!this.tdsAriaLabel && !this.multiselect) {
|
|
85
|
-
console.warn('Tegel Dropdown option component: tdsAriaLabel prop is missing');
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
83
|
render() {
|
|
89
|
-
return (h(Host, { key: '
|
|
84
|
+
return (h(Host, { key: 'd35a3153be292b1656d0efca93f06bfc1357041b' }, h("div", { key: '384353f9868a3fb559ca4140d5cd4f5553e024ad', class: `dropdown-option
|
|
90
85
|
${this.size}
|
|
91
86
|
${this.selected ? 'selected' : ''}
|
|
92
87
|
${this.disabled ? 'disabled' : ''}
|
|
@@ -7,7 +7,7 @@ import generateUniqueId from "../../utils/generateUniqueId";
|
|
|
7
7
|
function hasValueChanged(newValue, currentValue) {
|
|
8
8
|
if (newValue.length !== currentValue.length)
|
|
9
9
|
return true;
|
|
10
|
-
return newValue.some((val) =>
|
|
10
|
+
return newValue.some((val, i) => val !== currentValue[i]);
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* @slot <default> - <b>Unnamed slot.</b> For dropdown option elements.
|
|
@@ -441,11 +441,6 @@ export class TdsDropdown {
|
|
|
441
441
|
form.removeEventListener('reset', this.resetInput);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
connectedCallback() {
|
|
445
|
-
if (!this.tdsAriaLabel) {
|
|
446
|
-
console.warn('Tegel Dropdown component: tdsAriaLabel prop is missing');
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
444
|
updateDropdownListInertState() {
|
|
450
445
|
if (this.dropdownList) {
|
|
451
446
|
if (this.open) {
|
|
@@ -461,9 +456,9 @@ export class TdsDropdown {
|
|
|
461
456
|
// Generate unique IDs for associating labels and helpers with the input/button
|
|
462
457
|
const labelId = this.label ? `dropdown-label-${this.name || generateUniqueId()}` : undefined;
|
|
463
458
|
const helperId = this.helper ? `dropdown-helper-${this.name || generateUniqueId()}` : undefined;
|
|
464
|
-
return (h(Host, { key: '
|
|
459
|
+
return (h(Host, { key: '2c383a029131cac9a67a3e00c918e395c0cda79f', class: {
|
|
465
460
|
[`tds-mode-variant-${this.modeVariant}`]: Boolean(this.modeVariant),
|
|
466
|
-
} }, this.label && this.labelPosition === 'outside' && (h("div", { key: '
|
|
461
|
+
} }, this.label && this.labelPosition === 'outside' && (h("div", { key: '1cfc43e13c4dfc98875dc25fdd3c7727eae0ae24', id: labelId, class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: 'f9af43187d13367897a12a81ad91e04bf096d23a', class: {
|
|
467
462
|
'dropdown-select': true,
|
|
468
463
|
[this.size]: true,
|
|
469
464
|
'disabled': this.disabled,
|
|
@@ -513,7 +508,7 @@ export class TdsDropdown {
|
|
|
513
508
|
label-inside-as-placeholder
|
|
514
509
|
${this.size}
|
|
515
510
|
${this.selectedOptions.length ? 'selected' : ''}
|
|
516
|
-
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, this.selectedOptions.length ? this.getValue() : this.placeholder), h("tds-icon", { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: '
|
|
511
|
+
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, this.selectedOptions.length ? this.getValue() : this.placeholder), h("tds-icon", { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: 'bf61a2483d73c3c2a9b7bb2da10728f8589d1214', role: "listbox", "aria-label": this.tdsAriaLabel, inert: !this.open, "aria-orientation": "vertical", "aria-multiselectable": this.multiselect, ref: (element) => {
|
|
517
512
|
this.dropdownList = element;
|
|
518
513
|
}, class: {
|
|
519
514
|
'dropdown-list': true,
|
|
@@ -524,11 +519,11 @@ export class TdsDropdown {
|
|
|
524
519
|
'closed': !this.open,
|
|
525
520
|
[`animation-enter-${this.animation}`]: this.animation !== 'none' && this.open,
|
|
526
521
|
[`animation-exit-${this.animation}`]: this.animation !== 'none' && !this.open,
|
|
527
|
-
} }, h("slot", { key: '
|
|
522
|
+
} }, h("slot", { key: 'f56f4b1c78e0b2d0d6675a2d92161b5d65da0f48', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: 'ed2e199226b25696a06020f5a6039d7f539a284c', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: 'a0cf1e1243b6550de8ff6a8f8f3b64ecfdef169f', id: helperId, class: {
|
|
528
523
|
helper: true,
|
|
529
524
|
error: this.error,
|
|
530
525
|
disabled: this.disabled,
|
|
531
|
-
} }, this.error && h("tds-icon", { key: '
|
|
526
|
+
} }, this.error && h("tds-icon", { key: 'b122044c5c73d7f68d4078cadc6ce2b1aa849383', name: "error", size: "16px" }), this.helper))));
|
|
532
527
|
}
|
|
533
528
|
static get is() { return "tds-dropdown"; }
|
|
534
529
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import generateUniqueId from "../../../utils/generateUniqueId";
|
|
3
|
-
import hasSlot from "../../../utils/hasSlot";
|
|
4
3
|
/**
|
|
5
4
|
* @slot <default> - <b>Unnamed slot.</b> For injecting a dropdown list.
|
|
6
5
|
* @slot icon - Slot for an Icon in the dropdown button.
|
|
@@ -47,20 +46,14 @@ export class TdsHeaderDropdown {
|
|
|
47
46
|
});
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
|
-
connectedCallback() {
|
|
51
|
-
const hasLabelSlot = hasSlot('label', this.host);
|
|
52
|
-
if (!this.tdsAriaLabel && !hasLabelSlot) {
|
|
53
|
-
console.warn('Tegel Header Dropdown component: use label slot or specify tdsAriaLabel prop');
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
49
|
render() {
|
|
57
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'd3f0a943b953783f2fc1c6345563a5adf0ded1dd' }, h("div", { key: 'c7028ceb31b9409d76d3663cd92a1fb3fa68fd7e', class: {
|
|
58
51
|
'state-open': this.open,
|
|
59
|
-
} }, h("tds-header-item", { key: '
|
|
52
|
+
} }, h("tds-header-item", { key: 'f1d5fe99ee0b62316dd0b48c9b5bb04439fb9b12', class: "button", active: this.open, selected: this.selected }, h("button", { key: '0e1437b558782c96e984287bfc0b9f301090bdb0', ref: (el) => {
|
|
60
53
|
this.buttonEl = el;
|
|
61
54
|
}, "aria-expanded": `${this.open}`, "aria-controls": `launcher-${this.uuid}`, "aria-current": this.selected ? 'location' : 'false', onClick: () => {
|
|
62
55
|
this.toggleDropdown();
|
|
63
|
-
}, "aria-label": this.tdsAriaLabel }, h("slot", { key: '
|
|
56
|
+
}, "aria-label": this.tdsAriaLabel }, h("slot", { key: 'fc63cfe2414eb2c60fe85e481a3af49af3ce9653', name: "icon" }), this.label, h("slot", { key: 'f302406472c7be0223fa17b76cc2674cb3e148b7', name: "label" }), !this.noDropdownIcon && (h("tds-icon", { key: '32c53b88ffeed4a78f9efc77b5976afe190c86c6', class: "dropdown-icon", name: "chevron_down", size: "16px", svgTitle: "Dropdown icon" })))), this.buttonEl && (h("tds-popover-canvas", { key: '86ed4a3140d80521792b2953bc4acdef9476c3f6', id: `tds-dropdown-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
|
|
64
57
|
{
|
|
65
58
|
name: 'flip',
|
|
66
59
|
options: {
|
|
@@ -4,14 +4,9 @@ export class TdsHeaderHamburger {
|
|
|
4
4
|
constructor() {
|
|
5
5
|
this.tdsAriaLabel = undefined;
|
|
6
6
|
}
|
|
7
|
-
connectedCallback() {
|
|
8
|
-
if (!this.tdsAriaLabel) {
|
|
9
|
-
console.warn('Tegel Header Hamburger component: missing tdsAriaLabel prop');
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
7
|
render() {
|
|
13
8
|
const inheritedButtonProps = Object.assign({}, inheritAriaAttributes(this.host));
|
|
14
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: 'e89db0f35bac2766a531be705b37c1d02e315431' }, h("tds-header-item", { key: '2aba0027ff9ce0516722d9785df5f61cd69aa02e' }, h("button", Object.assign({ key: 'f3b03d5b8a13285972edc9c645effc91c3ec92ad' }, inheritedButtonProps, { "aria-label": this.tdsAriaLabel }), h("tds-icon", { key: '6177dfc5ec0fed7902ecea6bab75b6031099c9c3', class: "icon", name: "burger", size: "20px" })))));
|
|
15
10
|
}
|
|
16
11
|
static get is() { return "tds-header-hamburger"; }
|
|
17
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -41,11 +41,6 @@ export class TdsHeaderLauncher {
|
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
connectedCallback() {
|
|
45
|
-
if (!this.tdsAriaLabel) {
|
|
46
|
-
console.warn('Tegel Header Launcher component: missing tdsAriaLabel prop');
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
44
|
render() {
|
|
50
45
|
this.ariaAttributes = Object.assign(Object.assign({}, this.ariaAttributes), inheritAriaAttributes(this.host, ['role']));
|
|
51
46
|
const buttonAttributes = Object.assign(Object.assign({}, this.ariaAttributes), { 'aria-expanded': `${this.open}`, 'aria-controls': `launcher-${this.uuid}`, 'class': 'button', 'active': this.open, 'onClick': () => {
|
|
@@ -53,11 +48,11 @@ export class TdsHeaderLauncher {
|
|
|
53
48
|
}, 'ref': (el) => {
|
|
54
49
|
this.buttonEl = el;
|
|
55
50
|
} });
|
|
56
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: 'b62aac321e36b12d139d51c3421a1a9540079c22' }, h("div", { key: '4bb1d8e74ec245d9899870fccd990935488dcf7b', class: {
|
|
57
52
|
'wrapper': true,
|
|
58
53
|
'state-open': this.open,
|
|
59
54
|
'state-list-type-menu': this.hasListTypeMenu,
|
|
60
|
-
} }, h("tds-header-launcher-button", Object.assign({ key: '
|
|
55
|
+
} }, h("tds-header-launcher-button", Object.assign({ key: 'c3b90d64efd2878ffc2b0332538c2877f2b48fec' }, buttonAttributes, { "tds-aria-label": this.tdsAriaLabel })), this.buttonEl && (h("tds-popover-canvas", { key: 'dd41f1e0573ceed07f519813bec503001d02377b', id: `tds-launcher-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
|
|
61
56
|
{
|
|
62
57
|
name: 'flip',
|
|
63
58
|
options: {
|
|
@@ -1,99 +1,50 @@
|
|
|
1
|
-
:root,
|
|
2
|
-
.tds-mode-light {
|
|
3
|
-
--tds-tag-success-background: var(--tds-green-100);
|
|
4
|
-
--tds-tag-success-color: var(--tds-green-700);
|
|
5
|
-
--tds-tag-warning-background: var(--tds-yellow-50);
|
|
6
|
-
--tds-tag-warning-color: var(--tds-yellow-700);
|
|
7
|
-
--tds-tag-new-background: var(--tds-blue-100);
|
|
8
|
-
--tds-tag-new-color: var(--tds-blue-700);
|
|
9
|
-
--tds-tag-neutral-background: var(--tds-grey-150);
|
|
10
|
-
--tds-tag-neutral-color: var(--tds-grey-700);
|
|
11
|
-
--tds-tag-information-background: var(--tds-blue-200);
|
|
12
|
-
--tds-tag-information-color: var(--tds-blue-800);
|
|
13
|
-
--tds-tag-error-background: var(--tds-red-100);
|
|
14
|
-
--tds-tag-error-color: var(--tds-red-700);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.tds-mode-dark {
|
|
18
|
-
--tds-tag-success-background: var(--tds-green-200);
|
|
19
|
-
--tds-tag-success-color: var(--tds-green-800);
|
|
20
|
-
--tds-tag-warning-background: var(--tds-yellow-100);
|
|
21
|
-
--tds-tag-warning-color: var(--tds-yellow-800);
|
|
22
|
-
--tds-tag-new-background: var(--tds-blue-100);
|
|
23
|
-
--tds-tag-new-color: var(--tds-blue-800);
|
|
24
|
-
--tds-tag-neutral-background: var(--tds-grey-200);
|
|
25
|
-
--tds-tag-neutral-color: var(--tds-grey-800);
|
|
26
|
-
--tds-tag-information-background: var(--tds-blue-200);
|
|
27
|
-
--tds-tag-information-color: var(--tds-blue-800);
|
|
28
|
-
--tds-tag-error-background: var(--tds-red-200);
|
|
29
|
-
--tds-tag-error-color: var(--tds-red-800);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
1
|
:host {
|
|
33
2
|
box-sizing: border-box;
|
|
34
|
-
display: inline-block;
|
|
35
|
-
}
|
|
36
|
-
:host * {
|
|
37
|
-
box-sizing: border-box;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:host {
|
|
41
3
|
display: inline-flex;
|
|
42
4
|
align-items: center;
|
|
43
5
|
border-radius: 4px;
|
|
44
6
|
background-color: var(--tds-tag-neutral-background);
|
|
45
7
|
color: var(--tds-tag-neutral-color);
|
|
8
|
+
gap: 4px;
|
|
46
9
|
}
|
|
47
|
-
:host
|
|
10
|
+
:host * {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
}
|
|
13
|
+
:host.lg {
|
|
48
14
|
padding: 4px;
|
|
49
|
-
gap: 4px;
|
|
50
15
|
}
|
|
51
|
-
:host.
|
|
16
|
+
:host.sm {
|
|
52
17
|
border-radius: 2px;
|
|
53
|
-
gap: 4px;
|
|
54
18
|
padding: 2px 4px;
|
|
19
|
+
font: var(--tds-detail-05);
|
|
55
20
|
}
|
|
56
|
-
:host.
|
|
21
|
+
:host.success {
|
|
57
22
|
background-color: var(--tds-tag-success-background);
|
|
58
23
|
color: var(--tds-tag-success-color);
|
|
59
24
|
}
|
|
60
|
-
:host.
|
|
25
|
+
:host.warning {
|
|
61
26
|
background-color: var(--tds-tag-warning-background);
|
|
62
27
|
color: var(--tds-tag-warning-color);
|
|
63
28
|
}
|
|
64
|
-
:host.
|
|
29
|
+
:host.new {
|
|
65
30
|
background-color: var(--tds-tag-new-background);
|
|
66
31
|
color: var(--tds-tag-new-color);
|
|
67
32
|
}
|
|
68
|
-
:host.
|
|
33
|
+
:host.neutral {
|
|
69
34
|
background-color: var(--tds-tag-neutral-background);
|
|
70
35
|
color: var(--tds-tag-neutral-color);
|
|
71
36
|
}
|
|
72
|
-
:host.
|
|
37
|
+
:host.information {
|
|
73
38
|
background-color: var(--tds-tag-information-background);
|
|
74
39
|
color: var(--tds-tag-information-color);
|
|
75
40
|
}
|
|
76
|
-
:host.
|
|
41
|
+
:host.error {
|
|
77
42
|
background-color: var(--tds-tag-error-background);
|
|
78
43
|
color: var(--tds-tag-error-color);
|
|
79
44
|
}
|
|
80
|
-
:host.tds-mode-dark {
|
|
81
|
-
color: var(--tds-grey-100);
|
|
82
|
-
}
|
|
83
45
|
|
|
84
|
-
.tds-
|
|
46
|
+
.tds-tag__content {
|
|
85
47
|
display: flex;
|
|
86
48
|
align-items: center;
|
|
87
49
|
gap: inherit;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.tds-tag-title {
|
|
91
|
-
font-weight: 500;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
::slotted(tds-icon) {
|
|
95
|
-
display: flex;
|
|
96
|
-
align-items: center;
|
|
97
|
-
justify-content: center;
|
|
98
|
-
flex-shrink: 0;
|
|
99
50
|
}
|