@scania/tegel 1.37.1 → 1.38.0-aria-invalid-input-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/getAriaInvalid-66a2eade.js +25 -0
- package/dist/cjs/tds-folder-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-message.cjs.entry.js +3 -4
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +1 -1
- package/dist/cjs/tds-text-field.cjs.entry.js +6 -5
- package/dist/cjs/tds-textarea.cjs.entry.js +5 -3
- package/dist/collection/components/message/message.css +0 -20
- package/dist/collection/components/message/message.js +2 -3
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.css +34 -8
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.css +12 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.css +14 -9
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.css +16 -10
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +12 -2
- package/dist/collection/components/text-field/text-field.js +6 -5
- package/dist/collection/components/textarea/textarea.js +5 -3
- package/dist/collection/utils/getAriaInvalid.js +21 -0
- package/dist/components/p-bbf9492a.js +23 -0
- package/dist/components/tds-folder-tab.js +1 -1
- package/dist/components/tds-folder-tabs.js +1 -1
- package/dist/components/tds-inline-tab.js +1 -1
- package/dist/components/tds-message.js +3 -4
- package/dist/components/tds-navigation-tab.js +1 -1
- package/dist/components/tds-navigation-tabs.js +1 -1
- package/dist/components/tds-text-field.js +6 -5
- package/dist/components/tds-textarea.js +5 -3
- package/dist/esm/getAriaInvalid-a9944cb9.js +23 -0
- package/dist/esm/tds-folder-tab.entry.js +1 -1
- package/dist/esm/tds-folder-tabs.entry.js +1 -1
- package/dist/esm/tds-inline-tab.entry.js +1 -1
- package/dist/esm/tds-message.entry.js +3 -4
- package/dist/esm/tds-navigation-tab.entry.js +1 -1
- package/dist/esm/tds-navigation-tabs.entry.js +1 -1
- package/dist/esm/tds-text-field.entry.js +6 -5
- package/dist/esm/tds-textarea.entry.js +6 -4
- package/dist/tegel/{p-c0b26507.entry.js → p-25f4b4ca.entry.js} +1 -1
- package/dist/tegel/p-35293420.entry.js +1 -0
- package/dist/tegel/p-83e6e31f.entry.js +1 -0
- package/dist/tegel/p-8ae4e03c.entry.js +1 -0
- package/dist/tegel/p-b2b9561f.entry.js +1 -0
- package/dist/tegel/{p-52adc30c.entry.js → p-bb9445ff.entry.js} +1 -1
- package/dist/tegel/p-bbf9492a.js +1 -0
- package/dist/tegel/{p-8c841698.entry.js → p-d184a3f0.entry.js} +1 -1
- package/dist/tegel/p-db38b4f2.entry.js +1 -0
- package/dist/tegel/tegel.css +1 -1
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/textarea/textarea.d.ts +1 -0
- package/dist/types/utils/getAriaInvalid.d.ts +14 -0
- package/package.json +1 -1
- package/dist/tegel/p-106e048d.entry.js +0 -1
- package/dist/tegel/p-a98767ea.entry.js +0 -1
- package/dist/tegel/p-cd5103e3.entry.js +0 -1
- package/dist/tegel/p-dc375d3e.entry.js +0 -1
- package/dist/tegel/p-e3c2b6b4.entry.js +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Gets the appropriate aria-invalid value for form components.
|
|
5
|
+
*
|
|
6
|
+
* This utility handles cross-framework compatibility by checking for an explicit
|
|
7
|
+
* aria-invalid attribute on the host element first, then falling back to the
|
|
8
|
+
* component's state. It properly handles both string and boolean values that
|
|
9
|
+
* may be passed from different frameworks (especially React).
|
|
10
|
+
*
|
|
11
|
+
* @param host - The host element to check for aria-invalid attribute
|
|
12
|
+
* @param state - The component's state ('error', 'success', 'default')
|
|
13
|
+
* @returns The aria-invalid value as a string ('true' or 'false')
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
const getAriaInvalid = (host, state) => {
|
|
17
|
+
const hostAriaInvalid = host.getAttribute('aria-invalid');
|
|
18
|
+
if (hostAriaInvalid !== null) {
|
|
19
|
+
return String(hostAriaInvalid);
|
|
20
|
+
}
|
|
21
|
+
// Fallback to state-based aria-invalid
|
|
22
|
+
return state === 'error' ? 'true' : 'false';
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
exports.getAriaInvalid = getAriaInvalid;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-ca8040ad.js');
|
|
6
6
|
|
|
7
|
-
const folderTabCss = ":host{box-sizing:border-box;position:relative}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;min-width:142px;display:block;width:calc(100% - 32px);font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;cursor:pointer;padding:16px;white-space:nowrap;text-decoration:none;text-align:left;outline:none;border:none
|
|
7
|
+
const folderTabCss = ":host{box-sizing:border-box;position:relative}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;min-width:142px;display:block;width:calc(100% - 32px);font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;cursor:pointer;padding:16px;white-space:nowrap;text-decoration:none;text-align:left;outline:none;border:none}:host ::slotted(*:focus-within)::before{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1;content:\"\";position:absolute;top:3px;bottom:3px;left:3px;right:3px}:host div:not(.selected){background-color:var(--tds-folder-tab-background);position:relative}:host div:not(.selected)::before{content:\"\";position:absolute;left:0;top:0;bottom:0;width:1px;background-color:var(--tds-folder-tab-divider-color)}:host div:not(.selected) ::slotted(*){border-top:2px solid transparent;color:var(--tds-folder-tab-item-color)}:host div:not(.selected):hover:not(.disabled){background-color:var(--tds-folder-tab-background-hover);cursor:pointer}:host div:not(.selected):hover:not(.disabled) ::slotted(*){border-top:2px solid var(--tds-folder-tab-top-border-hover);color:var(--tds-folder-tab-color)}:host div:not(.selected).disabled{background-color:var(--tds-folder-tab-item-background-disabled)}:host div:not(.selected).disabled ::slotted(*){color:var(--tds-folder-tab-item-color-disabled)}:host div:not(.selected).disabled ::slotted(*:focus-visible){outline:none}:host div:not(.selected).disabled ::slotted(*:hover){cursor:not-allowed}:host div:not(.selected).disabled ::slotted(*::after){content:none}:host .selected{background-color:var(--tds-folder-tab-background-selected);border-top:2px solid var(--tds-folder-tab-border-selected)}:host .selected::after{content:\" \";background-color:var(--tds-folder-tab-divider-color);width:1px;top:0;bottom:0;right:-1px;display:block;position:absolute;z-index:1}:host .selected ::slotted(*){color:var(--tds-folder-tab-color)}:host .selected:hover:not(.disabled){background-color:var(--tds-folder-tab-background-hover);cursor:pointer}:host .selected:hover:not(.disabled) ::slotted(*){color:var(--tds-folder-tab-color)}:host(.first) ::slotted(*){border-left-color:transparent}:host(.first) .selected{border-left:none}";
|
|
8
8
|
const TdsFolderTabStyle0 = folderTabCss;
|
|
9
9
|
|
|
10
10
|
const TdsFolderTab = class {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-ca8040ad.js');
|
|
6
6
|
|
|
7
|
-
const folderTabsCss = ":host{box-sizing:border-box;overflow:hidden;outline:0}:host *{box-sizing:border-box}:host .wrapper{display:flex;overflow-x:scroll;scrollbar-width:none;position:relative}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{z-index:1;right:0}:host .scroll-left-button{z-index:1;left:0}:host .scroll-right-button,:host .scroll-left-button{height:50px;color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-folder-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus,:host .scroll-left-button:focus{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}";
|
|
7
|
+
const folderTabsCss = ":host{box-sizing:border-box;overflow:hidden;outline:0}:host *{box-sizing:border-box}:host .wrapper{display:flex;overflow-x:scroll;scrollbar-width:none;position:relative}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{z-index:1;right:0}:host .scroll-left-button{z-index:1;left:0}:host .scroll-right-button,:host .scroll-left-button{height:50px;color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-folder-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus-within::before,:host .scroll-left-button:focus-within::before{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1;content:\"\";position:absolute;top:3px;bottom:3px;left:3px;right:3px}:host .scroll-right-button:focus,:host .scroll-left-button:focus{outline:0}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}";
|
|
8
8
|
const TdsFolderTabsStyle0 = folderTabsCss;
|
|
9
9
|
|
|
10
10
|
const TdsFolderTabs = class {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-ca8040ad.js');
|
|
6
6
|
|
|
7
|
-
const inlineTabCss = ":host{box-sizing:border-box;display:block;position:relative}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-navigation-tabs-tab-color);text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:20px 4px}:host ::slotted(*:focus-visible)::before{content:\"\";position:absolute;left:0;right:0;top:
|
|
7
|
+
const inlineTabCss = ":host{box-sizing:border-box;display:block;position:relative}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-navigation-tabs-tab-color);text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:20px 4px}:host ::slotted(*:focus-visible)::before{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1;content:\"\";position:absolute;left:0;right:0;top:3px;bottom:3px}:host .inline-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .inline-tab-item{position:relative;margin-right:32px}:host .inline-tab-item:hover{cursor:pointer}:host .inline-tab-item:hover ::slotted(*){color:var(--tds-inline-tabs-tab-color-hover)}:host .inline-tab-item:hover::after{width:100%}:host .inline-tab-item::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-inline-tabs-tab-indicator-background-hover);z-index:1}:host .selected ::slotted(*){color:var(--tds-inline-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-inline-tabs-tab-indicator-background-active)}:host .disabled::after{content:none}:host .disabled ::slotted(*){color:var(--tds-inline-tabs-tab-color-disabled)}:host .disabled ::slotted(*:hover){color:var(--tds-inline-tabs-tab-color-disabled);cursor:not-allowed}:host .disabled ::slotted(*:focus-visible){outline:none;box-shadow:none}:host(.last){margin-right:32px}";
|
|
8
8
|
const TdsInlineTabStyle0 = inlineTabCss;
|
|
9
9
|
|
|
10
10
|
const TdsInlineTab = class {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-ca8040ad.js');
|
|
6
6
|
const generateUniqueId = require('./generateUniqueId-e3fc9863.js');
|
|
7
7
|
|
|
8
|
-
const messageCss = ":host
|
|
8
|
+
const messageCss = ":host .wrapper{display:flex;padding:16px;background-color:var(--tds-message-background);border-radius:4px}:host .wrapper.information{border-left:4px solid var(--system-info-default)}:host .wrapper.information tds-icon{color:var(--system-info-default)}:host .wrapper.success{background-color:var(--tds-message-background-success);border-left:4px solid var(--system-success-default)}:host .wrapper.success tds-icon{color:var(--system-success-default)}:host .wrapper.error{background-color:var(--tds-message-background-error);border-left:4px solid var(--system-danger-default)}:host .wrapper.error tds-icon{color:var(--system-danger-default)}:host .wrapper.warning{background-color:var(--tds-message-background-warning);border-left:4px solid var(--system-warning-default)}:host .wrapper.warning tds-icon{color:var(--system-warning-default)}:host .wrapper.minimal{border:none;padding:0;background-color:transparent}:host .wrapper.minimal .header{font-family:var(--detail-02-font-family);font-size:var(--detail-02-font-size);line-height:var(--detail-02-line-height);font-weight:var(--detail-02-font-weight);letter-spacing:var(--detail-02-letter-spacing);text-transform:var(--detail-02-text-transform)}:host .wrapper.minimal.error .header{color:var(--system-danger-default)}:host tds-icon{padding-right:16px}:host .content{display:flex;flex-direction:column;gap:4px;color:var(--foreground-text-strong);padding:2px 0}:host .content .header{font-family:var(--headline-07-font-family);font-size:var(--headline-07-font-size);line-height:var(--headline-07-line-height);font-weight:var(--headline-07-font-weight);letter-spacing:var(--headline-07-letter-spacing);text-transform:var(--headline-07-text-transform)}:host .content .extended-message{color:var(--foreground-text-strong);font-family:var(--detail-02-font-family);font-size:var(--detail-02-font-size);line-height:var(--detail-02-line-height);font-weight:var(--detail-02-font-weight);letter-spacing:var(--detail-02-letter-spacing);text-transform:var(--detail-02-text-transform)}";
|
|
9
9
|
const TdsMessageStyle0 = messageCss;
|
|
10
10
|
|
|
11
11
|
const TdsMessage = class {
|
|
@@ -43,12 +43,11 @@ const TdsMessage = class {
|
|
|
43
43
|
render() {
|
|
44
44
|
const headerId = this.header ? `tds-message-header-${generateUniqueId.generateUniqueId()}` : undefined;
|
|
45
45
|
const contentId = !this.minimal ? `tds-message-content-${generateUniqueId.generateUniqueId()}` : undefined;
|
|
46
|
-
return (index.h(index.Host, { key: '
|
|
46
|
+
return (index.h(index.Host, { key: '752eb725898add9261df7460b3043642e7e6a7ef', role: this.tdsAlertDialog, "aria-describedby": contentId, "aria-label": this.getAriaLabel(), class: { [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null } }, index.h("div", { key: 'd1346696f7f4d63d25cbacc0b3cbf60c39a54add', class: {
|
|
47
47
|
wrapper: true,
|
|
48
48
|
[this.variant]: true,
|
|
49
49
|
minimal: this.minimal,
|
|
50
|
-
|
|
51
|
-
} }, !this.noIcon && (index.h("tds-icon", { key: '7c95385da3ab0e887b6e955a302bc39b3aeaafe0', "aria-hidden": "true", "aria-label": `${this.variant}`, svgTitle: `${this.variant}`, name: this.getIconName(), size: "20px" })), index.h("div", { key: 'eed507b43c57eaafdeba40c25e9556bacbe0f166', class: `content` }, this.header && (index.h("div", { key: 'd6faa3f523f64f158a31e35a416f957c38bbcceb', class: "header", id: headerId }, this.header)), !this.minimal && (index.h("div", { key: '03c724a2bdbee954b9c48aa27a18444abfacafbb', class: "extended-message", id: contentId }, index.h("slot", { key: '017b634e145a514a2315880db6cfb712ddb254b0' })))))));
|
|
50
|
+
} }, !this.noIcon && (index.h("tds-icon", { key: '39d83a70a25d5ac07c3786f47989ce77b1a9b386', "aria-hidden": "true", "aria-label": `${this.variant}`, svgTitle: `${this.variant}`, name: this.getIconName(), size: "20px" })), index.h("div", { key: 'aeb139399975656ee15493dab9c2ac77e4f295a0', class: `content` }, this.header && (index.h("div", { key: 'd9a1e8b5d2513630ff9c0a4363d346dfe2ecfd09', class: "header", id: headerId }, this.header)), !this.minimal && (index.h("div", { key: 'dffbcdb31b11c4f6313609fac311991202b9f462', class: "extended-message", id: contentId }, index.h("slot", { key: '38578271864c5884c5a4a4c105ae44ef6d2caf07' })))))));
|
|
52
51
|
}
|
|
53
52
|
};
|
|
54
53
|
TdsMessage.style = TdsMessageStyle0;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-ca8040ad.js');
|
|
6
6
|
|
|
7
|
-
const navigationTabCss = ":host{box-sizing:border-box;display:block}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-navigation-tabs-tab-color)
|
|
7
|
+
const navigationTabCss = ":host{box-sizing:border-box;display:block}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-navigation-tabs-tab-color);text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:26px 0}:host ::slotted(*:focus-visible)::before{content:\"\";position:absolute;left:0;right:0;top:3px;bottom:3px;outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .navigation-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .navigation-tab-item{position:relative}:host .navigation-tab-item:hover{cursor:pointer}:host .navigation-tab-item:hover ::slotted(*){color:var(--tds-navigation-tabs-tab-color-hover)}:host .navigation-tab-item:hover::after{width:100%}:host .navigation-tab-item::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-navigation-tabs-tab-indicator-background-hover);z-index:1}:host .navigation-tab-item:focus-visible::after{bottom:3px}:host .selected ::slotted(*){color:var(--tds-navigation-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-navigation-tabs-tab-indicator-background-active)}:host .disabled ::slotted(*){color:var(--tds-navigation-tabs-tab-color-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed;color:var(--tds-navigation-tabs-tab-color-disabled)}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.last){margin-right:32px}";
|
|
8
8
|
const TdsNavigationTabStyle0 = navigationTabCss;
|
|
9
9
|
|
|
10
10
|
const TdsNavigationTab = class {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-ca8040ad.js');
|
|
6
6
|
|
|
7
|
-
const navigationTabsCss = ":host{box-sizing:border-box;display:flex;background-color:var(--tds-navigation-tabs-background);position:relative}:host *{box-sizing:border-box}:host::after{content:\" \";display:block;border-bottom:1px solid var(--tds-navigation-tabs-horizontal-divider-background);left:0;right:0;bottom:0;position:absolute}:host .wrapper{display:flex;flex-wrap:nowrap;white-space:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none;gap:16px}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{right:0;z-index:1}:host .scroll-left-button{left:0;z-index:1}:host .scroll-right-button,:host .scroll-left-button{color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-inline-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus,:host .scroll-left-button:focus{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}";
|
|
7
|
+
const navigationTabsCss = ":host{box-sizing:border-box;display:flex;background-color:var(--tds-navigation-tabs-background);position:relative}:host *{box-sizing:border-box}:host::after{content:\" \";display:block;border-bottom:1px solid var(--tds-navigation-tabs-horizontal-divider-background);left:0;right:0;bottom:0;position:absolute}:host .wrapper{display:flex;flex-wrap:nowrap;white-space:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none;gap:16px}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{right:0;z-index:1}:host .scroll-left-button{left:0;z-index:1}:host .scroll-right-button,:host .scroll-left-button{color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-inline-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus::before,:host .scroll-left-button:focus::before{content:\"\";position:absolute;left:3px;right:3px;top:3px;bottom:3px;outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .scroll-right-button:focus,:host .scroll-left-button:focus{outline:0}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}";
|
|
8
8
|
const TdsNavigationTabsStyle0 = navigationTabsCss;
|
|
9
9
|
|
|
10
10
|
const TdsNavigationTabs = class {
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-ca8040ad.js');
|
|
6
6
|
const hasSlot = require('./hasSlot-1c90e9ba.js');
|
|
7
7
|
const generateUniqueId = require('./generateUniqueId-e3fc9863.js');
|
|
8
|
+
const getAriaInvalid = require('./getAriaInvalid-66a2eade.js');
|
|
8
9
|
|
|
9
10
|
const textFieldCss = ".text-field-input-lg.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-20) var(--tds-spacing-element-16)}.text-field-input-lg.sc-tds-text-field::placeholder{color:var(--tds-text-field-placeholder)}.text-field-input-lg.sc-tds-text-field:disabled{user-select:none;pointer-events:none;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-lg.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-lg.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-input-md.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-16)}.text-field-input-md.sc-tds-text-field::placeholder{color:var(--tds-text-field-placeholder)}.text-field-input-md.sc-tds-text-field:disabled{user-select:none;pointer-events:none;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-md.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-md.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-input-sm.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-16)}.text-field-input-sm.sc-tds-text-field::placeholder{color:var(--tds-text-field-placeholder)}.text-field-input-sm.sc-tds-text-field:disabled{user-select:none;pointer-events:none;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-sm.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-sm.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-container.sc-tds-text-field{border-radius:4px 4px 0 0;display:flex;position:relative;height:56px;box-sizing:border-box;background-color:var(--tds-text-field-background);border-bottom:1px solid var(--tds-text-field-border-bottom);border-top:1px solid transparent;transition:border-bottom-color 200ms ease}.text-field-container.sc-tds-text-field:hover{border-bottom-color:var(--tds-text-field-border-bottom-hover)}.form-text-field-md.sc-tds-text-field .text-field-container.sc-tds-text-field{height:48px}.form-text-field-sm.sc-tds-text-field .text-field-container.sc-tds-text-field{height:40px}.text-field-container.sc-tds-text-field:focus-within{border:2px solid var(--tds-focus-outline-color);margin:0 -2px}.text-field-input-container.sc-tds-text-field{position:relative;width:100%}.text-field-data.sc-tds-text-field,.text-field-input.sc-tds-text-field{color:var(--tds-text-field-data-color)}.text-field-label-outside.sc-tds-text-field>*.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:block;margin-bottom:var(--tds-spacing-element-8);color:var(--tds-text-field-label-color)}.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);position:absolute;pointer-events:none;color:var(--tds-text-field-label-inside-color);left:16px}.form-text-field.sc-tds-text-field{display:block;min-width:208px}.form-text-field-nomin.sc-tds-text-field{min-width:auto}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field{padding-top:var(--tds-spacing-element-24);padding-bottom:15px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:20px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder)}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field{padding-top:var(--tds-spacing-element-20);padding-bottom:11px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:16px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder)}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field{padding-top:var(--tds-spacing-element-20);padding-bottom:11px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:16px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder)}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:8px}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:8px}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:12px}.text-field-helper.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:flex;gap:8px;justify-content:space-between;flex-basis:100%;padding-top:var(--tds-spacing-element-4);color:var(--tds-text-field-helper)}.text-field-helper.sc-tds-text-field .text-field-textcounter.sc-tds-text-field{margin-left:auto}.form-text-field-disabled.sc-tds-text-field .text-field-container.sc-tds-text-field{cursor:not-allowed;border-bottom-color:transparent}.form-text-field-disabled.sc-tds-text-field .text-field-slot-wrap-prefix.sc-tds-text-field>*.sc-tds-text-field,.form-text-field-disabled.sc-tds-text-field .text-field-slot-wrap-suffix.sc-tds-text-field>*.sc-tds-text-field{color:var(--tds-text-field-ps-color-disabled)}.form-text-field-disabled.sc-tds-text-field .text-field-label-outside.sc-tds-text-field>*.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.form-text-field-disabled.sc-tds-text-field .text-field-helper.sc-tds-text-field{color:var(--tds-text-field-helper-disabled)}.text-field-icon__readonly.sc-tds-text-field{display:none;position:absolute;right:18px;top:50%;transform:translateY(-50%);color:var(--tds-text-field-icon-read-only-label-color)}.text-field-icon__readonly.sc-tds-text-field .tds-tooltip.sc-tds-text-field{min-width:150px}.form-text-field-readonly.sc-tds-text-field{user-select:auto;caret-color:transparent;cursor:default}.form-text-field-readonly.sc-tds-text-field .text-field-container.sc-tds-text-field{border-bottom-color:var(--tds-text-field-border-bottom-readonly)}.form-text-field-readonly.sc-tds-text-field .text-field-icon__readonly.sc-tds-text-field{display:block}.form-text-field-readonly.sc-tds-text-field .text-field-icon__readonly.sc-tds-text-field:hover~.text-field-icon__readonly-label.sc-tds-text-field{display:block}.form-text-field-readonly.sc-tds-text-field .text-field-input.sc-tds-text-field{background-color:transparent}.form-text-field-readonly.sc-tds-text-field:has(.text-field-icon__readonly) .text-field-input.sc-tds-text-field{padding-right:54px}.form-text-field-success.sc-tds-text-field:not(.form-text-field-readonly) .text-field-container.sc-tds-text-field{border-bottom-color:var(--tds-text-field-border-bottom-success)}.form-text-field-error.sc-tds-text-field:not(.form-text-field-readonly) .text-field-helper.sc-tds-text-field{color:var(--tds-text-field-helper-error)}.form-text-field-error.sc-tds-text-field:not(.form-text-field-readonly) .text-field-container.sc-tds-text-field{border-bottom-color:var(--tds-text-field-border-bottom-error)}.text-field-helper-error-state.sc-tds-text-field{display:flex;gap:8px;flex-wrap:nowrap}.text-field-textcounter-disabled.sc-tds-text-field{color:var(--tds-text-field-textcounter-disabled)}.text-field-textcounter.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-text-field-textcounter);float:right}.text-field-textcounter.text-field-textcounter-disabled.sc-tds-text-field{color:var(--tds-text-field-textcounter-disabled)}.text-field-textcounter.text-field-textcounter-divider.sc-tds-text-field{color:var(--tds-text-field-textcounter-divider)}.text-field-textcounter.text-field-textcounter-divider-disabled.sc-tds-text-field{color:var(--tds-text-field-textcounter-divider-disabled)}.text-field-slot-wrap-prefix.sc-tds-text-field,.text-field-slot-wrap-suffix.sc-tds-text-field{align-self:center;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);margin:0 0 0 14px;color:var(--tds-text-field-ps-color)}.text-field-slot-wrap-prefix.sc-tds-text-field-s>:not(tds-icon),.text-field-slot-wrap-suffix.sc-tds-text-field-s>:not(tds-icon){margin:0 0 0 2px}.text-field-slot-wrap-prefix.text-field-error.sc-tds-text-field,.text-field-slot-wrap-suffix.text-field-error.sc-tds-text-field{color:var(--tds-text-field-ps-color-error)}.text-field-slot-wrap-suffix.sc-tds-text-field{margin:0 14px 0 0}.text-field-slot-wrap-suffix.sc-tds-text-field-s>:not(tds-icon){margin:0 2px 0 0}";
|
|
10
11
|
const TdsTextFieldStyle0 = textFieldCss;
|
|
@@ -80,7 +81,7 @@ const TdsTextField = class {
|
|
|
80
81
|
var _a;
|
|
81
82
|
const usesPrefixSlot = hasSlot.hasSlot('prefix', this.host);
|
|
82
83
|
const usesSuffixSlot = hasSlot.hasSlot('suffix', this.host);
|
|
83
|
-
return (index.h("div", { key: '
|
|
84
|
+
return (index.h("div", { key: '323df30951c2ee070b043228f78c3045b33e2fc9', class: {
|
|
84
85
|
'form-text-field': true,
|
|
85
86
|
'form-text-field-nomin': this.noMinWidth,
|
|
86
87
|
'text-field-focus': this.focusInput && !this.disabled,
|
|
@@ -98,12 +99,12 @@ const TdsTextField = class {
|
|
|
98
99
|
'form-text-field-sm': this.size === 'sm',
|
|
99
100
|
'form-text-field-error': this.state === 'error',
|
|
100
101
|
'form-text-field-success': this.state === 'success',
|
|
101
|
-
} }, this.labelPosition === 'outside' && (index.h("div", { key: '
|
|
102
|
+
} }, this.labelPosition === 'outside' && (index.h("div", { key: 'fe9768bbf8999dc49f90e096bfd138710a91e7bb', class: "text-field-label-outside" }, index.h("label", { key: '91d39c768b49e7867a87f7fc78b50ec4034c4560', htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), index.h("div", { key: 'abb84b67da94a281e986891a00a8bd348ad3b131', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (index.h("div", { key: '4661114d6fe3e809ee7c0254686c9feb55fce6ad', class: {
|
|
102
103
|
'text-field-slot-wrap-prefix': true,
|
|
103
104
|
'text-field-error': this.state === 'error',
|
|
104
105
|
'text-field-success': this.state === 'success',
|
|
105
106
|
'text-field-default': this.state === 'default',
|
|
106
|
-
} }, index.h("slot", { key: '
|
|
107
|
+
} }, index.h("slot", { key: '40aac31a850fb3ad1d703834b578c73a35c9f255', name: "prefix" }))), index.h("div", { key: '1c85331cb4dd7a03527c3730996f07a5d25293d7', class: "text-field-input-container" }, index.h("input", { key: '498c3ae25cc2508c28dd2e5f8483c35adb9f8bb9', ref: (inputEl) => {
|
|
107
108
|
this.textInput = inputEl;
|
|
108
109
|
}, class: {
|
|
109
110
|
'text-field-input': true,
|
|
@@ -118,13 +119,13 @@ const TdsTextField = class {
|
|
|
118
119
|
if (!this.readOnly) {
|
|
119
120
|
this.handleBlur(event);
|
|
120
121
|
}
|
|
121
|
-
}, "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `text-field-helper-element-${this.uuid}`, "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}` }), this.labelPosition === 'inside' && this.size !== 'sm' && (index.h("label", { key: '
|
|
122
|
+
}, "aria-invalid": getAriaInvalid.getAriaInvalid(this.host, this.state), "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `text-field-helper-element-${this.uuid}`, "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}` }), this.labelPosition === 'inside' && this.size !== 'sm' && (index.h("label", { key: '41a2f20f416c65fb2d7d9992286f4bc9c9dcc52c', class: "text-field-label-inside", htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), usesSuffixSlot && (index.h("div", { key: '2b7b63efd24c1398d2d40a3d5a48d3003931cff8', class: {
|
|
122
123
|
'text-field-slot-wrap-suffix': true,
|
|
123
124
|
'text-field-error': this.state === 'error',
|
|
124
125
|
'text-field-success': this.state === 'success',
|
|
125
126
|
'text-field-default': this.state === 'default',
|
|
126
127
|
'tds-u-display-none': this.readOnly,
|
|
127
|
-
} }, index.h("slot", { key: '
|
|
128
|
+
} }, index.h("slot", { key: 'b594b47a2ee6bfb393b44c8b704232881e53c119', name: "suffix" }))), this.readOnly && !this.hideReadOnlyIcon && (index.h("span", { key: '5a9d4e1492b908a397881a42f9c0229d32e2a457', class: "text-field-icon__readonly" }, index.h("tds-tooltip", { key: '02bb93263fc40d5d6aeb2dda3ad5ac49f2e2ccf6', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), index.h("tds-icon", { key: 'e926eb2de3946822875badbcc7e325e9981b8271', id: "readonly-tooltip", name: "edit_inactive", size: "20px" })))), index.h("div", { key: 'ac28d59eb12ef9efe38cd940daf1299b06dd4446', "aria-live": "assertive" }, (this.helper || this.maxLength > 0) && (index.h("div", { key: 'd1b09c6f543f0e985476b798ee642c6a11cb7485', class: "text-field-helper", id: `text-field-helper-element-${this.uuid}` }, this.state === 'error' && (index.h("div", { key: '160ca65e021a3f313b828dbcf82b158036d748ad', class: "text-field-helper-error-state" }, !this.readOnly && index.h("tds-icon", { key: '34bb9eaa6c267d882fc28a9b80fd331523bd981b', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, !this.readOnly && this.maxLength > 0 && (index.h("span", { key: '6b1ad7dbce2e2fe37e116c1d8f0b11f2dfe00260', class: {
|
|
128
129
|
'text-field-textcounter-divider': true,
|
|
129
130
|
'text-field-textcounter-disabled': this.disabled,
|
|
130
131
|
} }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, " / ", this.maxLength)))))));
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-ca8040ad.js');
|
|
6
6
|
const generateUniqueId = require('./generateUniqueId-e3fc9863.js');
|
|
7
|
+
const getAriaInvalid = require('./getAriaInvalid-66a2eade.js');
|
|
7
8
|
|
|
8
9
|
const textareaCss = ".textarea-container.sc-tds-textarea{border-radius:4px 4px 0 0;position:relative;box-sizing:border-box;height:auto;width:100%;min-width:208px;display:inline-flex;background-color:transparent;flex-flow:row wrap;border-bottom:0}.textarea-container.no-min-width.sc-tds-textarea{min-width:unset}.textarea-container.sc-tds-textarea .textarea-wrapper.sc-tds-textarea{position:relative;width:unset;min-width:100%}.textarea-input.sc-tds-textarea{border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-textarea-color);background-color:var(--tds-textarea-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-20) var(--tds-spacing-element-16);display:block;resize:vertical;border-bottom:1px solid var(--tds-textarea-border-bottom);transition:border-bottom-color 200ms ease}.textarea-input.sc-tds-textarea:read-only{background-color:var(--tds-textarea-read-only-background)}.textarea-input.sc-tds-textarea::placeholder{opacity:1;color:var(--tds-textarea-placeholder);transition:color 200ms ease}.textarea-input.sc-tds-textarea:disabled{background-color:var(--tds-textarea-disabled-background);color:var(--tds-textarea-disabled-color);cursor:not-allowed}.textarea-input.sc-tds-textarea:disabled::placeholder{color:var(--tds-textarea-disabled-placeholder)}.textarea-input.sc-tds-textarea::-webkit-resizer{display:none}.textarea-input.sc-tds-textarea:hover{border-bottom-color:var(--tds-textarea-border-bottom-hover)}.textarea-input.sc-tds-textarea:hover::placeholder{color:var(--tds-textarea-placeholder-hover)}.textarea-input.sc-tds-textarea:focus{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1;border-radius:0;border-bottom:1px solid transparent}.textarea-resizer-icon.sc-tds-textarea{color:var(--tds-textarea-resize-icon);position:absolute;display:block;bottom:2px;right:1px;padding-bottom:2px;padding-right:2px;pointer-events:none;background-color:var(--tds-textarea-background)}.textarea-resizer-icon.sc-tds-textarea svg.sc-tds-textarea{display:block}.textarea-label.sc-tds-textarea{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:block;z-index:1;margin-bottom:var(--tds-spacing-element-8);color:var(--tds-textarea-label-color)}.textarea-container.textarea-label-inside.sc-tds-textarea .textarea-label.sc-tds-textarea{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);transition:0.1s ease all;color:var(--tds-textarea-label-inside-color);position:absolute;top:var(--tds-spacing-element-20);left:var(--tds-spacing-element-16)}.textarea-container.textarea-label-inside.textarea-disabled.sc-tds-textarea .textarea-label.sc-tds-textarea{color:var(--tds-textarea-disabled-label)}.textarea-container.textarea-label-inside.sc-tds-textarea .textarea-input.sc-tds-textarea::placeholder{color:transparent}.textarea-container.textarea-label-inside.sc-tds-textarea .textarea-input.sc-tds-textarea .sc-tds-textarea::placeholder{color:transparent}.textarea-container.textarea-label-inside.sc-tds-textarea .textarea-input.sc-tds-textarea:focus::placeholder{transition:color 0.35s ease;color:var(--tds-textarea-placeholder)}.textarea-container.textarea-focus.textarea-label-inside.sc-tds-textarea .textarea-label.sc-tds-textarea{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);top:var(--tds-spacing-element-8)}.textarea-container.textarea-data.textarea-label-inside.sc-tds-textarea .textarea-label.sc-tds-textarea{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);top:var(--tds-spacing-element-8)}.textarea-textcounter.sc-tds-textarea{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-textarea-textcounter);float:right;flex-basis:100%;text-align:right;padding-top:var(--tds-spacing-element-4)}.textarea-textcounter.sc-tds-textarea .textfield-textcounter-divider.sc-tds-textarea{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-textarea-textcounter-divider)}.textarea-helper.sc-tds-textarea{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:flex;gap:8px;align-items:center;padding-top:var(--tds-spacing-element-4);color:var(--tds-textarea-helper);flex-grow:2;flex-basis:auto}.textarea-helper.sc-tds-textarea~.textarea-textcounter.sc-tds-textarea{flex-basis:auto}.textarea-success.sc-tds-textarea .textarea-input.sc-tds-textarea{border-bottom-color:var(--tds-textarea-border-bottom-success)}.textarea-error.sc-tds-textarea .textarea-input.sc-tds-textarea{border-bottom-color:var(--tds-textarea-border-bottom-error)}.textarea-error.sc-tds-textarea .textarea-helper.sc-tds-textarea{color:var(--tds-textarea-helper-error)}.textarea-disabled.sc-tds-textarea{cursor:not-allowed}.textarea-disabled.sc-tds-textarea .textarea-input.sc-tds-textarea{border-bottom-color:transparent;pointer-events:none;user-select:none}.textarea-disabled.sc-tds-textarea .textarea-label.sc-tds-textarea{color:var(--tds-textarea-disabled-label)}.textarea-disabled.sc-tds-textarea .textarea-helper.sc-tds-textarea{color:var(--tds-textarea-helper-disabled)}.textarea-disabled.sc-tds-textarea .textarea-textcounter.sc-tds-textarea{color:var(--tds-textarea-textcounter-disabled)}.textarea-disabled.sc-tds-textarea .textarea-textcounter.sc-tds-textarea .textfield-textcounter-divider.sc-tds-textarea{color:var(--tds-textarea-textcounter-disabled)}.textarea-icon__readonly.sc-tds-textarea{display:none;position:absolute;right:18px;top:18px;color:var(--tds-textarea-icon-read-only-color)}.textarea-icon__readonly-label.sc-tds-textarea{display:none;position:absolute;right:18px;top:48px;font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);padding:8px;color:var(--tds-textarea-icon-read-only-label-color);background-color:var(--tds-textarea-icon-read-only-label-background);white-space:nowrap;border-radius:4px 0 4px 4px}.textarea-readonly.sc-tds-textarea .textarea-icon__readonly.sc-tds-textarea{display:block}.textarea-readonly.sc-tds-textarea .textarea-input.sc-tds-textarea{border-bottom-color:var(--tds-textarea-border-bottom-read-only-color)}.textarea-readonly.sc-tds-textarea .textfield-container.sc-tds-textarea{background-color:transparent}.textarea-readonly.sc-tds-textarea:has(.textarea-icon__readonly) .textarea-input.sc-tds-textarea{padding-right:54px}";
|
|
9
10
|
const TdsTextareaStyle0 = textareaCss;
|
|
@@ -73,7 +74,7 @@ const TdsTextarea = class {
|
|
|
73
74
|
}
|
|
74
75
|
render() {
|
|
75
76
|
var _a;
|
|
76
|
-
return (index.h("div", { key: '
|
|
77
|
+
return (index.h("div", { key: '68eb00fd2e149732b8d47b72e8b60b2a30dd4d76', class: {
|
|
77
78
|
'textarea-container': true,
|
|
78
79
|
'textarea-label-inside': this.labelPosition === 'inside',
|
|
79
80
|
'textarea-focus': this.focusInput,
|
|
@@ -83,7 +84,7 @@ const TdsTextarea = class {
|
|
|
83
84
|
'textarea-data': this.value !== '',
|
|
84
85
|
[`textarea-${this.state}`]: this.state === 'error' || this.state === 'success',
|
|
85
86
|
'no-min-width': this.noMinWidth,
|
|
86
|
-
} }, this.labelPosition !== 'no-label' && (index.h("label", { key: '
|
|
87
|
+
} }, this.labelPosition !== 'no-label' && (index.h("label", { key: '883255abac1da6cec05779b200d5347b6fa740dc', htmlFor: `textarea-element-${this.uuid}`, class: 'textarea-label' }, this.label)), index.h("div", { key: 'c0eacdcf4b575d14ebd5905785dade6a3f151f0e', class: "textarea-wrapper" }, index.h("textarea", { key: '940ea2fc206cd567bd2f181e71236cce216ec669', id: `textarea-element-${this.uuid}`, class: 'textarea-input', ref: (inputEl) => {
|
|
87
88
|
this.textEl = inputEl;
|
|
88
89
|
}, 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) => {
|
|
89
90
|
if (!this.readOnly) {
|
|
@@ -93,8 +94,9 @@ const TdsTextarea = class {
|
|
|
93
94
|
if (!this.readOnly) {
|
|
94
95
|
this.handleBlur(event);
|
|
95
96
|
}
|
|
96
|
-
}, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": this.state
|
|
97
|
+
}, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": getAriaInvalid.getAriaInvalid(this.host, this.state), "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: 'b821544e95ac75383e05d5fd54b605306f5c6790', class: "textarea-resizer-icon" }, index.h("svg", { key: '11d6fa83c05cc2511b391bab21d229d057516571', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '95e8fd6c73070e318d0c5c589fa326ef3480e282', "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: '8628c6ab7310a8dcf7bb2e9f95660a93dc4da3b4', class: "textarea-icon__readonly" }, index.h("tds-tooltip", { key: '50f5e91b88f8e5e97ec656bed783949464ef8723', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), index.h("tds-icon", { key: '3c86f76ddfe425385c9c9b93b0ed3a1e0baf2b20', id: "readonly-tooltip", name: "edit_inactive", svgTitle: "inactive" })))), index.h("span", { key: '42d22b4fd71e5db663d775e930ae6cc7323a89ec', class: 'textarea-helper', "aria-live": "assertive", id: `textarea-helper-element-${this.uuid}` }, this.state === 'error' && this.helper && !this.readOnly && (index.h("tds-icon", { key: '088af2b39b4864f48e751d4b44c6d069ebf8ccd6', name: "error", size: "16px" })), this.helper), this.maxLength > 0 && (index.h("div", { key: 'f425416cfdaed26d6b7b7c619babe478bf63593b', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, index.h("span", { key: '4d68979b2b8a5601f3b62612f09eb5223cc0490b', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
|
|
97
98
|
}
|
|
99
|
+
get host() { return index.getElement(this); }
|
|
98
100
|
};
|
|
99
101
|
TdsTextarea.style = TdsTextareaStyle0;
|
|
100
102
|
|
|
@@ -1,26 +1,6 @@
|
|
|
1
1
|
/* Typography Usage mixins */
|
|
2
2
|
/* Centralized map of typography types */
|
|
3
3
|
/* Utility mixin */
|
|
4
|
-
:host {
|
|
5
|
-
/* Default values */
|
|
6
|
-
--tds-message-background: var(--background-elevation-layer-03);
|
|
7
|
-
--tds-message-background-error: var(--system-danger-subtle-03);
|
|
8
|
-
--tds-message-background-warning: var(--background-elevation-layer-03);
|
|
9
|
-
--tds-message-background-success: var(--background-elevation-layer-03);
|
|
10
|
-
/* Variant values */
|
|
11
|
-
}
|
|
12
|
-
:host .tds-mode-variant-primary {
|
|
13
|
-
--tds-message-background: var(--background-elevation-layer-03);
|
|
14
|
-
--tds-message-background-error: var(--system-danger-subtle-03);
|
|
15
|
-
--tds-message-background-warning: var(--background-elevation-layer-03);
|
|
16
|
-
--tds-message-background-success: var(--background-elevation-layer-03);
|
|
17
|
-
}
|
|
18
|
-
:host .tds-mode-variant-secondary {
|
|
19
|
-
--tds-message-background: var(--background-elevation-layer-02);
|
|
20
|
-
--tds-message-background-error: var(--system-danger-subtle-02);
|
|
21
|
-
--tds-message-background-warning: var(--background-elevation-layer-02);
|
|
22
|
-
--tds-message-background-success: var(--background-elevation-layer-02);
|
|
23
|
-
}
|
|
24
4
|
:host .wrapper {
|
|
25
5
|
display: flex;
|
|
26
6
|
padding: 16px;
|
|
@@ -37,12 +37,11 @@ export class TdsMessage {
|
|
|
37
37
|
render() {
|
|
38
38
|
const headerId = this.header ? `tds-message-header-${generateUniqueId()}` : undefined;
|
|
39
39
|
const contentId = !this.minimal ? `tds-message-content-${generateUniqueId()}` : undefined;
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '752eb725898add9261df7460b3043642e7e6a7ef', role: this.tdsAlertDialog, "aria-describedby": contentId, "aria-label": this.getAriaLabel(), class: { [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null } }, h("div", { key: 'd1346696f7f4d63d25cbacc0b3cbf60c39a54add', class: {
|
|
41
41
|
wrapper: true,
|
|
42
42
|
[this.variant]: true,
|
|
43
43
|
minimal: this.minimal,
|
|
44
|
-
|
|
45
|
-
} }, !this.noIcon && (h("tds-icon", { key: '7c95385da3ab0e887b6e955a302bc39b3aeaafe0', "aria-hidden": "true", "aria-label": `${this.variant}`, svgTitle: `${this.variant}`, name: this.getIconName(), size: "20px" })), h("div", { key: 'eed507b43c57eaafdeba40c25e9556bacbe0f166', class: `content` }, this.header && (h("div", { key: 'd6faa3f523f64f158a31e35a416f957c38bbcceb', class: "header", id: headerId }, this.header)), !this.minimal && (h("div", { key: '03c724a2bdbee954b9c48aa27a18444abfacafbb', class: "extended-message", id: contentId }, h("slot", { key: '017b634e145a514a2315880db6cfb712ddb254b0' })))))));
|
|
44
|
+
} }, !this.noIcon && (h("tds-icon", { key: '39d83a70a25d5ac07c3786f47989ce77b1a9b386', "aria-hidden": "true", "aria-label": `${this.variant}`, svgTitle: `${this.variant}`, name: this.getIconName(), size: "20px" })), h("div", { key: 'aeb139399975656ee15493dab9c2ac77e4f295a0', class: `content` }, this.header && (h("div", { key: 'd9a1e8b5d2513630ff9c0a4363d346dfe2ecfd09', class: "header", id: headerId }, this.header)), !this.minimal && (h("div", { key: 'dffbcdb31b11c4f6313609fac311991202b9f462', class: "extended-message", id: contentId }, h("slot", { key: '38578271864c5884c5a4a4c105ae44ef6d2caf07' })))))));
|
|
46
45
|
}
|
|
47
46
|
static get is() { return "tds-message"; }
|
|
48
47
|
static get encapsulation() { return "shadow"; }
|
|
@@ -20,21 +20,34 @@
|
|
|
20
20
|
text-align: left;
|
|
21
21
|
outline: none;
|
|
22
22
|
border: none;
|
|
23
|
-
border-left: 1px solid;
|
|
24
|
-
border-left-color: transparent;
|
|
25
23
|
}
|
|
26
|
-
:host ::slotted(*:focus-
|
|
24
|
+
:host ::slotted(*:focus-within)::before {
|
|
27
25
|
outline: 2px solid var(--tds-focus-outline-color);
|
|
28
26
|
box-shadow: 0 0 0 1px var(--tds-white);
|
|
29
27
|
outline-offset: 1px;
|
|
30
28
|
z-index: 1;
|
|
29
|
+
content: "";
|
|
30
|
+
position: absolute;
|
|
31
|
+
top: 3px;
|
|
32
|
+
bottom: 3px;
|
|
33
|
+
left: 3px;
|
|
34
|
+
right: 3px;
|
|
31
35
|
}
|
|
32
36
|
:host div:not(.selected) {
|
|
33
37
|
background-color: var(--tds-folder-tab-background);
|
|
38
|
+
position: relative;
|
|
39
|
+
}
|
|
40
|
+
:host div:not(.selected)::before {
|
|
41
|
+
content: "";
|
|
42
|
+
position: absolute;
|
|
43
|
+
left: 0;
|
|
44
|
+
top: 0;
|
|
45
|
+
bottom: 0;
|
|
46
|
+
width: 1px;
|
|
47
|
+
background-color: var(--tds-folder-tab-divider-color);
|
|
34
48
|
}
|
|
35
49
|
:host div:not(.selected) ::slotted(*) {
|
|
36
|
-
border-
|
|
37
|
-
border-top: 2px solid var(--tds-folder-tab-background);
|
|
50
|
+
border-top: 2px solid transparent;
|
|
38
51
|
color: var(--tds-folder-tab-item-color);
|
|
39
52
|
}
|
|
40
53
|
:host div:not(.selected):hover:not(.disabled) {
|
|
@@ -42,9 +55,12 @@
|
|
|
42
55
|
cursor: pointer;
|
|
43
56
|
}
|
|
44
57
|
:host div:not(.selected):hover:not(.disabled) ::slotted(*) {
|
|
45
|
-
border-top
|
|
58
|
+
border-top: 2px solid var(--tds-folder-tab-top-border-hover);
|
|
46
59
|
color: var(--tds-folder-tab-color);
|
|
47
60
|
}
|
|
61
|
+
:host div:not(.selected).disabled {
|
|
62
|
+
background-color: var(--tds-folder-tab-item-background-disabled);
|
|
63
|
+
}
|
|
48
64
|
:host div:not(.selected).disabled ::slotted(*) {
|
|
49
65
|
color: var(--tds-folder-tab-item-color-disabled);
|
|
50
66
|
}
|
|
@@ -63,7 +79,7 @@
|
|
|
63
79
|
}
|
|
64
80
|
:host .selected::after {
|
|
65
81
|
content: " ";
|
|
66
|
-
background-color: var(--tds-folder-tab-
|
|
82
|
+
background-color: var(--tds-folder-tab-divider-color);
|
|
67
83
|
width: 1px;
|
|
68
84
|
top: 0;
|
|
69
85
|
bottom: 0;
|
|
@@ -75,7 +91,17 @@
|
|
|
75
91
|
:host .selected ::slotted(*) {
|
|
76
92
|
color: var(--tds-folder-tab-color);
|
|
77
93
|
}
|
|
94
|
+
:host .selected:hover:not(.disabled) {
|
|
95
|
+
background-color: var(--tds-folder-tab-background-hover);
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
}
|
|
98
|
+
:host .selected:hover:not(.disabled) ::slotted(*) {
|
|
99
|
+
color: var(--tds-folder-tab-color);
|
|
100
|
+
}
|
|
78
101
|
|
|
79
|
-
:host(.first)
|
|
102
|
+
:host(.first) ::slotted(*) {
|
|
80
103
|
border-left-color: transparent;
|
|
104
|
+
}
|
|
105
|
+
:host(.first) .selected {
|
|
106
|
+
border-left: none;
|
|
81
107
|
}
|
|
@@ -53,12 +53,22 @@
|
|
|
53
53
|
:host .scroll-left-button:active {
|
|
54
54
|
background-color: var(--tds-folder-tabs-scroll-btn-background-active);
|
|
55
55
|
}
|
|
56
|
-
:host .scroll-right-button:focus,
|
|
57
|
-
:host .scroll-left-button:focus {
|
|
56
|
+
:host .scroll-right-button:focus-within::before,
|
|
57
|
+
:host .scroll-left-button:focus-within::before {
|
|
58
58
|
outline: 2px solid var(--tds-focus-outline-color);
|
|
59
59
|
box-shadow: 0 0 0 1px var(--tds-white);
|
|
60
60
|
outline-offset: 1px;
|
|
61
61
|
z-index: 1;
|
|
62
|
+
content: "";
|
|
63
|
+
position: absolute;
|
|
64
|
+
top: 3px;
|
|
65
|
+
bottom: 3px;
|
|
66
|
+
left: 3px;
|
|
67
|
+
right: 3px;
|
|
68
|
+
}
|
|
69
|
+
:host .scroll-right-button:focus,
|
|
70
|
+
:host .scroll-left-button:focus {
|
|
71
|
+
outline: 0;
|
|
62
72
|
}
|
|
63
73
|
:host .scroll-right-button svg,
|
|
64
74
|
:host .scroll-left-button svg {
|
|
@@ -23,13 +23,16 @@
|
|
|
23
23
|
padding: 20px 4px;
|
|
24
24
|
}
|
|
25
25
|
:host ::slotted(*:focus-visible)::before {
|
|
26
|
+
outline: 2px solid var(--tds-focus-outline-color);
|
|
27
|
+
box-shadow: 0 0 0 1px var(--tds-white);
|
|
28
|
+
outline-offset: 1px;
|
|
29
|
+
z-index: 1;
|
|
26
30
|
content: "";
|
|
27
31
|
position: absolute;
|
|
28
32
|
left: 0;
|
|
29
33
|
right: 0;
|
|
30
|
-
top:
|
|
31
|
-
bottom:
|
|
32
|
-
outline: 2px solid var(--tds-blue-400);
|
|
34
|
+
top: 3px;
|
|
35
|
+
bottom: 3px;
|
|
33
36
|
}
|
|
34
37
|
:host .inline-tab-item:not(.selected)::after {
|
|
35
38
|
width: 0%;
|
|
@@ -42,6 +45,9 @@
|
|
|
42
45
|
:host .inline-tab-item:hover {
|
|
43
46
|
cursor: pointer;
|
|
44
47
|
}
|
|
48
|
+
:host .inline-tab-item:hover ::slotted(*) {
|
|
49
|
+
color: var(--tds-inline-tabs-tab-color-hover);
|
|
50
|
+
}
|
|
45
51
|
:host .inline-tab-item:hover::after {
|
|
46
52
|
width: 100%;
|
|
47
53
|
}
|
|
@@ -65,20 +71,19 @@
|
|
|
65
71
|
width: 100%;
|
|
66
72
|
background-color: var(--tds-inline-tabs-tab-indicator-background-active);
|
|
67
73
|
}
|
|
68
|
-
:host .disabled {
|
|
69
|
-
color: var(--tds-inline-tabs-tab-color-disabled);
|
|
70
|
-
}
|
|
71
|
-
:host .disabled ::slotted(*) {
|
|
72
|
-
opacity: var(--tds-inline-tabs-tab-color-opacity-disabled);
|
|
73
|
-
}
|
|
74
74
|
:host .disabled::after {
|
|
75
75
|
content: none;
|
|
76
76
|
}
|
|
77
|
+
:host .disabled ::slotted(*) {
|
|
78
|
+
color: var(--tds-inline-tabs-tab-color-disabled);
|
|
79
|
+
}
|
|
77
80
|
:host .disabled ::slotted(*:hover) {
|
|
81
|
+
color: var(--tds-inline-tabs-tab-color-disabled);
|
|
78
82
|
cursor: not-allowed;
|
|
79
83
|
}
|
|
80
84
|
:host .disabled ::slotted(*:focus-visible) {
|
|
81
85
|
outline: none;
|
|
86
|
+
box-shadow: none;
|
|
82
87
|
}
|
|
83
88
|
|
|
84
89
|
:host(.last) {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
/* !important is needed here to prevent this from being overwritten by our CSS-reset. */
|
|
11
11
|
font: var(--tds-headline-07) !important;
|
|
12
12
|
letter-spacing: var(--tds-headline-07-ls) !important;
|
|
13
|
-
color: var(--tds-navigation-tabs-tab-color)
|
|
13
|
+
color: var(--tds-navigation-tabs-tab-color);
|
|
14
14
|
text-decoration: none;
|
|
15
15
|
display: block;
|
|
16
16
|
position: relative;
|
|
@@ -19,16 +19,19 @@
|
|
|
19
19
|
background-color: transparent;
|
|
20
20
|
border: 0;
|
|
21
21
|
width: 100%;
|
|
22
|
-
padding: 26px
|
|
22
|
+
padding: 26px 0;
|
|
23
23
|
}
|
|
24
24
|
:host ::slotted(*:focus-visible)::before {
|
|
25
25
|
content: "";
|
|
26
26
|
position: absolute;
|
|
27
27
|
left: 0;
|
|
28
28
|
right: 0;
|
|
29
|
-
top:
|
|
30
|
-
bottom:
|
|
31
|
-
outline: 2px solid var(--tds-
|
|
29
|
+
top: 3px;
|
|
30
|
+
bottom: 3px;
|
|
31
|
+
outline: 2px solid var(--tds-focus-outline-color);
|
|
32
|
+
box-shadow: 0 0 0 1px var(--tds-white);
|
|
33
|
+
outline-offset: 1px;
|
|
34
|
+
z-index: 1;
|
|
32
35
|
}
|
|
33
36
|
:host .navigation-tab-item:not(.selected)::after {
|
|
34
37
|
width: 0%;
|
|
@@ -36,11 +39,13 @@
|
|
|
36
39
|
}
|
|
37
40
|
:host .navigation-tab-item {
|
|
38
41
|
position: relative;
|
|
39
|
-
margin-right: 32px;
|
|
40
42
|
}
|
|
41
43
|
:host .navigation-tab-item:hover {
|
|
42
44
|
cursor: pointer;
|
|
43
45
|
}
|
|
46
|
+
:host .navigation-tab-item:hover ::slotted(*) {
|
|
47
|
+
color: var(--tds-navigation-tabs-tab-color-hover);
|
|
48
|
+
}
|
|
44
49
|
:host .navigation-tab-item:hover::after {
|
|
45
50
|
width: 100%;
|
|
46
51
|
}
|
|
@@ -57,6 +62,9 @@
|
|
|
57
62
|
background-color: var(--tds-navigation-tabs-tab-indicator-background-hover);
|
|
58
63
|
z-index: 1;
|
|
59
64
|
}
|
|
65
|
+
:host .navigation-tab-item:focus-visible::after {
|
|
66
|
+
bottom: 3px;
|
|
67
|
+
}
|
|
60
68
|
:host .selected ::slotted(*) {
|
|
61
69
|
color: var(--tds-navigation-tabs-tab-color-selected);
|
|
62
70
|
}
|
|
@@ -64,17 +72,15 @@
|
|
|
64
72
|
width: 100%;
|
|
65
73
|
background-color: var(--tds-navigation-tabs-tab-indicator-background-active);
|
|
66
74
|
}
|
|
67
|
-
:host .disabled {
|
|
68
|
-
color: var(--tds-navigation-tabs-tab-color-disabled);
|
|
69
|
-
}
|
|
70
75
|
:host .disabled ::slotted(*) {
|
|
71
|
-
|
|
76
|
+
color: var(--tds-navigation-tabs-tab-color-disabled);
|
|
72
77
|
}
|
|
73
78
|
:host .disabled::after {
|
|
74
79
|
content: none;
|
|
75
80
|
}
|
|
76
81
|
:host .disabled ::slotted(*:hover) {
|
|
77
82
|
cursor: not-allowed;
|
|
83
|
+
color: var(--tds-navigation-tabs-tab-color-disabled);
|
|
78
84
|
}
|
|
79
85
|
:host .disabled ::slotted(*:focus-visible) {
|
|
80
86
|
outline: none;
|
|
@@ -65,13 +65,23 @@
|
|
|
65
65
|
:host .scroll-left-button:active {
|
|
66
66
|
background-color: var(--tds-folder-tabs-scroll-btn-background-active);
|
|
67
67
|
}
|
|
68
|
-
:host .scroll-right-button:focus,
|
|
69
|
-
:host .scroll-left-button:focus {
|
|
68
|
+
:host .scroll-right-button:focus::before,
|
|
69
|
+
:host .scroll-left-button:focus::before {
|
|
70
|
+
content: "";
|
|
71
|
+
position: absolute;
|
|
72
|
+
left: 3px;
|
|
73
|
+
right: 3px;
|
|
74
|
+
top: 3px;
|
|
75
|
+
bottom: 3px;
|
|
70
76
|
outline: 2px solid var(--tds-focus-outline-color);
|
|
71
77
|
box-shadow: 0 0 0 1px var(--tds-white);
|
|
72
78
|
outline-offset: 1px;
|
|
73
79
|
z-index: 1;
|
|
74
80
|
}
|
|
81
|
+
:host .scroll-right-button:focus,
|
|
82
|
+
:host .scroll-left-button:focus {
|
|
83
|
+
outline: 0;
|
|
84
|
+
}
|
|
75
85
|
:host .scroll-right-button svg,
|
|
76
86
|
:host .scroll-left-button svg {
|
|
77
87
|
fill: var(--tds-folder-tabs-scroll-btn-color);
|