@warp-ds/elements 2.9.0-next.4 → 2.9.0-next.6

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 (99) hide show
  1. package/dist/custom-elements.json +3554 -3442
  2. package/dist/docs/affix/accessibility.md +7 -0
  3. package/dist/docs/affix/affix.md +174 -10
  4. package/dist/docs/affix/api.md +28 -10
  5. package/dist/docs/affix/examples.md +92 -0
  6. package/dist/docs/affix/usage.md +47 -0
  7. package/dist/docs/alert/alert.md +12 -12
  8. package/dist/docs/alert/api.md +12 -12
  9. package/dist/docs/attention/api.md +46 -46
  10. package/dist/docs/attention/attention.md +46 -46
  11. package/dist/docs/badge/accessibility.md +44 -0
  12. package/dist/docs/badge/api.md +12 -8
  13. package/dist/docs/badge/badge.md +191 -10
  14. package/dist/docs/badge/examples.md +82 -0
  15. package/dist/docs/badge/usage.md +53 -0
  16. package/dist/docs/button/api.md +46 -42
  17. package/dist/docs/button/button.md +46 -42
  18. package/dist/docs/card/api.md +11 -11
  19. package/dist/docs/card/card.md +11 -11
  20. package/dist/docs/combobox/api.md +62 -62
  21. package/dist/docs/combobox/combobox.md +62 -62
  22. package/dist/docs/datepicker/api.md +74 -66
  23. package/dist/docs/datepicker/datepicker.md +74 -66
  24. package/dist/docs/expandable/api.md +26 -26
  25. package/dist/docs/expandable/expandable.md +26 -26
  26. package/dist/docs/link/api.md +28 -28
  27. package/dist/docs/link/link.md +28 -28
  28. package/dist/docs/page-indicator/api.md +6 -6
  29. package/dist/docs/page-indicator/page-indicator.md +6 -6
  30. package/dist/docs/pagination/api.md +3 -3
  31. package/dist/docs/pagination/pagination.md +3 -3
  32. package/dist/docs/pill/api.md +19 -15
  33. package/dist/docs/pill/pill.md +19 -15
  34. package/dist/docs/select/api.md +44 -44
  35. package/dist/docs/select/select.md +44 -44
  36. package/dist/docs/slider/api.md +80 -78
  37. package/dist/docs/slider/slider.md +80 -78
  38. package/dist/docs/slider-thumb/api.md +28 -76
  39. package/dist/docs/slider-thumb/slider-thumb.md +28 -76
  40. package/dist/docs/switch/api.md +16 -16
  41. package/dist/docs/switch/switch.md +16 -16
  42. package/dist/docs/tab/api.md +26 -40
  43. package/dist/docs/tab/tab.md +26 -40
  44. package/dist/docs/tab-panel/api.md +1 -17
  45. package/dist/docs/tab-panel/tab-panel.md +1 -17
  46. package/dist/docs/tabs/api.md +3 -3
  47. package/dist/docs/tabs/tabs.md +3 -3
  48. package/dist/docs/textarea/api.md +42 -40
  49. package/dist/docs/textarea/textarea.md +42 -40
  50. package/dist/docs/textfield/accessibility.md +15 -0
  51. package/dist/docs/textfield/api.md +86 -83
  52. package/dist/docs/textfield/examples.md +147 -0
  53. package/dist/docs/textfield/textfield.md +279 -86
  54. package/dist/docs/textfield/usage.md +30 -0
  55. package/dist/index.d.ts +343 -319
  56. package/dist/packages/affix/affix.d.ts +23 -14
  57. package/dist/packages/affix/affix.js +24 -11
  58. package/dist/packages/affix/affix.js.map +4 -4
  59. package/dist/packages/affix/affix.stories.d.ts +3 -0
  60. package/dist/packages/affix/affix.stories.js +16 -0
  61. package/dist/packages/affix/affix.test.js +7 -0
  62. package/dist/packages/affix/locales/da/messages.d.mts +1 -0
  63. package/dist/packages/affix/locales/da/messages.mjs +1 -0
  64. package/dist/packages/affix/locales/en/messages.d.mts +1 -0
  65. package/dist/packages/affix/locales/en/messages.mjs +1 -0
  66. package/dist/packages/affix/locales/fi/messages.d.mts +1 -0
  67. package/dist/packages/affix/locales/fi/messages.mjs +1 -0
  68. package/dist/packages/affix/locales/nb/messages.d.mts +1 -0
  69. package/dist/packages/affix/locales/nb/messages.mjs +1 -0
  70. package/dist/packages/affix/locales/sv/messages.d.mts +1 -0
  71. package/dist/packages/affix/locales/sv/messages.mjs +1 -0
  72. package/dist/packages/badge/badge.d.ts +7 -5
  73. package/dist/packages/badge/badge.js.map +2 -2
  74. package/dist/packages/badge/badge.react.stories.d.ts +1 -1
  75. package/dist/packages/box/box.react.stories.d.ts +1 -1
  76. package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +1 -1
  77. package/dist/packages/button/button.react.stories.d.ts +1 -1
  78. package/dist/packages/card/card.react.stories.d.ts +1 -1
  79. package/dist/packages/combobox/combobox.react.stories.d.ts +1 -1
  80. package/dist/packages/datepicker/datepicker.js +1 -1
  81. package/dist/packages/datepicker/datepicker.js.map +2 -2
  82. package/dist/packages/datepicker/datepicker.react.stories.d.ts +9 -1
  83. package/dist/packages/datepicker/react.d.ts +4 -0
  84. package/dist/packages/datepicker/react.js +4 -0
  85. package/dist/packages/expandable/expandable.react.stories.d.ts +1 -1
  86. package/dist/packages/link/link.react.stories.d.ts +1 -1
  87. package/dist/packages/page-indicator/page-indicator.react.stories.d.ts +1 -1
  88. package/dist/packages/pagination/pagination.react.stories.d.ts +1 -1
  89. package/dist/packages/pill/pill.react.stories.d.ts +1 -1
  90. package/dist/packages/select/select.react.stories.d.ts +1 -1
  91. package/dist/packages/textarea/textarea.react.stories.d.ts +1 -1
  92. package/dist/packages/textfield/textfield.d.ts +57 -60
  93. package/dist/packages/textfield/textfield.js +5 -5
  94. package/dist/packages/textfield/textfield.js.map +2 -2
  95. package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
  96. package/dist/packages/textfield/textfield.stories.d.ts +3 -0
  97. package/dist/packages/textfield/textfield.stories.js +45 -0
  98. package/dist/web-types.json +452 -147
  99. package/package.json +2 -2
