@warp-ds/elements 2.9.0-next.1 → 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 (92) hide show
  1. package/dist/custom-elements.json +17 -10
  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/index.d.ts +0 -2
  60. package/dist/packages/affix/affix.js +5 -5
  61. package/dist/packages/affix/affix.js.map +2 -2
  62. package/dist/packages/alert/alert.d.ts +15 -0
  63. package/dist/packages/alert/alert.js +6 -6
  64. package/dist/packages/alert/alert.js.map +2 -2
  65. package/dist/packages/alert/alert.test.js +1 -1
  66. package/dist/packages/attention/attention.d.ts +0 -1
  67. package/dist/packages/attention/attention.js +21 -21
  68. package/dist/packages/attention/attention.js.map +4 -4
  69. package/dist/packages/datepicker/DatePicker.test.js +5 -5
  70. package/dist/packages/datepicker/datepicker.js +1 -1
  71. package/dist/packages/datepicker/datepicker.js.map +2 -2
  72. package/dist/packages/expandable/expandable.js +7 -7
  73. package/dist/packages/expandable/expandable.js.map +2 -2
  74. package/dist/packages/icon/icon.js +2 -2
  75. package/dist/packages/icon/icon.js.map +2 -2
  76. package/dist/packages/icon/icon.test.js +14 -0
  77. package/dist/packages/modal-header/modal-header.js +6 -6
  78. package/dist/packages/modal-header/modal-header.js.map +2 -2
  79. package/dist/packages/pagination/pagination.js +3 -3
  80. package/dist/packages/pagination/pagination.js.map +2 -2
  81. package/dist/packages/pill/pill.js +3 -3
  82. package/dist/packages/pill/pill.js.map +2 -2
  83. package/dist/packages/select/select.js +4 -4
  84. package/dist/packages/select/select.js.map +2 -2
  85. package/dist/packages/step/step.js +4 -4
  86. package/dist/packages/step/step.js.map +2 -2
  87. package/dist/packages/toast/toast.js +4 -4
  88. package/dist/packages/toast/toast.js.map +2 -2
  89. package/dist/web-types.json +18 -5
  90. package/package.json +26 -23
  91. package/dist/packages/utils/index.d.ts +0 -10
  92. package/dist/packages/utils/index.js +0 -37
