@nldd/design-system 0.10.0 → 0.11.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/custom-elements.json +739 -6
- package/dist/components/actions/button/button.d.ts +10 -0
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +23 -0
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +22 -0
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts +1 -0
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +20 -2
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +10 -0
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +23 -0
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +10 -3
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +1 -1
- package/dist/components/actions/split-button/split-button.d.ts +8 -0
- package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.js +20 -0
- package/dist/components/actions/split-button/split-button.js.map +1 -1
- package/dist/components/actions/split-button/split-button.template.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.template.js +4 -0
- package/dist/components/actions/split-button/split-button.template.js.map +1 -1
- package/dist/components/components.js +381 -390
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +3 -3
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +6 -21
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +3 -0
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts +14 -0
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +45 -6
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.js +13 -0
- package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.template.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.template.js +18 -2
- package/dist/components/content/tooltip/tooltip.template.js.map +1 -1
- package/dist/components/{icon-button-BVhiOwX9.js → icon-button-Cntrg4_E.js} +526 -61
- package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +2 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.js +29 -5
- package/dist/components/inputs/date-picker/date-picker.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +11 -0
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +30 -1
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +18 -0
- package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.js +12 -0
- package/dist/components/inputs/search-field/search-field.template.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +10 -0
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +25 -1
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.template.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.template.js +20 -3
- package/dist/components/inputs/segmented-control/segmented-control.template.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +13 -10
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +10 -0
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +25 -1
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +21 -7
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/layout/card/card.styles.js +4 -4
- package/dist/components/layout/container/container.d.ts +2 -0
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +9 -0
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/container/container.styles.d.ts.map +1 -1
- package/dist/components/layout/container/container.styles.js +13 -0
- package/dist/components/layout/container/container.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +9 -5
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +16 -15
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +2 -2
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +9 -9
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +16 -9
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +16 -9
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +23 -18
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js +19 -21
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +1 -1
- package/dist/components/status-and-feedback/notification/notification.styles.js +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +4 -4
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +3 -3
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +7 -5
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -1
- package/dist/css/themes/bruin.css +108 -64
- package/dist/css/themes/donkerblauw.css +108 -64
- package/dist/css/themes/donkerbruin.css +88 -64
- package/dist/css/themes/donkergeel.css +145 -94
- package/dist/css/themes/donkergroen.css +93 -64
- package/dist/css/themes/geel.css +145 -94
- package/dist/css/themes/groen.css +108 -64
- package/dist/css/themes/hemelblauw.css +108 -64
- package/dist/css/themes/lichtblauw.css +111 -64
- package/dist/css/themes/mintgroen.css +111 -64
- package/dist/css/themes/mosgroen.css +108 -64
- package/dist/css/themes/oranje.css +162 -99
- package/dist/css/themes/paars.css +115 -64
- package/dist/css/themes/robijnrood.css +159 -96
- package/dist/css/themes/rood.css +159 -96
- package/dist/css/themes/roze.css +118 -64
- package/dist/css/themes/violet.css +93 -64
- package/dist/css/themes.css +2039 -1247
- package/dist/css/variables.css +132 -66
- package/dist/nldd.min.js +1077 -903
- package/dist/types/vue.d.ts +104 -2
- package/dist/utilities/codemirror/theme.js +1 -1
- package/dist/utilities/codemirror/theme.js.map +1 -1
- package/dist/utilities/shortcut.d.ts +50 -0
- package/dist/utilities/shortcut.d.ts.map +1 -0
- package/dist/utilities/shortcut.js +77 -0
- package/dist/utilities/shortcut.js.map +1 -0
- package/package.json +1 -1
- package/dist/components/{icon-D_ZGezHx.js → icon-zNX9A6d3.js} +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
2
|
import { n as slottedReset, t as inheritedTextReset } from "./shadow-resets-CPa58rmc.js";
|
|
3
3
|
import { a as linkRel, i as linkHintKey, n as setTranslations, r as translate, t as withTranslations } from "./with-translations-C6QfP6_S.js";
|
|
4
|
-
import { t as
|
|
4
|
+
import { a as NLDDKeyboardShortcut, c as shortcutLabel, i as PopupAnchorController, l as shortcutsAvailable, n as NLDDTooltip, o as ShortcutAvailabilityController, r as NLDDActivityIndicator, s as hasShortcut, t as NLDDIconButton } from "./icon-button-Cntrg4_E.js";
|
|
5
5
|
import { t as reflectNonDefault } from "./reflect-non-default-OLaK60rT.js";
|
|
6
|
-
import {
|
|
7
|
-
import { t as NLDDIcon } from "./icon-
|
|
6
|
+
import { t as __decorate } from "./decorate-CO88j7Lc.js";
|
|
7
|
+
import { t as NLDDIcon } from "./icon-zNX9A6d3.js";
|
|
8
8
|
import { n as isPointerMode, r as isTouchMode, t as isKeyboardMode } from "./input-modality-DhTeUxKi.js";
|
|
9
9
|
import { n as queryBreakpoints, r as rootFontSize, t as breakpointPx } from "./breakpoints-Bpf2MgjM.js";
|
|
10
10
|
import { t as VisibilityMixin } from "./visibility-mixin-djNSG5ZN.js";
|
|
@@ -583,6 +583,28 @@ var buttonStyles = css`
|
|
|
583
583
|
--_button-block-padding: var(--primitives-space-4);
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
+
.button__shortcut {
|
|
587
|
+
display: flex;
|
|
588
|
+
flex-shrink: 0;
|
|
589
|
+
color: var(--_button-secondary-content-color);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.button:hover .button__shortcut {
|
|
593
|
+
@media (hover: hover) {
|
|
594
|
+
color: var(--_button-is-hovered-secondary-content-color);
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.button:active .button__shortcut {
|
|
599
|
+
color: var(--_button-is-active-secondary-content-color);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
@media (any-hover: none) {
|
|
603
|
+
.button__shortcut {
|
|
604
|
+
display: none;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
586
608
|
.button__start-icon,
|
|
587
609
|
.button__end-icon {
|
|
588
610
|
display: flex;
|
|
@@ -632,6 +654,19 @@ function renderContent(component) {
|
|
|
632
654
|
<span class="button__text">${component.text ? component.text : html`<slot name="text"></slot>`}</span>
|
|
633
655
|
${component.supportingText ? html`<span class="button__supporting-text">${component.supportingText}</span>` : nothing}
|
|
634
656
|
</span>
|
|
657
|
+
${hasShortcut(component) ? html`
|
|
658
|
+
<span class="button__shortcut">
|
|
659
|
+
<nldd-keyboard-shortcut
|
|
660
|
+
size="inherit"
|
|
661
|
+
appearance="simple"
|
|
662
|
+
color="inherit"
|
|
663
|
+
keys=${component.shortcut || nothing}
|
|
664
|
+
mac-keys=${component.shortcutMac || nothing}
|
|
665
|
+
windows-keys=${component.shortcutWindows || nothing}
|
|
666
|
+
linux-keys=${component.shortcutLinux || nothing}
|
|
667
|
+
></nldd-keyboard-shortcut>
|
|
668
|
+
</span>
|
|
669
|
+
` : nothing}
|
|
635
670
|
${component.endIcon ? html`
|
|
636
671
|
<span class="button__end-icon">
|
|
637
672
|
<nldd-icon icon=${component.endIcon}></nldd-icon>
|
|
@@ -645,14 +680,15 @@ function renderContent(component) {
|
|
|
645
680
|
` : nothing}
|
|
646
681
|
`;
|
|
647
682
|
}
|
|
648
|
-
function template$
|
|
683
|
+
function template$23(helpers) {
|
|
649
684
|
const content = renderContent(this);
|
|
650
685
|
const buttonClass = ["button", this.supportingText ? "has-supporting-text" : ""].filter(Boolean).join(" ");
|
|
651
686
|
const ariaExpanded = this.expandable || !!this.popupType ? String(this.expanded) : this.expanded ? "true" : nothing;
|
|
652
687
|
const hintKey = linkHintKey(this.href, this.target);
|
|
653
688
|
const linkHint = hintKey ? this._t(`components.button.${hintKey}`) : "";
|
|
654
689
|
const baseAriaLabel = this.accessibleLabel || (this.supportingText ? [this.text, this.supportingText].filter(Boolean).join(", ") : "");
|
|
655
|
-
const
|
|
690
|
+
const namedAriaLabel = baseAriaLabel ? [baseAriaLabel, shortcutLabel(this)].filter(Boolean).join(" ") : "";
|
|
691
|
+
const ariaLabel = namedAriaLabel ? [namedAriaLabel, linkHint].filter(Boolean).join(", ") : nothing;
|
|
656
692
|
const renderLinkHint = !!linkHint && !baseAriaLabel;
|
|
657
693
|
const ariaBusy = this.loading ? "true" : nothing;
|
|
658
694
|
const loadingIndicator = this.loading ? html`
|
|
@@ -828,6 +864,10 @@ function DescribedBy(Base) {
|
|
|
828
864
|
* @attr {string} start-icon - Icon name for the start icon (before text)
|
|
829
865
|
* @attr {string} end-icon - Icon name for the end icon (after text)
|
|
830
866
|
* @attr {string} accessible-label - Accessible label for the button, overrides text for screen readers
|
|
867
|
+
* @attr {string} shortcut - Keyboard shortcut hint shown right after the text, e.g. 'Cmd+S'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name, as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable. Keep it for the few main actions of a screen (save, search); a hint on every button is noise.
|
|
868
|
+
* @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
|
|
869
|
+
* @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
|
|
870
|
+
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
831
871
|
* @attr {string} href - When set, renders an <a> element instead of <button>
|
|
832
872
|
* @attr {string} target - Link target (e.g. '_blank'); only used when href is set. With '_blank' the button adds a visually hidden "opens in new tab" announcement for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off.
|
|
833
873
|
* @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
@@ -866,12 +906,17 @@ var _NLDDButton = class NLDDButton extends DescribedBy(withTranslations(LitEleme
|
|
|
866
906
|
this.startIcon = "";
|
|
867
907
|
this.endIcon = "";
|
|
868
908
|
this.accessibleLabel = "";
|
|
909
|
+
this.shortcut = "";
|
|
910
|
+
this.shortcutMac = "";
|
|
911
|
+
this.shortcutWindows = "";
|
|
912
|
+
this.shortcutLinux = "";
|
|
869
913
|
this.href = void 0;
|
|
870
914
|
this.target = void 0;
|
|
871
915
|
this.rel = void 0;
|
|
872
916
|
this._warnedA11y = false;
|
|
873
917
|
this._warnedFormId = null;
|
|
874
918
|
this._popup = new PopupAnchorController(this);
|
|
919
|
+
this._shortcutAvailability = new ShortcutAvailabilityController(this);
|
|
875
920
|
}
|
|
876
921
|
updated(changedProperties) {
|
|
877
922
|
if (changedProperties.has("maxWidth")) {
|
|
@@ -941,7 +986,7 @@ var _NLDDButton = class NLDDButton extends DescribedBy(withTranslations(LitEleme
|
|
|
941
986
|
return this.shadowRoot?.querySelector("button, a") ?? null;
|
|
942
987
|
}
|
|
943
988
|
render() {
|
|
944
|
-
return template$
|
|
989
|
+
return template$23.call(this, { handleClick: this._handleClick.bind(this) });
|
|
945
990
|
}
|
|
946
991
|
};
|
|
947
992
|
var NLDDButton = (_NLDDButton.styles = buttonStyles, _NLDDButton.formAssociated = true, _NLDDButton);
|
|
@@ -1033,6 +1078,25 @@ __decorate([property({
|
|
|
1033
1078
|
type: String,
|
|
1034
1079
|
attribute: "accessible-label"
|
|
1035
1080
|
})], NLDDButton.prototype, "accessibleLabel", void 0);
|
|
1081
|
+
__decorate([property({
|
|
1082
|
+
reflect: true,
|
|
1083
|
+
converter: reflectNonDefault("")
|
|
1084
|
+
})], NLDDButton.prototype, "shortcut", void 0);
|
|
1085
|
+
__decorate([property({
|
|
1086
|
+
reflect: true,
|
|
1087
|
+
attribute: "shortcut-mac",
|
|
1088
|
+
converter: reflectNonDefault("")
|
|
1089
|
+
})], NLDDButton.prototype, "shortcutMac", void 0);
|
|
1090
|
+
__decorate([property({
|
|
1091
|
+
reflect: true,
|
|
1092
|
+
attribute: "shortcut-windows",
|
|
1093
|
+
converter: reflectNonDefault("")
|
|
1094
|
+
})], NLDDButton.prototype, "shortcutWindows", void 0);
|
|
1095
|
+
__decorate([property({
|
|
1096
|
+
reflect: true,
|
|
1097
|
+
attribute: "shortcut-linux",
|
|
1098
|
+
converter: reflectNonDefault("")
|
|
1099
|
+
})], NLDDButton.prototype, "shortcutLinux", void 0);
|
|
1036
1100
|
__decorate([property({
|
|
1037
1101
|
type: String,
|
|
1038
1102
|
reflect: true
|
|
@@ -1174,7 +1238,7 @@ var splitButtonStyles = css`
|
|
|
1174
1238
|
`;
|
|
1175
1239
|
//#endregion
|
|
1176
1240
|
//#region src/components/actions/split-button/split-button.template.ts
|
|
1177
|
-
function template$
|
|
1241
|
+
function template$22() {
|
|
1178
1242
|
return html`
|
|
1179
1243
|
<div class="split-button">
|
|
1180
1244
|
<nldd-button
|
|
@@ -1182,6 +1246,10 @@ function template$23() {
|
|
|
1182
1246
|
size=${this.size}
|
|
1183
1247
|
text=${this.text}
|
|
1184
1248
|
start-icon=${this.icon || nothing}
|
|
1249
|
+
shortcut=${this.shortcut || nothing}
|
|
1250
|
+
shortcut-mac=${this.shortcutMac || nothing}
|
|
1251
|
+
shortcut-windows=${this.shortcutWindows || nothing}
|
|
1252
|
+
shortcut-linux=${this.shortcutLinux || nothing}
|
|
1185
1253
|
horizontal-alignment="left"
|
|
1186
1254
|
width="full"
|
|
1187
1255
|
no-highlight-border
|
|
@@ -1458,7 +1526,7 @@ var menuItemStyles = css`
|
|
|
1458
1526
|
/* ## Destructive */
|
|
1459
1527
|
|
|
1460
1528
|
:host([destructive]) {
|
|
1461
|
-
--_menu-item-is-highlighted-background-color: light-dark(var(--primitives-color-critical-
|
|
1529
|
+
--_menu-item-is-highlighted-background-color: light-dark(var(--primitives-color-critical-550), var(--primitives-color-critical-650));
|
|
1462
1530
|
--_menu-item-is-highlighted-content-color: var(--primitives-color-neutral-0);
|
|
1463
1531
|
--context-content-color: var(--_menu-item-is-destructive-content-color);
|
|
1464
1532
|
--context-content-secondary-color: var(--_menu-item-is-destructive-content-color);
|
|
@@ -1996,7 +2064,7 @@ var iconCellStyles = css`
|
|
|
1996
2064
|
`;
|
|
1997
2065
|
//#endregion
|
|
1998
2066
|
//#region src/components/lists-and-tables/cells/icon-cell/icon-cell.template.ts
|
|
1999
|
-
function template$
|
|
2067
|
+
function template$21() {
|
|
2000
2068
|
return html`
|
|
2001
2069
|
<span
|
|
2002
2070
|
part="icon"
|
|
@@ -2035,7 +2103,7 @@ var _NLDDIconCell = class NLDDIconCell extends VisibilityMixin(LitElement, "cell
|
|
|
2035
2103
|
this.icon = "";
|
|
2036
2104
|
}
|
|
2037
2105
|
render() {
|
|
2038
|
-
return template$
|
|
2106
|
+
return template$21.call(this);
|
|
2039
2107
|
}
|
|
2040
2108
|
};
|
|
2041
2109
|
var NLDDIconCell = (_NLDDIconCell.styles = iconCellStyles, _NLDDIconCell);
|
|
@@ -2380,7 +2448,7 @@ function renderQueryMark(text, query, mode = "predictive") {
|
|
|
2380
2448
|
}
|
|
2381
2449
|
//#endregion
|
|
2382
2450
|
//#region src/components/lists-and-tables/cells/text-cell/text-cell.template.ts
|
|
2383
|
-
function template$
|
|
2451
|
+
function template$20() {
|
|
2384
2452
|
return html`
|
|
2385
2453
|
<p
|
|
2386
2454
|
class="text-cell__overline"
|
|
@@ -2520,7 +2588,7 @@ var _NLDDTextCell = class NLDDTextCell extends VisibilityMixin(LitElement, "cell
|
|
|
2520
2588
|
else this.style.removeProperty("--_text-cell-min-height");
|
|
2521
2589
|
}
|
|
2522
2590
|
render() {
|
|
2523
|
-
return template$
|
|
2591
|
+
return template$20.call(this);
|
|
2524
2592
|
}
|
|
2525
2593
|
};
|
|
2526
2594
|
var NLDDTextCell = (_NLDDTextCell.styles = [textCellStyles], _NLDDTextCell);
|
|
@@ -2587,308 +2655,6 @@ __decorate([state()], NLDDTextCell.prototype, "_hasDefaultSlotted", void 0);
|
|
|
2587
2655
|
__decorate([state()], NLDDTextCell.prototype, "_hasSupportingTextSlotted", void 0);
|
|
2588
2656
|
NLDDTextCell = __decorate([customElement("nldd-text-cell")], NLDDTextCell);
|
|
2589
2657
|
//#endregion
|
|
2590
|
-
//#region src/components/content/keyboard-shortcut/keyboard-shortcut.styles.ts
|
|
2591
|
-
var keyboardShortcutStyles = css`
|
|
2592
|
-
:host {
|
|
2593
|
-
box-sizing: border-box;
|
|
2594
|
-
}
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
/* # Host */
|
|
2598
|
-
|
|
2599
|
-
:host {
|
|
2600
|
-
--_keyboard-shortcut-size: var(--primitives-space-24);
|
|
2601
|
-
--_keyboard-shortcut-inline-padding: var(--primitives-space-4);
|
|
2602
|
-
--_keyboard-shortcut-font-family: var(--primitives-font-family-monospace);
|
|
2603
|
-
--_keyboard-shortcut-font-size: var(--primitives-font-size-80);
|
|
2604
|
-
--_keyboard-shortcut-font-weight: var(--primitives-font-weight-body-regular);
|
|
2605
|
-
--_keyboard-shortcut-line-height: var(--primitives-line-height-flat);
|
|
2606
|
-
--_keyboard-shortcut-content-color: var(--semantics-content-color);
|
|
2607
|
-
--_keyboard-shortcut-separator-color: var(--semantics-content-secondary-color);
|
|
2608
|
-
--_keyboard-shortcut-highlight-border-color: light-dark(var(--primitives-color-neutral-150), var(--primitives-color-neutral-250));
|
|
2609
|
-
--_keyboard-shortcut-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
2610
|
-
--_keyboard-shortcut-border-width: var(--primitives-border-width-thin);
|
|
2611
|
-
--_keyboard-shortcut-corner-radius: var(--primitives-corner-radius-xs);
|
|
2612
|
-
|
|
2613
|
-
${inheritedTextReset}
|
|
2614
|
-
display: inline-flex;
|
|
2615
|
-
vertical-align: middle;
|
|
2616
|
-
}
|
|
2617
|
-
|
|
2618
|
-
:host([color="inherit"]) {
|
|
2619
|
-
--_keyboard-shortcut-content-color: currentColor;
|
|
2620
|
-
--_keyboard-shortcut-separator-color: currentColor;
|
|
2621
|
-
--_keyboard-shortcut-highlight-border-color: color-mix(in oklab, var(--semantics-content-contrast-color) 10%, transparent);
|
|
2622
|
-
--_keyboard-shortcut-background-color: color-mix(in oklab, var(--semantics-content-contrast-color) 20%, transparent);
|
|
2623
|
-
}
|
|
2624
|
-
|
|
2625
|
-
:host([size="sm"]) {
|
|
2626
|
-
--_keyboard-shortcut-size: var(--primitives-space-20);
|
|
2627
|
-
--_keyboard-shortcut-font-size: var(--primitives-font-size-70);
|
|
2628
|
-
}
|
|
2629
|
-
|
|
2630
|
-
:host([size="inherit"]) {
|
|
2631
|
-
--_keyboard-shortcut-size: 1.5em;
|
|
2632
|
-
--_keyboard-shortcut-inline-padding: 0.35em;
|
|
2633
|
-
--_keyboard-shortcut-font-size: 0.75em;
|
|
2634
|
-
}
|
|
2635
|
-
|
|
2636
|
-
:host([appearance="simple"]) {
|
|
2637
|
-
--_keyboard-shortcut-font-family: var(--primitives-font-family-body);
|
|
2638
|
-
--_keyboard-shortcut-font-size: var(--primitives-font-size-100);
|
|
2639
|
-
}
|
|
2640
|
-
|
|
2641
|
-
:host([appearance="simple"][size="sm"]) {
|
|
2642
|
-
--_keyboard-shortcut-font-size: var(--primitives-font-size-90);
|
|
2643
|
-
}
|
|
2644
|
-
|
|
2645
|
-
:host([appearance="simple"][size="inherit"]) {
|
|
2646
|
-
--_keyboard-shortcut-font-size: inherit;
|
|
2647
|
-
}
|
|
2648
|
-
|
|
2649
|
-
:host([hidden]) {
|
|
2650
|
-
display: none;
|
|
2651
|
-
}
|
|
2652
|
-
|
|
2653
|
-
@media (any-hover: none) {
|
|
2654
|
-
:host(:not([always-visible])) {
|
|
2655
|
-
display: none;
|
|
2656
|
-
}
|
|
2657
|
-
}
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
/* # Block */
|
|
2661
|
-
|
|
2662
|
-
.keyboard-shortcut {
|
|
2663
|
-
display: inline-flex;
|
|
2664
|
-
gap: var(--primitives-space-2);
|
|
2665
|
-
align-items: center;
|
|
2666
|
-
}
|
|
2667
|
-
|
|
2668
|
-
:host([size="inherit"]) .keyboard-shortcut {
|
|
2669
|
-
position: relative;
|
|
2670
|
-
top: -0.05em;
|
|
2671
|
-
}
|
|
2672
|
-
|
|
2673
|
-
:host([size="inherit"][appearance="simple"]) .keyboard-shortcut {
|
|
2674
|
-
position: static;
|
|
2675
|
-
}
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
/* # Elements */
|
|
2679
|
-
|
|
2680
|
-
.keyboard-shortcut__key {
|
|
2681
|
-
box-sizing: border-box;
|
|
2682
|
-
display: inline-flex;
|
|
2683
|
-
box-shadow: inset 0 0 0 var(--_keyboard-shortcut-border-width) var(--_keyboard-shortcut-highlight-border-color);
|
|
2684
|
-
border-radius: var(--_keyboard-shortcut-corner-radius);
|
|
2685
|
-
background-color: var(--_keyboard-shortcut-background-color);
|
|
2686
|
-
min-width: var(--_keyboard-shortcut-size);
|
|
2687
|
-
height: var(--_keyboard-shortcut-size);
|
|
2688
|
-
padding: 0 var(--_keyboard-shortcut-inline-padding);
|
|
2689
|
-
align-items: center;
|
|
2690
|
-
justify-content: center;
|
|
2691
|
-
color: var(--_keyboard-shortcut-content-color);
|
|
2692
|
-
font-family: var(--_keyboard-shortcut-font-family);
|
|
2693
|
-
font-size: var(--_keyboard-shortcut-font-size);
|
|
2694
|
-
font-weight: var(--_keyboard-shortcut-font-weight);
|
|
2695
|
-
line-height: var(--_keyboard-shortcut-line-height);
|
|
2696
|
-
white-space: nowrap;
|
|
2697
|
-
}
|
|
2698
|
-
|
|
2699
|
-
:host([appearance="simple"]) .keyboard-shortcut {
|
|
2700
|
-
gap: 0;
|
|
2701
|
-
}
|
|
2702
|
-
|
|
2703
|
-
:host([appearance="simple"]) .keyboard-shortcut__key {
|
|
2704
|
-
box-shadow: none;
|
|
2705
|
-
background-color: transparent;
|
|
2706
|
-
border-radius: 0;
|
|
2707
|
-
min-width: 0;
|
|
2708
|
-
height: auto;
|
|
2709
|
-
padding: 0;
|
|
2710
|
-
}
|
|
2711
|
-
|
|
2712
|
-
@media (forced-colors: active) {
|
|
2713
|
-
.keyboard-shortcut__key {
|
|
2714
|
-
color: CanvasText;
|
|
2715
|
-
}
|
|
2716
|
-
|
|
2717
|
-
:host(:not([appearance="simple"])) .keyboard-shortcut__key {
|
|
2718
|
-
border: var(--_keyboard-shortcut-border-width) solid CanvasText;
|
|
2719
|
-
background-color: Canvas;
|
|
2720
|
-
}
|
|
2721
|
-
}
|
|
2722
|
-
|
|
2723
|
-
.keyboard-shortcut__separator {
|
|
2724
|
-
color: var(--_keyboard-shortcut-separator-color);
|
|
2725
|
-
font-family: var(--_keyboard-shortcut-font-family);
|
|
2726
|
-
font-size: var(--_keyboard-shortcut-font-size);
|
|
2727
|
-
font-weight: var(--_keyboard-shortcut-font-weight);
|
|
2728
|
-
line-height: var(--_keyboard-shortcut-line-height);
|
|
2729
|
-
}
|
|
2730
|
-
`;
|
|
2731
|
-
//#endregion
|
|
2732
|
-
//#region src/components/content/keyboard-shortcut/keyboard-shortcut.template.ts
|
|
2733
|
-
function template$20(component) {
|
|
2734
|
-
const keys = component._parsedKeys;
|
|
2735
|
-
if (keys.length === 0) return html`
|
|
2736
|
-
<kbd class="keyboard-shortcut">
|
|
2737
|
-
<slot></slot>
|
|
2738
|
-
</kbd>
|
|
2739
|
-
`;
|
|
2740
|
-
return html`
|
|
2741
|
-
<kbd class="keyboard-shortcut">
|
|
2742
|
-
${keys.map((key, index) => html`
|
|
2743
|
-
${index > 0 ? html`<span class="keyboard-shortcut__separator"
|
|
2744
|
-
aria-hidden="true"
|
|
2745
|
-
>+</span>` : ""}
|
|
2746
|
-
<kbd class="keyboard-shortcut__key">${key}</kbd>
|
|
2747
|
-
`)}
|
|
2748
|
-
</kbd>
|
|
2749
|
-
`;
|
|
2750
|
-
}
|
|
2751
|
-
//#endregion
|
|
2752
|
-
//#region src/utilities/os.ts
|
|
2753
|
-
var cached = null;
|
|
2754
|
-
var override = null;
|
|
2755
|
-
function classify(platform) {
|
|
2756
|
-
const p = platform.toLowerCase();
|
|
2757
|
-
if (/mac|iphone|ipad|ipod|ios/.test(p)) return "mac";
|
|
2758
|
-
if (/win/.test(p)) return "windows";
|
|
2759
|
-
if (/android/.test(p)) return "other";
|
|
2760
|
-
if (/linux|cros/.test(p)) return "linux";
|
|
2761
|
-
return "other";
|
|
2762
|
-
}
|
|
2763
|
-
function detectOS() {
|
|
2764
|
-
if (override !== null) return override;
|
|
2765
|
-
if (cached !== null) return cached;
|
|
2766
|
-
if (typeof navigator === "undefined") {
|
|
2767
|
-
cached = "other";
|
|
2768
|
-
return cached;
|
|
2769
|
-
}
|
|
2770
|
-
const nav = navigator;
|
|
2771
|
-
cached = classify(nav.userAgentData?.platform || nav.platform || "");
|
|
2772
|
-
return cached;
|
|
2773
|
-
}
|
|
2774
|
-
//#endregion
|
|
2775
|
-
//#region src/components/content/keyboard-shortcut/keyboard-shortcut.ts
|
|
2776
|
-
/**
|
|
2777
|
-
* Nederlandse Digitale Dienst Keyboard Shortcut Component (Lit + TypeScript)
|
|
2778
|
-
*
|
|
2779
|
-
* Shows a key combination (such as Cmd+K or Ctrl+Shift+P) in one combined
|
|
2780
|
-
* container with a semantic <kbd> element per key.
|
|
2781
|
-
*
|
|
2782
|
-
* On touch-only devices (no hover-capable input) the shortcut is hidden by
|
|
2783
|
-
* default, because it cannot be invoked there. Use the `always-visible`
|
|
2784
|
-
* attribute when the shortcut is purely informative and should stay visible.
|
|
2785
|
-
*
|
|
2786
|
-
* For cross-platform shortcuts you can set `mac-keys`, `windows-keys` and
|
|
2787
|
-
* `linux-keys`. The component picks the right one from the detected OS, with
|
|
2788
|
-
* `keys` as the fallback for unknown platforms.
|
|
2789
|
-
*
|
|
2790
|
-
* @element nldd-keyboard-shortcut
|
|
2791
|
-
* @attr {string} keys - Keys separated by '+' (e.g. 'Cmd+K' or 'Ctrl+Shift+P').
|
|
2792
|
-
* Use '+++' for a literal '+' key: 'Ctrl+++' becomes 'Ctrl' + '+'. For more
|
|
2793
|
-
* complex cases (a combo with several '+' keys, for instance) use the default
|
|
2794
|
-
* slot with your own <kbd> elements instead of the keys attribute.
|
|
2795
|
-
* @attr {string} mac-keys - Optional override for macOS (iPhone/iPad/iPod included).
|
|
2796
|
-
* @attr {string} windows-keys - Optional override for Windows.
|
|
2797
|
-
* @attr {string} linux-keys - Optional override for Linux/ChromeOS.
|
|
2798
|
-
* @attr {string} size - Size: 'sm' | 'md' | 'inherit' (default: 'md'). 'inherit' takes the
|
|
2799
|
-
* font-size from the container; in the box variant the keycaps then scale along in em.
|
|
2800
|
-
* @attr {string} appearance - 'box' (default) shows each key as a keycap with a fill and a
|
|
2801
|
-
* highlight edge. 'simple' shows the keys as plain text with separators: lighter, for
|
|
2802
|
-
* inline use such as in a menu item.
|
|
2803
|
-
* @attr {boolean} always-visible - Show on touch-only devices too, where shortcuts cannot be invoked.
|
|
2804
|
-
* @attr {string} color - 'neutral' (default) uses the component colors of its own. 'inherit'
|
|
2805
|
-
* lets the keys and separators follow the surrounding text color (currentColor), with a
|
|
2806
|
-
* translucent contrast fill and highlight edge. Useful on a filled surface color or a
|
|
2807
|
-
* highlighted row.
|
|
2808
|
-
* @attr {'mac'|'windows'|'linux'|'other'} debug-os - Development aid: overrides the OS
|
|
2809
|
-
* detection for this instance, so you can show several platform variants side by side in
|
|
2810
|
-
* Storybook or documentation. Not meant for production use; leave it empty (default) so
|
|
2811
|
-
* the real OS detection applies.
|
|
2812
|
-
*
|
|
2813
|
-
* @slot - Optional custom <kbd> elements. Ignored when keys is set.
|
|
2814
|
-
*/
|
|
2815
|
-
var _NLDDKeyboardShortcut = class NLDDKeyboardShortcut extends LitElement {
|
|
2816
|
-
constructor(..._args) {
|
|
2817
|
-
super(..._args);
|
|
2818
|
-
this.keys = "";
|
|
2819
|
-
this.macKeys = "";
|
|
2820
|
-
this.windowsKeys = "";
|
|
2821
|
-
this.linuxKeys = "";
|
|
2822
|
-
this.size = "md";
|
|
2823
|
-
this.appearance = "box";
|
|
2824
|
-
this.color = "neutral";
|
|
2825
|
-
this.alwaysVisible = false;
|
|
2826
|
-
this.debugOS = "";
|
|
2827
|
-
}
|
|
2828
|
-
/** @internal Resolved OS — the debug override when set, else detection. */
|
|
2829
|
-
get _resolvedOS() {
|
|
2830
|
-
return this.debugOS || detectOS();
|
|
2831
|
-
}
|
|
2832
|
-
get _resolvedKeys() {
|
|
2833
|
-
const os = this._resolvedOS;
|
|
2834
|
-
if (os === "mac" && this.macKeys) return this.macKeys;
|
|
2835
|
-
if (os === "windows" && this.windowsKeys) return this.windowsKeys;
|
|
2836
|
-
if (os === "linux" && this.linuxKeys) return this.linuxKeys;
|
|
2837
|
-
return this.keys;
|
|
2838
|
-
}
|
|
2839
|
-
get _parsedKeys() {
|
|
2840
|
-
const spec = this._resolvedKeys;
|
|
2841
|
-
if (!spec) return [];
|
|
2842
|
-
const MARKER = "\0";
|
|
2843
|
-
return spec.replace(/\+\+\+/g, `+${MARKER}+`).split("+").map((k) => k.trim().replace(new RegExp(MARKER, "g"), "+")).filter(Boolean);
|
|
2844
|
-
}
|
|
2845
|
-
render() {
|
|
2846
|
-
return template$20(this);
|
|
2847
|
-
}
|
|
2848
|
-
};
|
|
2849
|
-
var NLDDKeyboardShortcut = (_NLDDKeyboardShortcut.styles = keyboardShortcutStyles, _NLDDKeyboardShortcut);
|
|
2850
|
-
__decorate([property({
|
|
2851
|
-
reflect: true,
|
|
2852
|
-
converter: reflectNonDefault("")
|
|
2853
|
-
})], NLDDKeyboardShortcut.prototype, "keys", void 0);
|
|
2854
|
-
__decorate([property({
|
|
2855
|
-
reflect: true,
|
|
2856
|
-
attribute: "mac-keys",
|
|
2857
|
-
converter: reflectNonDefault("")
|
|
2858
|
-
})], NLDDKeyboardShortcut.prototype, "macKeys", void 0);
|
|
2859
|
-
__decorate([property({
|
|
2860
|
-
reflect: true,
|
|
2861
|
-
attribute: "windows-keys",
|
|
2862
|
-
converter: reflectNonDefault("")
|
|
2863
|
-
})], NLDDKeyboardShortcut.prototype, "windowsKeys", void 0);
|
|
2864
|
-
__decorate([property({
|
|
2865
|
-
reflect: true,
|
|
2866
|
-
attribute: "linux-keys",
|
|
2867
|
-
converter: reflectNonDefault("")
|
|
2868
|
-
})], NLDDKeyboardShortcut.prototype, "linuxKeys", void 0);
|
|
2869
|
-
__decorate([property({
|
|
2870
|
-
reflect: true,
|
|
2871
|
-
converter: reflectNonDefault("md")
|
|
2872
|
-
})], NLDDKeyboardShortcut.prototype, "size", void 0);
|
|
2873
|
-
__decorate([property({
|
|
2874
|
-
reflect: true,
|
|
2875
|
-
converter: reflectNonDefault("box")
|
|
2876
|
-
})], NLDDKeyboardShortcut.prototype, "appearance", void 0);
|
|
2877
|
-
__decorate([property({
|
|
2878
|
-
reflect: true,
|
|
2879
|
-
converter: reflectNonDefault("neutral")
|
|
2880
|
-
})], NLDDKeyboardShortcut.prototype, "color", void 0);
|
|
2881
|
-
__decorate([property({
|
|
2882
|
-
type: Boolean,
|
|
2883
|
-
reflect: true,
|
|
2884
|
-
attribute: "always-visible"
|
|
2885
|
-
})], NLDDKeyboardShortcut.prototype, "alwaysVisible", void 0);
|
|
2886
|
-
__decorate([property({
|
|
2887
|
-
type: String,
|
|
2888
|
-
attribute: "debug-os"
|
|
2889
|
-
})], NLDDKeyboardShortcut.prototype, "debugOS", void 0);
|
|
2890
|
-
NLDDKeyboardShortcut = __decorate([customElement("nldd-keyboard-shortcut")], NLDDKeyboardShortcut);
|
|
2891
|
-
//#endregion
|
|
2892
2658
|
//#region src/components/status-and-feedback/inline-dialog/inline-dialog.styles.ts
|
|
2893
2659
|
var inlineDialogStyles = css`
|
|
2894
2660
|
:host {
|
|
@@ -2930,7 +2696,7 @@ var inlineDialogStyles = css`
|
|
|
2930
2696
|
}
|
|
2931
2697
|
|
|
2932
2698
|
:host([icon-color="accent"]) {
|
|
2933
|
-
--_inline-dialog-icon-color:
|
|
2699
|
+
--_inline-dialog-icon-color: var(--components-inline-dialog-icon-color);
|
|
2934
2700
|
}
|
|
2935
2701
|
|
|
2936
2702
|
:host([icon-color="critical"]) {
|
|
@@ -4902,6 +4668,10 @@ if (!customElements.get("nldd-menu")) customElements.define("nldd-menu", NLDDMen
|
|
|
4902
4668
|
* @attr {string} width - Width mode: 'full' (stretches to container) or any CSS length; the main action button fills the available space
|
|
4903
4669
|
* @attr {string} text - Button text for the primary action
|
|
4904
4670
|
* @attr {string} icon - Icon name shown before the text on the primary action button
|
|
4671
|
+
* @attr {string} shortcut - Keyboard shortcut hint for the primary action, shown right after its text, e.g. 'Cmd+S'. Forwarded to the inner nldd-button; display only, wire up the handling in your app.
|
|
4672
|
+
* @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
|
|
4673
|
+
* @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
|
|
4674
|
+
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
4905
4675
|
* @attr {object} translations - Translations; unset keys fall back to Dutch
|
|
4906
4676
|
*
|
|
4907
4677
|
* @slot - A single `nldd-menu` or `nldd-popover` that the chevron opens.
|
|
@@ -4917,6 +4687,10 @@ var _NLDDSplitButton = class NLDDSplitButton extends LitElement {
|
|
|
4917
4687
|
this.disabled = false;
|
|
4918
4688
|
this.width = "";
|
|
4919
4689
|
this.text = "";
|
|
4690
|
+
this.shortcut = "";
|
|
4691
|
+
this.shortcutMac = "";
|
|
4692
|
+
this.shortcutWindows = "";
|
|
4693
|
+
this.shortcutLinux = "";
|
|
4920
4694
|
this.icon = "";
|
|
4921
4695
|
this.translations = {};
|
|
4922
4696
|
this._menuIsOpen = false;
|
|
@@ -4971,7 +4745,7 @@ var _NLDDSplitButton = class NLDDSplitButton extends LitElement {
|
|
|
4971
4745
|
}
|
|
4972
4746
|
}
|
|
4973
4747
|
render() {
|
|
4974
|
-
return template$
|
|
4748
|
+
return template$22.call(this);
|
|
4975
4749
|
}
|
|
4976
4750
|
};
|
|
4977
4751
|
var NLDDSplitButton = (_NLDDSplitButton.styles = splitButtonStyles, _NLDDSplitButton);
|
|
@@ -4995,6 +4769,25 @@ __decorate([property({
|
|
|
4995
4769
|
reflect: true,
|
|
4996
4770
|
converter: reflectNonDefault("")
|
|
4997
4771
|
})], NLDDSplitButton.prototype, "text", void 0);
|
|
4772
|
+
__decorate([property({
|
|
4773
|
+
reflect: true,
|
|
4774
|
+
converter: reflectNonDefault("")
|
|
4775
|
+
})], NLDDSplitButton.prototype, "shortcut", void 0);
|
|
4776
|
+
__decorate([property({
|
|
4777
|
+
reflect: true,
|
|
4778
|
+
attribute: "shortcut-mac",
|
|
4779
|
+
converter: reflectNonDefault("")
|
|
4780
|
+
})], NLDDSplitButton.prototype, "shortcutMac", void 0);
|
|
4781
|
+
__decorate([property({
|
|
4782
|
+
reflect: true,
|
|
4783
|
+
attribute: "shortcut-windows",
|
|
4784
|
+
converter: reflectNonDefault("")
|
|
4785
|
+
})], NLDDSplitButton.prototype, "shortcutWindows", void 0);
|
|
4786
|
+
__decorate([property({
|
|
4787
|
+
reflect: true,
|
|
4788
|
+
attribute: "shortcut-linux",
|
|
4789
|
+
converter: reflectNonDefault("")
|
|
4790
|
+
})], NLDDSplitButton.prototype, "shortcutLinux", void 0);
|
|
4998
4791
|
__decorate([property({ type: String })], NLDDSplitButton.prototype, "icon", void 0);
|
|
4999
4792
|
__decorate([property({ type: Object })], NLDDSplitButton.prototype, "translations", void 0);
|
|
5000
4793
|
__decorate([query(".split-button__popup-button")], NLDDSplitButton.prototype, "_popupButtonWrapper", void 0);
|
|
@@ -7919,6 +7712,7 @@ var containerStyles = css`
|
|
|
7919
7712
|
--_container-width: 100%;
|
|
7920
7713
|
--_container-min-width: auto;
|
|
7921
7714
|
--_container-max-width: none;
|
|
7715
|
+
--_container-min-height: auto;
|
|
7922
7716
|
--_container-justify-content: initial;
|
|
7923
7717
|
--_container-justify-items: initial;
|
|
7924
7718
|
--_container-align-items: initial;
|
|
@@ -7981,6 +7775,7 @@ var containerStyles = css`
|
|
|
7981
7775
|
.container {
|
|
7982
7776
|
container-type: inline-size;
|
|
7983
7777
|
box-sizing: border-box;
|
|
7778
|
+
min-height: var(--_container-min-height);
|
|
7984
7779
|
padding-top: var(--_container-padding-top);
|
|
7985
7780
|
padding-right: var(--_container-padding-right);
|
|
7986
7781
|
padding-bottom: var(--_container-padding-bottom);
|
|
@@ -8033,6 +7828,11 @@ var containerStyles = css`
|
|
|
8033
7828
|
container-type: normal;
|
|
8034
7829
|
}
|
|
8035
7830
|
|
|
7831
|
+
:host([min-height]) .container {
|
|
7832
|
+
display: flex;
|
|
7833
|
+
flex-direction: column;
|
|
7834
|
+
}
|
|
7835
|
+
|
|
8036
7836
|
|
|
8037
7837
|
/* # Inner — actual layout */
|
|
8038
7838
|
|
|
@@ -8046,6 +7846,12 @@ var containerStyles = css`
|
|
|
8046
7846
|
gap: var(--_container-gap);
|
|
8047
7847
|
}
|
|
8048
7848
|
|
|
7849
|
+
:host([min-height]) .container__inner {
|
|
7850
|
+
flex-grow: 1;
|
|
7851
|
+
flex-shrink: 1;
|
|
7852
|
+
flex-basis: auto;
|
|
7853
|
+
}
|
|
7854
|
+
|
|
8049
7855
|
:host([layout="row"]) .container__inner {
|
|
8050
7856
|
flex-direction: row;
|
|
8051
7857
|
}
|
|
@@ -8332,6 +8138,7 @@ function spacingToValue(value, element, attribute) {
|
|
|
8332
8138
|
* @attr {string} width - 'full' (default, fills the parent) | 'fit-content' | a CSS length (e.g. '480px'). A container narrower than its parent stays where its parent puts it; use the parent's horizontal-alignment to move it. A 'fit-content' container takes its width from its content, so it cannot measure itself: its breakpoint padding, gap and column count follow the container around it.
|
|
8333
8139
|
* @attr {string} min-width - Minimum width as a CSS length (e.g. '280px')
|
|
8334
8140
|
* @attr {string} max-width - Maximum width as a CSS length (e.g. '480px')
|
|
8141
|
+
* @attr {string} min-height - Minimum height as a CSS length (e.g. '240px'), padding included. Reserves the room that content still on its way will take; vertical-alignment then places the children within it.
|
|
8335
8142
|
* @attr {string} gap - Gap between children. One distance for all of them, so it fits children of one kind; for a stack of different kinds, space each seam with nldd-spacer instead.
|
|
8336
8143
|
* @attr {string} sm-gap - Gap at sm breakpoint
|
|
8337
8144
|
* @attr {string} md-gap - Gap at md breakpoint
|
|
@@ -8404,6 +8211,7 @@ var NLDDContainer = (_NLDDContainer = class NLDDContainer extends LitElement {
|
|
|
8404
8211
|
this.width = "";
|
|
8405
8212
|
this.minWidth = "";
|
|
8406
8213
|
this.maxWidth = "";
|
|
8214
|
+
this.minHeight = "";
|
|
8407
8215
|
this.gap = void 0;
|
|
8408
8216
|
this.smGap = void 0;
|
|
8409
8217
|
this.mdGap = void 0;
|
|
@@ -8472,6 +8280,8 @@ var NLDDContainer = (_NLDDContainer = class NLDDContainer extends LitElement {
|
|
|
8472
8280
|
else this.style.removeProperty("--_container-min-width");
|
|
8473
8281
|
if (this.maxWidth) this.style.setProperty("--_container-max-width", this.maxWidth);
|
|
8474
8282
|
else this.style.removeProperty("--_container-max-width");
|
|
8283
|
+
if (this.minHeight) this.style.setProperty("--_container-min-height", this.minHeight);
|
|
8284
|
+
else this.style.removeProperty("--_container-min-height");
|
|
8475
8285
|
}
|
|
8476
8286
|
writeCustomProperties() {
|
|
8477
8287
|
const setProp = (name, value) => {
|
|
@@ -8596,6 +8406,11 @@ __decorate([property({
|
|
|
8596
8406
|
reflect: true,
|
|
8597
8407
|
attribute: "max-width"
|
|
8598
8408
|
})], NLDDContainer.prototype, "maxWidth", void 0);
|
|
8409
|
+
__decorate([property({
|
|
8410
|
+
type: String,
|
|
8411
|
+
reflect: true,
|
|
8412
|
+
attribute: "min-height"
|
|
8413
|
+
})], NLDDContainer.prototype, "minHeight", void 0);
|
|
8599
8414
|
__decorate([property({
|
|
8600
8415
|
type: String,
|
|
8601
8416
|
reflect: true
|
|
@@ -11985,7 +11800,7 @@ var baseTheme = EditorView.theme({
|
|
|
11985
11800
|
".cm-line": { padding: "0" },
|
|
11986
11801
|
".cm-cursor, .cm-dropCursor": { borderLeftColor: "var(--semantics-content-color)" },
|
|
11987
11802
|
".cm-placeholder": { color: "var(--semantics-input-fields-placeholder-color)" },
|
|
11988
|
-
"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: "
|
|
11803
|
+
"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: "var(--semantics-text-selection-background-color)" },
|
|
11989
11804
|
".cm-gutters": {
|
|
11990
11805
|
border: "none",
|
|
11991
11806
|
backgroundColor: "transparent",
|
|
@@ -19111,6 +18926,7 @@ var codeEditorStyles = css`
|
|
|
19111
18926
|
|
|
19112
18927
|
:host {
|
|
19113
18928
|
--_code-editor-caret-width: var(--primitives-border-width-regular);
|
|
18929
|
+
--_code-editor-caret-color: var(--components-code-editor-caret-color);
|
|
19114
18930
|
--_code-editor-corner-radius: 0;
|
|
19115
18931
|
--_code-editor-background-color: transparent;
|
|
19116
18932
|
--_code-editor-border-color: transparent;
|
|
@@ -19211,7 +19027,7 @@ var codeEditorStyles = css`
|
|
|
19211
19027
|
/* Accent caret. The doubled class is purely for specificity — it outweighs
|
|
19212
19028
|
CodeMirror's theme cursor color without depending on an attribute. */
|
|
19213
19029
|
:host .cm-cursor.cm-cursor {
|
|
19214
|
-
border-left-color: var(--
|
|
19030
|
+
border-left-color: var(--_code-editor-caret-color);
|
|
19215
19031
|
border-left-width: var(--_code-editor-caret-width);
|
|
19216
19032
|
}
|
|
19217
19033
|
|
|
@@ -21201,12 +21017,17 @@ var datePickerStyles = css`
|
|
|
21201
21017
|
--_date-picker-day-indicator-inset: var(--primitives-space-2);
|
|
21202
21018
|
--_date-picker-day-indicator-size: calc(var(--_date-picker-day-size) - var(--_date-picker-day-indicator-inset) * 2);
|
|
21203
21019
|
--_date-picker-day-indicator-corner-radius: var(--_date-picker-day-corner-radius);
|
|
21204
|
-
--_date-picker-day-is-in-range-background-color:
|
|
21020
|
+
--_date-picker-day-is-in-range-background-color: var(--components-date-picker-day-is-in-range-background-color);
|
|
21021
|
+
--_date-picker-day-is-in-range-is-hovered-background-color: var(--components-date-picker-day-is-in-range-is-hovered-background-color);
|
|
21205
21022
|
--_date-picker-day-is-in-range-content-color: var(--semantics-content-color);
|
|
21206
21023
|
--_date-picker-day-is-today-border-color: light-dark(var(--primitives-color-neutral-250), var(--primitives-color-neutral-400));
|
|
21024
|
+
--_date-picker-day-is-today-is-in-range-border-color: var(--components-date-picker-day-is-today-is-in-range-border-color);
|
|
21025
|
+
--_date-picker-day-is-today-is-selected-border-color: var(--components-date-picker-day-is-today-is-selected-border-color);
|
|
21207
21026
|
--_date-picker-day-is-hovered-background-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-150));
|
|
21208
21027
|
--_date-picker-day-is-selected-background-color: var(--semantics-controls-is-selected-indicator-color);
|
|
21209
21028
|
--_date-picker-day-is-selected-content-color: var(--semantics-controls-is-selected-contrast-color);
|
|
21029
|
+
--_date-picker-day-is-selected-is-hovered-background-color: var(--semantics-controls-is-selected-is-hovered-indicator-color);
|
|
21030
|
+
--_date-picker-day-is-selected-is-hovered-content-color: var(--semantics-controls-is-selected-is-hovered-contrast-color);
|
|
21210
21031
|
--_date-picker-day-is-outside-month-content-color: var(--semantics-content-secondary-color);
|
|
21211
21032
|
--_date-picker-day-is-unavailable-content-color: var(--semantics-content-secondary-color);
|
|
21212
21033
|
|
|
@@ -21427,6 +21248,14 @@ var datePickerStyles = css`
|
|
|
21427
21248
|
border: var(--primitives-border-width-regular) solid var(--_date-picker-day-is-today-border-color);
|
|
21428
21249
|
}
|
|
21429
21250
|
|
|
21251
|
+
.date-picker__day.is-today.is-in-range .date-picker__day-indicator {
|
|
21252
|
+
border-color: var(--_date-picker-day-is-today-is-in-range-border-color);
|
|
21253
|
+
}
|
|
21254
|
+
|
|
21255
|
+
.date-picker__day.is-today.is-selected .date-picker__day-indicator {
|
|
21256
|
+
border-color: var(--_date-picker-day-is-today-is-selected-border-color);
|
|
21257
|
+
}
|
|
21258
|
+
|
|
21430
21259
|
/* Touch reports a hover after a tap and keeps it until you touch something
|
|
21431
21260
|
else, so a day stays lit long after you picked it. Only pointers that can
|
|
21432
21261
|
really hover. */
|
|
@@ -21434,6 +21263,10 @@ var datePickerStyles = css`
|
|
|
21434
21263
|
.date-picker__day:hover .date-picker__day-indicator {
|
|
21435
21264
|
background-color: var(--_date-picker-day-is-hovered-background-color);
|
|
21436
21265
|
}
|
|
21266
|
+
|
|
21267
|
+
.date-picker__day.is-in-range:hover .date-picker__day-indicator {
|
|
21268
|
+
background-color: var(--_date-picker-day-is-in-range-is-hovered-background-color);
|
|
21269
|
+
}
|
|
21437
21270
|
}
|
|
21438
21271
|
|
|
21439
21272
|
/* :focus, not :focus-visible. Arrow keys move focus programmatically, and the
|
|
@@ -21468,13 +21301,20 @@ var datePickerStyles = css`
|
|
|
21468
21301
|
color: var(--_date-picker-day-is-selected-content-color);
|
|
21469
21302
|
}
|
|
21470
21303
|
|
|
21471
|
-
|
|
21472
|
-
outweigh the plain selected rule. */
|
|
21473
|
-
.date-picker__day.is-selected .date-picker__day-indicator,
|
|
21474
|
-
.date-picker__day.is-selected:hover .date-picker__day-indicator {
|
|
21304
|
+
.date-picker__day.is-selected .date-picker__day-indicator {
|
|
21475
21305
|
background-color: var(--_date-picker-day-is-selected-background-color);
|
|
21476
21306
|
}
|
|
21477
21307
|
|
|
21308
|
+
@media (hover: hover) {
|
|
21309
|
+
.date-picker__day.is-selected:hover {
|
|
21310
|
+
color: var(--_date-picker-day-is-selected-is-hovered-content-color);
|
|
21311
|
+
}
|
|
21312
|
+
|
|
21313
|
+
.date-picker__day.is-selected:hover .date-picker__day-indicator {
|
|
21314
|
+
background-color: var(--_date-picker-day-is-selected-is-hovered-background-color);
|
|
21315
|
+
}
|
|
21316
|
+
}
|
|
21317
|
+
|
|
21478
21318
|
.date-picker__day.is-unavailable {
|
|
21479
21319
|
color: var(--_date-picker-day-is-unavailable-content-color);
|
|
21480
21320
|
text-decoration: line-through;
|
|
@@ -26167,6 +26007,8 @@ var searchFieldStyles = css`
|
|
|
26167
26007
|
--_search-field-text-font: var(--semantics-input-fields-md-text-font);
|
|
26168
26008
|
--_search-field-end-padding-right: calc((var(--_search-field-min-size) - var(--semantics-controls-sm-min-size)) / 2 - var(--semantics-input-fields-border-width));
|
|
26169
26009
|
--_search-field-end-gap: var(--primitives-space-6);
|
|
26010
|
+
--_search-field-shortcut-size: var(--primitives-space-20);
|
|
26011
|
+
--_search-field-shortcut-padding-right: calc((var(--_search-field-min-size) - var(--_search-field-shortcut-size)) / 2 - var(--semantics-input-fields-border-width));
|
|
26170
26012
|
--_search-field-button-focus-z-index: 1;
|
|
26171
26013
|
|
|
26172
26014
|
${inheritedTextReset}
|
|
@@ -26262,6 +26104,22 @@ var searchFieldStyles = css`
|
|
|
26262
26104
|
appearance: none;
|
|
26263
26105
|
}
|
|
26264
26106
|
|
|
26107
|
+
.search-field__shortcut {
|
|
26108
|
+
display: flex;
|
|
26109
|
+
flex-shrink: 0;
|
|
26110
|
+
padding-right: var(--_search-field-shortcut-padding-right);
|
|
26111
|
+
}
|
|
26112
|
+
|
|
26113
|
+
.search-field:focus-within .search-field__shortcut {
|
|
26114
|
+
display: none;
|
|
26115
|
+
}
|
|
26116
|
+
|
|
26117
|
+
@media (any-hover: none) {
|
|
26118
|
+
.search-field__shortcut {
|
|
26119
|
+
display: none;
|
|
26120
|
+
}
|
|
26121
|
+
}
|
|
26122
|
+
|
|
26265
26123
|
.search-field__input::placeholder {
|
|
26266
26124
|
color: var(--semantics-input-fields-placeholder-color);
|
|
26267
26125
|
}
|
|
@@ -26341,6 +26199,17 @@ function searchFieldTemplate(component) {
|
|
|
26341
26199
|
@change=${component._handleChange}
|
|
26342
26200
|
@keydown=${component._handleKeydown}
|
|
26343
26201
|
>
|
|
26202
|
+
${hasShortcut(component) && !component.value ? html`
|
|
26203
|
+
<span class="search-field__shortcut">
|
|
26204
|
+
<nldd-keyboard-shortcut
|
|
26205
|
+
size="sm"
|
|
26206
|
+
keys=${component.shortcut || nothing}
|
|
26207
|
+
mac-keys=${component.shortcutMac || nothing}
|
|
26208
|
+
windows-keys=${component.shortcutWindows || nothing}
|
|
26209
|
+
linux-keys=${component.shortcutLinux || nothing}
|
|
26210
|
+
></nldd-keyboard-shortcut>
|
|
26211
|
+
</span>
|
|
26212
|
+
` : nothing}
|
|
26344
26213
|
</label>
|
|
26345
26214
|
${hasEnd ? html`
|
|
26346
26215
|
<div class="search-field__input-fade"></div>
|
|
@@ -26391,6 +26260,10 @@ var nlddSearchFieldTranslations = {
|
|
|
26391
26260
|
* @attr {string} placeholder - Placeholder text for the input
|
|
26392
26261
|
* @attr {string} accessible-label - Accessible name (aria-label) of the native input. Falls back to `placeholder`, and keeps it when a value is typed. That works while the placeholder names the field ('Zoek een gebruiker'); set this when the placeholder is an example instead ('bijv. Jansen').
|
|
26393
26262
|
* @attr {boolean} show-search-button - When set, shows a search button on the right
|
|
26263
|
+
* @attr {string} shortcut - Keyboard shortcut hint shown at the right end of the empty field, e.g. 'Cmd+K' or '/'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up focusing the field in your app. Hidden while the field has focus or a value, and on touch-only devices. Joins the field's description for screen readers.
|
|
26264
|
+
* @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
|
|
26265
|
+
* @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
|
|
26266
|
+
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
26394
26267
|
* @attr {object} translations - Override translation keys; unset keys fall back to Dutch
|
|
26395
26268
|
* @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
|
|
26396
26269
|
* @attr {boolean} disabled - Disabled state
|
|
@@ -26410,11 +26283,16 @@ var _NLDDSearchField = class NLDDSearchField extends DescribedBy(FormAssociated(
|
|
|
26410
26283
|
constructor(..._args) {
|
|
26411
26284
|
super(..._args);
|
|
26412
26285
|
this._initialValue = "";
|
|
26286
|
+
this._shortcutAvailability = new ShortcutAvailabilityController(this);
|
|
26413
26287
|
this.size = "md";
|
|
26414
26288
|
this.width = "";
|
|
26415
26289
|
this.placeholder = "Zoeken";
|
|
26416
26290
|
this.accessibleLabel = "";
|
|
26417
26291
|
this.showSearchButton = false;
|
|
26292
|
+
this.shortcut = "";
|
|
26293
|
+
this.shortcutMac = "";
|
|
26294
|
+
this.shortcutWindows = "";
|
|
26295
|
+
this.shortcutLinux = "";
|
|
26418
26296
|
this.translations = {};
|
|
26419
26297
|
this.invalid = false;
|
|
26420
26298
|
this.disabled = false;
|
|
@@ -26428,6 +26306,8 @@ var _NLDDSearchField = class NLDDSearchField extends DescribedBy(FormAssociated(
|
|
|
26428
26306
|
this._initialValue = this.value;
|
|
26429
26307
|
}
|
|
26430
26308
|
updated(changed) {
|
|
26309
|
+
const hint = shortcutsAvailable() ? this.shadowRoot?.querySelector(".search-field__shortcut") : null;
|
|
26310
|
+
if (hint) applyDescribedBy(this.describedTarget(), [...this.describedByElements, hint], true);
|
|
26431
26311
|
if (changed.has("width")) {
|
|
26432
26312
|
const w = this.width;
|
|
26433
26313
|
if (w && w !== "full" && CSS.supports("width", w)) this.style.setProperty("--_search-field-width", w);
|
|
@@ -26528,6 +26408,25 @@ __decorate([property({
|
|
|
26528
26408
|
reflect: true,
|
|
26529
26409
|
attribute: "show-search-button"
|
|
26530
26410
|
})], NLDDSearchField.prototype, "showSearchButton", void 0);
|
|
26411
|
+
__decorate([property({
|
|
26412
|
+
reflect: true,
|
|
26413
|
+
converter: reflectNonDefault("")
|
|
26414
|
+
})], NLDDSearchField.prototype, "shortcut", void 0);
|
|
26415
|
+
__decorate([property({
|
|
26416
|
+
reflect: true,
|
|
26417
|
+
attribute: "shortcut-mac",
|
|
26418
|
+
converter: reflectNonDefault("")
|
|
26419
|
+
})], NLDDSearchField.prototype, "shortcutMac", void 0);
|
|
26420
|
+
__decorate([property({
|
|
26421
|
+
reflect: true,
|
|
26422
|
+
attribute: "shortcut-windows",
|
|
26423
|
+
converter: reflectNonDefault("")
|
|
26424
|
+
})], NLDDSearchField.prototype, "shortcutWindows", void 0);
|
|
26425
|
+
__decorate([property({
|
|
26426
|
+
reflect: true,
|
|
26427
|
+
attribute: "shortcut-linux",
|
|
26428
|
+
converter: reflectNonDefault("")
|
|
26429
|
+
})], NLDDSearchField.prototype, "shortcutLinux", void 0);
|
|
26531
26430
|
__decorate([property({ type: Object })], NLDDSearchField.prototype, "translations", void 0);
|
|
26532
26431
|
__decorate([property({
|
|
26533
26432
|
type: Boolean,
|
|
@@ -26911,6 +26810,8 @@ function segmentedControlItemTemplate(component) {
|
|
|
26911
26810
|
const isIcon = component.variant === "icon";
|
|
26912
26811
|
const showPlaceholder = isIcon || component.variant === "icon-and-text";
|
|
26913
26812
|
const labelText = component.text || nothing;
|
|
26813
|
+
const shortcutWords = shortcutLabel(component);
|
|
26814
|
+
const checkboxLabel = (isIcon || shortcutWords) && component.text ? [component.text, shortcutWords].filter(Boolean).join(" ") : nothing;
|
|
26914
26815
|
const content = html`
|
|
26915
26816
|
<span class="segmented-control__item-icon"
|
|
26916
26817
|
aria-hidden=${isIcon ? nothing : "true"}
|
|
@@ -26931,12 +26832,22 @@ function segmentedControlItemTemplate(component) {
|
|
|
26931
26832
|
.checked=${component.selected}
|
|
26932
26833
|
?disabled=${component.disabled}
|
|
26933
26834
|
?required=${component.required}
|
|
26934
|
-
aria-label=${
|
|
26835
|
+
aria-label=${checkboxLabel}
|
|
26935
26836
|
@change=${component._handleChange}
|
|
26936
26837
|
>
|
|
26937
26838
|
${content}
|
|
26938
26839
|
</label>`;
|
|
26939
|
-
if (isIcon && labelText) return html
|
|
26840
|
+
if (isIcon && labelText || hasShortcut(component)) return html`
|
|
26841
|
+
<nldd-tooltip
|
|
26842
|
+
text=${isIcon ? labelText : nothing}
|
|
26843
|
+
shortcut=${component.shortcut || nothing}
|
|
26844
|
+
shortcut-mac=${component.shortcutMac || nothing}
|
|
26845
|
+
shortcut-windows=${component.shortcutWindows || nothing}
|
|
26846
|
+
shortcut-linux=${component.shortcutLinux || nothing}
|
|
26847
|
+
>
|
|
26848
|
+
${label}
|
|
26849
|
+
</nldd-tooltip>
|
|
26850
|
+
`;
|
|
26940
26851
|
return label;
|
|
26941
26852
|
}
|
|
26942
26853
|
//#endregion
|
|
@@ -26974,6 +26885,10 @@ function segmentedControlItemTemplate(component) {
|
|
|
26974
26885
|
* @attr {boolean} disabled - Disabled state
|
|
26975
26886
|
* @attr {string} text - Text label (shown for variant "text" and "icon-and-text"; used as aria-label and tooltip for variant "icon")
|
|
26976
26887
|
* @attr {string} icon - Icon name for nldd-icon
|
|
26888
|
+
* @attr {string} shortcut - Keyboard shortcut hint shown in the tooltip, e.g. 'Cmd+B'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name ("Vet Cmd B"), as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable.
|
|
26889
|
+
* @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
|
|
26890
|
+
* @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
|
|
26891
|
+
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
26977
26892
|
* @attr {string} appearance - Visual style: 'neutral-tinted' | 'neutral-base' (default: 'neutral-tinted'). Set by nldd-segmented-control.
|
|
26978
26893
|
* @attr {string} size - Control size: 'sm' | 'md' | 'lg' (default: 'md'). Set by nldd-segmented-control.
|
|
26979
26894
|
* @attr {string} variant - Content type: 'text' | 'icon' | 'icon-and-text' (default: 'text'). Set by nldd-segmented-control.
|
|
@@ -27002,8 +26917,13 @@ var NLDDSegmentedControlItem = (_NLDDSegmentedControlItem = class NLDDSegmentedC
|
|
|
27002
26917
|
this.groupName = "";
|
|
27003
26918
|
this.text = "";
|
|
27004
26919
|
this.icon = "";
|
|
26920
|
+
this.shortcut = "";
|
|
26921
|
+
this.shortcutMac = "";
|
|
26922
|
+
this.shortcutWindows = "";
|
|
26923
|
+
this.shortcutLinux = "";
|
|
27005
26924
|
this._groupPosition = null;
|
|
27006
26925
|
this._appliedRadioLabel = null;
|
|
26926
|
+
this._shortcutAvailability = new ShortcutAvailabilityController(this);
|
|
27007
26927
|
this._onRadioFocus = () => {
|
|
27008
26928
|
this._tooltip?._handleFocusIn();
|
|
27009
26929
|
};
|
|
@@ -27071,7 +26991,8 @@ var NLDDSegmentedControlItem = (_NLDDSegmentedControlItem = class NLDDSegmentedC
|
|
|
27071
26991
|
}
|
|
27072
26992
|
this.setAttribute("role", "radio");
|
|
27073
26993
|
this.setAttribute("aria-checked", String(this.selected));
|
|
27074
|
-
|
|
26994
|
+
const radioLabel = [this.text, shortcutLabel(this)].filter(Boolean).join(" ");
|
|
26995
|
+
this._appliedRadioLabel = setOwnedAttribute(this, "aria-label", radioLabel, this._appliedRadioLabel);
|
|
27075
26996
|
if (this.disabled) this.setAttribute("aria-disabled", "true");
|
|
27076
26997
|
else this.removeAttribute("aria-disabled");
|
|
27077
26998
|
const position = this._groupPosition;
|
|
@@ -27165,6 +27086,25 @@ __decorate([property({
|
|
|
27165
27086
|
converter: reflectNonDefault("")
|
|
27166
27087
|
})], NLDDSegmentedControlItem.prototype, "text", void 0);
|
|
27167
27088
|
__decorate([property({ type: String })], NLDDSegmentedControlItem.prototype, "icon", void 0);
|
|
27089
|
+
__decorate([property({
|
|
27090
|
+
reflect: true,
|
|
27091
|
+
converter: reflectNonDefault("")
|
|
27092
|
+
})], NLDDSegmentedControlItem.prototype, "shortcut", void 0);
|
|
27093
|
+
__decorate([property({
|
|
27094
|
+
reflect: true,
|
|
27095
|
+
attribute: "shortcut-mac",
|
|
27096
|
+
converter: reflectNonDefault("")
|
|
27097
|
+
})], NLDDSegmentedControlItem.prototype, "shortcutMac", void 0);
|
|
27098
|
+
__decorate([property({
|
|
27099
|
+
reflect: true,
|
|
27100
|
+
attribute: "shortcut-windows",
|
|
27101
|
+
converter: reflectNonDefault("")
|
|
27102
|
+
})], NLDDSegmentedControlItem.prototype, "shortcutWindows", void 0);
|
|
27103
|
+
__decorate([property({
|
|
27104
|
+
reflect: true,
|
|
27105
|
+
attribute: "shortcut-linux",
|
|
27106
|
+
converter: reflectNonDefault("")
|
|
27107
|
+
})], NLDDSegmentedControlItem.prototype, "shortcutLinux", void 0);
|
|
27168
27108
|
__decorate([state()], NLDDSegmentedControlItem.prototype, "_groupPosition", void 0);
|
|
27169
27109
|
NLDDSegmentedControlItem = __decorate([customElement("nldd-segmented-control-item")], NLDDSegmentedControlItem);
|
|
27170
27110
|
var NLDDSegmentedControl = (_NLDDSegmentedControl2 = class NLDDSegmentedControl extends FormAssociated(LitElement) {
|
|
@@ -33282,6 +33222,9 @@ var textEditorStyles = css`
|
|
|
33282
33222
|
|
|
33283
33223
|
:host {
|
|
33284
33224
|
--_text-editor-caret-width: var(--primitives-border-width-regular);
|
|
33225
|
+
--_text-editor-caret-color: var(--components-text-editor-caret-color);
|
|
33226
|
+
--_text-editor-drop-cursor-color: var(--components-text-editor-drop-cursor-color);
|
|
33227
|
+
--_text-editor-drag-ghost-background-color: var(--components-text-editor-drag-ghost-background-color);
|
|
33285
33228
|
--_text-editor-caret-ring-width: var(--primitives-border-width-thin);
|
|
33286
33229
|
--_text-editor-corner-radius: 0;
|
|
33287
33230
|
--_text-editor-background-color: transparent;
|
|
@@ -33331,13 +33274,13 @@ var textEditorStyles = css`
|
|
|
33331
33274
|
--_text-editor-annotation-badge-size: 1.5em;
|
|
33332
33275
|
--_text-editor-annotation-badge-font-scale: 0.62;
|
|
33333
33276
|
--_text-editor-link-badge-size: calc(1em + 2 * var(--_text-editor-token-block-padding-fit));
|
|
33334
|
-
--_text-editor-link-badge-content-color: var(--
|
|
33335
|
-
--_text-editor-link-badge-background-color:
|
|
33336
|
-
--_text-editor-link-badge-highlight-border-color:
|
|
33337
|
-
--_text-editor-link-badge-is-hovered-background-color:
|
|
33338
|
-
--_text-editor-link-badge-is-active-background-color:
|
|
33339
|
-
--_text-editor-link-badge-is-hovered-highlight-border-color:
|
|
33340
|
-
--_text-editor-link-badge-is-active-highlight-border-color:
|
|
33277
|
+
--_text-editor-link-badge-content-color: var(--components-text-editor-link-badge-content-color);
|
|
33278
|
+
--_text-editor-link-badge-background-color: var(--components-text-editor-link-badge-background-color);
|
|
33279
|
+
--_text-editor-link-badge-highlight-border-color: var(--components-text-editor-link-badge-highlight-border-color);
|
|
33280
|
+
--_text-editor-link-badge-is-hovered-background-color: var(--components-text-editor-link-badge-is-hovered-background-color);
|
|
33281
|
+
--_text-editor-link-badge-is-active-background-color: var(--components-text-editor-link-badge-is-active-background-color);
|
|
33282
|
+
--_text-editor-link-badge-is-hovered-highlight-border-color: var(--components-text-editor-link-badge-is-hovered-highlight-border-color);
|
|
33283
|
+
--_text-editor-link-badge-is-active-highlight-border-color: var(--components-text-editor-link-badge-is-active-highlight-border-color);
|
|
33341
33284
|
--_text-editor-mention-icon-size: 0.95em;
|
|
33342
33285
|
--_text-editor-mention-token-background-color: var(--components-text-editor-mention-background-color);
|
|
33343
33286
|
--_text-editor-mention-token-content-color: var(--components-text-editor-mention-content-color);
|
|
@@ -33426,7 +33369,7 @@ var textEditorStyles = css`
|
|
|
33426
33369
|
/* accent-700: it keeps a >=525 lightness gap from both the base and tinted
|
|
33427
33370
|
surfaces in light and dark (accent-600 fell just short on white), so the
|
|
33428
33371
|
caret stays clearly visible without washing out. */
|
|
33429
|
-
border-left-color: var(--
|
|
33372
|
+
border-left-color: var(--_text-editor-caret-color);
|
|
33430
33373
|
border-left-width: var(--_text-editor-caret-width);
|
|
33431
33374
|
/* CodeMirror centers its own 1.2px caret with a -0.6px margin. Ours is wider,
|
|
33432
33375
|
so recenter it on the insertion point from its own width. */
|
|
@@ -33806,7 +33749,7 @@ var textEditorStyles = css`
|
|
|
33806
33749
|
position: absolute;
|
|
33807
33750
|
width: var(--primitives-border-width-regular);
|
|
33808
33751
|
border-radius: var(--primitives-border-width-thin);
|
|
33809
|
-
background-color: var(--
|
|
33752
|
+
background-color: var(--_text-editor-drop-cursor-color);
|
|
33810
33753
|
box-shadow: 0 0 0 var(--primitives-border-width-thin) var(--semantics-surfaces-base-background-color);
|
|
33811
33754
|
pointer-events: none;
|
|
33812
33755
|
z-index: 4;
|
|
@@ -33818,7 +33761,7 @@ var textEditorStyles = css`
|
|
|
33818
33761
|
max-width: 24ch;
|
|
33819
33762
|
padding: 0 var(--primitives-space-4);
|
|
33820
33763
|
border-radius: var(--_text-editor-token-corner-radius);
|
|
33821
|
-
background-color:
|
|
33764
|
+
background-color: var(--_text-editor-drag-ghost-background-color);
|
|
33822
33765
|
color: var(--_text-editor-content-color);
|
|
33823
33766
|
font: var(--_text-editor-font);
|
|
33824
33767
|
white-space: nowrap;
|
|
@@ -37227,8 +37170,10 @@ function toggleButtonTemplate(component) {
|
|
|
37227
37170
|
const showText = component.variant !== "icon" && !!component.text;
|
|
37228
37171
|
const showIcon = component.variant !== "text" && component._hasIcon;
|
|
37229
37172
|
const showPlaceholder = component.variant === "icon" || component.variant === "icon-and-text";
|
|
37230
|
-
const
|
|
37231
|
-
const
|
|
37173
|
+
const shortcutWords = shortcutLabel(component);
|
|
37174
|
+
const name = component.accessibleLabel || ((component.variant === "icon" || shortcutWords) && component.text ? component.text : "");
|
|
37175
|
+
const ariaLabel = name ? [name, shortcutWords].filter(Boolean).join(" ") : nothing;
|
|
37176
|
+
const tooltipText = (showIcon || component.variant === "icon") && !showText ? component.accessibleLabel || component.text || "" : "";
|
|
37232
37177
|
const iconName = component.selected && component.selectedIcon ? component.selectedIcon : component.icon;
|
|
37233
37178
|
const icon = iconName ? html`<nldd-icon class="toggle-button__icon"
|
|
37234
37179
|
icon=${iconName}
|
|
@@ -37284,7 +37229,17 @@ function toggleButtonTemplate(component) {
|
|
|
37284
37229
|
${textContent}
|
|
37285
37230
|
</button>
|
|
37286
37231
|
`;
|
|
37287
|
-
if (tooltipText) return html
|
|
37232
|
+
if (tooltipText || hasShortcut(component)) return html`
|
|
37233
|
+
<nldd-tooltip
|
|
37234
|
+
text=${tooltipText || nothing}
|
|
37235
|
+
shortcut=${component.shortcut || nothing}
|
|
37236
|
+
shortcut-mac=${component.shortcutMac || nothing}
|
|
37237
|
+
shortcut-windows=${component.shortcutWindows || nothing}
|
|
37238
|
+
shortcut-linux=${component.shortcutLinux || nothing}
|
|
37239
|
+
>
|
|
37240
|
+
${result}
|
|
37241
|
+
</nldd-tooltip>
|
|
37242
|
+
`;
|
|
37288
37243
|
return result;
|
|
37289
37244
|
}
|
|
37290
37245
|
//#endregion
|
|
@@ -37319,6 +37274,10 @@ function toggleButtonTemplate(component) {
|
|
|
37319
37274
|
* @attr {string} selected-icon - Icon shown instead of `icon` while selected, such as `check-mark` for `plus` or `heart-filled` for `heart`. The appearances with a surface fill it when on, as without one. The transparent appearances have no surface to fill: with a selected-icon they stay quiet when on and the change of shape says it is on; without one, or with `variant="text"` where the icon does not render, they fill, so the state always shows.
|
|
37320
37275
|
* @attr {'text' | 'icon' | 'icon-and-text'} variant - What renders: text, icon, or both. Unset → auto-detect from text/icon attributes.
|
|
37321
37276
|
* @attr {string} accessible-label - Accessible label; required for icon-only usage
|
|
37277
|
+
* @attr {string} shortcut - Keyboard shortcut hint shown in the tooltip, e.g. 'Cmd+B'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name ("Vet Cmd B"), as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable.
|
|
37278
|
+
* @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
|
|
37279
|
+
* @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
|
|
37280
|
+
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
37322
37281
|
* @attr {boolean} required - Required state. Set by nldd-toggle-button-group.
|
|
37323
37282
|
* @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
|
|
37324
37283
|
*
|
|
@@ -37344,12 +37303,17 @@ var _NLDDToggleButton = class NLDDToggleButton extends DescribedBy(FormAssociate
|
|
|
37344
37303
|
this.selectedIcon = "";
|
|
37345
37304
|
this.variant = "";
|
|
37346
37305
|
this.accessibleLabel = "";
|
|
37306
|
+
this.shortcut = "";
|
|
37307
|
+
this.shortcutMac = "";
|
|
37308
|
+
this.shortcutWindows = "";
|
|
37309
|
+
this.shortcutLinux = "";
|
|
37347
37310
|
this._warnedA11y = false;
|
|
37348
37311
|
this._warnedEmptyIcon = false;
|
|
37349
37312
|
this.invalid = false;
|
|
37350
37313
|
this._groupPosition = null;
|
|
37351
37314
|
this._groupHasSelection = false;
|
|
37352
37315
|
this._appliedRadioLabel = null;
|
|
37316
|
+
this._shortcutAvailability = new ShortcutAvailabilityController(this);
|
|
37353
37317
|
this._onRadioClick = () => {
|
|
37354
37318
|
if (this.type !== "radio") return;
|
|
37355
37319
|
this.toggle();
|
|
@@ -37412,7 +37376,8 @@ var _NLDDToggleButton = class NLDDToggleButton extends DescribedBy(FormAssociate
|
|
|
37412
37376
|
}
|
|
37413
37377
|
this.setAttribute("role", "radio");
|
|
37414
37378
|
this.setAttribute("aria-checked", String(this.selected));
|
|
37415
|
-
|
|
37379
|
+
const radioLabel = [this.accessibleLabel || this.text, shortcutLabel(this)].filter(Boolean).join(" ");
|
|
37380
|
+
this._appliedRadioLabel = setOwnedAttribute(this, "aria-label", radioLabel, this._appliedRadioLabel);
|
|
37416
37381
|
if (this.disabled) this.setAttribute("aria-disabled", "true");
|
|
37417
37382
|
else this.removeAttribute("aria-disabled");
|
|
37418
37383
|
const position = this._groupPosition;
|
|
@@ -37564,6 +37529,25 @@ __decorate([property({
|
|
|
37564
37529
|
type: String,
|
|
37565
37530
|
attribute: "accessible-label"
|
|
37566
37531
|
})], NLDDToggleButton.prototype, "accessibleLabel", void 0);
|
|
37532
|
+
__decorate([property({
|
|
37533
|
+
reflect: true,
|
|
37534
|
+
converter: reflectNonDefault("")
|
|
37535
|
+
})], NLDDToggleButton.prototype, "shortcut", void 0);
|
|
37536
|
+
__decorate([property({
|
|
37537
|
+
reflect: true,
|
|
37538
|
+
attribute: "shortcut-mac",
|
|
37539
|
+
converter: reflectNonDefault("")
|
|
37540
|
+
})], NLDDToggleButton.prototype, "shortcutMac", void 0);
|
|
37541
|
+
__decorate([property({
|
|
37542
|
+
reflect: true,
|
|
37543
|
+
attribute: "shortcut-windows",
|
|
37544
|
+
converter: reflectNonDefault("")
|
|
37545
|
+
})], NLDDToggleButton.prototype, "shortcutWindows", void 0);
|
|
37546
|
+
__decorate([property({
|
|
37547
|
+
reflect: true,
|
|
37548
|
+
attribute: "shortcut-linux",
|
|
37549
|
+
converter: reflectNonDefault("")
|
|
37550
|
+
})], NLDDToggleButton.prototype, "shortcutLinux", void 0);
|
|
37567
37551
|
__decorate([property({
|
|
37568
37552
|
type: Boolean,
|
|
37569
37553
|
reflect: true
|
|
@@ -45158,10 +45142,10 @@ var cardStyles = css`
|
|
|
45158
45142
|
:host([background="accent-tinted"]) {
|
|
45159
45143
|
--_card-background-color: var(--semantics-surfaces-accent-tinted-background-color);
|
|
45160
45144
|
--_card-border-color: var(--semantics-surfaces-accent-tinted-highlight-border-color);
|
|
45161
|
-
--_card-is-hovered-background-color:
|
|
45162
|
-
--_card-is-hovered-border-color:
|
|
45163
|
-
--_card-is-active-background-color:
|
|
45164
|
-
--_card-is-active-border-color:
|
|
45145
|
+
--_card-is-hovered-background-color: var(--components-card-is-hovered-background-color);
|
|
45146
|
+
--_card-is-hovered-border-color: var(--components-card-is-hovered-border-color);
|
|
45147
|
+
--_card-is-active-background-color: var(--components-card-is-active-background-color);
|
|
45148
|
+
--_card-is-active-border-color: var(--components-card-is-active-border-color);
|
|
45165
45149
|
}
|
|
45166
45150
|
|
|
45167
45151
|
|
|
@@ -48523,14 +48507,16 @@ var stepCellStyles = css`
|
|
|
48523
48507
|
--_step-cell-marker-corner-radius: var(--primitives-corner-radius-full);
|
|
48524
48508
|
|
|
48525
48509
|
--_step-cell-line-width: var(--primitives-space-2);
|
|
48526
|
-
--_step-cell-track-color:
|
|
48510
|
+
--_step-cell-track-color: var(--semantics-steps-progress-color);
|
|
48527
48511
|
--_step-cell-future-fill-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-200));
|
|
48528
48512
|
--_step-cell-marker-z-index: 1;
|
|
48529
48513
|
--_step-cell-ring-thickness: var(--semantics-surfaces-ring-thickness);
|
|
48530
48514
|
--_step-cell-ring-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
48531
|
-
--_step-cell-
|
|
48515
|
+
--_step-cell-past-fill-color: var(--semantics-steps-is-past-background-color);
|
|
48516
|
+
--_step-cell-marker-content-color: var(--semantics-steps-is-past-content-color);
|
|
48532
48517
|
--_step-cell-future-content-color: var(--semantics-content-secondary-color);
|
|
48533
|
-
--_step-cell-current-fill-color:
|
|
48518
|
+
--_step-cell-current-fill-color: var(--semantics-steps-is-current-background-color);
|
|
48519
|
+
--_step-cell-current-content-color: var(--semantics-content-accent-color);
|
|
48534
48520
|
--_step-cell-icon-size: calc(var(--_step-cell-marker-size) * 2 / 3);
|
|
48535
48521
|
--_step-cell-marker-offset: 0px;
|
|
48536
48522
|
--_step-cell-marker-center: 50%;
|
|
@@ -48556,6 +48542,7 @@ var stepCellStyles = css`
|
|
|
48556
48542
|
|
|
48557
48543
|
:host([level="minor"]) {
|
|
48558
48544
|
--_step-cell-marker-size: var(--primitives-space-10);
|
|
48545
|
+
--_step-cell-past-fill-color: var(--_step-cell-track-color);
|
|
48559
48546
|
}
|
|
48560
48547
|
|
|
48561
48548
|
:host([size="md"][level="minor"]) {
|
|
@@ -48687,12 +48674,13 @@ var stepCellStyles = css`
|
|
|
48687
48674
|
|
|
48688
48675
|
:host([status="past"]) .step-cell__marker,
|
|
48689
48676
|
:host(:not([status])) .step-cell__marker {
|
|
48690
|
-
|
|
48677
|
+
border-color: var(--_step-cell-past-fill-color);
|
|
48678
|
+
background-color: var(--_step-cell-past-fill-color);
|
|
48691
48679
|
}
|
|
48692
48680
|
|
|
48693
48681
|
:host([status="current"]) .step-cell__marker {
|
|
48694
48682
|
background-color: var(--_step-cell-current-fill-color);
|
|
48695
|
-
color: var(--_step-cell-
|
|
48683
|
+
color: var(--_step-cell-current-content-color);
|
|
48696
48684
|
}
|
|
48697
48685
|
|
|
48698
48686
|
:host([status="future"]) .step-cell__marker {
|
|
@@ -49155,11 +49143,11 @@ var menuBarItemStyles = css`
|
|
|
49155
49143
|
--_menu-bar-item-indicator-z-index: 0;
|
|
49156
49144
|
--_menu-bar-item-content-z-index: 1;
|
|
49157
49145
|
--_menu-bar-item-focus-z-index: 1;
|
|
49158
|
-
--_menu-bar-item-content-color: var(--
|
|
49146
|
+
--_menu-bar-item-content-color: var(--components-menu-bar-item-content-color);
|
|
49159
49147
|
--_menu-bar-item-font: var(--primitives-font-body-md-medium-flat);
|
|
49160
49148
|
--_menu-bar-item-is-hovered-indicator-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-200));
|
|
49161
49149
|
--_menu-bar-item-is-expanded-indicator-background-color: light-dark(var(--primitives-color-neutral-75), var(--primitives-color-neutral-250));
|
|
49162
|
-
--_menu-bar-item-is-current-indicator-background-color: var(--
|
|
49150
|
+
--_menu-bar-item-is-current-indicator-background-color: var(--components-menu-bar-item-is-current-indicator-color);
|
|
49163
49151
|
--_menu-bar-item-is-current-indicator-height: var(--primitives-space-4);
|
|
49164
49152
|
|
|
49165
49153
|
${inheritedTextReset}
|
|
@@ -51280,7 +51268,7 @@ var _NLDDTopNavigationBar = class NLDDTopNavigationBar extends withTranslations(
|
|
|
51280
51268
|
Promise.resolve().then(() => list_item_exports),
|
|
51281
51269
|
Promise.resolve().then(() => text_cell_exports),
|
|
51282
51270
|
Promise.resolve().then(() => icon_cell_exports),
|
|
51283
|
-
import("./icon-
|
|
51271
|
+
import("./icon-zNX9A6d3.js").then((n) => n.n)
|
|
51284
51272
|
]);
|
|
51285
51273
|
}
|
|
51286
51274
|
_createGlobalMenuSheet() {
|
|
@@ -51722,26 +51710,26 @@ var tabBarItemStyles = css`
|
|
|
51722
51710
|
}
|
|
51723
51711
|
|
|
51724
51712
|
:host([current]) .tab-bar__item {
|
|
51725
|
-
--_tab-bar-item-highlight-border-color: var(--
|
|
51713
|
+
--_tab-bar-item-highlight-border-color: var(--semantics-tabs-is-current-highlight-border-color);
|
|
51726
51714
|
|
|
51727
|
-
background-color: var(--
|
|
51728
|
-
color: var(--
|
|
51715
|
+
background-color: var(--semantics-tabs-is-current-background-color);
|
|
51716
|
+
color: var(--semantics-tabs-is-current-content-color);
|
|
51729
51717
|
}
|
|
51730
51718
|
|
|
51731
51719
|
@media (hover: hover) {
|
|
51732
51720
|
:host([current]) .tab-bar__item:hover {
|
|
51733
|
-
--_tab-bar-item-highlight-border-color: var(--
|
|
51721
|
+
--_tab-bar-item-highlight-border-color: var(--semantics-tabs-is-current-is-hovered-highlight-border-color);
|
|
51734
51722
|
|
|
51735
|
-
background-color: var(--
|
|
51736
|
-
color: var(--
|
|
51723
|
+
background-color: var(--semantics-tabs-is-current-is-hovered-background-color);
|
|
51724
|
+
color: var(--semantics-tabs-is-current-is-hovered-content-color);
|
|
51737
51725
|
}
|
|
51738
51726
|
}
|
|
51739
51727
|
|
|
51740
51728
|
:host([current]) .tab-bar__item:active {
|
|
51741
|
-
--_tab-bar-item-highlight-border-color: var(--
|
|
51729
|
+
--_tab-bar-item-highlight-border-color: var(--semantics-tabs-is-current-is-active-highlight-border-color);
|
|
51742
51730
|
|
|
51743
|
-
background-color: var(--
|
|
51744
|
-
color: var(--
|
|
51731
|
+
background-color: var(--semantics-tabs-is-current-is-active-background-color);
|
|
51732
|
+
color: var(--semantics-tabs-is-current-is-active-content-color);
|
|
51745
51733
|
}
|
|
51746
51734
|
|
|
51747
51735
|
@media (forced-colors: active) {
|
|
@@ -52353,8 +52341,8 @@ var documentTabBarStyles = css`
|
|
|
52353
52341
|
--_document-tab-bar-overflow-button-reserve: 52px; /* Used for overflowButtonReserve. Overflow button width + spacing */
|
|
52354
52342
|
--_document-tab-bar-dismiss-button-is-hovered-background-color: light-dark(var(--primitives-color-neutral-150), var(--primitives-color-neutral-250));
|
|
52355
52343
|
--_document-tab-bar-dismiss-button-is-active-background-color: light-dark(var(--primitives-color-neutral-200), var(--primitives-color-neutral-300));
|
|
52356
|
-
--_document-tab-bar-dismiss-button-is-selected-is-hovered-background-color:
|
|
52357
|
-
--_document-tab-bar-dismiss-button-is-selected-is-active-background-color:
|
|
52344
|
+
--_document-tab-bar-dismiss-button-is-selected-is-hovered-background-color: var(--semantics-tabs-is-current-is-hovered-background-color);
|
|
52345
|
+
--_document-tab-bar-dismiss-button-is-selected-is-active-background-color: var(--semantics-tabs-is-current-is-active-background-color);
|
|
52358
52346
|
--_document-tab-bar-tab-title-font: var(--primitives-font-body-sm-medium-flat);
|
|
52359
52347
|
|
|
52360
52348
|
${inheritedTextReset}
|
|
@@ -52532,12 +52520,12 @@ var documentTabBarStyles = css`
|
|
|
52532
52520
|
}
|
|
52533
52521
|
|
|
52534
52522
|
.document-tab-bar__drag-clone.is-selected .document-tab-bar__item-tab {
|
|
52535
|
-
background-color: var(--semantics-
|
|
52523
|
+
background-color: var(--semantics-tabs-is-current-background-color);
|
|
52536
52524
|
}
|
|
52537
52525
|
|
|
52538
52526
|
.document-tab-bar__drag-clone.is-selected .document-tab-bar__item-text,
|
|
52539
52527
|
.document-tab-bar__drag-clone.is-selected .document-tab-bar__item-supporting-text {
|
|
52540
|
-
color: var(--semantics-
|
|
52528
|
+
color: var(--semantics-tabs-is-current-content-color);
|
|
52541
52529
|
}
|
|
52542
52530
|
|
|
52543
52531
|
.document-tab-bar__drag-clone .document-tab-bar__item-supporting-text {
|
|
@@ -52574,9 +52562,9 @@ var documentTabBarItemStyles = css`
|
|
|
52574
52562
|
--_document-tab-bar-item-highlight-border-color: var(--semantics-buttons-neutral-tinted-highlight-border-color);
|
|
52575
52563
|
--_document-tab-bar-item-is-hovered-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-hovered-highlight-border-color);
|
|
52576
52564
|
--_document-tab-bar-item-is-active-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-active-highlight-border-color);
|
|
52577
|
-
--_document-tab-bar-item-is-selected-highlight-border-color: var(--semantics-
|
|
52578
|
-
--_document-tab-bar-item-is-selected-is-hovered-highlight-border-color: var(--semantics-
|
|
52579
|
-
--_document-tab-bar-item-is-selected-is-active-highlight-border-color: var(--semantics-
|
|
52565
|
+
--_document-tab-bar-item-is-selected-highlight-border-color: var(--semantics-tabs-is-current-highlight-border-color);
|
|
52566
|
+
--_document-tab-bar-item-is-selected-is-hovered-highlight-border-color: var(--semantics-tabs-is-current-is-hovered-highlight-border-color);
|
|
52567
|
+
--_document-tab-bar-item-is-selected-is-active-highlight-border-color: var(--semantics-tabs-is-current-is-active-highlight-border-color);
|
|
52580
52568
|
|
|
52581
52569
|
--_document-tab-bar-item-secondary-content-color: var(--semantics-buttons-neutral-tinted-content-secondary-color);
|
|
52582
52570
|
--_document-tab-bar-item-tab-title-font: var(--primitives-font-body-sm-medium-flat);
|
|
@@ -52644,22 +52632,23 @@ var documentTabBarItemStyles = css`
|
|
|
52644
52632
|
}
|
|
52645
52633
|
|
|
52646
52634
|
:host([selected]) .document-tab-bar__item-tab {
|
|
52647
|
-
background-color: var(--semantics-
|
|
52635
|
+
background-color: var(--semantics-tabs-is-current-background-color);
|
|
52648
52636
|
--_document-tab-bar-item-highlight-border-color: var(--_document-tab-bar-item-is-selected-highlight-border-color);
|
|
52649
|
-
--_document-tab-bar-item-secondary-content-color: var(--semantics-
|
|
52637
|
+
--_document-tab-bar-item-secondary-content-color: var(--semantics-tabs-is-current-content-color);
|
|
52650
52638
|
}
|
|
52651
52639
|
|
|
52652
52640
|
@media (hover: hover) {
|
|
52653
52641
|
:host([selected]) .document-tab-bar__item-tab:hover {
|
|
52654
|
-
background-color: var(--semantics-
|
|
52642
|
+
background-color: var(--semantics-tabs-is-current-is-hovered-background-color);
|
|
52655
52643
|
--_document-tab-bar-item-highlight-border-color: var(--_document-tab-bar-item-is-selected-is-hovered-highlight-border-color);
|
|
52656
|
-
--_document-tab-bar-item-secondary-content-color: var(--semantics-
|
|
52644
|
+
--_document-tab-bar-item-secondary-content-color: var(--semantics-tabs-is-current-is-hovered-content-color);
|
|
52657
52645
|
}
|
|
52658
52646
|
}
|
|
52659
52647
|
|
|
52660
52648
|
:host([selected]) .document-tab-bar__item-tab:active {
|
|
52649
|
+
background-color: var(--semantics-tabs-is-current-is-active-background-color);
|
|
52661
52650
|
--_document-tab-bar-item-highlight-border-color: var(--_document-tab-bar-item-is-selected-is-active-highlight-border-color);
|
|
52662
|
-
--_document-tab-bar-item-secondary-content-color: var(--semantics-
|
|
52651
|
+
--_document-tab-bar-item-secondary-content-color: var(--semantics-tabs-is-current-is-active-content-color);
|
|
52663
52652
|
}
|
|
52664
52653
|
|
|
52665
52654
|
/* ## Focus */
|
|
@@ -52702,7 +52691,7 @@ var documentTabBarItemStyles = css`
|
|
|
52702
52691
|
}
|
|
52703
52692
|
|
|
52704
52693
|
:host([selected]) .document-tab-bar__item-text {
|
|
52705
|
-
color: var(--semantics-
|
|
52694
|
+
color: var(--semantics-tabs-is-current-content-color);
|
|
52706
52695
|
}
|
|
52707
52696
|
|
|
52708
52697
|
.document-tab-bar__item-short-text {
|
|
@@ -52715,7 +52704,7 @@ var documentTabBarItemStyles = css`
|
|
|
52715
52704
|
}
|
|
52716
52705
|
|
|
52717
52706
|
:host([selected]) .document-tab-bar__item-short-text {
|
|
52718
|
-
color: var(--semantics-
|
|
52707
|
+
color: var(--semantics-tabs-is-current-content-color);
|
|
52719
52708
|
}
|
|
52720
52709
|
|
|
52721
52710
|
|
|
@@ -52772,7 +52761,7 @@ var documentTabBarItemStyles = css`
|
|
|
52772
52761
|
}
|
|
52773
52762
|
|
|
52774
52763
|
:host([selected]) .document-tab-bar__item-dismiss-button {
|
|
52775
|
-
color: var(--semantics-
|
|
52764
|
+
color: var(--semantics-tabs-is-current-content-color);
|
|
52776
52765
|
}
|
|
52777
52766
|
|
|
52778
52767
|
@media (hover: hover) {
|
|
@@ -54990,7 +54979,7 @@ var notificationStyles = css`
|
|
|
54990
54979
|
}
|
|
54991
54980
|
|
|
54992
54981
|
:host([variant="accent"]) {
|
|
54993
|
-
--_notification-icon-color:
|
|
54982
|
+
--_notification-icon-color: var(--components-notification-icon-color);
|
|
54994
54983
|
}
|
|
54995
54984
|
|
|
54996
54985
|
:host([variant="success"]) {
|
|
@@ -56212,8 +56201,8 @@ var progressBarStyles = css`
|
|
|
56212
56201
|
--_progress-bar-supporting-text-color: var(--semantics-content-secondary-color);
|
|
56213
56202
|
--_progress-bar-text-font: var(--primitives-font-body-md-regular-tight);
|
|
56214
56203
|
--_progress-bar-supporting-text-font: var(--primitives-font-body-md-regular-tight);
|
|
56215
|
-
--_progress-bar-indeterminate-background-color: var(--
|
|
56216
|
-
--_progress-bar-indeterminate-border-color: var(--
|
|
56204
|
+
--_progress-bar-indeterminate-background-color: var(--components-progress-bar-accent-background-color);
|
|
56205
|
+
--_progress-bar-indeterminate-border-color: var(--components-progress-bar-accent-highlight-border-color);
|
|
56217
56206
|
--_progress-bar-indeterminate-border-width: var(--primitives-border-width-thin);
|
|
56218
56207
|
--_progress-bar-indeterminate-bar-width: 20%;
|
|
56219
56208
|
--_progress-bar-indeterminate-duration: 800ms;
|
|
@@ -56409,8 +56398,8 @@ var progressBarSegmentIndicatorStyles = css`
|
|
|
56409
56398
|
:host {
|
|
56410
56399
|
--_progress-bar-segment-indicator-width: var(--context-progress-bar-segment-indicator-width, 0%);
|
|
56411
56400
|
--_progress-bar-segment-indicator-min-width: var(--primitives-space-2);
|
|
56412
|
-
--_progress-bar-segment-indicator-background-color: var(--
|
|
56413
|
-
--_progress-bar-segment-indicator-border-color: var(--
|
|
56401
|
+
--_progress-bar-segment-indicator-background-color: var(--components-progress-bar-accent-background-color);
|
|
56402
|
+
--_progress-bar-segment-indicator-border-color: var(--components-progress-bar-accent-highlight-border-color);
|
|
56414
56403
|
--_progress-bar-segment-indicator-border-width: var(--primitives-border-width-thin);
|
|
56415
56404
|
--_progress-bar-segment-indicator-corner-radius: var(--primitives-corner-radius-full);
|
|
56416
56405
|
--_progress-bar-segment-indicator-distribution-corner-radius: var(--primitives-corner-radius-xxs);
|
|
@@ -57116,7 +57105,7 @@ var progressCircleStyles = css`
|
|
|
57116
57105
|
/* ## Arc color per variant */
|
|
57117
57106
|
|
|
57118
57107
|
.progress-circle__segment-indicator--neutral { stroke: var(--semantics-categories-neutral-filled-background-color); }
|
|
57119
|
-
.progress-circle__segment-indicator--accent { stroke: var(--
|
|
57108
|
+
.progress-circle__segment-indicator--accent { stroke: var(--components-progress-circle-accent-background-color); }
|
|
57120
57109
|
.progress-circle__segment-indicator--success { stroke: var(--semantics-categories-success-filled-background-color); }
|
|
57121
57110
|
.progress-circle__segment-indicator--warning { stroke: var(--semantics-categories-warning-filled-background-color); }
|
|
57122
57111
|
.progress-circle__segment-indicator--critical { stroke: var(--semantics-categories-critical-filled-background-color); }
|
|
@@ -57186,8 +57175,8 @@ var progressCircleStyles = css`
|
|
|
57186
57175
|
/* # Indeterminate fill + border color follow the color variant; default accent (blue) */
|
|
57187
57176
|
|
|
57188
57177
|
:host {
|
|
57189
|
-
--_progress-circle-indeterminate-background-color: var(--
|
|
57190
|
-
--_progress-circle-indeterminate-border-color: var(--
|
|
57178
|
+
--_progress-circle-indeterminate-background-color: var(--components-progress-circle-accent-background-color);
|
|
57179
|
+
--_progress-circle-indeterminate-border-color: var(--components-progress-circle-accent-highlight-border-color);
|
|
57191
57180
|
}
|
|
57192
57181
|
|
|
57193
57182
|
:host([color="neutral"]) { --_progress-circle-indeterminate-background-color: var(--semantics-categories-neutral-filled-background-color); --_progress-circle-indeterminate-border-color: var(--semantics-categories-neutral-filled-highlight-border-color); }
|
|
@@ -57402,7 +57391,7 @@ function progressCircleTemplate(component, onSlotChange) {
|
|
|
57402
57391
|
result="edge"
|
|
57403
57392
|
></feComposite>
|
|
57404
57393
|
<feFlood class="progress-circle__flood"
|
|
57405
|
-
style=${styleMap({ floodColor: `var(--semantics-categories-${color}-filled-highlight-border-color)` })}
|
|
57394
|
+
style=${styleMap({ floodColor: color === "accent" ? "var(--components-progress-circle-accent-highlight-border-color)" : `var(--semantics-categories-${color}-filled-highlight-border-color)` })}
|
|
57406
57395
|
result="flood"
|
|
57407
57396
|
></feFlood>
|
|
57408
57397
|
<feComposite
|
|
@@ -57894,7 +57883,7 @@ var stepBarStyles = css`
|
|
|
57894
57883
|
--_step-bar-compact-bar-corner-radius: var(--primitives-corner-radius-full);
|
|
57895
57884
|
--_step-bar-track-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-200));
|
|
57896
57885
|
--_step-bar-compact-bar-height: var(--primitives-space-6);
|
|
57897
|
-
--_step-bar-progress-color: var(--semantics-
|
|
57886
|
+
--_step-bar-progress-color: var(--semantics-steps-progress-color);
|
|
57898
57887
|
--_step-bar-item-gap: var(--primitives-space-4);
|
|
57899
57888
|
--_step-bar-marker-size: var(--primitives-space-24);
|
|
57900
57889
|
--_step-bar-track-thickness: var(--primitives-space-2);
|
|
@@ -57903,8 +57892,10 @@ var stepBarStyles = css`
|
|
|
57903
57892
|
--_step-bar-ring-thickness: var(--semantics-surfaces-ring-thickness);
|
|
57904
57893
|
--_step-bar-ring-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
57905
57894
|
--_step-bar-marker-content-color: var(--semantics-content-secondary-color);
|
|
57906
|
-
--_step-bar-
|
|
57907
|
-
--_step-bar-
|
|
57895
|
+
--_step-bar-past-fill-color: var(--semantics-steps-is-past-background-color);
|
|
57896
|
+
--_step-bar-progress-content-color: var(--semantics-steps-is-past-content-color);
|
|
57897
|
+
--_step-bar-current-fill-color: var(--semantics-steps-is-current-background-color);
|
|
57898
|
+
--_step-bar-current-content-color: var(--semantics-content-accent-color);
|
|
57908
57899
|
--_step-bar-icon-size: var(--primitives-space-16);
|
|
57909
57900
|
--_step-bar-title-color: var(--semantics-content-secondary-color);
|
|
57910
57901
|
--_step-bar-current-title-color: var(--semantics-content-color);
|
|
@@ -58069,14 +58060,14 @@ var stepBarItemStyles = css`
|
|
|
58069
58060
|
}
|
|
58070
58061
|
|
|
58071
58062
|
.step-bar__item.is-past .step-bar__item-marker {
|
|
58072
|
-
background-color: var(--_step-bar-
|
|
58063
|
+
background-color: var(--_step-bar-past-fill-color);
|
|
58073
58064
|
color: var(--_step-bar-progress-content-color);
|
|
58074
58065
|
}
|
|
58075
58066
|
|
|
58076
58067
|
.step-bar__item.is-current .step-bar__item-marker {
|
|
58077
58068
|
border: var(--_step-bar-track-thickness) solid var(--_step-bar-progress-color);
|
|
58078
58069
|
background-color: var(--_step-bar-current-fill-color);
|
|
58079
|
-
color: var(--_step-bar-
|
|
58070
|
+
color: var(--_step-bar-current-content-color);
|
|
58080
58071
|
}
|
|
58081
58072
|
|
|
58082
58073
|
.step-bar__item-icon {
|