@roadtrip/components 2.47.0 → 2.49.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 (96) hide show
  1. package/dist/cjs/index-a2306350.js +16 -4
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/road-avatar.cjs.entry.js +7 -2
  4. package/dist/cjs/road-badge_14.cjs.entry.js +7 -3
  5. package/dist/cjs/road-profil-dropdown.cjs.entry.js +29 -0
  6. package/dist/cjs/road-progress.cjs.entry.js +0 -1
  7. package/dist/cjs/road-segmented-button.cjs.entry.js +7 -1
  8. package/dist/cjs/road-vertical-stepper-item.cjs.entry.js +19 -0
  9. package/dist/cjs/road-vertical-stepper.cjs.entry.js +19 -0
  10. package/dist/cjs/roadtrip.cjs.js +1 -1
  11. package/dist/collection/collection-manifest.json +4 -1
  12. package/dist/collection/components/avatar/avatar.css +40 -1
  13. package/dist/collection/components/avatar/avatar.js +31 -2
  14. package/dist/collection/components/avatar/avatar.stories.js +8 -7
  15. package/dist/collection/components/button/button.css +1 -0
  16. package/dist/collection/components/counter/counter.css +38 -13
  17. package/dist/collection/components/counter/counter.js +8 -3
  18. package/dist/collection/components/counter/counter.stories.js +1 -1
  19. package/dist/collection/components/icon/svg/electric-charger-service-color.svg +1 -1
  20. package/dist/collection/components/icon/svg/electric-charger-service-outline.svg +1 -1
  21. package/dist/collection/components/icon/svg/navigation-add-less-outline.svg +1 -1
  22. package/dist/collection/components/icon/svg/navigation-add-less-solid.svg +1 -0
  23. package/dist/collection/components/icon/svg/navigation-add-more-outline.svg +1 -1
  24. package/dist/collection/components/icon/svg/navigation-add-more-solid.svg +1 -0
  25. package/dist/collection/components/icon/svg/navigation-close-outline.svg +1 -1
  26. package/dist/collection/components/icon/svg/navigation-close-solid.svg +1 -0
  27. package/dist/collection/components/icon/svg/stocktaking-color.svg +1 -0
  28. package/dist/collection/components/icon/svg/stocktaking-outline.svg +1 -0
  29. package/dist/collection/components/icon/svg/vehicle-5-doors-color.svg +1 -1
  30. package/dist/collection/components/icon/svg/vehicle-5-doors-outline.svg +1 -1
  31. package/dist/collection/components/icon/svg/vehicle-5-doors-solid-color.svg +1 -1
  32. package/dist/collection/components/input/input.js +1 -1
  33. package/dist/collection/components/input/input.stories.js +5 -5
  34. package/dist/collection/components/profil-dropdown/profil-dropdown.css +156 -0
  35. package/dist/collection/components/profil-dropdown/profil-dropdown.js +59 -0
  36. package/dist/collection/components/profil-dropdown/profil-dropdown.stories.js +68 -0
  37. package/dist/collection/components/progress/progress.js +0 -1
  38. package/dist/collection/components/segmented-button/segmented-button.css +9 -0
  39. package/dist/collection/components/segmented-button/segmented-button.js +24 -0
  40. package/dist/collection/components/segmented-buttons/segmented-buttons.stories.js +21 -0
  41. package/dist/collection/components/vertical-stepper/vertical-stepper.css +25 -0
  42. package/dist/collection/components/vertical-stepper/vertical-stepper.js +30 -0
  43. package/dist/collection/components/vertical-stepper/vertical-stepper.stories.js +542 -0
  44. package/dist/collection/components/vertical-stepper-item/vertical-stepper-item.css +185 -0
  45. package/dist/collection/components/vertical-stepper-item/vertical-stepper-item.js +20 -0
  46. package/dist/esm/index-a99a5e7b.js +16 -4
  47. package/dist/esm/loader.js +1 -1
  48. package/dist/esm/road-avatar.entry.js +8 -3
  49. package/dist/esm/road-badge_14.entry.js +7 -3
  50. package/dist/esm/road-profil-dropdown.entry.js +25 -0
  51. package/dist/esm/road-progress.entry.js +0 -1
  52. package/dist/esm/road-segmented-button.entry.js +7 -1
  53. package/dist/esm/road-vertical-stepper-item.entry.js +15 -0
  54. package/dist/esm/road-vertical-stepper.entry.js +15 -0
  55. package/dist/esm/roadtrip.js +1 -1
  56. package/dist/html.html-data.json +79 -1
  57. package/dist/icons/icons.svg +1 -1
  58. package/dist/icons/index.d.ts +5 -0
  59. package/dist/icons/index.js +13 -8
  60. package/dist/roadtrip/p-140d8d34.entry.js +1 -0
  61. package/dist/roadtrip/p-16f79a5a.entry.js +1 -0
  62. package/dist/roadtrip/p-1ac0bf10.entry.js +1 -0
  63. package/dist/roadtrip/p-87b690f4.entry.js +1 -0
  64. package/dist/roadtrip/p-932e323f.entry.js +1 -0
  65. package/dist/roadtrip/p-a3736d12.entry.js +1 -0
  66. package/dist/roadtrip/p-ed05f2c9.entry.js +1 -0
  67. package/dist/roadtrip/roadtrip.css +1 -1
  68. package/dist/roadtrip/roadtrip.esm.js +1 -1
  69. package/dist/roadtrip/svg/electric-charger-service-color.svg +1 -1
  70. package/dist/roadtrip/svg/electric-charger-service-outline.svg +1 -1
  71. package/dist/roadtrip/svg/navigation-add-less-outline.svg +1 -1
  72. package/dist/roadtrip/svg/navigation-add-less-solid.svg +1 -0
  73. package/dist/roadtrip/svg/navigation-add-more-outline.svg +1 -1
  74. package/dist/roadtrip/svg/navigation-add-more-solid.svg +1 -0
  75. package/dist/roadtrip/svg/navigation-close-outline.svg +1 -1
  76. package/dist/roadtrip/svg/navigation-close-solid.svg +1 -0
  77. package/dist/roadtrip/svg/stocktaking-color.svg +1 -0
  78. package/dist/roadtrip/svg/stocktaking-outline.svg +1 -0
  79. package/dist/roadtrip/svg/vehicle-5-doors-color.svg +1 -1
  80. package/dist/roadtrip/svg/vehicle-5-doors-outline.svg +1 -1
  81. package/dist/roadtrip/svg/vehicle-5-doors-solid-color.svg +1 -1
  82. package/dist/types/components/avatar/avatar.d.ts +4 -0
  83. package/dist/types/components/counter/counter.d.ts +1 -1
  84. package/dist/types/components/profil-dropdown/profil-dropdown.d.ts +18 -0
  85. package/dist/types/components/segmented-button/segmented-button.d.ts +4 -0
  86. package/dist/types/components/vertical-stepper/vertical-stepper.d.ts +15 -0
  87. package/dist/types/components/vertical-stepper-item/vertical-stepper-item.d.ts +6 -0
  88. package/dist/types/components.d.ts +65 -2
  89. package/icons/icons.svg +1 -1
  90. package/icons/index.d.ts +5 -0
  91. package/icons/index.js +13 -8
  92. package/package.json +1 -1
  93. package/dist/roadtrip/p-12fcedd3.entry.js +0 -1
  94. package/dist/roadtrip/p-2b92deb4.entry.js +0 -1
  95. package/dist/roadtrip/p-9a91495a.entry.js +0 -1
  96. package/dist/roadtrip/p-d52512f6.entry.js +0 -1