@@ -4,9 +4,7 @@
4
4
 
5
5
  | Name | Type | Default | Summary |
6
6
  |-|-|-|-|
7
- | active | `boolean` | `-` | - |
8
- | _parentActive | `unknown` | `-` | - |
9
- | _parentAriaLabelledBy | `unknown` | `-` | - |
7
+ | active | `boolean` | `-` | Whether this panel is active (visible). |
10
8
 
11
9
  ### Property Details
12
10
 
@@ -18,20 +16,6 @@ Set by parent w-tabs via the _parentActive property.
18
16
  - Type: `boolean`
19
17
  - Default: `-`
20
18
 
21
- #### _parentActive
22
-
23
-
24
-
25
- - Type: `unknown`
26
- - Default: `-`
27
-
28
- #### _parentAriaLabelledBy
29
-
30
-
31
-
32
- - Type: `unknown`
33
- - Default: `-`
34
-
35
19
  ### Types
36
20
 
37
21
  No types documented.
@@ -19,9 +19,7 @@ Each tab panel should have a name that matches a corresponding tab.
19
19
 
20
20
  | Name | Type | Default | Summary |
21
21
  |-|-|-|-|
22
- | active | `boolean` | `-` | - |
23
- | _parentActive | `unknown` | `-` | - |
24
- | _parentAriaLabelledBy | `unknown` | `-` | - |
22
+ | active | `boolean` | `-` | Whether this panel is active (visible). |
25
23
 
26
24
  ### Property Details
27
25
 
@@ -33,20 +31,6 @@ Set by parent w-tabs via the _parentActive property.
33
31
  - Type: `boolean`
34
32
  - Default: `-`
35
33
 
36
- #### _parentActive
37
-
38
-
39
-
40
- - Type: `unknown`
41
- - Default: `-`
42
-
43
- #### _parentAriaLabelledBy
44
-
45
-
46
-
47
- - Type: `unknown`
48
- - Default: `-`
49
-
50
34
  ### Types
51
35
 
52
36
  No types documented.
