@roadtrip/components 3.5.0 → 3.7.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 (119) hide show
  1. package/dist/cjs/index-a2306350.js +12 -8
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/road-navbar-item.cjs.entry.js +1 -1
  4. package/dist/cjs/road-progress-indicator-vertical-item.cjs.entry.js +19 -0
  5. package/dist/cjs/road-progress-indicator-vertical.cjs.entry.js +19 -0
  6. package/dist/cjs/road-progress.cjs.entry.js +1 -1
  7. package/dist/cjs/road-tag.cjs.entry.js +29 -0
  8. package/dist/cjs/road-textarea.cjs.entry.js +7 -2
  9. package/dist/cjs/road-toast.cjs.entry.js +1 -1
  10. package/dist/cjs/roadtrip.cjs.js +1 -1
  11. package/dist/collection/collection-manifest.json +4 -3
  12. package/dist/collection/components/button/button.css +1 -0
  13. package/dist/collection/components/global-navigation/global-navigation.stories.js +11 -11
  14. package/dist/collection/components/icon/svg/file-archive-color.svg +1 -1
  15. package/dist/collection/components/icon/svg/file-archive-outline.svg +1 -1
  16. package/dist/collection/components/icon/svg/flag-croatia-color.svg +1 -1
  17. package/dist/collection/components/icon/svg/flag-slovenia-color.svg +1 -1
  18. package/dist/collection/components/icon/svg/folding-chair-color.svg +1 -0
  19. package/dist/collection/components/icon/svg/folding-chair-outline.svg +1 -0
  20. package/dist/collection/components/icon/svg/furniture-color.svg +1 -0
  21. package/dist/collection/components/icon/svg/furniture-outline.svg +1 -0
  22. package/dist/collection/components/icon/svg/microwave-color.svg +1 -0
  23. package/dist/collection/components/icon/svg/microwave-outline.svg +1 -0
  24. package/dist/collection/components/icon/svg/season-swap-color.svg +1 -0
  25. package/dist/collection/components/icon/svg/season-swap-outline.svg +1 -0
  26. package/dist/collection/components/icon/svg/shower-color.svg +1 -0
  27. package/dist/collection/components/icon/svg/shower-outline.svg +1 -0
  28. package/dist/collection/components/icon/svg/sticker-certified-tuv-hu-au-color.svg +1 -0
  29. package/dist/collection/components/icon/svg/sticker-certified-tuv-hu-au-outline.svg +1 -0
  30. package/dist/collection/components/icon/svg/vehicle-rooftop-tent-color.svg +1 -1
  31. package/dist/collection/components/icon/svg/vehicle-rooftop-tent-outline.svg +1 -1
  32. package/dist/collection/components/icon/svg/vehicle-rooftop-tent-solid.svg +1 -1
  33. package/dist/collection/components/icon/svg/ventilator-color.svg +1 -1
  34. package/dist/collection/components/icon/svg/ventilator-outline.svg +1 -1
  35. package/dist/collection/components/icon/svg/water-outline.svg +1 -1
  36. package/dist/collection/components/navbar/navbar.stories.js +11 -11
  37. package/dist/collection/components/navbar-item/navbar-item.css +1 -1
  38. package/dist/collection/components/progress/progress.css +4 -0
  39. package/dist/collection/components/progress/progress.js +2 -2
  40. package/dist/collection/components/progress/progress.stories.js +6 -1
  41. package/dist/collection/components/{vertical-stepper/vertical-stepper.css → progress-indicator-vertical/progress-indicator-vertical.css} +2 -2
  42. package/dist/collection/components/{vertical-stepper/vertical-stepper.js → progress-indicator-vertical/progress-indicator-vertical.js} +8 -9
  43. package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.stories.js +256 -0
  44. package/dist/collection/components/progress-indicator-vertical-item/progress-indicator-vertical-item.css +212 -0
  45. package/dist/collection/components/progress-indicator-vertical-item/progress-indicator-vertical-item.js +20 -0
  46. package/dist/collection/components/tag/tag.css +109 -0
  47. package/dist/collection/components/tag/tag.js +73 -0
  48. package/dist/collection/components/tag/tag.stories.js +50 -0
  49. package/dist/collection/components/textarea/textarea.css +4 -0
  50. package/dist/collection/components/textarea/textarea.js +24 -1
  51. package/dist/collection/components/textarea/textarea.stories.js +9 -0
  52. package/dist/collection/components/toast/toast.css +2 -0
  53. package/dist/esm/index-a99a5e7b.js +12 -8
  54. package/dist/esm/loader.js +1 -1
  55. package/dist/esm/road-navbar-item.entry.js +1 -1
  56. package/dist/esm/road-progress-indicator-vertical-item.entry.js +15 -0
  57. package/dist/esm/road-progress-indicator-vertical.entry.js +15 -0
  58. package/dist/esm/road-progress.entry.js +1 -1
  59. package/dist/esm/road-tag.entry.js +25 -0
  60. package/dist/esm/road-textarea.entry.js +7 -2
  61. package/dist/esm/road-toast.entry.js +1 -1
  62. package/dist/esm/roadtrip.js +1 -1
  63. package/dist/html.html-data.json +78 -28
  64. package/dist/icons/icons.svg +1 -1
  65. package/dist/icons/index.d.ts +12 -0
  66. package/dist/icons/index.js +39 -20
  67. package/dist/roadtrip/p-07bb357f.entry.js +1 -0
  68. package/dist/roadtrip/p-0f2ef43f.entry.js +1 -0
  69. package/dist/roadtrip/{p-4b77e940.entry.js → p-2128ac77.entry.js} +1 -1
  70. package/dist/roadtrip/p-38cf1a21.entry.js +1 -0
  71. package/dist/roadtrip/{p-57e3fe85.entry.js → p-870feb87.entry.js} +1 -1
  72. package/dist/roadtrip/p-df3469df.entry.js +1 -0
  73. package/dist/roadtrip/p-e10c9e2d.entry.js +1 -0
  74. package/dist/roadtrip/roadtrip.esm.js +1 -1
  75. package/dist/roadtrip/svg/file-archive-color.svg +1 -1
  76. package/dist/roadtrip/svg/file-archive-outline.svg +1 -1
  77. package/dist/roadtrip/svg/flag-croatia-color.svg +1 -1
  78. package/dist/roadtrip/svg/flag-slovenia-color.svg +1 -1
  79. package/dist/roadtrip/svg/folding-chair-color.svg +1 -0
  80. package/dist/roadtrip/svg/folding-chair-outline.svg +1 -0
  81. package/dist/roadtrip/svg/furniture-color.svg +1 -0
  82. package/dist/roadtrip/svg/furniture-outline.svg +1 -0
  83. package/dist/roadtrip/svg/microwave-color.svg +1 -0
  84. package/dist/roadtrip/svg/microwave-outline.svg +1 -0
  85. package/dist/roadtrip/svg/season-swap-color.svg +1 -0
  86. package/dist/roadtrip/svg/season-swap-outline.svg +1 -0
  87. package/dist/roadtrip/svg/shower-color.svg +1 -0
  88. package/dist/roadtrip/svg/shower-outline.svg +1 -0
  89. package/dist/roadtrip/svg/sticker-certified-tuv-hu-au-color.svg +1 -0
  90. package/dist/roadtrip/svg/sticker-certified-tuv-hu-au-outline.svg +1 -0
  91. package/dist/roadtrip/svg/vehicle-rooftop-tent-color.svg +1 -1
  92. package/dist/roadtrip/svg/vehicle-rooftop-tent-outline.svg +1 -1
  93. package/dist/roadtrip/svg/vehicle-rooftop-tent-solid.svg +1 -1
  94. package/dist/roadtrip/svg/ventilator-color.svg +1 -1
  95. package/dist/roadtrip/svg/ventilator-outline.svg +1 -1
  96. package/dist/roadtrip/svg/water-outline.svg +1 -1
  97. package/dist/types/components/progress/progress.d.ts +1 -1
  98. package/dist/types/components/progress-indicator-vertical/progress-indicator-vertical.d.ts +14 -0
  99. package/dist/types/components/progress-indicator-vertical-item/progress-indicator-vertical-item.d.ts +6 -0
  100. package/dist/types/components/tag/tag.d.ts +15 -0
  101. package/dist/types/components/textarea/textarea.d.ts +4 -0
  102. package/dist/types/components.d.ts +65 -28
  103. package/icons/icons.svg +1 -1
  104. package/icons/index.d.ts +12 -0
  105. package/icons/index.js +39 -20
  106. package/package.json +1 -1
  107. package/dist/cjs/road-vertical-stepper-item.cjs.entry.js +0 -19
  108. package/dist/cjs/road-vertical-stepper.cjs.entry.js +0 -19
  109. package/dist/collection/components/vertical-stepper/vertical-stepper.stories.js +0 -542
  110. package/dist/collection/components/vertical-stepper-item/vertical-stepper-item.css +0 -185
  111. package/dist/collection/components/vertical-stepper-item/vertical-stepper-item.js +0 -20
  112. package/dist/esm/road-vertical-stepper-item.entry.js +0 -15
  113. package/dist/esm/road-vertical-stepper.entry.js +0 -15
  114. package/dist/roadtrip/p-42e5299f.entry.js +0 -1
  115. package/dist/roadtrip/p-80e42f95.entry.js +0 -1
  116. package/dist/roadtrip/p-932e323f.entry.js +0 -1
  117. package/dist/roadtrip/p-aa81d540.entry.js +0 -1
  118. package/dist/types/components/vertical-stepper/vertical-stepper.d.ts +0 -15
  119. package/dist/types/components/vertical-stepper-item/vertical-stepper-item.d.ts +0 -6
