@warp-ds/elements 2.9.0-next.2 → 2.9.0-next.3

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 (86) hide show
  1. package/dist/custom-elements.json +17 -3
  2. package/dist/docs/affix/affix.md +56 -0
  3. package/dist/docs/affix/api.md +48 -0
  4. package/dist/docs/alert/accessibility.md +30 -0
  5. package/dist/docs/alert/alert.md +208 -0
  6. package/dist/docs/alert/api.md +39 -0
  7. package/dist/docs/alert/examples.md +84 -0
  8. package/dist/docs/alert/usage.md +42 -0
  9. package/dist/docs/attention/api.md +132 -0
  10. package/dist/docs/attention/attention.md +138 -0
  11. package/dist/docs/badge/api.md +28 -0
  12. package/dist/docs/badge/badge.md +36 -0
  13. package/dist/docs/box/api.md +52 -0
  14. package/dist/docs/box/box.md +60 -0
  15. package/dist/docs/breadcrumbs/api.md +20 -0
  16. package/dist/docs/breadcrumbs/breadcrumbs.md +28 -0
  17. package/dist/docs/button/api.md +155 -0
  18. package/dist/docs/button/button.md +163 -0
  19. package/dist/docs/card/api.md +44 -0
  20. package/dist/docs/card/card.md +52 -0
  21. package/dist/docs/combobox/api.md +132 -0
  22. package/dist/docs/combobox/combobox.md +140 -0
  23. package/dist/docs/datepicker/api.md +192 -0
  24. package/dist/docs/datepicker/datepicker.md +202 -0
  25. package/dist/docs/expandable/api.md +100 -0
  26. package/dist/docs/expandable/expandable.md +108 -0
  27. package/dist/docs/link/api.md +87 -0
  28. package/dist/docs/link/link.md +95 -0
  29. package/dist/docs/page-indicator/api.md +28 -0
  30. package/dist/docs/page-indicator/page-indicator.md +35 -0
  31. package/dist/docs/pagination/api.md +44 -0
  32. package/dist/docs/pagination/pagination.md +52 -0
  33. package/dist/docs/pill/api.md +76 -0
  34. package/dist/docs/pill/pill.md +84 -0
  35. package/dist/docs/select/api.md +116 -0
  36. package/dist/docs/select/select.md +124 -0
  37. package/dist/docs/slider/api.md +214 -0
  38. package/dist/docs/slider/slider.md +222 -0
  39. package/dist/docs/slider-thumb/api.md +116 -0
  40. package/dist/docs/slider-thumb/slider-thumb.md +124 -0
  41. package/dist/docs/step/api.md +28 -0
  42. package/dist/docs/step/step.md +34 -0
  43. package/dist/docs/step-indicator/api.md +28 -0
  44. package/dist/docs/step-indicator/step-indicator.md +36 -0
  45. package/dist/docs/switch/api.md +52 -0
  46. package/dist/docs/switch/switch.md +58 -0
  47. package/dist/docs/tab/api.md +76 -0
  48. package/dist/docs/tab/tab.md +84 -0
  49. package/dist/docs/tab-panel/api.md +21 -0
  50. package/dist/docs/tab-panel/tab-panel.md +30 -0
  51. package/dist/docs/tabs/api.md +36 -0
  52. package/dist/docs/tabs/tabs.md +44 -0
  53. package/dist/docs/textarea/api.md +156 -0
  54. package/dist/docs/textarea/textarea.md +164 -0
  55. package/dist/docs/textfield/api.md +194 -0
  56. package/dist/docs/textfield/textfield.md +202 -0
  57. package/dist/docs/toast-container/api.md +14 -0
  58. package/dist/docs/toast-container/toast-container.md +20 -0
  59. package/dist/packages/affix/affix.js +5 -5
  60. package/dist/packages/affix/affix.js.map +2 -2
  61. package/dist/packages/alert/alert.d.ts +15 -0
  62. package/dist/packages/alert/alert.js +6 -6
  63. package/dist/packages/alert/alert.js.map +2 -2
  64. package/dist/packages/attention/attention.js +5 -5
  65. package/dist/packages/attention/attention.js.map +2 -2
  66. package/dist/packages/datepicker/datepicker.js +1 -1
  67. package/dist/packages/datepicker/datepicker.js.map +2 -2
  68. package/dist/packages/expandable/expandable.js +7 -7
  69. package/dist/packages/expandable/expandable.js.map +2 -2
  70. package/dist/packages/icon/icon.js +2 -2
  71. package/dist/packages/icon/icon.js.map +2 -2
  72. package/dist/packages/icon/icon.test.js +14 -0
  73. package/dist/packages/modal-header/modal-header.js +6 -6
  74. package/dist/packages/modal-header/modal-header.js.map +2 -2
  75. package/dist/packages/pagination/pagination.js +3 -3
  76. package/dist/packages/pagination/pagination.js.map +2 -2
  77. package/dist/packages/pill/pill.js +3 -3
  78. package/dist/packages/pill/pill.js.map +2 -2
  79. package/dist/packages/select/select.js +4 -4
  80. package/dist/packages/select/select.js.map +2 -2
  81. package/dist/packages/step/step.js +4 -4
  82. package/dist/packages/step/step.js.map +2 -2
  83. package/dist/packages/toast/toast.js +4 -4
  84. package/dist/packages/toast/toast.js.map +2 -2
  85. package/dist/web-types.json +18 -5
  86. package/package.json +7 -2
