@ds-autonomie/web-components 1.1.0 → 1.2.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.
Files changed (83) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/chunks/chunk.2WSMYCPC.js +24 -0
  3. package/dist/chunks/{chunk.T7JSALXE.js → chunk.3HI3T5R2.js} +1 -1
  4. package/dist/chunks/chunk.3I2KXA35.js +126 -0
  5. package/dist/chunks/{chunk.NOEQVLAW.js → chunk.4DWONP4W.js} +1 -1
  6. package/dist/chunks/{chunk.LSKBY2HF.js → chunk.5BTJP6HC.js} +1 -1
  7. package/dist/chunks/{chunk.NKPNQBLW.js → chunk.AFAQWHMU.js} +4 -4
  8. package/dist/chunks/{chunk.4MC32HP7.js → chunk.B4O7IAPL.js} +1 -1
  9. package/dist/chunks/chunk.CCTWXABH.js +13 -0
  10. package/dist/chunks/{chunk.VIULAG23.js → chunk.DOMRNQHQ.js} +1 -1
  11. package/dist/chunks/{chunk.7EWUWW3E.js → chunk.FHGXKQDW.js} +1 -1
  12. package/dist/chunks/{chunk.AYXPVAYS.js → chunk.FKIKQX6B.js} +1 -1
  13. package/dist/chunks/{chunk.V6V7AGDB.js → chunk.GRV3MK3D.js} +1 -1
  14. package/dist/chunks/{chunk.L6LQN6AI.js → chunk.IJL7YMFL.js} +1 -1
  15. package/dist/chunks/{chunk.GJCVGGCP.js → chunk.JJ3GF7YP.js} +1 -1
  16. package/dist/chunks/{chunk.F4XMSVNF.js → chunk.JLMY5OVR.js} +1 -1
  17. package/dist/chunks/{chunk.U5KRBVRP.js → chunk.K6YLMID4.js} +1 -1
  18. package/dist/chunks/{chunk.ST2QYN4S.js → chunk.KOZIER6A.js} +1 -1
  19. package/dist/chunks/{chunk.ILUHEJYG.js → chunk.LUHEO6AS.js} +1 -1
  20. package/dist/chunks/{chunk.NBQ3AEK6.js → chunk.MDFIMRCC.js} +1 -1
  21. package/dist/chunks/{chunk.IQ7SDYSC.js → chunk.NBPVVWJU.js} +10 -0
  22. package/dist/chunks/{chunk.RSJYKNXT.js → chunk.NQU3YD5L.js} +1 -1
  23. package/dist/chunks/{chunk.6BJBVSW4.js → chunk.OGQBKAFT.js} +1 -1
  24. package/dist/chunks/{chunk.CBMFAOZI.js → chunk.ORSUTGLR.js} +1 -1
  25. package/dist/chunks/{chunk.R37CT3PN.js → chunk.OXSDZ5LQ.js} +1 -1
  26. package/dist/chunks/{chunk.DFTZEFHF.js → chunk.P2AJBSND.js} +1 -1
  27. package/dist/chunks/chunk.QSNJ4FV6.js +54 -0
  28. package/dist/chunks/{chunk.DZWH4V6H.js → chunk.RDVFMQLV.js} +1 -1
  29. package/dist/chunks/{chunk.QSPKKO3T.js → chunk.TINRLVWL.js} +1 -1
  30. package/dist/chunks/{chunk.HEOTAAPU.js → chunk.WG5VRMQG.js} +1 -1
  31. package/dist/chunks/{chunk.W74UQSZJ.js → chunk.XJPCULMC.js} +1 -1
  32. package/dist/chunks/chunk.YRBTSDUN.js +134 -0
  33. package/dist/chunks/{chunk.2CCKS3CP.js → chunk.ZXVIEHXI.js} +1 -1
  34. package/dist/components/accordion/accordion.js +2 -2
  35. package/dist/components/alert/alert.js +2 -2
  36. package/dist/components/breadcrumb/breadcrumb.js +2 -2
  37. package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
  38. package/dist/components/button/button.js +3 -3
  39. package/dist/components/combobox/combobox.js +3 -3
  40. package/dist/components/dialog/dialog.js +2 -2
  41. package/dist/components/drawer/drawer.js +2 -2
  42. package/dist/components/dropdown/dropdown.js +2 -2
  43. package/dist/components/format-bytes/format-bytes.js +2 -2
  44. package/dist/components/format-date/format-date.js +2 -2
  45. package/dist/components/format-number/format-number.js +2 -2
  46. package/dist/components/input/input.js +2 -2
  47. package/dist/components/input-mask/input-mask.js +2 -2
  48. package/dist/components/input-phone/input-phone.js +7 -7
  49. package/dist/components/option/option.js +2 -2
  50. package/dist/components/progress-bar/progress-bar.js +2 -2
  51. package/dist/components/relative-time/relative-time.js +2 -2
  52. package/dist/components/select/select.js +3 -3
  53. package/dist/components/spinner/spinner.js +2 -2
  54. package/dist/components/step/step.d.ts +39 -0
  55. package/dist/components/step/step.js +24 -0
  56. package/dist/components/step/step.styles.d.ts +2 -0
  57. package/dist/components/step/step.styles.js +8 -0
  58. package/dist/components/step/step.utils.d.ts +3 -0
  59. package/dist/components/step/step.utils.js +7 -0
  60. package/dist/components/stepper/stepper.d.ts +23 -0
  61. package/dist/components/stepper/stepper.js +10 -0
  62. package/dist/components/stepper/stepper.styles.d.ts +2 -0
  63. package/dist/components/stepper/stepper.styles.js +8 -0
  64. package/dist/components/tab/tab.js +2 -2
  65. package/dist/components/tab-group/tab-group.js +2 -2
  66. package/dist/components/tag/tag.js +2 -2
  67. package/dist/components/tooltip/tooltip.js +2 -2
  68. package/dist/components/tree/tree.js +4 -4
  69. package/dist/components/tree-item/tree-item.js +3 -3
  70. package/dist/custom-elements.json +255 -1
  71. package/dist/design-system.d.ts +2 -0
  72. package/dist/design-system.js +50 -39
  73. package/dist/themes/dsa-wc-theme.css +42 -0
  74. package/dist/themes/dsa-wc-theme.min.css +1 -1
  75. package/dist/themes/dsa-wc-theme.styles.js +42 -0
  76. package/dist/translations/en-gb.js +1 -1
  77. package/dist/translations/en.js +1 -1
  78. package/dist/translations/fr.js +1 -1
  79. package/dist/utilities/localize.d.ts +5 -0
  80. package/dist/utilities/localize.js +1 -1
  81. package/dist/vscode.html-custom-data.json +39 -0
  82. package/dist/web-types.json +120 -1
  83. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @ds-autonomie/web-components
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b63aa59: `stepper`, `step`: implémentation des composants stepper et step
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [b63aa59]
12
+ - @ds-autonomie/assets@1.1.1
13
+
3
14
  ## 1.1.0