@@ -29,18 +29,53 @@ road-input {
29
29
  -------------------- */
30
30
 
31
31
  road-button {
32
+ width: 3rem;
32
33
  font-size: 1.5rem;
33
34
  line-height: 1.4;
34
- background: var(--road-grey-100);
35
+ background: var(--road-grey-000);
36
+ border: 1px solid var(--road-primary-500);
37
+ }
38
+
39
+ road-button:hover,
40
+ road-button:focus {
41
+ background: var(--road-primary-100);
42
+ }
43
+
44
+ road-button road-icon{
45
+ display: flex;
46
+ fill: var(--road-primary-500);
47
+ }
48
+
49
+ .disabled {
50
+ margin-right: -1px;
51
+ margin-left: -1px;
52
+ pointer-events: none;
53
+ cursor: not-allowed;
54
+ background: var(--road-disabled);
35
55
  border: 1px solid var(--road-grey-500);
56
+ opacity: inherit;
36
57
  }
37
58
 
38
- road-button:hover {
39
- background: var(--road-grey-200);
59
+ .disabled:focus {
60
+ background: var(--road-disabled);
40
61
  }
41
62
 
63
+ .disabled road-icon {
64
+ fill: var(--road-grey-500);
65
+ }
66
+
67
+
42
68
  /* SIZES
43
69
  -------------------- */
70
+
71
+ road-button.btn-md{
72
+ width: 2.5rem;
73
+ }
74
+
75
+ road-button.btn-sm{
76
+ width: 2rem;
77
+ }
78
+
44
79
  .counter-md {
45
80
  height: 2.5rem;
46
81
  }
@@ -64,13 +99,3 @@ road-button:hover {
64
99
  .counter-sm road-button {
65
100
  min-width: 2rem;
66
101
  }
67
-
68
- .disabled {
69
- pointer-events: none;
70
- background: var(--road-grey-000);
71
- cursor: not-allowed;
72
- }
73
-
74
- .disabled:hover {
75
- background: var(--road-grey-000);
76
- }
@@ -16,6 +16,10 @@ export class Counter {
16
16
  * The value of the counter.
17
17
  */
18
18
  this.value = 1;
19
+ /**
20
+ * The size of the counter.
21
+ */
22
+ this.size = "lg";
19
23
  /**
20
24
  * Set to `true` to add the dustbin icon if the value is equal to the min.
21
25
  */
@@ -210,8 +214,8 @@ export class Counter {
210
214
  "type": "string",
211
215
  "mutable": false,
212
216
  "complexType": {
213
- "original": "'sm' | 'md'",
214
- "resolved": "\"md\" | \"sm\" | undefined",
217
+ "original": "'sm' | 'md' | 'lg'",
218
+ "resolved": "\"lg\" | \"md\" | \"sm\" | undefined",
215
219
  "references": {}
216
220
  },
217
221
  "required": false,
@@ -221,7 +225,8 @@ export class Counter {
221
225
  "text": "The size of the counter."
222
226
  },
223
227
  "attribute": "size",
224
- "reflect": false
228
+ "reflect": false,
229
+ "defaultValue": "\"lg\""
225
230
  },
226
231
  "dustbin": {
227
232
  "type": "boolean",
@@ -14,7 +14,7 @@ export default {
14
14
  control: 'text',
15
15
  },
16
16
  size: {
17
- options: ['sm', 'md'],
17
+ options: ['sm', 'md', 'lg'],
18
18
  control: {
19
19
  type: 'select',
20
20
  },
@@ -1 +1 @@
1
- <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="M41.74 21.74v-1.25H23.13c1.71-.84 2.87-2.4 2.87-4.19v-2.7h-2.5v2.7c0 1.27-1.49 2.35-3.25 2.35S17 17.57 17 16.3v-2.7h-2.5v2.7c0 1.79 1.16 3.35 2.87 4.19h-3.09c-4.1 0-7.44 3.34-7.44 7.44v10.9H5.25A4.26 4.26 0 0 0 1 43.08v7.84h11v11.29h2.5V50.92h1.21v-7.84c0-1.17-.48-2.23-1.24-3h.04V27.83h-2.5v11.05c-.18-.02-.36-.05-.54-.05H9.35v-10.9c0-2.73 2.22-4.94 4.94-4.94h24.76a3.985 3.985 0 0 1-2.92 2.65L26.01 27.9v34.31h2.5V29.9l8.16-1.83a6.457 6.457 0 0 0 5.08-6.34l-.01.01ZM13.21 43.09v5.34h-9.7v-5.34c0-.96.79-1.75 1.75-1.75h6.2c.96 0 1.75.79 1.75 1.75Z"/><path d="M21.5 40.78H19v21.43h2.5V40.78ZM28.25 10h-.76c-.06-2.85-.53-6.23-3.99-6.88V2H17v1.12c-3.46.65-3.93 4.03-3.99 6.88h-.76v2.5h16V10ZM17 5.73v1.52h2.5V4.5H21v2.75h2.5V5.73c1.07.48 1.41 1.78 1.48 4.27h-9.46c.07-2.5.41-3.8 1.48-4.27ZM59.01 9.26h-5.97V2.25h-2.5v7.01h-5.97c-1.79 0-3.25 1.46-3.25 3.25v5.5h2.5v-5.5c0-.41.34-.75.75-.75h14.45c.41 0 .75.34.75.75v19.72c0 .41-.34.75-.75.75H44.57c-.41 0-.75-.34-.75-.75v-4.39h-2.5v4.39c0 1.79 1.46 3.25 3.25 3.25h5.97v3.66c0 2.07-1.68 3.75-3.75 3.75h-7.87c-3.66 0-6.63 2.97-6.63 6.63 0 3.66 2.97 6.63 6.63 6.63h5.32c.59 3.12 3.33 5.49 6.62 5.49h3.35v-2h4.49a1.25 1.25 0 0 0 0-2.5h-4.49v-4.49h4.49a1.25 1.25 0 0 0 0-2.5h-4.49v-2h-3.35c-3.29 0-6.03 2.37-6.62 5.49h-5.32a4.131 4.131 0 0 1 0-8.26h7.87c3.45 0 6.25-2.8 6.25-6.25v-3.66h5.97c1.79 0 3.25-1.46 3.25-3.25V12.51c0-1.79-1.46-3.25-3.25-3.25Zm-8.15 41.4h.85v8.49h-.85c-2.34 0-4.24-1.9-4.24-4.24 0-2.34 1.9-4.24 4.24-4.24v-.01Z"/><path d="m51.27 14.87-5.02 9.14 5.84-.72-2.67 4.86 2.19 1.2 5.02-9.15-5.84.73 2.67-4.86-2.19-1.2Z" fill="var(--road-secondary-600, rgb(246, 164, 4))"/></svg>
1
+ <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="M41.74 21.74v-1.25H23.13c1.71-.84 2.87-2.4 2.87-4.19v-2.7h-2.5v2.7c0 1.27-1.49 2.35-3.25 2.35S17 17.57 17 16.3v-2.7h-2.5v2.7c0 1.79 1.16 3.35 2.87 4.19h-3.09c-4.1 0-7.44 3.34-7.44 7.44v10.9H5.25A4.26 4.26 0 0 0 1 43.08v7.84h11v11.29h2.5V50.92h1.21v-7.84c0-1.17-.48-2.23-1.24-3h.04V27.83h-2.5v11.05c-.18-.02-.36-.05-.54-.05H9.35v-10.9c0-2.73 2.22-4.94 4.94-4.94h24.76a3.985 3.985 0 0 1-2.92 2.65L26.01 27.9v34.31h2.5V29.9l8.16-1.83a6.457 6.457 0 0 0 5.08-6.34l-.01.01ZM13.21 43.09v5.34h-9.7v-5.34c0-.96.79-1.75 1.75-1.75h6.2c.96 0 1.75.79 1.75 1.75Z"/><path d="M21.5 40.78H19v21.43h2.5V40.78ZM28.25 10h-.76c-.06-2.85-.53-6.23-3.99-6.88V2H17v1.12c-3.46.65-3.93 4.03-3.99 6.88h-.76v2.5h16V10ZM17 5.73v1.52h2.5V4.5H21v2.75h2.5V5.73c1.07.48 1.41 1.78 1.48 4.27h-9.46c.07-2.5.41-3.8 1.48-4.27Zm42.01 3.53h-5.97V2.25h-2.5v7.01h-5.97c-1.79 0-3.25 1.46-3.25 3.25v5.5h2.5v-5.5c0-.41.34-.75.75-.75h14.45c.41 0 .75.34.75.75v19.72c0 .41-.34.75-.75.75H44.57c-.41 0-.75-.34-.75-.75v-4.39h-2.5v4.39c0 1.79 1.46 3.25 3.25 3.25h5.97v3.66c0 2.07-1.68 3.75-3.75 3.75h-7.87c-3.66 0-6.63 2.97-6.63 6.63 0 3.66 2.97 6.63 6.63 6.63h5.32c.59 3.12 3.33 5.49 6.62 5.49h3.35v-2h4.49a1.25 1.25 0 0 0 0-2.5h-4.49v-4.49h4.49a1.25 1.25 0 0 0 0-2.5h-4.49v-2h-3.35c-3.29 0-6.03 2.37-6.62 5.49h-5.32a4.131 4.131 0 0 1 0-8.26h7.87c3.45 0 6.25-2.8 6.25-6.25v-3.66h5.97c1.79 0 3.25-1.46 3.25-3.25V12.51c0-1.79-1.46-3.25-3.25-3.25Zm-8.15 41.4h.85v8.49h-.85c-2.34 0-4.24-1.9-4.24-4.24 0-2.34 1.9-4.24 4.24-4.24v-.01Z"/><path d="m51.27 14.87-5.02 9.14 5.84-.72-2.67 4.86 2.19 1.2 5.02-9.15-5.84.73 2.67-4.86-2.19-1.2Z" fill="var(--road-secondary-600, rgb(246, 164, 4))"/></svg>
@@ -1 +1 @@
1
- <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="M41.74 21.74v-1.25H23.13c1.71-.84 2.87-2.4 2.87-4.19v-2.7h-2.5v2.7c0 1.27-1.49 2.35-3.25 2.35S17 17.57 17 16.3v-2.7h-2.5v2.7c0 1.79 1.16 3.35 2.87 4.19h-3.09c-4.1 0-7.44 3.34-7.44 7.44v10.9H5.25A4.26 4.26 0 0 0 1 43.08v7.84h11v11.29h2.5V50.92h1.21v-7.84c0-1.17-.48-2.23-1.24-3h.04V27.83h-2.5v11.05c-.18-.02-.36-.05-.54-.05H9.35v-10.9c0-2.73 2.22-4.94 4.94-4.94h24.76a3.985 3.985 0 0 1-2.92 2.65L26.01 27.9v34.31h2.5V29.9l8.16-1.83a6.457 6.457 0 0 0 5.08-6.34l-.01.01ZM13.21 43.09v5.34h-9.7v-5.34c0-.96.79-1.75 1.75-1.75h6.2c.96 0 1.75.79 1.75 1.75Z"/><path d="M21.5 40.78H19v21.43h2.5V40.78ZM28.25 10h-.76c-.06-2.85-.53-6.23-3.99-6.88V2H17v1.12c-3.46.65-3.93 4.03-3.99 6.88h-.76v2.5h16V10ZM17 5.73v1.52h2.5V4.5H21v2.75h2.5V5.73c1.07.48 1.41 1.78 1.48 4.27h-9.46c.07-2.5.41-3.8 1.48-4.27ZM59.01 9.26h-5.97V2.25h-2.5v7.01h-5.97c-1.79 0-3.25 1.46-3.25 3.25v5.5h2.5v-5.5c0-.41.34-.75.75-.75h14.45c.41 0 .75.34.75.75v19.72c0 .41-.34.75-.75.75H44.57c-.41 0-.75-.34-.75-.75v-4.39h-2.5v4.39c0 1.79 1.46 3.25 3.25 3.25h5.97v3.66c0 2.07-1.68 3.75-3.75 3.75h-7.87c-3.66 0-6.63 2.97-6.63 6.63 0 3.66 2.97 6.63 6.63 6.63h5.32c.59 3.12 3.33 5.49 6.62 5.49h3.35v-2h4.49a1.25 1.25 0 0 0 0-2.5h-4.49v-4.49h4.49a1.25 1.25 0 0 0 0-2.5h-4.49v-2h-3.35c-3.29 0-6.03 2.37-6.62 5.49h-5.32a4.131 4.131 0 0 1 0-8.26h7.87c3.45 0 6.25-2.8 6.25-6.25v-3.66h5.97c1.79 0 3.25-1.46 3.25-3.25V12.51c0-1.79-1.46-3.25-3.25-3.25Zm-8.15 41.4h.85v8.49h-.85c-2.34 0-4.24-1.9-4.24-4.24 0-2.34 1.9-4.24 4.24-4.24v-.01Z"/><path d="m51.27 14.87-5.02 9.14 5.84-.72-2.67 4.86 2.19 1.2 5.02-9.15-5.84.73 2.67-4.86-2.19-1.2Z"/></svg>
1
+ <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="M41.74 21.74v-1.25H23.13c1.71-.84 2.87-2.4 2.87-4.19v-2.7h-2.5v2.7c0 1.27-1.49 2.35-3.25 2.35S17 17.57 17 16.3v-2.7h-2.5v2.7c0 1.79 1.16 3.35 2.87 4.19h-3.09c-4.1 0-7.44 3.34-7.44 7.44v10.9H5.25A4.26 4.26 0 0 0 1 43.08v7.84h11v11.29h2.5V50.92h1.21v-7.84c0-1.17-.48-2.23-1.24-3h.04V27.83h-2.5v11.05c-.18-.02-.36-.05-.54-.05H9.35v-10.9c0-2.73 2.22-4.94 4.94-4.94h24.76a3.985 3.985 0 0 1-2.92 2.65L26.01 27.9v34.31h2.5V29.9l8.16-1.83a6.457 6.457 0 0 0 5.08-6.34l-.01.01ZM13.21 43.09v5.34h-9.7v-5.34c0-.96.79-1.75 1.75-1.75h6.2c.96 0 1.75.79 1.75 1.75Z"/><path d="M21.5 40.78H19v21.43h2.5V40.78ZM28.25 10h-.76c-.06-2.85-.53-6.23-3.99-6.88V2H17v1.12c-3.46.65-3.93 4.03-3.99 6.88h-.76v2.5h16V10ZM17 5.73v1.52h2.5V4.5H21v2.75h2.5V5.73c1.07.48 1.41 1.78 1.48 4.27h-9.46c.07-2.5.41-3.8 1.48-4.27Zm42.01 3.53h-5.97V2.25h-2.5v7.01h-5.97c-1.79 0-3.25 1.46-3.25 3.25v5.5h2.5v-5.5c0-.41.34-.75.75-.75h14.45c.41 0 .75.34.75.75v19.72c0 .41-.34.75-.75.75H44.57c-.41 0-.75-.34-.75-.75v-4.39h-2.5v4.39c0 1.79 1.46 3.25 3.25 3.25h5.97v3.66c0 2.07-1.68 3.75-3.75 3.75h-7.87c-3.66 0-6.63 2.97-6.63 6.63 0 3.66 2.97 6.63 6.63 6.63h5.32c.59 3.12 3.33 5.49 6.62 5.49h3.35v-2h4.49a1.25 1.25 0 0 0 0-2.5h-4.49v-4.49h4.49a1.25 1.25 0 0 0 0-2.5h-4.49v-2h-3.35c-3.29 0-6.03 2.37-6.62 5.49h-5.32a4.131 4.131 0 0 1 0-8.26h7.87c3.45 0 6.25-2.8 6.25-6.25v-3.66h5.97c1.79 0 3.25-1.46 3.25-3.25V12.51c0-1.79-1.46-3.25-3.25-3.25Zm-8.15 41.4h.85v8.49h-.85c-2.34 0-4.24-1.9-4.24-4.24 0-2.34 1.9-4.24 4.24-4.24v-.01Z"/><path d="m51.27 14.87-5.02 9.14 5.84-.72-2.67 4.86 2.19 1.2 5.02-9.15-5.84.73 2.67-4.86-2.19-1.2Z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M50.061 31.135H14.706v2.5h35.355v-2.5Z"/></svg>
1
+ <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="M50.061 31.135H14.706v2.5h35.355v-2.5Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="M49.87 30.19H14.51v4h35.36v-4Z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M33.635 14.707h-2.5v35.355h2.5V14.707Z"/><path d="M50.061 31.135H14.706v2.5h35.355v-2.5Z"/></svg>
1
+ <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="M49.87 30.94H33.44V14.51h-2.5v16.43H14.51v2.5h16.43v16.43h2.5V33.44h16.43v-2.5Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="M49.87 30.19H34.19V14.51h-4v15.68H14.51v4h15.68v15.68h4V34.19h15.68v-4Z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M20.768 18.999 19 20.767l25 25 1.767-1.768-25-25Z"/><path d="M44 19 19 44l1.768 1.768 25-25L44 19Z"/></svg>
1
+ <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="m45.38 20.38-1.76-1.76L32 30.23 20.38 18.62l-1.76 1.76L30.23 32 18.62 43.62l1.76 1.76L32 33.77l11.62 11.61 1.76-1.76L33.77 32l11.61-11.62Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="m45.91 20.91-2.82-2.82L32 29.17 20.91 18.09l-2.82 2.82L29.17 32 18.09 43.09l2.82 2.82L32 34.83l11.09 11.08 2.82-2.82L34.83 32l11.08-11.09Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="M1.02 35.5v20.22l18.59 7.99 18.59-7.99V35.49l-18.59-7.97L1.02 35.5Zm23.78-3.03-14.18 6.07-5.18-2.22 14.17-6.08 5.19 2.22v.01Zm-5.19 9.92L13.8 39.9l14.17-6.07 5.81 2.49-14.17 6.07ZM3.52 38.22l14.84 6.36v15.88L3.52 54.08V38.22Zm17.34 22.24V44.58l14.84-6.36v15.86l-14.84 6.38ZM37.8 11.9H27.05v2.5H37.8v-2.5ZM33.19 18.05h-6.14v2.5h6.14v-2.5ZM37.8 24.19H27.05v2.5H37.8v-2.5Z"/><path d="M57.94 1.22H20.98c-2.07 0-3.75 1.68-3.75 3.75v20.47h2.5V4.97c0-.69.56-1.25 1.25-1.25h36.96c.69 0 1.25.56 1.25 1.25v48.49c0 .69-.56 1.25-1.25 1.25H40.46v2.5h17.48c2.07 0 3.75-1.68 3.75-3.75V4.97c0-2.07-1.68-3.75-3.75-3.75Z"/><path d="m48.66 45.75 7.01-8.77-1.95-1.57L48.45 42l-2.09-2.08-1.76 1.77 4.06 4.06ZM48.66 31.92l7.01-8.77-1.95-1.56-5.27 6.59-2.09-2.08-1.76 1.76 4.06 4.06ZM55.67 9.33l-1.95-1.56-5.27 6.59-2.09-2.09-1.76 1.77 4.06 4.06 7.01-8.77ZM33.053 50.225l-4.65 1.996.987 2.298 4.65-1.997-.987-2.297Z" fill="var(--road-secondary-600, rgb(246, 164, 4))"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="M1.02 35.5v20.22l18.59 7.99 18.59-7.99V35.49l-18.59-7.97L1.02 35.5Zm23.78-3.03-14.18 6.07-5.18-2.22 14.17-6.08 5.19 2.22v.01Zm-5.19 9.92L13.8 39.9l14.17-6.07 5.81 2.49-14.17 6.07ZM3.52 38.22l14.84 6.36v15.88L3.52 54.08V38.22Zm17.34 22.24V44.58l14.84-6.36v15.86l-14.84 6.38ZM37.8 11.9H27.05v2.5H37.8v-2.5ZM33.19 18.05h-6.14v2.5h6.14v-2.5ZM37.8 24.19H27.05v2.5H37.8v-2.5Z"/><path d="M57.94 1.22H20.98c-2.07 0-3.75 1.68-3.75 3.75v20.47h2.5V4.97c0-.69.56-1.25 1.25-1.25h36.96c.69 0 1.25.56 1.25 1.25v48.49c0 .69-.56 1.25-1.25 1.25H40.46v2.5h17.48c2.07 0 3.75-1.68 3.75-3.75V4.97c0-2.07-1.68-3.75-3.75-3.75Z"/><path d="m48.66 45.75 7.01-8.77-1.95-1.57L48.45 42l-2.09-2.08-1.76 1.77 4.06 4.06ZM48.66 31.92l7.01-8.77-1.95-1.56-5.27 6.59-2.09-2.08-1.76 1.76 4.06 4.06ZM55.67 9.33l-1.95-1.56-5.27 6.59-2.09-2.09-1.76 1.77 4.06 4.06 7.01-8.77ZM33.053 50.225l-4.65 1.996.987 2.298 4.65-1.997-.987-2.297Z"/></svg>
@@ -1 +1 @@
1
- <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="m43.01 18.9 2.62-2.62v-5.92c0-4.69-3.81-8.5-8.5-8.5H26.77c-4.69 0-8.5 3.81-8.5 8.5v5.92l2.62 2.62c2.62-.64 7.83-.87 11.06-.87 3.23 0 8.44.24 11.06.87Zm-22.24-2.53v-6.02c0-3.31 2.69-6 6-6h10.36c3.31 0 6 2.69 6 6v6.02c-3.87-.82-10.34-.85-11.18-.85-.84 0-7.31.03-11.18.85ZM23.25 27.25v15.38c-.85 1.96-1.24 4.68-1.24 6.46v.85l.79.31c1.35.54 4.9 1.33 9.16 1.33s7.81-.8 9.16-1.33l.79-.31v-.85c0-1.79-.39-4.51-1.24-6.47V27.24c.8-.81 1.68-1.88 2.47-3.04v10.88l1.73-1.73.77.77v-12.6l-2.62-2.62c-.47 1.9-2.23 4.62-3.92 6.38-1.58-.5-4.37-1.05-7.14-1.05-2.77 0-5.57.55-7.14 1.05-1.69-1.76-3.44-4.48-3.91-6.38l-2.62 2.62v12.55l.73-.73 1.77 1.77V24.2c.79 1.17 1.67 2.24 2.47 3.04l-.01.01Zm2.5.36c1.3-.39 3.73-.88 6.21-.88s4.9.49 6.21.88v14.4c-1.31.41-3.67.86-6.21.86s-4.9-.45-6.21-.86v-14.4Zm-.53 16.86c1.67.49 4.19.91 6.73.91s5.07-.41 6.73-.91c.37 1.16.6 2.56.68 3.73-1.51.42-4.25.89-7.42.89s-5.91-.47-7.42-.89c.08-1.17.31-2.57.68-3.73h.02Z"/><path d="M43.13 35.15v19.13c0 1.34-4.11 5.36-10.17 5.36h-2.02c-6.06 0-10.17-4.03-10.17-5.36V35.1l-2.5 2.51v16.67c0 3.43 6.15 7.86 12.67 7.86h2.02c6.53 0 12.67-4.43 12.67-7.86V37.65l-2.5-2.5Z"/><path d="M15.44 15.2a1.25 1.25 0 0 0 0 1.77l1.92 1.92-9.64 9.65 1.77 1.77L20.9 18.9l-3.69-3.69a1.25 1.25 0 0 0-1.77 0v-.01ZM56.19 28.54l-9.64-9.64 1.92-1.92c.49-.49.49-1.28 0-1.77a1.25 1.25 0 0 0-1.77 0l-3.69 3.69 11.41 11.41 1.77-1.77ZM7.79 44.58l1.76 1.77 11.22-11.24-1.76-1.77L7.79 44.58ZM44.87 33.357l-1.767 1.768 11.236 11.236 1.767-1.768L44.87 33.357Z" fill="var(--road-secondary-600, rgb(246, 164, 4))"/></svg>
1
+ <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="m43.01 18.9 2.62-2.62v-5.92c0-4.69-3.81-8.5-8.5-8.5H26.77c-4.69 0-8.5 3.81-8.5 8.5v5.92l2.62 2.62c2.62-.64 7.83-.87 11.06-.87 3.23 0 8.44.24 11.06.87Zm-22.24-2.53v-6.02c0-3.31 2.69-6 6-6h10.36c3.31 0 6 2.69 6 6v6.02c-3.87-.82-10.34-.85-11.18-.85-.84 0-7.31.03-11.18.85Zm2.48 10.88v15.38c-.85 1.96-1.24 4.68-1.24 6.46v.85l.79.31c1.35.54 4.9 1.33 9.16 1.33s7.81-.8 9.16-1.33l.79-.31v-.85c0-1.79-.39-4.51-1.24-6.47V27.24c.8-.81 1.68-1.88 2.47-3.04v10.88l1.73-1.73.77.77v-12.6l-2.62-2.62c-.47 1.9-2.23 4.62-3.92 6.38-1.58-.5-4.37-1.05-7.14-1.05-2.77 0-5.57.55-7.14 1.05-1.69-1.76-3.44-4.48-3.91-6.38l-2.62 2.62v12.55l.73-.73 1.77 1.77V24.2c.79 1.17 1.67 2.24 2.47 3.04l-.01.01Zm2.5.36c1.3-.39 3.73-.88 6.21-.88s4.9.49 6.21.88v14.4c-1.31.41-3.67.86-6.21.86s-4.9-.45-6.21-.86v-14.4Zm-.53 16.86c1.67.49 4.19.91 6.73.91s5.07-.41 6.73-.91c.37 1.16.6 2.56.68 3.73-1.51.42-4.25.89-7.42.89s-5.91-.47-7.42-.89c.08-1.17.31-2.57.68-3.73h.02Z"/><path d="M43.13 35.15v19.13c0 1.34-4.11 5.36-10.17 5.36h-2.02c-6.06 0-10.17-4.03-10.17-5.36V35.1l-2.5 2.51v16.67c0 3.43 6.15 7.86 12.67 7.86h2.02c6.53 0 12.67-4.43 12.67-7.86V37.65l-2.5-2.5Z"/><path d="M15.44 15.2a1.25 1.25 0 0 0 0 1.77l1.92 1.92-9.64 9.65 1.77 1.77L20.9 18.9l-3.69-3.69a1.25 1.25 0 0 0-1.77 0v-.01Zm40.75 13.34-9.64-9.64 1.92-1.92c.49-.49.49-1.28 0-1.77a1.25 1.25 0 0 0-1.77 0l-3.69 3.69 11.41 11.41 1.77-1.77ZM7.79 44.58l1.76 1.77 11.22-11.24-1.76-1.77L7.79 44.58Zm37.08-11.223-1.767 1.768 11.236 11.236 1.767-1.768L44.87 33.357Z" fill="var(--road-secondary-600, rgb(246, 164, 4))"/></svg>
@@ -1 +1 @@
1
- <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="m43.01 18.9 2.62-2.62v-5.92c0-4.69-3.81-8.5-8.5-8.5H26.77c-4.69 0-8.5 3.81-8.5 8.5v5.92l2.62 2.62c2.62-.64 7.83-.87 11.06-.87 3.23 0 8.44.24 11.06.87Zm-22.24-2.53v-6.02c0-3.31 2.69-6 6-6h10.36c3.31 0 6 2.69 6 6v6.02c-3.87-.82-10.34-.85-11.18-.85-.84 0-7.31.03-11.18.85ZM23.25 27.25v15.38c-.85 1.96-1.24 4.68-1.24 6.46v.85l.79.31c1.35.54 4.9 1.33 9.16 1.33s7.81-.8 9.16-1.33l.79-.31v-.85c0-1.79-.39-4.51-1.24-6.47V27.24c.8-.81 1.68-1.88 2.47-3.04v10.88l1.73-1.73.77.77v-12.6l-2.62-2.62c-.47 1.9-2.23 4.62-3.92 6.38-1.58-.5-4.37-1.05-7.14-1.05-2.77 0-5.57.55-7.14 1.05-1.69-1.76-3.44-4.48-3.91-6.38l-2.62 2.62v12.55l.73-.73 1.77 1.77V24.2c.79 1.17 1.67 2.24 2.47 3.04l-.01.01Zm2.5.36c1.3-.39 3.73-.88 6.21-.88s4.9.49 6.21.88v14.4c-1.31.41-3.67.86-6.21.86s-4.9-.45-6.21-.86v-14.4Zm-.53 16.86c1.67.49 4.19.91 6.73.91s5.07-.41 6.73-.91c.37 1.16.6 2.56.68 3.73-1.51.42-4.25.89-7.42.89s-5.91-.47-7.42-.89c.08-1.17.31-2.57.68-3.73h.02Z"/><path d="M43.13 35.15v19.13c0 1.34-4.11 5.36-10.17 5.36h-2.02c-6.06 0-10.17-4.03-10.17-5.36V35.1l-2.5 2.51v16.67c0 3.43 6.15 7.86 12.67 7.86h2.02c6.53 0 12.67-4.43 12.67-7.86V37.65l-2.5-2.5ZM15.44 15.2a1.25 1.25 0 0 0 0 1.77l1.92 1.92-9.64 9.65 1.77 1.77L20.9 18.9l-3.69-3.69a1.25 1.25 0 0 0-1.77 0v-.01ZM56.19 28.54l-9.64-9.64 1.92-1.92c.49-.49.49-1.28 0-1.77a1.25 1.25 0 0 0-1.77 0l-3.69 3.69 11.41 11.41 1.77-1.77Z"/><path d="m7.79 44.58 1.76 1.77 11.22-11.24-1.76-1.77L7.79 44.58ZM44.87 33.357l-1.767 1.768 11.236 11.236 1.767-1.768L44.87 33.357Z"/></svg>
1
+ <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="m43.01 18.9 2.62-2.62v-5.92c0-4.69-3.81-8.5-8.5-8.5H26.77c-4.69 0-8.5 3.81-8.5 8.5v5.92l2.62 2.62c2.62-.64 7.83-.87 11.06-.87 3.23 0 8.44.24 11.06.87Zm-22.24-2.53v-6.02c0-3.31 2.69-6 6-6h10.36c3.31 0 6 2.69 6 6v6.02c-3.87-.82-10.34-.85-11.18-.85-.84 0-7.31.03-11.18.85Zm2.48 10.88v15.38c-.85 1.96-1.24 4.68-1.24 6.46v.85l.79.31c1.35.54 4.9 1.33 9.16 1.33s7.81-.8 9.16-1.33l.79-.31v-.85c0-1.79-.39-4.51-1.24-6.47V27.24c.8-.81 1.68-1.88 2.47-3.04v10.88l1.73-1.73.77.77v-12.6l-2.62-2.62c-.47 1.9-2.23 4.62-3.92 6.38-1.58-.5-4.37-1.05-7.14-1.05-2.77 0-5.57.55-7.14 1.05-1.69-1.76-3.44-4.48-3.91-6.38l-2.62 2.62v12.55l.73-.73 1.77 1.77V24.2c.79 1.17 1.67 2.24 2.47 3.04l-.01.01Zm2.5.36c1.3-.39 3.73-.88 6.21-.88s4.9.49 6.21.88v14.4c-1.31.41-3.67.86-6.21.86s-4.9-.45-6.21-.86v-14.4Zm-.53 16.86c1.67.49 4.19.91 6.73.91s5.07-.41 6.73-.91c.37 1.16.6 2.56.68 3.73-1.51.42-4.25.89-7.42.89s-5.91-.47-7.42-.89c.08-1.17.31-2.57.68-3.73h.02Z"/><path d="M43.13 35.15v19.13c0 1.34-4.11 5.36-10.17 5.36h-2.02c-6.06 0-10.17-4.03-10.17-5.36V35.1l-2.5 2.51v16.67c0 3.43 6.15 7.86 12.67 7.86h2.02c6.53 0 12.67-4.43 12.67-7.86V37.65l-2.5-2.5ZM15.44 15.2a1.25 1.25 0 0 0 0 1.77l1.92 1.92-9.64 9.65 1.77 1.77L20.9 18.9l-3.69-3.69a1.25 1.25 0 0 0-1.77 0v-.01Zm40.75 13.34-9.64-9.64 1.92-1.92c.49-.49.49-1.28 0-1.77a1.25 1.25 0 0 0-1.77 0l-3.69 3.69 11.41 11.41 1.77-1.77Z"/><path d="m7.79 44.58 1.76 1.77 11.22-11.24-1.76-1.77L7.79 44.58Zm37.08-11.223-1.767 1.768 11.236 11.236 1.767-1.768L44.87 33.357Z"/></svg>
@@ -1 +1 @@
1
- <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="m43.1 35.12 1.77-1.77.81.81v-12.6l-2.67-2.67 2.67-2.67v-5.71c0-4.69-3.81-8.5-8.5-8.5H26.82c-4.69 0-8.5 3.81-8.5 8.5v5.8l2.58 2.58-2.58 2.58v12.55l.69-.69 1.77 1.77-2.45 2.46v16.89c0 3.43 6.15 7.86 12.67 7.86h2.02c6.53 0 12.67-4.43 12.67-7.86V37.69l-2.58-2.58-.01.01Zm-19.31 7.29h-2.5v-14.4h2.5v14.4Zm8.2 6.84c-3.17 0-5.9-.47-7.41-.89.08-1.17.31-2.57.68-3.73 1.67.49 4.19.91 6.73.91s5.06-.41 6.73-.91c.37 1.16.6 2.56.68 3.73-1.51.42-4.24.89-7.41.89Zm10.72-6.84h-2.5v-14.4h2.5v14.4Zm-3.54-16.97h-.02c-1.58-.5-4.37-1.05-7.14-1.05-2.77 0-5.56.55-7.14 1.05-1.69-1.76-3.44-4.48-3.91-6.38 2.62-.64 7.83-.87 11.06-.87 3.23 0 8.44.24 11.06.87-.47 1.9-2.23 4.62-3.91 6.38Z"/><path d="M15.44 15.2a1.25 1.25 0 0 0 0 1.77l1.92 1.92-9.64 9.65 1.77 1.77L20.9 18.9l-3.69-3.69a1.25 1.25 0 0 0-1.77 0v-.01ZM56.19 28.54l-9.64-9.64 1.92-1.92c.49-.49.49-1.28 0-1.77a1.25 1.25 0 0 0-1.77 0l-3.69 3.69 11.41 11.41 1.77-1.77ZM7.79 44.58l1.76 1.77 11.22-11.24-1.76-1.77L7.79 44.58ZM44.87 33.357l-1.767 1.768 11.236 11.236 1.767-1.768L44.87 33.357Z" fill="var(--road-secondary-600, rgb(246, 164, 4))"/></svg>
1
+ <svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="m43.1 35.12 1.77-1.77.81.81v-12.6l-2.67-2.67 2.67-2.67v-5.71c0-4.69-3.81-8.5-8.5-8.5H26.82c-4.69 0-8.5 3.81-8.5 8.5v5.8l2.58 2.58-2.58 2.58v12.55l.69-.69 1.77 1.77-2.45 2.46v16.89c0 3.43 6.15 7.86 12.67 7.86h2.02c6.53 0 12.67-4.43 12.67-7.86V37.69l-2.58-2.58-.01.01Zm-19.31 7.29h-2.5v-14.4h2.5v14.4Zm8.2 6.84c-3.17 0-5.9-.47-7.41-.89.08-1.17.31-2.57.68-3.73 1.67.49 4.19.91 6.73.91s5.06-.41 6.73-.91c.37 1.16.6 2.56.68 3.73-1.51.42-4.24.89-7.41.89Zm10.72-6.84h-2.5v-14.4h2.5v14.4Zm-3.54-16.97h-.02c-1.58-.5-4.37-1.05-7.14-1.05-2.77 0-5.56.55-7.14 1.05-1.69-1.76-3.44-4.48-3.91-6.38 2.62-.64 7.83-.87 11.06-.87 3.23 0 8.44.24 11.06.87-.47 1.9-2.23 4.62-3.91 6.38Z"/><path d="M15.44 15.2a1.25 1.25 0 0 0 0 1.77l1.92 1.92-9.64 9.65 1.77 1.77L20.9 18.9l-3.69-3.69a1.25 1.25 0 0 0-1.77 0v-.01Zm40.75 13.34-9.64-9.64 1.92-1.92c.49-.49.49-1.28 0-1.77a1.25 1.25 0 0 0-1.77 0l-3.69 3.69 11.41 11.41 1.77-1.77ZM7.79 44.58l1.76 1.77 11.22-11.24-1.76-1.77L7.79 44.58Zm37.08-11.223-1.767 1.768 11.236 11.236 1.767-1.768L44.87 33.357Z" fill="var(--road-secondary-600, rgb(246, 164, 4))"/></svg>
@@ -127,7 +127,7 @@ export class Input {
127
127
  const hasValueClass = this.value !== '' ? 'has-value' : '';
128
128
  const lessLabelClass = this.label !== '' ? '' : 'less-label';
129
129
  const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
130
- return (h(Host, { "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}` }, h("input", { class: `form-control ${hasValueClass} ${isInvalidClass} ${lessLabelClass}`, id: this.inputId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, enterKeyHint: this.enterkeyhint, autoFocus: this.autofocus, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, size: this.size, type: this.type, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus }), h("label", { class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && h("p", { class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && h("p", { class: "helper" }, this.helper), this.type && this.type == 'password' &&
130
+ return (h(Host, { "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}` }, h("input", { class: `form-control ${hasValueClass} ${isInvalidClass} ${lessLabelClass}`, id: this.inputId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, enterKeyHint: this.enterkeyhint, autoFocus: this.autofocus, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, size: this.size, type: this.type, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, "data-cy": 'road-input' }), h("label", { class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && h("p", { class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && h("p", { class: "helper" }, this.helper), this.type && this.type == 'password' &&
131
131
  h("slot", { name: "checklistPassword" })));
132
132
  }
133
133
  static get is() { return "road-input"; }
@@ -196,12 +196,12 @@ const Template = (args) => html`
196
196
  helper="${ifDefined(args.helper)}"
197
197
  size="${ifDefined(args.size)}"
198
198
  sizes="${ifDefined(args.sizes)}"
199
- min="${ifDefined(args.min)}"
200
- max="${ifDefined(args.max)}"
199
+ min="${ifDefined(args.min)}"
200
+ max="${ifDefined(args.max)}"
201
201
  maxlength="${ifDefined(args.maxlength)}"
202
202
  minlength="${ifDefined(args.minlength)}"
203
- step="${ifDefined(args.step)}"
204
- value="${ifDefined(args.value)}"
203
+ step="${ifDefined(args.step)}"
204
+ value="${ifDefined(args.value)}"
205
205
  pattern="${ifDefined(args.pattern)}"
206
206
  spellcheck="${ifDefined(args.spellcheck)}"
207
207
  placeholder="${ifDefined(args.placeholder)}"
@@ -268,4 +268,4 @@ export const Password = (args) => html`
268
268
  </div>
269
269
  </road-input>
270
270
 
271
- `;
271
+ `;
@@ -0,0 +1,156 @@
1
+ /*
2
+ * Profil Dropdown
3
+ *
4
+ * Index
5
+ * - Dropdown
6
+ * - Dropdown menu
7
+ */
8
+
9
+ /**
10
+ * @prop --margin-top: Top margin of the menu
11
+ */
12
+
13
+ /* PROFIL DROPDOWN
14
+ -------------------- */
15
+
16
+ :host {
17
+ --margin-top: 0.5rem;
18
+ display: block;
19
+ font-size: 1rem;
20
+ }
21
+
22
+ .dropdown {
23
+ position: relative;
24
+ width: max-content;
25
+ font-family: var(--road-font);
26
+ }
27
+
28
+ .dropdown summary {
29
+ display: block;
30
+ cursor: pointer;
31
+ outline: none;
32
+ }
33
+
34
+ .dropdown summary::-webkit-details-marker { /* remove native arrow */
35
+ display: none;
36
+ }
37
+
38
+ .dropdown-button{
39
+ position: relative;
40
+ z-index: 1;
41
+ height: 3.5rem;
42
+ cursor: pointer;
43
+ border-radius: 0.25rem;
44
+ }
45
+
46
+ .dropdown-button:hover{
47
+ background: var(--road-grey-200);
48
+ }
49
+
50
+ /**
51
+ * Open state
52
+ */
53
+
54
+ .dropdown[open] .dropdown-menu {
55
+ transform: scaleY(1);
56
+ }
57
+
58
+ .dropdown[open] .dropdown-menu.direction-top {
59
+ position: absolute;
60
+ bottom: 0;
61
+ left: 0;
62
+ transform: translate3d(0, -56px, 0);
63
+ will-change: transform;
64
+ }
65
+
66
+ /* MENU
67
+ -------------------- */
68
+
69
+ .dropdown-menu {
70
+ position: absolute;
71
+ top: 0;
72
+ left: 5.5rem;
73
+ display: flex;
74
+ flex-direction: column;
75
+ width: 100%;
76
+ min-width: 16.875rem;
77
+ padding: 0.5rem 0;
78
+ color: var(--road-grey-900);
79
+ background: var(--road-test);
80
+ border: 1px solid;
81
+ border-color: var(--road-grey-200);
82
+ border-radius: 0.25rem;
83
+ box-shadow: 0 0.375rem 0.375rem rgba(41, 44, 51, 0.24);
84
+ transition: transform 0.2s ease-in-out;
85
+ transform: scaleY(0);
86
+ transform-origin: 0 0;
87
+ }
88
+
89
+ /* ITEM
90
+ -------------------- */
91
+
92
+ road-item {
93
+ font-size: 1rem;
94
+ }
95
+
96
+ .profil-item {
97
+ display: flex;
98
+ padding-bottom: 1rem;
99
+ margin: 1rem;
100
+ cursor: auto;
101
+ border-bottom: 1px solid var(--road-grey-200);
102
+ }
103
+
104
+ .profil-item-info {
105
+ display: flex;
106
+ flex-direction: column;
107
+ margin-left: 1rem;
108
+ }
109
+
110
+ .profil-item-info-name {
111
+ font-weight: 700;
112
+ }
113
+
114
+
115
+ .profil-item road-avatar:hover{
116
+ box-shadow: none;
117
+ }
118
+
119
+ .dropdown-item {
120
+ display: flex;
121
+ align-items: center;
122
+ min-height: 40px;
123
+ padding: 0 1rem;
124
+ font-size: 1rem;
125
+ line-height: 1.5;
126
+ color: var(--road-grey-900);
127
+ text-align: left;
128
+ text-decoration: none;
129
+ cursor: pointer;
130
+ background: var(--road-grey-000);
131
+ border: none;
132
+ outline: none;
133
+ }
134
+
135
+ .dropdown-item-border {
136
+ border-color: var(--road-grey-200);
137
+ border-bottom: 1px solid;
138
+ }
139
+
140
+ .dropdown-item road-icon{
141
+ margin-right: 0.7rem;
142
+ }
143
+
144
+ /**
145
+ * Hover state
146
+ */
147
+
148
+ road-item:hover:first-child,
149
+ road-item.focus-visible:first-child {
150
+ background: none;
151
+ }
152
+
153
+ road-item:hover,
154
+ road-item.focus-visible {
155
+ background: var(--road-grey-100);
156
+ }
@@ -0,0 +1,59 @@
1
+ import { h } from '@stencil/core';
2
+ /**
3
+ * @slot - Element how will open the dropdown when clicked
4
+ * @slot list - List of item values (you can add border with lines=`full` but not on the last item)
5
+ * @slot avatar - Content of the avatar (img or First letter) <road-img> or <road-label>.
6
+ * @slot avatarItem - Content of the avatar item (img or First letter) <road-img> or <road-label>.
7
+
8
+ */
9
+ export class Dropdown {
10
+ constructor() {
11
+ /**
12
+ * Set to `true` to open the dropdown menu and to `false` to close it.
13
+ */
14
+ this.isOpen = false;
15
+ /**
16
+ * Toggle the display when clicking element in slot
17
+ */
18
+ this.onClick = () => {
19
+ this.isOpen = !this.isOpen;
20
+ };
21
+ }
22
+ render() {
23
+ return (h("details", { class: "dropdown", open: this.isOpen }, h("summary", { "aria-expanded": `${this.isOpen}`, tabindex: "0", role: "button", onClick: this.onClick }, h("div", { class: `d-flex` }, h("div", null, h("road-avatar", null, h("slot", { name: "avatar" }))))), h("div", { class: `dropdown-menu` }, h("div", { class: "profil-item" }, h("road-avatar", { size: "sm" }, h("slot", { name: "avatarItem" })), h("div", { class: "profil-item-info" }, h("span", { class: "profil-item-info-name" }, "First and Last name"), h("road-label", null, "Email"))), h("slot", { name: "list" }))));
24
+ }
25
+ static get is() { return "road-profil-dropdown"; }
26
+ static get encapsulation() { return "shadow"; }
27
+ static get originalStyleUrls() {
28
+ return {
29
+ "$": ["profil-dropdown.css"]
30
+ };
31
+ }
32
+ static get styleUrls() {
33
+ return {
34
+ "$": ["profil-dropdown.css"]
35
+ };
36
+ }
37
+ static get properties() {
38
+ return {
39
+ "isOpen": {
40
+ "type": "boolean",
41
+ "mutable": true,
42
+ "complexType": {
43
+ "original": "boolean",
44
+ "resolved": "boolean",
45
+ "references": {}
46
+ },
47
+ "required": false,
48
+ "optional": false,
49
+ "docs": {
50
+ "tags": [],
51
+ "text": "Set to `true` to open the dropdown menu and to `false` to close it."
52
+ },
53
+ "attribute": "is-open",
54
+ "reflect": false,
55
+ "defaultValue": "false"
56
+ }
57
+ };
58
+ }
59
+ }
@@ -0,0 +1,68 @@
1
+ import { html } from 'lit-html';
2
+ import { ifDefined } from 'lit-html/directives/if-defined';
3
+ import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
4
+
5
+ export default {
6
+ title: 'Expand/Profil Dropdown',
7
+ component: 'road-profil-dropdown',
8
+ argTypes: {
9
+ 'is-open': {
10
+ control: 'boolean',
11
+ },
12
+ ' ': {
13
+ control: {
14
+ type: null,
15
+ },
16
+ },
17
+ list: {
18
+ control: {
19
+ type: 'text',
20
+ },
21
+ },
22
+ avatar: {
23
+ control: {
24
+ type: 'text',
25
+ },
26
+ },
27
+ avatarItem: {
28
+ control: {
29
+ type: 'text',
30
+ },
31
+ },
32
+ '--margin-top': {
33
+ table: {
34
+ defaultValue: { summary: '0.5rem' },
35
+ },
36
+ control: {
37
+ type: null,
38
+ },
39
+ },
40
+ },
41
+ args: {
42
+ 'is-open': true,
43
+ avatar: `<road-img slot="avatar" src="https://images.unsplash.com/photo-1527980965255-d3b416303d12?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80" alt="avatar" title="Person name"></road-img>`,
44
+ avatarItem: `<road-img slot="avatarItem" src="https://images.unsplash.com/photo-1527980965255-d3b416303d12?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80" alt="avatar" title="Person name"></road-img>`,
45
+ list: `<road-list slot="list">
46
+ <road-item button style="--border-radius: 0; --min-height: 2.5rem; --inner-padding: 0;">
47
+ <road-icon slot="start" name="edit-outline" size="md"></road-icon>
48
+ <road-label style="font-size: 1rem">
49
+ Edit profile
50
+ </road-label>
51
+ </road-item>
52
+ <road-item button style="--border-radius: 0; --min-height: 2.5rem; --inner-padding: 0;">
53
+ <road-icon slot="start" name="log-out-outline" size="md"></road-icon>
54
+ <road-label style="font-size: 1rem">
55
+ Log out
56
+ </road-label>
57
+ </road-item>
58
+ </road-list>`,
59
+ },
60
+ };
61
+
62
+ export const Playground = (args) => html`
63
+ <road-profil-dropdown is-open=${ifDefined(args['is-open'])}>
64
+ ${unsafeHTML(args.list)}
65
+ ${unsafeHTML(args.avatar)}
66
+ ${unsafeHTML(args.avatarItem)}
67
+ </road-profil-dropdown>
68
+ `;
@@ -25,7 +25,6 @@ export class ProgressBar {
25
25
  }
26
26
  render() {
27
27
  const valueRound = Math.round(this.value / 5 / 5);
28
- console.log(this.value / 5 / 5);
29
28
  return (h(Host, { class: "progress-element" }, h("div", { class: `progress progress-${this.color}` }, h("div", { class: "progress-bar", role: "progressbar", style: { width: `${this.value}%` }, "aria-valuenow": this.value, "aria-valuemin": "0", "aria-valuemax": "100" })), h("div", { class: "progress-element-info" }, h("span", { class: "progress-element-label" }, this.label), this.showstep && h("span", { class: "progress-element-step" }, valueRound, "/", this.numbersteps))));
30
29
  }
31
30
  static get is() { return "road-progress"; }
@@ -44,6 +44,15 @@
44
44
  border-radius: 0 999em 999em 0;
45
45
  }
46
46
 
47
+ /**
48
+ * Small
49
+ */
50
+
51
+ :host(.btn-sm) {
52
+ height: 2rem;
53
+ font-size: 0.875rem;
54
+ }
55
+
47
56
  /**
48
57
  * Active state
49
58
  */
@@ -5,6 +5,10 @@ import { Host, h } from '@stencil/core';
5
5
  */
6
6
  export class SegmentedButton {
7
7
  constructor() {
8
+ /**
9
+ * The Segmented buttons size.
10
+ */
11
+ this.size = 'md';
8
12
  /**
9
13
  * The selected tab component
10
14
  */
@@ -47,8 +51,10 @@ export class SegmentedButton {
47
51
  }
48
52
  render() {
49
53
  const { tabIndex, selected, tab } = this;
54
+ const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
50
55
  return (h(Host, { onClick: this.onClick, onKeyup: this.onKeyUp, role: "tab", tabindex: tabIndex, "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
51
56
  'tab-selected': selected,
57
+ [`${sizeClass}`]: true,
52
58
  } }, h("button", { type: "button", tabIndex: -1, class: "button-native", part: "native" }, h("slot", null))));
53
59
  }
54
60
  static get is() { return "road-segmented-button"; }
@@ -65,6 +71,24 @@ export class SegmentedButton {
65
71
  }
66
72
  static get properties() {
67
73
  return {
74
+ "size": {
75
+ "type": "string",
76
+ "mutable": false,
77
+ "complexType": {
78
+ "original": "'sm' | 'md'",
79
+ "resolved": "\"md\" | \"sm\" | undefined",
80
+ "references": {}
81
+ },
82
+ "required": false,
83
+ "optional": true,
84
+ "docs": {
85
+ "tags": [],
86
+ "text": "The Segmented buttons size."
87
+ },
88
+ "attribute": "size",
89
+ "reflect": false,
90
+ "defaultValue": "'md'"
91
+ },
68
92
  "selected": {
69
93
  "type": "boolean",
70
94
  "mutable": true,
@@ -1,4 +1,5 @@
1
1
  import { html } from 'lit-html';
2
+ import { ifDefined } from 'lit-html/directives/if-defined';
2
3
  import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
3
4
 
4
5
  export default {
@@ -100,4 +101,24 @@ Playground.args = {
100
101
  </road-tab>`,
101
102
  };
102
103
 
104
+ export const Small = Template.bind({});
105
+ Small.args = {
106
+ top: `<road-segmented-button-bar slot="top" selected-tab="tab-description">
107
+ <road-segmented-button tab="tab-description" size="sm">
108
+ Description
109
+ </road-segmented-button>
110
+
111
+ <road-segmented-button tab="tab-services" size="sm">
112
+ Services
113
+ </road-segmented-button>
114
+ </road-segmented-button-bar>`,
115
+ ' ': `<road-tab tab="tab-description">
116
+ Description
117
+ </road-tab>
118
+
119
+ <road-tab tab="tab-services">
120
+ Services
121
+ </road-tab>`,
122
+ };
123
+
103
124
 
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Vertical Stepper
3
+ *
4
+ * Index
5
+ * - Item
6
+ * - Link
7
+ * - Icon
8
+ * - Title
9
+ * - Completed
10
+ */
11
+
12
+ :host {
13
+ display: block;
14
+ }
15
+
16
+ /* VERTICAL STEPPER
17
+ -------------------- */
18
+
19
+ .vertical-stepper {
20
+ display: flex;
21
+ flex-direction: column;
22
+ padding-left: 0;
23
+ list-style: none;
24
+ }
25
+