@hashicorp/design-system-components 4.23.0 → 4.23.1
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.
|
@@ -11,7 +11,7 @@ import { precompileTemplate } from '@ember/template-compilation';
|
|
|
11
11
|
import { g, i, n } from 'decorator-transforms/runtime';
|
|
12
12
|
import { setComponentTemplate } from '@ember/component';
|
|
13
13
|
|
|
14
|
-
var TEMPLATE = precompileTemplate("{{!\n Copyright (c) HashiCorp, Inc.\n SPDX-License-Identifier: MPL-2.0\n}}\n<div class={{this.classNames}} ...attributes {{style this.inlineStyles}} {{this._setUpStepperNav}}>\n <ol class=\"hds-stepper-nav__list\" aria-label={{@ariaLabel}} role={{if this.isInteractive \"tablist\"}}>\n {{#if @steps}}\n {{#each @steps as |step|}}\n <Hds::Stepper::Nav::Step\n @currentStep={{this.currentStep}}\n @isNavInteractive={{this.isInteractive}}\n @titleTag={{this.titleTag}}\n @didInsertNode={{this.didInsertStep}}\n @willDestroyNode={{this.willDestroyStep}}\n @stepIds={{this._stepIds}}\n @panelIds={{this._panelIds}}\n @onStepChange={{@onStepChange}}\n @onKeyUp={{this.onKeyUp}}\n >\n <:title>{{step.title}}</:title>\n <:description>{{step.description}}</:description>\n </Hds::Stepper::Nav::Step>\n {{/each}}\n {{else}}\n {{yield\n (hash\n Step=(component\n \"hds/stepper/nav/step\"\n currentStep=this.currentStep\n isNavInteractive=this.isInteractive\n titleTag=this.titleTag\n stepIds=this._stepIds\n panelIds=this._panelIds\n didInsertNode=this.didInsertStep\n willDestroyNode=this.willDestroyStep\n onStepChange=@onStepChange\n onKeyUp=this.onKeyUp\n )\n )\n }}\n {{/if}}\n </ol>\n {{#if (and @steps (has-block \"body\"))}}\n {{#each @steps}}\n <Hds::Stepper::Nav::Panel\n @currentStep={{this.currentStep}}\n @isNavInteractive={{this.isInteractive}}\n @stepIds={{this._stepIds}}\n @panelIds={{this._panelIds}}\n @didInsertNode={{this.didInsertPanel}}\n @willDestroyNode={{this.willDestroyPanel}}\n >\n {{yield to=\"body\"}}\n </Hds::Stepper::Nav::Panel>\n {{/each}}\n {{else}}\n {{yield\n (hash\n Panel=(component\n \"hds/stepper/nav/panel\"\n currentStep=this.currentStep\n isNavInteractive=this.isInteractive\n stepIds=this._stepIds\n panelIds=this._panelIds\n didInsertNode=this.didInsertPanel\n willDestroyNode=this.willDestroyPanel\n )\n )\n }}\n {{/if}}\n</div>");
|
|
14
|
+
var TEMPLATE = precompileTemplate("{{!\n Copyright (c) HashiCorp, Inc.\n SPDX-License-Identifier: MPL-2.0\n}}\n<div class={{this.classNames}} ...attributes {{style this.inlineStyles}} {{this._setUpStepperNav}}>\n <div class=\"hds-stepper-nav__progress-bar\"></div>\n <ol class=\"hds-stepper-nav__list\" aria-label={{@ariaLabel}} role={{if this.isInteractive \"tablist\"}}>\n {{#if @steps}}\n {{#each @steps as |step|}}\n <Hds::Stepper::Nav::Step\n @currentStep={{this.currentStep}}\n @isNavInteractive={{this.isInteractive}}\n @titleTag={{this.titleTag}}\n @didInsertNode={{this.didInsertStep}}\n @willDestroyNode={{this.willDestroyStep}}\n @stepIds={{this._stepIds}}\n @panelIds={{this._panelIds}}\n @onStepChange={{@onStepChange}}\n @onKeyUp={{this.onKeyUp}}\n >\n <:title>{{step.title}}</:title>\n <:description>{{step.description}}</:description>\n </Hds::Stepper::Nav::Step>\n {{/each}}\n {{else}}\n {{yield\n (hash\n Step=(component\n \"hds/stepper/nav/step\"\n currentStep=this.currentStep\n isNavInteractive=this.isInteractive\n titleTag=this.titleTag\n stepIds=this._stepIds\n panelIds=this._panelIds\n didInsertNode=this.didInsertStep\n willDestroyNode=this.willDestroyStep\n onStepChange=@onStepChange\n onKeyUp=this.onKeyUp\n )\n )\n }}\n {{/if}}\n </ol>\n {{#if (and @steps (has-block \"body\"))}}\n {{#each @steps}}\n <Hds::Stepper::Nav::Panel\n @currentStep={{this.currentStep}}\n @isNavInteractive={{this.isInteractive}}\n @stepIds={{this._stepIds}}\n @panelIds={{this._panelIds}}\n @didInsertNode={{this.didInsertPanel}}\n @willDestroyNode={{this.willDestroyPanel}}\n >\n {{yield to=\"body\"}}\n </Hds::Stepper::Nav::Panel>\n {{/each}}\n {{else}}\n {{yield\n (hash\n Panel=(component\n \"hds/stepper/nav/panel\"\n currentStep=this.currentStep\n isNavInteractive=this.isInteractive\n stepIds=this._stepIds\n panelIds=this._panelIds\n didInsertNode=this.didInsertPanel\n willDestroyNode=this.willDestroyPanel\n )\n )\n }}\n {{/if}}\n</div>");
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Copyright (c) HashiCorp, Inc.
|
|
@@ -8919,11 +8919,11 @@ button.hds-button[href]::after {
|
|
|
8919
8919
|
stroke: var(--token-color-palette-blue-400);
|
|
8920
8920
|
}
|
|
8921
8921
|
|
|
8922
|
-
.hds-stepper-
|
|
8922
|
+
.hds-stepper-nav__progress-bar {
|
|
8923
8923
|
position: relative;
|
|
8924
8924
|
isolation: isolate;
|
|
8925
8925
|
}
|
|
8926
|
-
.hds-stepper-
|
|
8926
|
+
.hds-stepper-nav__progress-bar::before, .hds-stepper-nav__progress-bar::after {
|
|
8927
8927
|
position: absolute;
|
|
8928
8928
|
top: -4px;
|
|
8929
8929
|
left: 0;
|
|
@@ -8931,17 +8931,17 @@ button.hds-button[href]::after {
|
|
|
8931
8931
|
height: 4px;
|
|
8932
8932
|
content: "";
|
|
8933
8933
|
}
|
|
8934
|
-
.hds-stepper-
|
|
8934
|
+
.hds-stepper-nav__progress-bar::before {
|
|
8935
8935
|
width: 100%;
|
|
8936
8936
|
background: linear-gradient(0deg, var(--token-color-palette-alpha-200) 0%, var(--token-color-palette-alpha-200) 100%), var(--token-color-palette-neutral-100);
|
|
8937
8937
|
}
|
|
8938
|
-
.hds-stepper-
|
|
8938
|
+
.hds-stepper-nav__progress-bar::after {
|
|
8939
8939
|
width: var(--hds-stepper-nav-progress-bar-width, 0);
|
|
8940
8940
|
background-color: var(--token-color-palette-neutral-700);
|
|
8941
8941
|
border-radius: 0 var(--token-border-radius-x-small) var(--token-border-radius-x-small) 0;
|
|
8942
8942
|
}
|
|
8943
8943
|
@media (prefers-reduced-motion: no-preference) {
|
|
8944
|
-
.hds-stepper-
|
|
8944
|
+
.hds-stepper-nav__progress-bar::after {
|
|
8945
8945
|
transition: width 0.25s ease-in-out;
|
|
8946
8946
|
}
|
|
8947
8947
|
}
|
|
@@ -9021,7 +9021,7 @@ button.hds-button[href]::after {
|
|
|
9021
9021
|
}
|
|
9022
9022
|
}
|
|
9023
9023
|
|
|
9024
|
-
.hds-stepper-nav--interactive::after {
|
|
9024
|
+
.hds-stepper-nav--interactive .hds-stepper-nav__progress-bar::after {
|
|
9025
9025
|
background-color: var(--token-color-palette-blue-200);
|
|
9026
9026
|
}
|
|
9027
9027
|
.hds-stepper-nav--interactive .hds-stepper-nav__step--complete .hds-stepper-nav__step-title,
|
|
@@ -9291,7 +9291,7 @@ button.hds-button[href]::after {
|
|
|
9291
9291
|
}
|
|
9292
9292
|
|
|
9293
9293
|
@media screen and (max-width: 479.98px) {
|
|
9294
|
-
.hds-stepper-
|
|
9294
|
+
.hds-stepper-nav__progress-bar::before, .hds-stepper-nav__progress-bar::after {
|
|
9295
9295
|
content: none;
|
|
9296
9296
|
}
|
|
9297
9297
|
.hds-stepper-nav__list {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
$progress-bar-animation-duration: 0.25s;
|
|
16
16
|
|
|
17
|
-
.hds-stepper-
|
|
17
|
+
.hds-stepper-nav__progress-bar {
|
|
18
18
|
position: relative;
|
|
19
19
|
isolation: isolate;
|
|
20
20
|
|
|
@@ -137,7 +137,7 @@ $progress-bar-animation-duration: 0.25s;
|
|
|
137
137
|
// NAV INTERACTIVE
|
|
138
138
|
|
|
139
139
|
.hds-stepper-nav--interactive {
|
|
140
|
-
|
|
140
|
+
.hds-stepper-nav__progress-bar::after {
|
|
141
141
|
background-color: var(--token-color-palette-blue-200);
|
|
142
142
|
}
|
|
143
143
|
|
|
@@ -292,7 +292,7 @@ $progress-bar-animation-duration: 0.25s;
|
|
|
292
292
|
// MOBILE
|
|
293
293
|
|
|
294
294
|
@include hds-breakpoint-below("sm") {
|
|
295
|
-
.hds-stepper-
|
|
295
|
+
.hds-stepper-nav__progress-bar {
|
|
296
296
|
&::before,
|
|
297
297
|
&::after {
|
|
298
298
|
content: none;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashicorp/design-system-components",
|
|
3
|
-
"version": "4.23.
|
|
3
|
+
"version": "4.23.1",
|
|
4
4
|
"description": "Helios Design System Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hashicorp",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@embroider/macros": "^1.18.1",
|
|
36
36
|
"@embroider/util": "^1.13.4",
|
|
37
37
|
"@floating-ui/dom": "^1.6.12",
|
|
38
|
-
"@hashicorp/design-system-tokens": "^2.3.
|
|
38
|
+
"@hashicorp/design-system-tokens": "^2.3.1",
|
|
39
39
|
"@hashicorp/flight-icons": "^3.13.0",
|
|
40
40
|
"@lezer/highlight": "^1.2.1",
|
|
41
41
|
"@nullvoxpopuli/ember-composable-helpers": "^5.2.11",
|