4
15
 
5
16
  ### Minor Changes
@@ -0,0 +1,24 @@
1
+ import {
2
+ component_styles_default
3
+ } from "./chunk.TUVJKY7S.js";
4
+
5
+ // src/components/stepper/stepper.styles.ts
6
+ import { css } from "lit";
7
+ var stepper_styles_default = css`
8
+ ${component_styles_default}
9
+
10
+ .stepper {
11
+ display: grid;
12
+ grid-auto-flow: column;
13
+ grid-auto-columns: 1fr;
14
+ list-style-type: none;
15
+ }
16
+
17
+ .slot_steps {
18
+ display: none;
19
+ }
20
+ `;
21
+
22
+ export {
23
+ stepper_styles_default
24
+ };
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk.V7RJROLH.js";
15
15
  import {
16
16
  LocalizeController
17
- } from "./chunk.IQ7SDYSC.js";
17
+ } from "./chunk.NBPVVWJU.js";
18
18
  import {
19
19
  watch
20
20
  } from "./chunk.6IH66JBY.js";
@@ -0,0 +1,126 @@
1
+ import {
2
+ step_styles_default
3
+ } from "./chunk.YRBTSDUN.js";
4
+ import {
5
+ getStepIcon
6
+ } from "./chunk.CCTWXABH.js";
7
+ import {
8
+ HasSlotController
9
+ } from "./chunk.YIY5RM53.js";
10
+ import {
11
+ LocalizeController
12
+ } from "./chunk.NBPVVWJU.js";
13
+ import {
14
+ ShoelaceElement
15
+ } from "./chunk.YCXTCVAZ.js";
16
+ import {
17
+ __decorateClass
18
+ } from "./chunk.6M63UXML.js";
19
+
20
+ // src/components/step/step.ts
21
+ import { html } from "lit";
22
+ import { customElement, property } from "lit/decorators.js";
23
+ import { classMap } from "lit/directives/class-map.js";
24
+ var DSAStep = class extends ShoelaceElement {
25
+ constructor() {
26
+ super(...arguments);
27
+ this.hasSlotController = new HasSlotController(
28
+ this,
29
+ "title",
30
+ "content"
31
+ );
32
+ this.localize = new LocalizeController(this);
33
+ this.status = "default";
34
+ this.title = "";
35
+ this.content = "";
36
+ }
37
+ getStepLabel() {
38
+ switch (this.status) {
39
+ case "default":
40
+ return this.localize.term("step");
41
+ case "complete":
42
+ return this.localize.term("stepCompleted");
43
+ case "in-progress":
44
+ return this.localize.term("stepInProgress");
45
+ case "active":
46
+ return this.localize.term("stepActive");
47
+ case "error":
48
+ return this.localize.term("stepError");
49
+ }
50
+ return this.localize.term("step");
51
+ }
52
+ render() {
53
+ const hasTitleSlot = this.hasSlotController.test("title");
54
+ const hasContentSlot = this.hasSlotController.test("content");
55
+ const hasTitle = this.title ? true : !!hasTitleSlot;
56
+ const hasContent = this.content ? true : !!hasContentSlot;
57
+ const stepIconName = this.status !== "in-progress" && this.status !== "active" ? getStepIcon(this.status) : void 0;
58
+ const stepLabel = this.getStepLabel();
59
+ return html`
60
+ <div
61
+ role="listitem"
62
+ part="step"
63
+ class=${classMap({
64
+ "step-container": true,
65
+ "step-container--has-title": hasTitle,
66
+ "step-container--has-content": hasContent
67
+ })}
68
+ >
69
+ <div
70
+ class=${classMap({
71
+ step: true,
72
+ "step--default": this.status === "default",
73
+ "step--complete": this.status === "complete",
74
+ "step--in-progress": this.status === "in-progress" || this.status === "active",
75
+ "step--error": this.status === "error"
76
+ })}
77
+ >
78
+ ${this.status === "in-progress" || this.status === "active" ? html`<span class="step-icon--in-progress"
79
+ ><dsa-visually-hidden>${stepLabel}</dsa-visually-hidden></span
80
+ >` : html`<dsa-icon
81
+ class="step-icon"
82
+ name="${stepIconName}"
83
+ label=${stepLabel}
84
+ ></dsa-icon>`}
85
+ </div>
86
+
87
+ ${this.index !== void 0 ? html`
88
+ <p class="step-index">
89
+ ${this.localize.term("step")} ${this.index + 1}
90
+ </p>
91
+ ` : html``}
92
+
93
+ <div class="step-title-container">
94
+ <slot
95
+ name="title"
96
+ class="step-title"
97
+ aria-hidden=${hasTitle ? "false" : "true"}
98
+ >${this.title}</slot
99
+ >
100
+ <slot name="tooltip" class="step-tooltip"></slot>
101
+ </div>
102
+ <slot name="content" class="step-content">${this.content}</slot>
103
+ </div>
104
+ `;
105
+ }
106
+ };
107
+ DSAStep.styles = step_styles_default;
108
+ __decorateClass([
109
+ property()
110
+ ], DSAStep.prototype, "status", 2);
111
+ __decorateClass([
112
+ property()
113
+ ], DSAStep.prototype, "title", 2);
114
+ __decorateClass([
115
+ property()
116
+ ], DSAStep.prototype, "content", 2);
117
+ __decorateClass([
118
+ property()
119
+ ], DSAStep.prototype, "index", 2);
120
+ DSAStep = __decorateClass([
121
+ customElement("dsa-step")
122
+ ], DSAStep);
123
+
124
+ export {
125
+ DSAStep
126
+ };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.2DGAEK66.js";
4
4
  import {
5
5
  LocalizeController
6
- } from "./chunk.IQ7SDYSC.js";
6
+ } from "./chunk.NBPVVWJU.js";
7
7
  import {
8
8
  watch
9
9
  } from "./chunk.6IH66JBY.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk.V7RJROLH.js";