@@ -0,0 +1,116 @@
1
+ ## API Documentation
2
+
3
+ ### Properties
4
+
5
+ | Name | Type | Default | Summary |
6
+ |-|-|-|-|
7
+ | autoFocus | `boolean` | `false` | - |
8
+ | autofocus | `boolean` | `false` | - |
9
+ | helpText | `string` | `-` | - |
10
+ | invalid | `boolean` | `false` | - |
11
+ | always | `boolean` | `false` | - |
12
+ | hint | `string` | `-` | - |
13
+ | label | `string` | `-` | - |
14
+ | optional | `boolean` | `false` | - |
15
+ | disabled | `boolean` | `false` | - |
16
+ | readOnly | `boolean` | `false` | - |
17
+ | readonly | `boolean` | `false` | - |
18
+ | name | `string` | `-` | - |
19
+ | value | `string` | `-` | - |
20
+
21
+ ### Property Details
22
+
23
+ #### autoFocus
24
+
25
+ Whether the element should receive focus on render.
26
+
27
+ - Type: `boolean`
28
+ - Default: `false`
29
+
30
+ #### autofocus
31
+
32
+ Whether the element should receive focus on render
33
+
34
+ - Type: `boolean`
35
+ - Default: `false`
36
+
37
+ #### helpText
38
+
39
+ The content displayed as the help text. Paired with `invalid` to show the text as a validation error.
40
+
41
+ - Type: `string`
42
+ - Default: `-`
43
+
44
+ #### invalid
45
+
46
+ Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.
47
+
48
+ - Type: `boolean`
49
+ - Default: `false`
50
+
51
+ #### always
52
+
53
+ Whether to always show a hint.
54
+
55
+ - Type: `boolean`
56
+ - Default: `false`
57
+
58
+ #### hint
59
+
60
+ The content displayed as the help text.
61
+
62
+ - Type: `string`
63
+ - Default: `-`
64
+
65
+ #### label
66
+
67
+ The content to disply as the label
68
+
69
+ - Type: `string`
70
+ - Default: `-`
71
+
72
+ #### optional
73
+
74
+ Whether to show optional text
75
+
76
+ - Type: `boolean`
77
+ - Default: `false`
78
+
79
+ #### disabled
80
+
81
+ Renders the field in a disabled state.
82
+
83
+ - Type: `boolean`
84
+ - Default: `false`
85
+
86
+ #### readOnly
87
+
88
+ Renders the field in a readonly state.
89
+
90
+ - Type: `boolean`
91
+ - Default: `false`
92
+
93
+ #### readonly
94
+
95
+ Renders the field in a readonly state.
96
+
97
+ - Type: `boolean`
98
+ - Default: `false`
99
+
100
+ #### name
101
+
102
+
103
+
104
+ - Type: `string`
105
+ - Default: `-`
106
+
107
+ #### value
108
+
109
+
110
+
111
+ - Type: `string`
112
+ - Default: `-`
113
+
114
+ ### Types
115
+
116
+ No types documented.
@@ -0,0 +1,124 @@
1
+ # Select (w-select)
2
+
3
+ ## Description
4
+
5
+ A dropdown component for selecting a single value.
6
+
7
+ [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-select--docs)
8
+
9
+ ## API Documentation
10
+
11
+ ### Properties
12
+
13
+ | Name | Type | Default | Summary |
14
+ |-|-|-|-|
15
+ | autoFocus | `boolean` | `false` | - |
16
+ | autofocus | `boolean` | `false` | - |
17
+ | helpText | `string` | `-` | - |
18
+ | invalid | `boolean` | `false` | - |
19
+ | always | `boolean` | `false` | - |
20
+ | hint | `string` | `-` | - |
21
+ | label | `string` | `-` | - |
22
+ | optional | `boolean` | `false` | - |
23
+ | disabled | `boolean` | `false` | - |
24
+ | readOnly | `boolean` | `false` | - |
25
+ | readonly | `boolean` | `false` | - |
26
+ | name | `string` | `-` | - |
27
+ | value | `string` | `-` | - |
28
+
29
+ ### Property Details
30
+
31
+ #### autoFocus
32
+
33
+ Whether the element should receive focus on render.
34
+
35
+ - Type: `boolean`
36
+ - Default: `false`
37
+
38
+ #### autofocus
39
+
40
+ Whether the element should receive focus on render
41
+
42
+ - Type: `boolean`
43
+ - Default: `false`
44
+
45
+ #### helpText
46
+
47
+ The content displayed as the help text. Paired with `invalid` to show the text as a validation error.
48
+
49
+ - Type: `string`
50
+ - Default: `-`
51
+
52
+ #### invalid
53
+
54
+ Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.
55
+
56
+ - Type: `boolean`
57
+ - Default: `false`
58
+
59
+ #### always
60
+
61
+ Whether to always show a hint.
62
+
63
+ - Type: `boolean`
64
+ - Default: `false`
65
+
66
+ #### hint
67
+
68
+ The content displayed as the help text.
69
+
70
+ - Type: `string`
71
+ - Default: `-`
72
+
73
+ #### label
74
+
75
+ The content to disply as the label
76
+
77
+ - Type: `string`
78
+ - Default: `-`
79
+
80
+ #### optional
81
+
82
+ Whether to show optional text
83
+
84
+ - Type: `boolean`
85
+ - Default: `false`
86
+
87
+ #### disabled
88
+
89
+ Renders the field in a disabled state.
90
+
91
+ - Type: `boolean`
92
+ - Default: `false`
93
+
94
+ #### readOnly
95
+
96
+ Renders the field in a readonly state.
97
+
98
+ - Type: `boolean`
99
+ - Default: `false`
100
+
101
+ #### readonly
102
+
103
+ Renders the field in a readonly state.
104
+
105
+ - Type: `boolean`
106
+ - Default: `false`
107
+
108
+ #### name
109
+
110
+
111
+
112
+ - Type: `string`
113
+ - Default: `-`
114
+
115
+ #### value
116
+
117
+
118
+
119
+ - Type: `string`
120
+ - Default: `-`
121
+
122
+ ### Types
123
+
124
+ No types documented.
@@ -0,0 +1,214 @@
1
+ ## API Documentation
2
+
3
+ ### Properties
4
+
5
+ | Name | Type | Default | Summary |
6
+ |-|-|-|-|
7
+ | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
8
+ | label | `string` | `-` | - |
9
+ | disabled | `boolean` | `false` | - |
10
+ | openEnded | `boolean` | `false` | - |
11
+ | error | `string` | `-` | - |
12
+ | helpText | `string` | `-` | - |
13
+ | invalid | `boolean` | `false` | - |
14
+ | required | `boolean` | `false` | - |
15
+ | min | `string` | `-` | - |
16
+ | max | `string` | `-` | - |
17
+ | markers | `number` | `-` | - |
18
+ | step | `number` | `-` | - |
19
+ | suffix | `string` | `-` | - |
20
+ | hiddenTextfield | `boolean` | `false` | - |
21
+ | valueFormatter | `(value: string, slot: SliderSlot) => string` | `-` | - |
22
+ | tooltipFormatter | `(value: string, slot: SliderSlot) => string` | `-` | - |
23
+ | labelFormatter | `(slot: SliderSlot) => string` | `-` | - |
24
+ | _invalidMessage | `string` | `''` | - |
25
+ | _hasInternalError | `boolean` | `false` | - |
26
+ | _showError | `boolean` | `false` | - |
27
+ | _tabbableElements | `Array<HTMLElement>` | `[]` | - |
28
+ | edgeMin | `unknown` | `-` | - |
29
+ | edgeMax | `unknown` | `-` | - |
30
+ | componentHasError | `boolean` | `-` | - |
31
+ | errorText | `string` | `-` | - |
32
+
33
+ ### Property Details
34
+
35
+ #### shadowRootOptions
36
+
37
+
38
+
39
+ - Type: `object`
40
+ - Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
41
+
42
+ #### label
43
+
44
+ The slider fieldset label. Required for proper accessibility.
45
+
46
+ If you need to display HTML, use the `label` slot instead (f. ex. `<legend class="sr-only" slot="label">Production year</legend>`)
47
+
48
+ - Type: `string`
49
+ - Default: `-`
50
+
51
+ #### disabled
52
+
53
+
54
+
55
+ - Type: `boolean`
56
+ - Default: `false`
57
+
58
+ #### openEnded
59
+
60
+ Whether or not to allow values outside the range such as "Before 1950" and "2025+".
61
+
62
+ - Type: `boolean`
63
+ - Default: `false`
64
+
65
+ #### error
66
+
67
+
68
+
69
+ - Type: `string`
70
+ - Default: `-`
71
+
72
+ #### helpText
73
+
74
+
75
+
76
+ - Type: `string`
77
+ - Default: `-`
78
+
79
+ #### invalid
80
+
81
+
82
+
83
+ - Type: `boolean`
84
+ - Default: `false`
85
+
86
+ #### required
87
+
88
+ Ensures a child slider thumb has a value before allowing the containing form to submit.
89
+
90
+ - Type: `boolean`
91
+ - Default: `false`
92
+
93
+ #### min
94
+
95
+
96
+
97
+ - Type: `string`
98
+ - Default: `-`
99
+
100
+ #### max
101
+
102
+
103
+
104
+ - Type: `string`
105
+ - Default: `-`
106
+
107
+ #### markers
108
+
109
+ Pass a value similar to step to create visual markers at that interval
110
+
111
+ - Type: `number`
112
+ - Default: `-`
113
+
114
+ #### step
115
+
116
+
117
+
118
+ - Type: `number`
119
+ - Default: `-`
120
+
121
+ #### suffix
122
+
123
+ Suffix used in text input fields and for the min and max values of the slider.
124
+
125
+ - Type: `string`
126
+ - Default: `-`
127
+
128
+ #### hiddenTextfield
129
+
130
+
131
+
132
+ - Type: `boolean`
133
+ - Default: `false`
134
+
135
+ #### valueFormatter
136
+
137
+ Formatter for the tooltip and input mask values.
138
+
139
+ - Type: `(value: string, slot: SliderSlot) => string`
140
+ - Default: `-`
141
+
142
+ #### tooltipFormatter
143
+
144
+ Replaces valueFormatter for the tooltip. Use in open-ended sliders to show for example "300+ hk" instead of "Max" in the tooltip.
145
+
146
+ - Type: `(value: string, slot: SliderSlot) => string`
147
+ - Default: `-`
148
+
149
+ #### labelFormatter
150
+
151
+ Formatter for the min and max labels below the range.
152
+
153
+ - Type: `(slot: SliderSlot) => string`
154
+ - Default: `-`
155
+
156
+ #### _invalidMessage
157
+
158
+
159
+
160
+ - Type: `string`
161
+ - Default: `''`
162
+
163
+ #### _hasInternalError
164
+
165
+
166
+
167
+ - Type: `boolean`
168
+ - Default: `false`
169
+
170
+ #### _showError
171
+
172
+
173
+
174
+ - Type: `boolean`
175
+ - Default: `false`
176
+
177
+ #### _tabbableElements
178
+
179
+
180
+
181
+ - Type: `Array<HTMLElement>`
182
+ - Default: `[]`
183
+
184
+ #### edgeMin
185
+
186
+
187
+
188
+ - Type: `unknown`
189
+ - Default: `-`
190
+
191
+ #### edgeMax
192
+
193
+
194
+
195
+ - Type: `unknown`
196
+ - Default: `-`
197
+
198
+ #### componentHasError
199
+
200
+
201
+
202
+ - Type: `boolean`
203
+ - Default: `-`
204
+
205
+ #### errorText
206
+
207
+
208
+
209
+ - Type: `string`
210
+ - Default: `-`
211
+
212
+ ### Types
213
+
214
+ No types documented.
@@ -0,0 +1,222 @@
1
+ # Slider (w-slider)
2
+
3
+ ## Description
4
+
5
+ Parent component for sliders (both single and range sliders). Used in combination with a `<w-slider-thumb>`.
6
+
7
+ [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
8
+
9
+ ## API Documentation
10
+
11
+ ### Properties
12
+
13
+ | Name | Type | Default | Summary |
14
+ |-|-|-|-|
15
+ | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
16
+ | label | `string` | `-` | - |
17
+ | disabled | `boolean` | `false` | - |
18
+ | openEnded | `boolean` | `false` | - |
19
+ | error | `string` | `-` | - |
20
+ | helpText | `string` | `-` | - |
21
+ | invalid | `boolean` | `false` | - |
22
+ | required | `boolean` | `false` | - |
23
+ | min | `string` | `-` | - |
24
+ | max | `string` | `-` | - |
25
+ | markers | `number` | `-` | - |
26
+ | step | `number` | `-` | - |
27
+ | suffix | `string` | `-` | - |
28
+ | hiddenTextfield | `boolean` | `false` | - |
29
+ | valueFormatter | `(value: string, slot: SliderSlot) => string` | `-` | - |
30
+ | tooltipFormatter | `(value: string, slot: SliderSlot) => string` | `-` | - |
31
+ | labelFormatter | `(slot: SliderSlot) => string` | `-` | - |
32
+ | _invalidMessage | `string` | `''` | - |
33
+ | _hasInternalError | `boolean` | `false` | - |
34
+ | _showError | `boolean` | `false` | - |
35
+ | _tabbableElements | `Array<HTMLElement>` | `[]` | - |
36
+ | edgeMin | `unknown` | `-` | - |
37
+ | edgeMax | `unknown` | `-` | - |
38
+ | componentHasError | `boolean` | `-` | - |
39
+ | errorText | `string` | `-` | - |
40
+
41
+ ### Property Details
42
+
43
+ #### shadowRootOptions
44
+
45
+
46
+
47
+ - Type: `object`
48
+ - Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
49
+
50
+ #### label
51
+
52
+ The slider fieldset label. Required for proper accessibility.
53
+
54
+ If you need to display HTML, use the `label` slot instead (f. ex. `<legend class="sr-only" slot="label">Production year</legend>`)
55
+
56
+ - Type: `string`
57
+ - Default: `-`
58
+
59
+ #### disabled
60
+
61
+
62
+
63
+ - Type: `boolean`
64
+ - Default: `false`
65
+
66
+ #### openEnded
67
+
68
+ Whether or not to allow values outside the range such as "Before 1950" and "2025+".
69
+
70
+ - Type: `boolean`
71
+ - Default: `false`
72
+
73
+ #### error
74
+
75
+
76
+
77
+ - Type: `string`
78
+ - Default: `-`
79
+
80
+ #### helpText
81
+
82
+
83
+
84
+ - Type: `string`
85
+ - Default: `-`
86
+
87
+ #### invalid
88
+
89
+
90
+
91
+ - Type: `boolean`
92
+ - Default: `false`
93
+
94
+ #### required
95
+
96
+ Ensures a child slider thumb has a value before allowing the containing form to submit.
97
+
98
+ - Type: `boolean`
99
+ - Default: `false`
100
+
101
+ #### min
102
+
103
+
104
+
105
+ - Type: `string`
106
+ - Default: `-`
107
+
108
+ #### max
109
+
110
+
111
+
112
+ - Type: `string`
113
+ - Default: `-`
114
+
115
+ #### markers
116
+
117
+ Pass a value similar to step to create visual markers at that interval
118
+
119
+ - Type: `number`
120
+ - Default: `-`
121
+
122
+ #### step
123
+
124
+
125
+
126
+ - Type: `number`
127
+ - Default: `-`
128
+
129
+ #### suffix
130
+
131
+ Suffix used in text input fields and for the min and max values of the slider.
132
+
133
+ - Type: `string`
134
+ - Default: `-`
135
+
136
+ #### hiddenTextfield
137
+
138
+
139
+
140
+ - Type: `boolean`
141
+ - Default: `false`
142
+
143
+ #### valueFormatter
144
+
145
+ Formatter for the tooltip and input mask values.
146
+
147
+ - Type: `(value: string, slot: SliderSlot) => string`
148
+ - Default: `-`
149
+
150
+ #### tooltipFormatter
151
+
152
+ Replaces valueFormatter for the tooltip. Use in open-ended sliders to show for example "300+ hk" instead of "Max" in the tooltip.
153
+
154
+ - Type: `(value: string, slot: SliderSlot) => string`
155
+ - Default: `-`
156
+
157
+ #### labelFormatter
158
+
159
+ Formatter for the min and max labels below the range.
160
+
161
+ - Type: `(slot: SliderSlot) => string`
162
+ - Default: `-`
163
+
164
+ #### _invalidMessage
165
+
166
+
167
+
168
+ - Type: `string`
169
+ - Default: `''`
170
+
171
+ #### _hasInternalError
172
+
173
+
174
+
175
+ - Type: `boolean`
176
+ - Default: `false`
177
+
178
+ #### _showError
179
+
180
+
181
+
182
+ - Type: `boolean`
183
+ - Default: `false`
184
+
185
+ #### _tabbableElements
186
+
187
+
188
+
189
+ - Type: `Array<HTMLElement>`
190
+ - Default: `[]`
191
+
192
+ #### edgeMin
193
+
194
+
195
+
196
+ - Type: `unknown`
197
+ - Default: `-`
198
+
199
+ #### edgeMax
200
+
201
+
202
+
203
+ - Type: `unknown`
204
+ - Default: `-`
205
+
206
+ #### componentHasError
207
+
208
+
209
+
210
+ - Type: `boolean`
211
+ - Default: `-`
212
+
213
+ #### errorText
214
+
215
+
216
+
217
+ - Type: `string`
218
+ - Default: `-`
219
+
220
+ ### Types
221
+
222
+ No types documented.