@@ -5,8 +5,8 @@
5
5
  | Name | Type | Default | Summary |
6
6
  |-|-|-|-|
7
7
  | active | `string` | `-` | - |
8
- | tabs | `unknown` | `-` | - |
9
8
  | activeTab | `unknown` | `-` | - |
9
+ | tabs | `unknown` | `-` | - |
10
10
 
11
11
  ### Property Details
12
12
 
@@ -17,14 +17,14 @@
17
17
  - Type: `string`
18
18
  - Default: `-`
19
19
 
20
- #### tabs
20
+ #### activeTab
21
21
 
22
22
 
23
23
 
24
24
  - Type: `unknown`
25
25
  - Default: `-`
26
26
 
27
- #### activeTab
27
+ #### tabs
28
28
 
29
29
 
30
30
 
@@ -19,8 +19,8 @@ Tabs are used to organize content by grouping similar information on the same pa
19
19
  | Name | Type | Default | Summary |
20
20
  |-|-|-|-|
21
21
  | active | `string` | `-` | - |
22
- | tabs | `unknown` | `-` | - |
23
22
  | activeTab | `unknown` | `-` | - |
23
+ | tabs | `unknown` | `-` | - |
24
24
 
25
25
  ### Property Details
26
26
 
@@ -31,14 +31,14 @@ Tabs are used to organize content by grouping similar information on the same pa
31
31
  - Type: `string`
32
32
  - Default: `-`
33
33
 
34
- #### tabs
34
+ #### activeTab
35
35
 
36
36
 
37
37
 
38
38
  - Type: `unknown`
39
39
  - Default: `-`
40
40
 
41
- #### activeTab
41
+ #### tabs
42
42
 
43
43
 
44
44
 
@@ -4,40 +4,40 @@
4
4
 
5
5
  | Name | Type | Default | Summary |
6
6
  |-|-|-|-|
7
- | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
8
7
  | disabled | `boolean` | `false` | - |
8
+ | helpText | `string` | `-` | - |
9
9
  | invalid | `boolean` | `false` | - |
10
10
  | label | `string` | `-` | - |
11
- | helpText | `string` | `-` | - |
11
+ | maxHeight | `unknown` | `-` | - |
12
12
  | maxRows | `number` | `-` | - |
13
+ | minHeight | `unknown` | `-` | - |
13
14
  | minRows | `number` | `-` | - |
14
15
  | name | `string` | `-` | - |
16
+ | optional | `boolean` | `false` | - |
15
17
  | placeholder | `string` | `-` | - |
16
- | readOnly | `boolean` | `false` | - |
18
+ | readOnly | `boolean` | `false` | **Deprecated**: Use the native readonly attribute instead. Here for API consistency with `w-textfield`. |
17
19
  | readonly | `boolean` | `false` | - |
18
20
  | required | `boolean` | `false` | - |
21
+ | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
22
+ | validationMessage | `string` | `-` | Returns the validation message if the textarea is invalid, otherwise an empty string |
23
+ | validity | `ValidityState` | `-` | Returns the validity state of the textarea |
19
24
  | value | `string` | `-` | - |
20
- | optional | `boolean` | `false` | - |
21
- | minHeight | `unknown` | `-` | - |
22
- | maxHeight | `unknown` | `-` | - |
23
- | validationMessage | `string` | `-` | - |
24
- | validity | `ValidityState` | `-` | - |
25
25
 
26
26
  ### Property Details
27
27
 
28
- #### shadowRootOptions
28
+ #### disabled
29
29
 
30
30
 
31
31
 
32
- - Type: `object`
33
- - Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
32
+ - Type: `boolean`
33
+ - Default: `false`
34
34
 
35
- #### disabled
35
+ #### helpText
36
36
 
37
37
 
38
38
 
39
- - Type: `boolean`
40
- - Default: `false`
39
+ - Type: `string`
40
+ - Default: `-`
41
41
 
42
42
  #### invalid
43
43
 
@@ -53,11 +53,11 @@
53
53
  - Type: `string`
54
54
  - Default: `-`
55
55
 
56
- #### helpText
56
+ #### maxHeight
57
57
 
58
58
 
59
59
 
60
- - Type: `string`
60
+ - Type: `unknown`
61
61
  - Default: `-`
62
62
 
63
63
  #### maxRows
@@ -67,75 +67,70 @@
67
67
  - Type: `number`