16
16
  import {
17
17
  LocalizeController
18
- } from "./chunk.IQ7SDYSC.js";
18
+ } from "./chunk.NBPVVWJU.js";
19
19
  import {
20
20
  watch
21
21
  } from "./chunk.6IH66JBY.js";
@@ -1,12 +1,12 @@
1
- import {
2
- DSATreeItem
3
- } from "./chunk.NBQ3AEK6.js";
4
1
  import {
5
2
  tree_styles_default
6
3
  } from "./chunk.73T7TU6S.js";
4
+ import {
5
+ DSATreeItem
6
+ } from "./chunk.MDFIMRCC.js";
7
7
  import {
8
8
  LocalizeController
9
- } from "./chunk.IQ7SDYSC.js";
9
+ } from "./chunk.NBPVVWJU.js";
10
10
  import {
11
11
  watch
12
12
  } from "./chunk.6IH66JBY.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DSASelect
3
- } from "./chunk.GJCVGGCP.js";
3
+ } from "./chunk.JJ3GF7YP.js";
4
4
  import {
5
5
  frenchFlag,
6
6
  frenchNumberPrefix,
@@ -0,0 +1,13 @@
1
+ // src/components/step/step.utils.ts
2
+ var stepIcons = {
3
+ default: "",
4
+ complete: "check",
5
+ error: "error_outline"
6
+ };
7
+ function getStepIcon(status) {
8
+ return stepIcons[status];
9
+ }
10
+
11
+ export {
12
+ getStepIcon
13
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LocalizeController
3
- } from "./chunk.IQ7SDYSC.js";
3
+ } from "./chunk.NBPVVWJU.js";
4
4
  import {
5
5
  ShoelaceElement
6
6
  } from "./chunk.YCXTCVAZ.js";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk.ZQJVCRB2.js";