@@ -0,0 +1,212 @@
1
+ /*
2
+ * Progress Indicator Vertical Item
3
+ *
4
+ */
5
+
6
+ /* PROGRESS INDICATOR VERTICAL ITEM
7
+ -------------------- */
8
+
9
+ road-progress-indicator-vertical-item {
10
+ display: flex;
11
+ flex-direction: row;
12
+ justify-content: flex-start;
13
+ min-height: 65px;
14
+ }
15
+
16
+ .progress-indicator-vertical-item-content {
17
+ display: inline-block;
18
+ margin-left: 1rem;
19
+ }
20
+
21
+ /**
22
+ * Disabled click for current and next steps
23
+ */
24
+
25
+ road-progress-indicator-vertical-item:not(.completed) .progress-indicator-vertical-link {
26
+ cursor: not-allowed;
27
+ }
28
+
29
+ /* VERTICAL STEPPER LINK
30
+ -------------------- */
31
+
32
+ .progress-indicator-vertical-link {
33
+ position: relative;
34
+ z-index: 1;
35
+ display: flex;
36
+ }
37
+
38
+ /* VERTICAL STEPPER ICON
39
+ -------------------- */
40
+
41
+ .progress-indicator-vertical-icon {
42
+ display: inline-flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ width: 1.5rem;
46
+ height: 1.5rem;
47
+ font-size: var(--road-font-size-12);
48
+ font-weight: 700;
49
+ color: var(--road-on-surface-disabled);
50
+ background: var(--road-surface-disabled);
51
+ border-radius: 50%;
52
+ fill: currentColor;
53
+ }
54
+
55
+ .progress-indicator-vertical-icon road-icon{
56
+ display: flex;
57
+ }
58
+
59
+ .progress-indicator-vertical-substep-link {
60
+ position: relative;
61
+ z-index: 1;
62
+ display: flex;
63
+ margin: 0 0.5rem;
64
+ }
65
+
66
+ .progress-indicator-vertical-line {
67
+ position: absolute;
68
+ top: 24px;
69
+ left: 11px;
70
+ z-index: -1;
71
+ height: calc(100% - 24px);
72
+ border-left: 2px solid var(--road-surface-disabled);
73
+ }
74
+
75
+ road-progress-indicator-vertical-item:last-child .progress-indicator-vertical-line {
76
+ border-left: 0;
77
+ }
78
+
79
+ .progress-indicator-vertical-substep-icon {
80
+ display: inline-flex;
81
+ align-items: center;
82
+ justify-content: center;
83
+ width: 0.5rem;
84
+ height: 0.5rem;
85
+ margin-top: 0.7rem;
86
+ background: var(--road-surface-disabled);
87
+ border-radius: 50%;
88
+ }
89
+
90
+ .progress-indicator-vertical-substep-beforeline {
91
+ position: absolute;
92
+ top: 0;
93
+ left: 3px;
94
+ z-index: -1;
95
+ height: calc(30% - 8px);
96
+ border-left: 2px solid var(--road-surface-disabled);
97
+ }
98
+
99
+ .progress-indicator-vertical-substep-line {
100
+ position: absolute;
101
+ top: 19px;
102
+ left: 3px;
103
+ z-index: -1;
104
+ height: calc(83% - 8px);
105
+ border-left: 2px solid var(--road-surface-disabled);
106
+ }
107
+
108
+ /* VERTICAL STEPPER TITLE
109
+ -------------------- */
110
+
111
+ .progress-indicator-vertical-title road-label{
112
+ display: block;
113
+ font-size: var(--road-body-large);
114
+ font-weight: 700;
115
+ color: var(--road-on-surface-disabled);
116
+ }
117
+
118
+ .progress-indicator-vertical-description{
119
+ display: block;
120
+ margin: 0;
121
+ font-size: var(--road-label-small);
122
+ font-weight: 400;
123
+ color: var(--road-on-surface-disabled);
124
+ }
125
+
126
+ /* STEP CURRENT
127
+ -------------------- */
128
+
129
+ .current .progress-indicator-vertical-icon {
130
+ color: var(--road-on-primary);
131
+ background: var(--road-primary);
132
+ }
133
+
134
+ .current .progress-indicator-vertical-title road-label{
135
+ font-weight: 700;
136
+ color: var(--road-on-surface);
137
+ }
138
+
139
+ .current .progress-indicator-vertical-description{
140
+ color: var(--road-on-surface-weak);
141
+ }
142
+
143
+ .current .progress-indicator-vertical-substep-icon {
144
+ background: var(--road-primary);
145
+ border: 0;
146
+ }
147
+
148
+ .current .progress-indicator-vertical-substep-beforeline {
149
+ border-left: 2px solid var(--road-primary);
150
+ }
151
+
152
+
153
+ /* STEP IN PROGRESS
154
+ -------------------- */
155
+
156
+ .in-progress .progress-indicator-vertical-icon {
157
+ color: var(--road-on-primary);
158
+ background: var(--road-primary);
159
+ border: 0;
160
+ }
161
+
162
+ .in-progress .progress-indicator-vertical-title road-label{
163
+ font-weight: 700;
164
+ color: var(--road-on-surface);
165
+ }
166
+
167
+ .in-progress .progress-indicator-vertical-description{
168
+ color: var(--road-on-surface-weak);
169
+ }
170
+
171
+ .in-progress .progress-indicator-vertical-line {
172
+ background: var(--road-primary);
173
+ }
174
+
175
+ /* STEP COMPLETED
176
+ -------------------- */
177
+
178
+ .completed:not(:last-child)::after {
179
+ background: var(--road-primary);
180
+ }
181
+
182
+ .completed .progress-indicator-vertical-icon {
183
+ color: var(--road-primary);
184
+ background: none;
185
+ border: 2px solid var(--road-primary);
186
+ }
187
+
188
+ .completed .progress-indicator-vertical-line {
189
+ border-left: 2px solid var(--road-primary);
190
+ }
191
+
192
+ .completed .progress-indicator-vertical-substep-beforeline {
193
+ border-left: 2px solid var(--road-primary);
194
+ }
195
+
196
+ .completed .progress-indicator-vertical-substep-line {
197
+ border-left: 2px solid var(--road-primary);
198
+ }
199
+
200
+ .completed .progress-indicator-vertical-title road-label{
201
+ font-weight: 700;
202
+ color: var(--road-on-surface);
203
+ }
204
+
205
+ .completed .progress-indicator-vertical-description{
206
+ color: var(--road-on-surface-weak);
207
+ }
208
+
209
+ .completed .progress-indicator-vertical-substep-icon {
210
+ background: none;
211
+ border: 2px solid var(--road-primary);
212
+ }
@@ -0,0 +1,20 @@
1
+ import { Host, h } from '@stencil/core';
2
+ /**
3
+ * @slot - Content of the progress indicator vertical item
4
+ */
5
+ export class ProgressIndicatorVerticalItem {
6
+ render() {
7
+ return (h(Host, null, h("slot", null)));
8
+ }
9
+ static get is() { return "road-progress-indicator-vertical-item"; }
10
+ static get originalStyleUrls() {
11
+ return {
12
+ "$": ["progress-indicator-vertical-item.css"]
13
+ };
14
+ }
15
+ static get styleUrls() {
16
+ return {
17
+ "$": ["progress-indicator-vertical-item.css"]
18
+ };
19
+ }
20
+ }
@@ -0,0 +1,109 @@
1
+ /*
2
+ * Chip
3
+ *
4
+ * Index
5
+ * - Color
6
+ */
7
+
8
+ :host {
9
+ box-sizing: border-box;
10
+ display: inline-flex;
11
+ align-items: center;
12
+ padding: 0.125rem 0.5rem;
13
+ font-size: var(--road-body-small);
14
+ border-radius: 0.25rem;
15
+ }
16
+
17
+ /* COLOR
18
+ -------------------- */
19
+
20
+ :host(.tag-grey) {
21
+ color: var(--road-grey-30);
22
+ background-color: var(--road-grey-85);
23
+ }
24
+
25
+ :host(.tag-grey.tag-grey-contrast) {
26
+ color: var(--road-on-primary);
27
+ background-color: var(--road-grey-40);
28
+ }
29
+
30
+ :host(.tag-yellow) {
31
+ color: var(--road-yellow-mikado-20);
32
+ background-color: var(--road-yellow-mikado-90);
33
+ }
34
+
35
+ :host(.tag-yellow.tag-yellow-contrast) {
36
+ color: var(--road-yellow-mikado-20);
37
+ background-color: var(--road-yellow-mikado-60);
38
+ }
39
+
40
+ :host(.tag-red) {
41
+ color: var(--road-red-pepper-30);
42
+ background-color: var(--road-red-pepper-95);
43
+ }
44
+
45
+ :host(.tag-red.tag-red-contrast) {
46
+ color: var(--road-on-primary);
47
+ background-color: var(--road-red-pepper-60);
48
+ }
49
+
50
+ :host(.tag-violet) {
51
+ color: var(--road-violet-electric-30);
52
+ background-color: var(--road-violet-electric-95);
53
+ }
54
+
55
+ :host(.tag-violet.tag-violet-contrast) {
56
+ color: var(--road-on-primary);
57
+ background-color: var(--road-violet-electric-60);
58
+ }
59
+
60
+ :host(.tag-blue) {
61
+ color: var(--road-blue-klein-40);
62
+ background-color: var(--road-blue-klein-95);
63
+ }
64
+
65
+ :host(.tag-blue.tag-blue-contrast) {
66
+ color: var(--road-on-primary);
67
+ background-color: var(--road-blue-klein-60);
68
+ }
69
+
70
+ :host(.tag-green) {
71
+ color: var(--road-green-monstera-30);
72
+ background-color: var(--road-green-monstera-95);
73
+ }
74
+
75
+ :host(.tag-green.tag-green-contrast) {
76
+ color: var(--road-on-primary);
77
+ background-color: var(--road-green-monstera-60);
78
+ }
79
+
80
+ /**
81
+ * Hover state
82
+ */
83
+
84
+ @media (any-hover: hover) {
85
+
86
+ :host(.chip-outline:hover) {
87
+ border-color: var(--road-outline-variant);
88
+ }
89
+
90
+ :host(.chip-secondary:hover) {
91
+ background: var(--road-button-primary-variant);
92
+ }
93
+
94
+ :host(.chip-secondary:hover) .chip-close {
95
+ color: var(--road-primary);
96
+ }
97
+ }
98
+
99
+ /**
100
+ * Focus state
101
+ */
102
+
103
+ :host(.chip-outline:hover) {
104
+ border-color: var(--road-outline-variant);
105
+ }
106
+
107
+ :host(.chip-secondary.focus-visible) {
108
+ background: var(--road-button-primary-variant);
109
+ }
@@ -0,0 +1,73 @@
1
+ import { Host, h } from '@stencil/core';
2
+ import './../../utils/polyfill';
3
+ /**
4
+ * @slot - Content of the tag.
5
+ */
6
+ export class Tag {
7
+ constructor() {
8
+ /**
9
+ * The color to use from your application's color palette.
10
+ */
11
+ this.color = 'grey';
12
+ /**
13
+ * Set to `true` for a contrast tag, for example on a gryy surface
14
+ */
15
+ this.contrast = false;
16
+ }
17
+ render() {
18
+ const contrastClass = this.contrast ? `tag-${this.color} tag-${this.color}-contrast` : `tag-${this.color}`;
19
+ return (h(Host, { class: `${contrastClass}` }, h("slot", null)));
20
+ }
21
+ static get is() { return "road-tag"; }
22
+ static get encapsulation() { return "shadow"; }
23
+ static get originalStyleUrls() {
24
+ return {
25
+ "$": ["tag.css"]
26
+ };
27
+ }
28
+ static get styleUrls() {
29
+ return {
30
+ "$": ["tag.css"]
31
+ };
32
+ }
33
+ static get properties() {
34
+ return {
35
+ "color": {
36
+ "type": "string",
37
+ "mutable": false,
38
+ "complexType": {
39
+ "original": "'grey' | 'yellow' | 'red' | 'violet' | 'blue' | 'green'",
40
+ "resolved": "\"blue\" | \"green\" | \"grey\" | \"red\" | \"violet\" | \"yellow\" | undefined",
41
+ "references": {}
42
+ },
43
+ "required": false,
44
+ "optional": true,
45
+ "docs": {
46
+ "tags": [],
47
+ "text": "The color to use from your application's color palette."
48
+ },
49
+ "attribute": "color",
50
+ "reflect": false,
51
+ "defaultValue": "'grey'"
52
+ },
53
+ "contrast": {
54
+ "type": "boolean",
55
+ "mutable": false,
56
+ "complexType": {
57
+ "original": "boolean",
58
+ "resolved": "boolean",
59
+ "references": {}
60
+ },
61
+ "required": false,
62
+ "optional": false,
63
+ "docs": {
64
+ "tags": [],
65
+ "text": "Set to `true` for a contrast tag, for example on a gryy surface"
66
+ },
67
+ "attribute": "contrast",
68
+ "reflect": false,
69
+ "defaultValue": "false"
70
+ }
71
+ };
72
+ }
73
+ }
@@ -0,0 +1,50 @@
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: 'Indicators/Tag',
7
+ component: 'road-tag',
8
+ parameters: {
9
+ backgrounds: {
10
+ default: 'grey',
11
+ },
12
+ },
13
+ argTypes: {
14
+ ' ': {
15
+ control: 'text',
16
+ },
17
+ color: {
18
+ options: ['grey', 'yellow', 'red', 'violet', 'blue', 'green'],
19
+ control: {
20
+ type: 'select',
21
+ },
22
+ },
23
+ contrast: {
24
+ control: 'boolean',
25
+ },
26
+ },
27
+ args: {
28
+ ' ': `Label`,
29
+ },
30
+ };
31
+
32
+ const Template = (args) => html`
33
+ <road-tag
34
+ color="${ifDefined(args.color)}" contrast="${ifDefined(args.contrast)}"
35
+ >
36
+ ${unsafeHTML(args[' '])}
37
+ </road-tag>
38
+ `;
39
+
40
+ export const Color = Template.bind({});
41
+ Color.args = {
42
+ color: 'grey',
43
+ ' ': `Reset`,
44
+ };
45
+
46
+ export const Contrast = Template.bind({});
47
+ Contrast.args = {
48
+ color: 'grey',
49
+ contrast: true,
50
+ };
@@ -109,6 +109,10 @@
109
109
  line-height: 1.5;