68
68
  - Default: `-`
69
69
 
70
- #### minRows
70
+ #### minHeight
71
71
 
72
72
 
73
73
 
74
- - Type: `number`
74
+ - Type: `unknown`
75
75
  - Default: `-`
76
76
 
77
- #### name
77
+ #### minRows
78
78
 
79
79
 
80
80
 
81
- - Type: `string`
81
+ - Type: `number`
82
82
  - Default: `-`
83
83
 
84
- #### placeholder
84
+ #### name
85
85
 
86
86
 
87
87
 
88
88
  - Type: `string`
89
89
  - Default: `-`
90
90
 
91
- #### readOnly
91
+ #### optional
92
92
 
93
93
 
94
94
 
95
95
  - Type: `boolean`
96
96
  - Default: `false`
97
97
 
98
- #### readonly
98
+ #### placeholder
99
99
 
100
100
 
101
101
 
102
- - Type: `boolean`
103
- - Default: `false`
102
+ - Type: `string`
103
+ - Default: `-`
104
104
 
105
- #### required
105
+ #### readOnly
106
+
107
+ **Deprecated**: Use the native readonly attribute instead. Here for API consistency with `w-textfield`.
106
108
 
107
109
 
108
110
 
109
111
  - Type: `boolean`
110
112
  - Default: `false`
111
113
 
112
- #### value
113
-
114
-
115
-
116
- - Type: `string`
117
- - Default: `-`
118
-
119
- #### optional
114
+ #### readonly
120
115
 
121
116
 
122
117
 
123
118
  - Type: `boolean`
124
119
  - Default: `false`
125
120
 
126
- #### minHeight
121
+ #### required
127
122
 
128
123
 
129
124
 
130
- - Type: `unknown`
131
- - Default: `-`
125
+ - Type: `boolean`
126
+ - Default: `false`
132
127
 
133
- #### maxHeight
128
+ #### shadowRootOptions
134
129
 
135
130
 
136
131
 
137
- - Type: `unknown`
138
- - Default: `-`
132
+ - Type: `object`
133
+ - Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
139
134
 
140
135
  #### validationMessage
141
136
 
@@ -151,6 +146,13 @@ Returns the validity state of the textarea
151
146
  - Type: `ValidityState`
152
147
  - Default: `-`
153
148
 
149
+ #### value
150
+
151
+
152
+
153
+ - Type: `string`
154
+ - Default: `-`
155
+
154
156
  ### Types
155
157
 
156
158
  No types documented.
@@ -18,40 +18,40 @@ A single line text input element.
18
18
 
19
19
  | Name | Type | Default | Summary |
20
20
  |-|-|-|-|
21
- | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
22
21
  | disabled | `boolean` | `false` | - |
22
+ | helpText | `string` | `-` | - |
23
23
  | invalid | `boolean` | `false` | - |
24
24
  | label | `string` | `-` | - |
25
- | helpText | `string` | `-` | - |
25
+ | maxHeight | `unknown` | `-` | - |
26
26
  | maxRows | `number` | `-` | - |
27
+ | minHeight | `unknown` | `-` | - |
27
28
  | minRows | `number` | `-` | - |
28
29
  | name | `string` | `-` | - |
30
+ | optional | `boolean` | `false` | - |
29
31
  | placeholder | `string` | `-` | - |
30
- | readOnly | `boolean` | `false` | - |
32
+ | readOnly | `boolean` | `false` | **Deprecated**: Use the native readonly attribute instead. Here for API consistency with `w-textfield`. |
31
33
  | readonly | `boolean` | `false` | - |
32
34
  | required | `boolean` | `false` | - |
35
+ | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
36
+ | validationMessage | `string` | `-` | Returns the validation message if the textarea is invalid, otherwise an empty string |
37
+ | validity | `ValidityState` | `-` | Returns the validity state of the textarea |
33
38
  | value | `string` | `-` | - |
34
- | optional | `boolean` | `false` | - |
35
- | minHeight | `unknown` | `-` | - |
36
- | maxHeight | `unknown` | `-` | - |
37
- | validationMessage | `string` | `-` | - |
38
- | validity | `ValidityState` | `-` | - |
39
39
 
40
40
  ### Property Details
41
41
 
42
- #### shadowRootOptions
42
+ #### disabled
43
43
 
44
44
 
45
45
 