20
20
  import {
21
21
  LocalizeController
22
- } from "./chunk.IQ7SDYSC.js";
22
+ } from "./chunk.NBPVVWJU.js";
23
23
  import {
24
24
  watch
25
25
  } from "./chunk.6IH66JBY.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LocalizeController
3
- } from "./chunk.IQ7SDYSC.js";
3
+ } from "./chunk.NBPVVWJU.js";
4
4
  import {
5
5
  ShoelaceElement
6
6
  } from "./chunk.YCXTCVAZ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LocalizeController
3
- } from "./chunk.IQ7SDYSC.js";
3
+ } from "./chunk.NBPVVWJU.js";
4
4
  import {
5
5
  ShoelaceElement
6
6
  } from "./chunk.YCXTCVAZ.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.EMIT7S33.js";
7
7
  import {
8
8
  LocalizeController
9
- } from "./chunk.IQ7SDYSC.js";
9
+ } from "./chunk.NBPVVWJU.js";
10
10
  import {
11
11
  watch
12
12
  } from "./chunk.6IH66JBY.js";
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk.V7RJROLH.js";
30
30
  import {
31
31
  LocalizeController
32
- } from "./chunk.IQ7SDYSC.js";
32
+ } from "./chunk.NBPVVWJU.js";
33
33
  import {
34
34
  watch
35
35
  } from "./chunk.6IH66JBY.js";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk.ZQJVCRB2.js";
20
20
  import {
21
21
  LocalizeController
22
- } from "./chunk.IQ7SDYSC.js";
22
+ } from "./chunk.NBPVVWJU.js";
23
23
  import {
24
24
  watch
25
25
  } from "./chunk.6IH66JBY.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.ZQJVCRB2.js";