110
110
  }
111
111
 
112
+ .textarea-control.no-resize {
113
+ resize: none;
114
+ }
115
+
112
116
  /* LABEL
113
117
  -------------------- */
114
118
 
@@ -37,6 +37,10 @@ export class Textarea {
37
37
  * If `true`, the element will have its spelling and grammar checked.
38
38
  */
39
39
  this.spellcheck = false;
40
+ /**
41
+ * If `false`, to disabled resize.
42
+ */
43
+ this.resize = true;
40
44
  /**
41
45
  * The value of the textarea.
42
46
  */
@@ -76,8 +80,9 @@ export class Textarea {
76
80
  const value = this.getValue();
77
81
  const labelId = this.textareaId + '-label';
78
82
  const hasValueClass = this.value !== '' ? 'has-value' : '';
83
+ const noResizeClass = this.resize == false ? 'no-resize' : '';
79
84
  const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
80
- return (h(Host, { "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}` }, h("textarea", { class: `form-control textarea-control ${hasValueClass} ${isInvalidClass}`, id: this.textareaId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, maxLength: this.maxlength, minLength: this.minlength, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, value: value, spellcheck: this.spellcheck, cols: this.cols, rows: this.rows, wrap: this.wrap, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus }), h("label", { class: "form-label", id: labelId, htmlFor: this.textareaId }, this.label), this.error && this.error !== '' && h("p", { class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && h("p", { class: "helper" }, this.helper)));
85
+ return (h(Host, { "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}` }, h("textarea", { class: `form-control textarea-control ${hasValueClass} ${noResizeClass} ${isInvalidClass}`, id: this.textareaId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, maxLength: this.maxlength, minLength: this.minlength, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, value: value, spellcheck: this.spellcheck, cols: this.cols, rows: this.rows, wrap: this.wrap, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus }), h("label", { class: "form-label", id: labelId, htmlFor: this.textareaId }, this.label), this.error && this.error !== '' && h("p", { class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && h("p", { class: "helper" }, this.helper)));
81
86
  }
82
87
  static get is() { return "road-textarea"; }
83
88
  static get encapsulation() { return "scoped"; }
@@ -340,6 +345,24 @@ export class Textarea {
340
345
  "reflect": false,
341
346
  "defaultValue": "false"
342
347
  },
348
+ "resize": {
349
+ "type": "boolean",
350
+ "mutable": false,
351
+ "complexType": {
352
+ "original": "boolean",
353
+ "resolved": "boolean",
354
+ "references": {}
355
+ },
356
+ "required": false,
357
+ "optional": false,
358
+ "docs": {
359
+ "tags": [],
360
+ "text": "If `false`, to disabled resize."
361
+ },
362
+ "attribute": "resize",
363
+ "reflect": false,
364
+ "defaultValue": "true"
365
+ },
343
366
  "cols": {
344
367
  "type": "number",
345
368
  "mutable": false,
@@ -25,6 +25,9 @@ export default {
25
25
  spellcheck: {
26
26
  control: 'boolean',
27
27
  },
28
+ resize: {
29
+ control: 'boolean',
30
+ },
28
31
  error: {
29
32
  control: 'text',
30
33
  },
@@ -143,6 +146,7 @@ const Template = (args) => html`
143
146
  sizes="${ifDefined(args.sizes)}"
144
147
  value="${ifDefined(args.value)}"
145
148
  spellcheck="${ifDefined(args.spellcheck)}"
149
+ resize="${ifDefined(args.resize)}"
146
150
  placeholder="${ifDefined(args.placeholder)}"
147
151
  autocapitalize="${ifDefined(args.autocapitalize)}"
148
152
  enterkeyhint="${ifDefined(args.enterkeyhint)}"
@@ -168,6 +172,11 @@ Disabled.args = {
168
172
  disabled: true,
169
173
  };
170
174
 
175
+ export const noResize = Template.bind({});
176
+ noResize.args = {
177
+ resize: false,
178
+ };
179
+
171
180
  export const Error = Template.bind({});
172
181
  Error.args = {
173
182
  error: 'This field is required',
@@ -24,6 +24,7 @@
24
24
  justify-content: center;
25
25
  width: 328px;
26
26
  margin: 0 auto;
27
+ pointer-events: none;
27
28
  visibility: hidden;
28
29
  opacity: 0;
29
30
  transition: opacity .3s ease-in-out,visibility .15s,transform .3s ease-in-out;
@@ -90,6 +91,7 @@
90
91
 
91
92
  .toast-danger {
92
93
  color: var(--road-on-danger-surface-inverse);
94
+ pointer-events: all;
93
95
  background: var(--road-danger-surface-inverse);
94
96
  }
95
97
 
@@ -2055,6 +2055,14 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2055
2055
  return import(
2056
2056
  /* webpackMode: "lazy" */
2057
2057
  './road-progress-indicator-horizontal.entry.js').then(processMod, consoleError);
2058
+ case 'road-progress-indicator-vertical':
2059
+ return import(
2060
+ /* webpackMode: "lazy" */
2061
+ './road-progress-indicator-vertical.entry.js').then(processMod, consoleError);
2062
+ case 'road-progress-indicator-vertical-item':
2063
+ return import(
2064
+ /* webpackMode: "lazy" */
2065
+ './road-progress-indicator-vertical-item.entry.js').then(processMod, consoleError);
2058
2066
  case 'road-progress-tracker':
2059
2067
  return import(
2060
2068
  /* webpackMode: "lazy" */
@@ -2131,6 +2139,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2131
2139
  return import(
2132
2140
  /* webpackMode: "lazy" */
2133
2141
  './road-tabs.entry.js').then(processMod, consoleError);
2142
+ case 'road-tag':
2143
+ return import(
2144
+ /* webpackMode: "lazy" */
2145
+ './road-tag.entry.js').then(processMod, consoleError);
2134
2146
  case 'road-text':
2135
2147
  return import(
2136
2148
  /* webpackMode: "lazy" */
@@ -2159,14 +2171,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2159
2171
  return import(
2160
2172
  /* webpackMode: "lazy" */
2161
2173
  './road-tooltip.entry.js').then(processMod, consoleError);
2162
- case 'road-vertical-stepper':
2163
- return import(
2164
- /* webpackMode: "lazy" */
2165
- './road-vertical-stepper.entry.js').then(processMod, consoleError);
2166
- case 'road-vertical-stepper-item':
2167
- return import(
2168
- /* webpackMode: "lazy" */
2169
- './road-vertical-stepper-item.entry.js').then(processMod, consoleError);
2170
2174
  case 'road-avatar':
2171
2175
  return import(
2172
2176
  /* webpackMode: "lazy" */