46
- - Type: `object`
47
- - Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
46
+ - Type: `boolean`
47
+ - Default: `false`
48
48
 
49
- #### disabled
49
+ #### helpText
50
50
 
51
51
 
52
52
 
53
- - Type: `boolean`
54
- - Default: `false`
53
+ - Type: `string`
54
+ - Default: `-`
55
55
 
56
56
  #### invalid
57
57
 
@@ -67,11 +67,11 @@ A single line text input element.
67
67
  - Type: `string`
68
68
  - Default: `-`
69
69
 
70
- #### helpText
70
+ #### maxHeight
71
71
 
72
72
 
73
73
 
74
- - Type: `string`
74
+ - Type: `unknown`
75
75
  - Default: `-`
76
76
 
77
77
  #### maxRows
@@ -81,75 +81,70 @@ A single line text input element.
81
81
  - Type: `number`
82
82
  - Default: `-`
83
83
 
84
- #### minRows
84
+ #### minHeight
85
85
 
86
86
 
87
87
 
88
- - Type: `number`
88
+ - Type: `unknown`
89
89
  - Default: `-`
90
90
 
91
- #### name
91
+ #### minRows
92
92
 
93
93
 
94
94
 
95
- - Type: `string`
95
+ - Type: `number`
96
96
  - Default: `-`
97
97
 
98
- #### placeholder
98
+ #### name
99
99
 
100
100
 
101
101
 
102
102
  - Type: `string`
103
103
  - Default: `-`
104
104
 
105
- #### readOnly
105
+ #### optional
106
106
 
107
107
 
108
108
 
109
109
  - Type: `boolean`
110
110
  - Default: `false`
111
111
 
112
- #### readonly
112
+ #### placeholder
113
113
 
114
114
 
115
115
 
116
- - Type: `boolean`
117
- - Default: `false`
116
+ - Type: `string`
117
+ - Default: `-`
118
118
 
119
- #### required
119
+ #### readOnly
120
+
121
+ **Deprecated**: Use the native readonly attribute instead. Here for API consistency with `w-textfield`.
120
122
 
121
123
 
122
124
 
123
125
  - Type: `boolean`
124
126
  - Default: `false`
125
127
 
126
- #### value
127
-
128
-
129
-
130
- - Type: `string`
131
- - Default: `-`
132
-
133
- #### optional
128
+ #### readonly
134
129
 
135
130
 
136
131
 
137
132
  - Type: `boolean`
138
133
  - Default: `false`
139
134
 
140
- #### minHeight
135
+ #### required
141
136
 
142
137
 
143
138
 
144
- - Type: `unknown`
145
- - Default: `-`
139
+ - Type: `boolean`
140
+ - Default: `false`
146
141
 
147
- #### maxHeight
142
+ #### shadowRootOptions
148
143
 
149
144
 
150
145
 
151
- - Type: `unknown`
152
- - Default: `-`
146
+ - Type: `object`
147
+ - Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
153
148
 
154
149
  #### validationMessage
155
150
 
@@ -165,6 +160,13 @@ Returns the validity state of the textarea
165
160
  - Type: `ValidityState`
166
161
  - Default: `-`
167
162
 
163
+ #### value
164
+
165
+
166
+
167
+ - Type: `string`
168
+ - Default: `-`
169
+
168
170
  ### Types
169
171
 
170
172
  No types documented.
@@ -1 +1,16 @@
1
1
  ## Accessibility
2
+
3
+ If a visible label isn't specified, an `aria-label` must be provided to the text field for accessibility. If the field is labeled by a separate element, an `aria-labelledby` property must be provided using the `id` of the labeling element instead.
4
+
5
+ - Always provide a visible label (do not rely on `placeholder` alone).
6
+ - Do not rely on color alone for interaction feedback (e.g. error states).
7
+ - Interaction patterns should follow platform-native expectations (e.g. tap zones, keyboard navigation, etc) and must not block accessibility tools.
8
+
9
+ ### When used with an affix
10
+
11
+ When `search` or `clear` set on the [affix](#with-affix) component it renders a button and a default `aria-label`. If the `aria-label` incorrect for your context, you may provide your own describing the action.
12
+
13
+ ```html
14
+ <w-affix search aria-label="Ad Search"></w-affix>
15
+ <w-affix clear aria-label="Clear text input"></w-affix>
16
+ ```