@ni/ok-components 0.3.8 → 0.3.9
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.
|
@@ -17817,6 +17817,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
17817
17817
|
:host([selected]) .control {
|
|
17818
17818
|
--ni-private-step-icon-color: ${borderHoverColor};
|
|
17819
17819
|
--ni-private-step-icon-border-color: ${borderHoverColor};
|
|
17820
|
+
--ni-private-step-icon-border-width: 2px;
|
|
17820
17821
|
--ni-private-step-icon-background-color: rgb(from ${borderHoverColor} r g b / 30%);
|
|
17821
17822
|
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-none-size);
|
|
17822
17823
|
--ni-private-step-line-color: ${borderHoverColor};
|
|
@@ -17856,10 +17857,6 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
17856
17857
|
box-shadow ${smallDelay} ease-in-out;
|
|
17857
17858
|
}
|
|
17858
17859
|
|
|
17859
|
-
:host([selected]) .icon {
|
|
17860
|
-
--ni-private-step-icon-border-width: 2px;
|
|
17861
|
-
}
|
|
17862
|
-
|
|
17863
17860
|
.icon::before {
|
|
17864
17861
|
content: '';
|
|
17865
17862
|
position: absolute;
|
|
@@ -17869,7 +17866,8 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
17869
17866
|
outline-color: var(--ni-private-step-icon-outline-inset-color);
|
|
17870
17867
|
outline-style: solid;
|
|
17871
17868
|
outline-width: 0px;
|
|
17872
|
-
outline-offset
|
|
17869
|
+
${'' /* outline-offset should always be <=-1 to always render inset */}
|
|
17870
|
+
outline-offset: -1px;
|
|
17873
17871
|
border: none;
|
|
17874
17872
|
border-radius: 100%;
|
|
17875
17873
|
color: transparent;
|
|
@@ -17947,9 +17945,9 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
17947
17945
|
min-width: ${standardPadding};
|
|
17948
17946
|
height: 1px;
|
|
17949
17947
|
min-height: 1px;
|
|
17948
|
+
transform: scale(1, 1);
|
|
17950
17949
|
background: var(--ni-private-step-line-color);
|
|
17951
17950
|
background-clip: content-box;
|
|
17952
|
-
transform: scale(1, 1);
|
|
17953
17951
|
transition:
|
|
17954
17952
|
background-color ${smallDelay} ease-in-out,
|
|
17955
17953
|
transform ${smallDelay} ease-in-out;
|
|
@@ -17963,8 +17961,8 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
17963
17961
|
width: 1px;
|
|
17964
17962
|
min-width: 1px;
|
|
17965
17963
|
height: 100%;
|
|
17966
|
-
padding-top: ${smallPadding};
|
|
17967
17964
|
min-height: ${standardPadding};
|
|
17965
|
+
padding-top: ${smallPadding};
|
|
17968
17966
|
}
|
|
17969
17967
|
|
|
17970
17968
|
.subtitle {
|
|
@@ -17993,6 +17991,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
17993
17991
|
@layer hover {
|
|
17994
17992
|
.control:hover {
|
|
17995
17993
|
--ni-private-step-icon-border-color: ${borderHoverColor};
|
|
17994
|
+
--ni-private-step-icon-border-width: 2px;
|
|
17996
17995
|
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-inset-size);
|
|
17997
17996
|
--ni-private-step-line-color: ${borderHoverColor};
|
|
17998
17997
|
}
|
|
@@ -18023,8 +18022,12 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
18023
18022
|
--ni-private-step-line-color: ${borderHoverColor};
|
|
18024
18023
|
}
|
|
18025
18024
|
|
|
18026
|
-
.control:hover
|
|
18027
|
-
--ni-private-step-icon-
|
|
18025
|
+
:host([readonly]) .control:hover {
|
|
18026
|
+
--ni-private-step-icon-color: revert-layer;
|
|
18027
|
+
--ni-private-step-icon-border-color: revert-layer;
|
|
18028
|
+
--ni-private-step-icon-border-width: revert-layer;
|
|
18029
|
+
--ni-private-step-icon-background-size: revert-layer;
|
|
18030
|
+
--ni-private-step-line-color: revert-layer;
|
|
18028
18031
|
}
|
|
18029
18032
|
|
|
18030
18033
|
.control:hover .line {
|
|
@@ -18034,11 +18037,16 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
18034
18037
|
.container.vertical .control:hover .line {
|
|
18035
18038
|
transform: scale(2, 1);
|
|
18036
18039
|
}
|
|
18040
|
+
|
|
18041
|
+
:host([readonly]) .container .control:hover .line {
|
|
18042
|
+
transform: revert-layer;
|
|
18043
|
+
}
|
|
18037
18044
|
}
|
|
18038
18045
|
|
|
18039
18046
|
@layer focusVisible {
|
|
18040
18047
|
.control${focusVisible} {
|
|
18041
18048
|
--ni-private-step-icon-border-color: ${borderHoverColor};
|
|
18049
|
+
--ni-private-step-icon-border-width: 2px;
|
|
18042
18050
|
--ni-private-step-icon-outline-inset-color: ${borderHoverColor};
|
|
18043
18051
|
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-inset-size);
|
|
18044
18052
|
--ni-private-step-line-color: ${borderHoverColor};
|
|
@@ -18074,10 +18082,6 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
18074
18082
|
--ni-private-step-line-color: ${borderHoverColor};
|
|
18075
18083
|
}
|
|
18076
18084
|
|
|
18077
|
-
.control${focusVisible} .icon {
|
|
18078
|
-
--ni-private-step-icon-border-width: 2px;
|
|
18079
|
-
}
|
|
18080
|
-
|
|
18081
18085
|
.control${focusVisible} .icon::before {
|
|
18082
18086
|
outline-width: ${borderWidth};
|
|
18083
18087
|
${'' /* -1px control to outline edge -2px focus border -1px inset gap */}
|
|
@@ -18096,6 +18100,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
18096
18100
|
@layer active {
|
|
18097
18101
|
.control:active {
|
|
18098
18102
|
--ni-private-step-icon-border-color: ${borderHoverColor};
|
|
18103
|
+
--ni-private-step-icon-border-width: 2px;
|
|
18099
18104
|
--ni-private-step-icon-background-color: ${fillSelectedColor};
|
|
18100
18105
|
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-full-size);
|
|
18101
18106
|
--ni-private-step-line-color: ${borderHoverColor};
|
|
@@ -18127,26 +18132,45 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
18127
18132
|
--ni-private-step-line-color: ${borderHoverColor};
|
|
18128
18133
|
}
|
|
18129
18134
|
|
|
18130
|
-
.control:active
|
|
18131
|
-
--ni-private-step-icon-
|
|
18135
|
+
:host([readonly]) .control:active {
|
|
18136
|
+
--ni-private-step-icon-color: revert-layer;
|
|
18137
|
+
--ni-private-step-icon-border-color: revert-layer;
|
|
18138
|
+
--ni-private-step-icon-border-width: revert-layer;
|
|
18139
|
+
--ni-private-step-icon-background-color: revert-layer;
|
|
18140
|
+
--ni-private-step-icon-background-size: revert-layer;
|
|
18141
|
+
--ni-private-step-line-color: revert-layer;
|
|
18132
18142
|
}
|
|
18133
18143
|
|
|
18134
18144
|
.control:active .icon::before {
|
|
18135
18145
|
outline-width: 0px;
|
|
18136
|
-
outline-offset:
|
|
18146
|
+
outline-offset: -1px;
|
|
18147
|
+
}
|
|
18148
|
+
|
|
18149
|
+
:host([readonly]) .control:active .icon::before {
|
|
18150
|
+
outline-width: revert-layer;
|
|
18151
|
+
outline-offset: revert-layer;
|
|
18137
18152
|
}
|
|
18138
18153
|
|
|
18139
18154
|
.control:active .line {
|
|
18140
18155
|
transform: scale(1, 1);
|
|
18141
18156
|
}
|
|
18157
|
+
|
|
18158
|
+
:host([readonly]) .control:active .line {
|
|
18159
|
+
transform: revert-layer;
|
|
18160
|
+
}
|
|
18142
18161
|
}
|
|
18143
18162
|
|
|
18144
18163
|
@layer disabled {
|
|
18164
|
+
:host([readonly]) .control {
|
|
18165
|
+
cursor: default;
|
|
18166
|
+
}
|
|
18167
|
+
|
|
18145
18168
|
:host([disabled]) .control {
|
|
18146
18169
|
cursor: default;
|
|
18147
18170
|
color: ${buttonLabelDisabledFontColor};
|
|
18148
18171
|
--ni-private-step-icon-color: rgb(from ${buttonLabelFontColor} r g b / 30%);
|
|
18149
18172
|
--ni-private-step-icon-border-color: transparent;
|
|
18173
|
+
--ni-private-step-icon-border-width: 1px;
|
|
18150
18174
|
--ni-private-step-icon-background-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
18151
18175
|
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-full-size);
|
|
18152
18176
|
--ni-private-step-icon-outline-inset-color: transparent;
|
|
@@ -19460,6 +19484,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
19460
19484
|
aria-owns="${x => x.ariaOwns}"
|
|
19461
19485
|
aria-relevant="${x => x.ariaRelevant}"
|
|
19462
19486
|
aria-roledescription="${x => x.ariaRoledescription}"
|
|
19487
|
+
@click="${(x, c) => x.onClick(c.event)}"
|
|
19463
19488
|
${ref('control')}
|
|
19464
19489
|
>
|
|
19465
19490
|
<div class="icon-background"></div>
|
|
@@ -19545,6 +19570,15 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
19545
19570
|
*/
|
|
19546
19571
|
this.stepInternals = new StepInternals();
|
|
19547
19572
|
}
|
|
19573
|
+
/**
|
|
19574
|
+
* @internal
|
|
19575
|
+
*/
|
|
19576
|
+
onClick(e) {
|
|
19577
|
+
if (this.disabled || this.readOnly) {
|
|
19578
|
+
e.preventDefault();
|
|
19579
|
+
e.stopImmediatePropagation();
|
|
19580
|
+
}
|
|
19581
|
+
}
|
|
19548
19582
|
}
|
|
19549
19583
|
__decorate([
|
|
19550
19584
|
attr()
|
|
@@ -66527,6 +66561,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
66527
66561
|
aria-pressed="${x => x.ariaPressed}"
|
|
66528
66562
|
aria-relevant="${x => x.ariaRelevant}"
|
|
66529
66563
|
aria-roledescription="${x => x.ariaRoledescription}"
|
|
66564
|
+
@click="${(x, c) => x.onClick(c.event)}"
|
|
66530
66565
|
${ref('control')}
|
|
66531
66566
|
>
|
|
66532
66567
|
<div class="icon-background"></div>
|
|
@@ -66580,6 +66615,15 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
66580
66615
|
*/
|
|
66581
66616
|
this.stepInternals = new StepInternals();
|
|
66582
66617
|
}
|
|
66618
|
+
/**
|
|
66619
|
+
* @internal
|
|
66620
|
+
*/
|
|
66621
|
+
onClick(e) {
|
|
66622
|
+
if (this.disabled || this.readOnly) {
|
|
66623
|
+
e.preventDefault();
|
|
66624
|
+
e.stopImmediatePropagation();
|
|
66625
|
+
}
|
|
66626
|
+
}
|
|
66583
66627
|
}
|
|
66584
66628
|
__decorate([
|
|
66585
66629
|
attr()
|