7
7
  import {
8
8
  LocalizeController
9
- } from "./chunk.IQ7SDYSC.js";
9
+ } from "./chunk.NBPVVWJU.js";
10
10
  import {
11
11
  ShoelaceElement
12
12
  } from "./chunk.YCXTCVAZ.js";
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk.V7RJROLH.js";
28
28
  import {
29
29
  LocalizeController
30
- } from "./chunk.IQ7SDYSC.js";
30
+ } from "./chunk.NBPVVWJU.js";
31
31
  import {
32
32
  watch
33
33
  } from "./chunk.6IH66JBY.js";
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk.V7RJROLH.js";
12
12
  import {
13
13
  LocalizeController
14
- } from "./chunk.IQ7SDYSC.js";
14
+ } from "./chunk.NBPVVWJU.js";
15
15
  import {
16
16
  alert_styles_default
17
17
  } from "./chunk.Z6TBD2AC.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk.V7RJROLH.js";
13
13
  import {
14
14
  LocalizeController
15
- } from "./chunk.IQ7SDYSC.js";
15
+ } from "./chunk.NBPVVWJU.js";
16
16
  import {
17
17
  watch
18
18
  } from "./chunk.6IH66JBY.js";
@@ -36,6 +36,11 @@ var translation = {
36
36
  slideNum: (slide) => `Diapositive ${slide}`,
37
37
  toggleColorFormat: "Changer le format de couleur",
38
38
  noMatchFound: "Aucune correspondance trouv\xE9e",
39
+ step: "\xC9tape",
40
+ stepActive: "\xC9tape active",
41
+ stepCompleted: "\xC9tape valid\xE9e",
42
+ stepInProgress: "\xC9tape en cours",
43
+ stepError: "\xC9tape en erreur",
39
44
  // countries
40
45
  fr_FR: "France",
41
46
  fr_GP: "Guadeloupe",
@@ -86,6 +91,11 @@ var translation2 = {
86
91
  slideNum: (slide) => `Slide ${slide}`,
87
92
  toggleColorFormat: "Toggle color format",
88
93
  noMatchFound: "No match found",
94
+ step: "Step",
95
+ stepActive: "Active step",
96
+ stepCompleted: "Step completed",
97
+ stepInProgress: "Step in progress",
98
+ stepError: "Step in error",
89
99
  // countries
90
100
  fr_FR: "France",
91
101
  fr_GP: "Guadeloupe",
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk.V7RJROLH.js";
28
28
  import {
29
29
  LocalizeController
30
- } from "./chunk.IQ7SDYSC.js";
30
+ } from "./chunk.NBPVVWJU.js";
31
31
  import {
32
32
  watch
33
33
  } from "./chunk.6IH66JBY.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LocalizeController
3
- } from "./chunk.IQ7SDYSC.js";
3
+ } from "./chunk.NBPVVWJU.js";
4
4
  import {
5
5
  ShoelaceElement
6
6
  } from "./chunk.YCXTCVAZ.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.YIY5RM53.js";
7
7
  import {
8
8
  LocalizeController
9
- } from "./chunk.IQ7SDYSC.js";
9
+ } from "./chunk.NBPVVWJU.js";
10
10
  import {
11
11
  ShoelaceElement
12
12
  } from "./chunk.YCXTCVAZ.js";
@@ -26,7 +26,7 @@ import {
26
26
  } from "./chunk.V7RJROLH.js";
27
27
  import {
28
28
  LocalizeController
29
- } from "./chunk.IQ7SDYSC.js";
29
+ } from "./chunk.NBPVVWJU.js";
30
30
  import {
31
31
  watch
32
32
  } from "./chunk.6IH66JBY.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.FIGO7UV2.js";
4
4
  import {
5
5
  LocalizeController
6
- } from "./chunk.IQ7SDYSC.js";
6
+ } from "./chunk.NBPVVWJU.js";
7
7
  import {
8
8
  watch
9
9
  } from "./chunk.6IH66JBY.js";