@@ -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.
@@ -0,0 +1,116 @@
1
+ ## API Documentation
2
+
3
+ ### Properties
4
+
5
+ | Name | Type | Default | Summary |
6
+ |-|-|-|-|
7
+ | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
8
+ | ariaLabel | `string` | `-` | - |
9
+ | ariaDescription | `string` | `-` | - |
10
+ | name | `string` | `-` | - |
11
+ | value | `string` | `-` | - |
12
+ | placeholder | `string` | `-` | - |
13
+ | range | `HTMLInputElement` | `-` | - |
14
+ | tooltipTarget | `HTMLOutputElement` | `-` | - |
15
+ | textfield | `WarpTextField` | `-` | - |
16
+ | boundaryValue | `string` | `-` | - |
17
+ | textFieldDisplayValue | `unknown` | `-` | - |
18
+ | tooltipDisplayValue | `string | number` | `-` | - |
19
+ | ariaDescriptionText | `unknown` | `-` | - |
20
+
21
+ ### Property Details
22
+
23
+ #### shadowRootOptions
24
+
25
+
26
+
27
+ - Type: `object`
28
+ - Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
29
+
30
+ #### ariaLabel
31
+
32
+
33
+
34
+ - Type: `string`
35
+ - Default: `-`
36
+
37
+ #### ariaDescription
38
+
39
+
40
+
41
+ - Type: `string`
42
+ - Default: `-`
43
+
44
+ #### name
45
+
46
+
47
+
48
+ - Type: `string`
49
+ - Default: `-`
50
+
51
+ #### value
52
+
53
+
54
+
55
+ - Type: `string`
56
+ - Default: `-`
57
+
58
+ #### placeholder
59
+
60
+
61
+
62
+ - Type: `string`
63
+ - Default: `-`
64
+
65
+ #### range
66
+
67
+
68
+
69
+ - Type: `HTMLInputElement`
70
+ - Default: `-`
71
+
72
+ #### tooltipTarget
73
+
74
+
75
+
76
+ - Type: `HTMLOutputElement`
77
+ - Default: `-`
78
+
79
+ #### textfield
80
+
81
+
82
+
83
+ - Type: `WarpTextField`
84
+ - Default: `-`
85
+
86
+ #### boundaryValue
87
+
88
+
89
+
90
+ - Type: `string`
91
+ - Default: `-`
92
+
93
+ #### textFieldDisplayValue
94
+
95
+ Value to display in the textfield (shows boundary when focused on empty value)
96
+
97
+ - Type: `unknown`
98
+ - Default: `-`
99
+
100
+ #### tooltipDisplayValue
101
+
102
+ Value to display in the tooltip
103
+
104
+ - Type: `string | number`
105
+ - Default: `-`
106
+
107
+ #### ariaDescriptionText
108
+
109
+
110
+
111
+ - Type: `unknown`
112
+ - Default: `-`
113
+
114
+ ### Types
115
+
116
+ No types documented.
@@ -0,0 +1,124 @@
1
+ # SliderThumb (w-slider-thumb)
2
+
3
+ ## Description
4
+
5
+ Component to place inside a `<w-slider>`.
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
+ | ariaLabel | `string` | `-` | - |
17
+ | ariaDescription | `string` | `-` | - |
18
+ | name | `string` | `-` | - |
19
+ | value | `string` | `-` | - |
20
+ | placeholder | `string` | `-` | - |
21
+ | range | `HTMLInputElement` | `-` | - |
22
+ | tooltipTarget | `HTMLOutputElement` | `-` | - |
23
+ | textfield | `WarpTextField` | `-` | - |
24
+ | boundaryValue | `string` | `-` | - |
25
+ | textFieldDisplayValue | `unknown` | `-` | - |
26
+ | tooltipDisplayValue | `string | number` | `-` | - |
27
+ | ariaDescriptionText | `unknown` | `-` | - |
28
+
29
+ ### Property Details
30
+
31
+ #### shadowRootOptions
32
+
33
+
34
+
35
+ - Type: `object`
36
+ - Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
37
+
38
+ #### ariaLabel
39
+
40
+
41
+
42
+ - Type: `string`
43
+ - Default: `-`
44
+
45
+ #### ariaDescription
46
+
47
+
48
+
49
+ - Type: `string`
50
+ - Default: `-`
51
+
52
+ #### name
53
+
54
+
55
+
56
+ - Type: `string`
57
+ - Default: `-`
58
+
59
+ #### value
60
+
61
+
62
+
63
+ - Type: `string`
64
+ - Default: `-`
65
+
66
+ #### placeholder
67
+
68
+
69
+
70
+ - Type: `string`
71
+ - Default: `-`
72
+
73
+ #### range
74
+
75
+
76
+
77
+ - Type: `HTMLInputElement`
78
+ - Default: `-`
79
+
80
+ #### tooltipTarget
81
+
82
+
83
+
84
+ - Type: `HTMLOutputElement`
85
+ - Default: `-`
86
+
87
+ #### textfield
88
+
89
+
90
+
91
+ - Type: `WarpTextField`
92
+ - Default: `-`
93
+
94
+ #### boundaryValue
95
+
96
+
97
+
98
+ - Type: `string`
99
+ - Default: `-`
100
+
101
+ #### textFieldDisplayValue
102
+
103
+ Value to display in the textfield (shows boundary when focused on empty value)
104
+
105
+ - Type: `unknown`
106
+ - Default: `-`
107
+
108
+ #### tooltipDisplayValue
109
+
110
+ Value to display in the tooltip
111
+
112
+ - Type: `string | number`
113
+ - Default: `-`
114
+
115
+ #### ariaDescriptionText
116
+
117
+
118
+
119
+ - Type: `unknown`
120
+ - Default: `-`
121
+
122
+ ### Types
123
+
124
+ No types documented.
@@ -0,0 +1,28 @@
1
+ ## API Documentation
2
+
3
+ ### Properties
4
+
5
+ | Name | Type | Default | Summary |
6
+ |-|-|-|-|
7
+ | active | `boolean` | `false` | - |
8
+ | completed | `boolean` | `false` | - |
9
+
10
+ ### Property Details
11
+
12
+ #### active
13
+
14
+
15
+
16
+ - Type: `boolean`
17
+ - Default: `false`
18
+
19
+ #### completed
20
+
21
+
22
+
23
+ - Type: `boolean`
24
+ - Default: `false`
25
+
26
+ ### Types
27
+
28
+ No types documented.
@@ -0,0 +1,34 @@
1
+ # Step (w-step)
2
+
3
+ ## Description
4
+
5
+ Individual step component that shows a single step in a process
6
+
7
+ ## API Documentation
8
+
9
+ ### Properties
10
+
11
+ | Name | Type | Default | Summary |
12
+ |-|-|-|-|
13
+ | active | `boolean` | `false` | - |
14
+ | completed | `boolean` | `false` | - |
15
+
16
+ ### Property Details
17
+
18
+ #### active
19
+
20
+
21
+
22
+ - Type: `boolean`
23
+ - Default: `false`
24
+
25
+ #### completed
26
+
27
+
28
+
29
+ - Type: `boolean`
30
+ - Default: `false`
31
+
32
+ ### Types
33
+
34
+ No types documented.
@@ -0,0 +1,28 @@
1
+ ## API Documentation
2
+
3
+ ### Properties
4
+
5
+ | Name | Type | Default | Summary |
6
+ |-|-|-|-|
7
+ | horizontal | `boolean` | `false` | - |
8
+ | right | `boolean` | `false` | - |
9
+
10
+ ### Property Details
11
+
12
+ #### horizontal
13
+
14
+
15
+
16
+ - Type: `boolean`
17
+ - Default: `false`
18
+
19
+ #### right
20
+
21
+
22
+
23
+ - Type: `boolean`
24
+ - Default: `false`
25
+
26
+ ### Types
27
+
28
+ No types documented.
@@ -0,0 +1,36 @@
1
+ # StepIndicator (w-step-indicator)
2
+
3
+ ## Description
4
+
5
+ Steps are used to show progress through a process or to guide users through a multi-step task.
6
+
7
+ [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/components-steps--docs)
8
+
9
+ ## API Documentation
10
+
11
+ ### Properties
12
+
13
+ | Name | Type | Default | Summary |
14
+ |-|-|-|-|
15
+ | horizontal | `boolean` | `false` | - |
16
+ | right | `boolean` | `false` | - |
17
+
18
+ ### Property Details
19
+
20
+ #### horizontal
21
+
22
+
23
+
24
+ - Type: `boolean`
25
+ - Default: `false`
26
+
27
+ #### right
28
+
29
+
30
+
31
+ - Type: `boolean`
32
+ - Default: `false`
33
+
34
+ ### Types
35
+
36
+ No types documented.
@@ -0,0 +1,52 @@
1
+ ## API Documentation
2
+
3
+ ### Properties
4
+
5
+ | Name | Type | Default | Summary |
6
+ |-|-|-|-|
7
+ | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
8
+ | name | `string` | `-` | - |
9
+ | value | `string` | `-` | - |
10
+ | checked | `boolean` | `false` | - |
11
+ | disabled | `boolean` | `false` | - |
12
+
13
+ ### Property Details
14
+
15
+ #### shadowRootOptions
16
+
17
+
18
+
19
+ - Type: `object`
20
+ - Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
21
+
22
+ #### name
23
+
24
+
25
+
26
+ - Type: `string`
27
+ - Default: `-`
28
+
29
+ #### value
30
+
31
+
32
+
33
+ - Type: `string`
34
+ - Default: `-`
35
+
36
+ #### checked
37
+
38
+
39
+
40
+ - Type: `boolean`
41
+ - Default: `false`
42
+
43
+ #### disabled
44
+
45
+
46
+
47
+ - Type: `boolean`
48
+ - Default: `false`
49
+
50
+ ### Types
51
+
52
+ No types documented.
@@ -0,0 +1,58 @@
1
+ # Switch (w-switch)
2
+
3
+ ## Description
4
+
5
+
6
+
7
+ ## API Documentation
8
+
9
+ ### Properties
10
+
11
+ | Name | Type | Default | Summary |
12
+ |-|-|-|-|
13
+ | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
14
+ | name | `string` | `-` | - |
15
+ | value | `string` | `-` | - |
16
+ | checked | `boolean` | `false` | - |
17
+ | disabled | `boolean` | `false` | - |
18
+
19
+ ### Property Details
20
+
21
+ #### shadowRootOptions
22
+
23
+
24
+
25
+ - Type: `object`
26
+ - Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
27
+
28
+ #### name
29
+
30
+
31
+
32
+ - Type: `string`
33
+ - Default: `-`
34
+
35
+ #### value
36
+
37
+
38
+
39
+ - Type: `string`
40
+ - Default: `-`
41
+
42
+ #### checked
43
+
44
+
45
+
46
+ - Type: `boolean`
47
+ - Default: `false`
48
+
49
+ #### disabled
50
+
51
+
52
+
53
+ - Type: `boolean`
54
+ - Default: `false`
55
+
56
+ ### Types
57
+
58
+ No types documented.