@@ -0,0 +1,54 @@
1
+ import {
2
+ stepper_styles_default
3
+ } from "./chunk.2WSMYCPC.js";
4
+ import {
5
+ ShoelaceElement
6
+ } from "./chunk.YCXTCVAZ.js";
7
+ import {
8
+ __decorateClass
9
+ } from "./chunk.6M63UXML.js";
10
+
11
+ // src/components/stepper/stepper.ts
12
+ import { html } from "lit";
13
+ import { customElement, property } from "lit/decorators.js";
14
+ var STEP_TAG = "dsa-step";
15
+ var DSAStepper = class extends ShoelaceElement {
16
+ connectedCallback() {
17
+ super.connectedCallback();
18
+ }
19
+ // Gets an array of all <dsa-step> elements
20
+ getAllSteps() {
21
+ return [...this.querySelectorAll(STEP_TAG)];
22
+ }
23
+ handleDefaultSlotChange() {
24
+ const allSteps = this.getAllSteps();
25
+ if (customElements.get(STEP_TAG)) {
26
+ if (this.hideLabel) {
27
+ return;
28
+ }
29
+ allSteps.forEach((step, index) => {
30
+ step.index = index;
31
+ });
32
+ } else {
33
+ customElements.whenDefined(STEP_TAG).then(() => this.handleDefaultSlotChange());
34
+ }
35
+ }
36
+ render() {
37
+ return html`
38
+ <div role="list" class="stepper">
39
+ <slot @slotchange=${this.handleDefaultSlotChange}> </slot>
40
+ </div>
41
+ `;
42
+ }
43
+ };
44
+ DSAStepper.styles = stepper_styles_default;
45
+ __decorateClass([
46
+ property()
47
+ ], DSAStepper.prototype, "hideLabel", 2);
48
+ DSAStepper = __decorateClass([
49
+ customElement("dsa-stepper")
50
+ ], DSAStepper);
51
+
52
+ export {
53
+ DSAStepper
54
+ };
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.ZQJVCRB2.js";
7
7
  import {
8
8
  LocalizeController
9
- } from "./chunk.IQ7SDYSC.js";
9
+ } from "./chunk.NBPVVWJU.js";
10
10
  import {
11
11
  ShoelaceElement
12
12
  } from "./chunk.YCXTCVAZ.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.IGYXUK7A.js";
4
4
  import {
5
5
  LocalizeController
6
- } from "./chunk.IQ7SDYSC.js";
6
+ } from "./chunk.NBPVVWJU.js";
7
7
  import {
8
8
  ShoelaceElement
9
9
  } from "./chunk.YCXTCVAZ.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk.V7RJROLH.js";
16
16
  import {
17
17
  LocalizeController
18
- } from "./chunk.IQ7SDYSC.js";
18
+ } from "./chunk.NBPVVWJU.js";
19
19
  import {
20
20
  watch
21
21
  } from "./chunk.6IH66JBY.js";
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk.ZQJVCRB2.js";
14
14
  import {
15
15
  LocalizeController
16
- } from "./chunk.IQ7SDYSC.js";
16
+ } from "./chunk.NBPVVWJU.js";
17
17
  import {
18
18
  watch
19
19
  } from "./chunk.6IH66JBY.js";
@@ -0,0 +1,134 @@
1
+ import {
2
+ component_styles_default
3
+ } from "./chunk.TUVJKY7S.js";
4
+
5
+ // src/components/step/step.styles.ts
6
+ import { css } from "lit";
7
+ var step_styles_default = css`
8
+ ${component_styles_default}
9
+
10
+ :host(:first-of-type) .step:before {
11
+ content: unset;
12
+ }
13
+
14
+ .step-container {
15
+ display: grid;
16
+ position: relative;
17
+ align-content: start;
18
+ grid-template:
19
+ 'icon .'
20
+ 'index .'
21
+ 'title title'
22
+ 'content content' 1fr
23
+ / auto minmax(0, 1fr);
24
+ padding-right: var(--dsa-spacing-24);
25
+ }
26
+
27
+ .step-container .step-title-container {
28
+ grid-area: title;
29
+ display: none;
30
+ }
31
+
32
+ .step-container--has-title .step-title-container {
33
+ display: inline-flex;
34
+ }
35
+
36
+ .step-title {
37
+ color: var(--dsa-wc-stepper-color-title);
38
+ font: var(--dsa-wc-stepper-font-title);
39
+ }
40
+
41
+ .step-tooltip {
42
+ display: inline-block;
43
+ margin-left: auto;
44
+ position: relative;
45
+ top: 2px;
46
+ }
47
+
48
+ .step:before {
49
+ content: '';
50
+ position: absolute;
51
+ width: 100%;
52
+ height: 1.4px;
53
+ background-color: var(--dsa-wc-stepper-color-progress-default);
54
+ right: calc(100% + var(--dsa-spacing-4));
55
+ width: calc(100% - calc(var(--dsa-spacing-4) + var(--dsa-spacing-32)));
56
+ z-index: -1;
57
+ }
58
+
59
+ .step--complete:before {
60
+ background-color: var(--dsa-wc-stepper-color-progress-complete);
61
+ }
62
+
63
+ .step {
64
+ grid-area: icon;
65
+ height: var(--dsa-wc-stepper-icon-size);
66
+ width: var(--dsa-wc-stepper-icon-size);
67
+ display: flex;
68
+ justify-content: center;
69
+ align-items: center;
70
+ border-radius: var(--dsa-radius-32);
71
+ border-width: var(--dsa-wc-stepper-icon-border-width);
72
+ border-style: var(--dsa-wc-stepper-icon-border-style);
73
+ margin-bottom: var(--dsa-spacing-16);
74
+ }
75
+
76
+ .step--default {
77
+ border-color: var(--dsa-wc-stepper-color-tag-blocked-base);
78
+ }
79
+
80
+ .step--complete {
81
+ border-color: var(--dsa-wc-stepper-color-tag-complete-base);
82
+ background-color: var(--dsa-wc-stepper-color-tag-complete-base);
83
+ }
84
+
85
+ .step--complete .step-icon {
86
+ color: var(--dsa-wc-stepper-color-tag-complete-on-base);
87
+ }
88
+
89
+ .step--error {
90
+ border-color: var(--dsa-wc-stepper-color-tag-error-base);
91
+ background-color: var(--dsa-wc-stepper-color-tag-error-base);
92
+ }
93
+
94
+ .step--error .step-icon {
95
+ color: var(--dsa-wc-stepper-color-tag-error-on-base);
96
+ }
97
+
98
+ .step--in-progress {
99
+ border-color: var(--dsa-wc-stepper-color-tag-in-progress-base);
100
+ }
101
+
102
+ .step-icon--in-progress {
103
+ height: var(--dsa-wc-stepper-icon-in-progress-size);
104
+ width: var(--dsa-wc-stepper-icon-in-progress-size);
105
+ background-color: var(--dsa-wc-stepper-color-tag-in-progress-base);
106
+ border-radius: var(--dsa-radius-8);
107
+ }
108
+
109
+ .step-container .step-content {
110
+ grid-area: content;
111
+ display: none;
112
+ }
113
+
114
+ .step-container--has-content .step-content {
115
+ display: inline-block;
116
+ margin: 0;
117
+ margin-top: var(--dsa-spacing-8);
118
+ color: var(--dsa-wc-stepper-color-content);
119
+ font: var(--dsa-wc-stepper-font-content);
120
+ }
121
+
122
+ .step-index {
123
+ grid-area: index;
124
+ margin: 0;
125
+ margin-bottom: var(--dsa-spacing-4);
126
+ text-transform: uppercase;
127
+ color: var(--dsa-wc-stepper-color-index);
128
+ font: var(--dsa-wc-stepper-font-index);
129
+ }
130
+ `;
131
+
132
+ export {
133
+ step_styles_default
134
+ };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.S4ATPBQN.js";
4
4
  import {
5
5
  LocalizeController
6
- } from "./chunk.IQ7SDYSC.js";
6
+ } from "./chunk.NBPVVWJU.js";
7
7
  import {
8
8
  ShoelaceElement
9
9
  } from "./chunk.YCXTCVAZ.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  DSAAccordion
3
- } from "../../chunks/chunk.HEOTAAPU.js";
3
+ } from "../../chunks/chunk.WG5VRMQG.js";
4
4
  import "../../chunks/chunk.LC54322H.js";
5
5
  import "../../chunks/chunk.B4BZKR24.js";
6
6
  import "../../chunks/chunk.2FK6USFR.js";
7
7
  import "../../chunks/chunk.V7RJROLH.js";
8
- import "../../chunks/chunk.IQ7SDYSC.js";
8
+ import "../../chunks/chunk.NBPVVWJU.js";
9
9
  import "../../chunks/chunk.VRU3XH45.js";
10
10
  import "../../chunks/chunk.7J7CS3BK.js";
11
11
  import "../../chunks/chunk.23TOS4ZE.js";