@warp-ds/elements 2.9.0 → 2.9.1-next.1

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.
@@ -1918,6 +1918,7 @@
1918
1918
  "text": "boolean"
1919
1919
  },
1920
1920
  "default": "false",
1921
+ "description": "Makes the box bleed to the container edge.\nExtends the box into the horizontal gutter on narrow screens. Adds negative horizontal margins and square side corners below the small breakpoint, then restores the normal margins and rounded corners from the small breakpoint and up.",
1921
1922
  "attribute": "bleed",
1922
1923
  "reflects": true
1923
1924
  },
@@ -1928,6 +1929,7 @@
1928
1929
  "text": "boolean"
1929
1930
  },
1930
1931
  "default": "false",
1932
+ "description": "Shows the box as a bordered surface.\nUse this when the content needs a clear visual boundary from the surrounding page.",
1931
1933
  "attribute": "bordered",
1932
1934
  "reflects": true
1933
1935
  },
@@ -1938,6 +1940,7 @@
1938
1940
  "text": "boolean"
1939
1941
  },
1940
1942
  "default": "false",
1943
+ "description": "Shows the box with information styling.\nUse this for supporting informational content that should be visually separated from the surrounding page.",
1941
1944
  "attribute": "info",
1942
1945
  "reflects": true
1943
1946
  },
@@ -1948,6 +1951,7 @@
1948
1951
  "text": "boolean"
1949
1952
  },
1950
1953
  "default": "false",
1954
+ "description": "Shows the box with neutral styling.\nUse this for quiet grouped content that needs a background without strong emphasis.",
1951
1955
  "attribute": "neutral",
1952
1956
  "reflects": true
1953
1957
  },
@@ -1957,6 +1961,8 @@
1957
1961
  "type": {
1958
1962
  "text": "string"
1959
1963
  },
1964
+ "default": "'region'",
1965
+ "description": "ARIA role for the box wrapper.\nDefaults to a role of `region`. Set `role=\"none\"` to override this behaviour for purely visual grouping, or set a specific role when the box has a clearer semantic purpose.",
1960
1966
  "attribute": "role",
1961
1967
  "reflects": true
1962
1968
  }
@@ -1968,6 +1974,7 @@
1968
1974
  "text": "boolean"
1969
1975
  },
1970
1976
  "default": "false",
1977
+ "description": "Makes the box bleed to the container edge.\nExtends the box into the horizontal gutter on narrow screens. Adds negative horizontal margins and square side corners below the small breakpoint, then restores the normal margins and rounded corners from the small breakpoint and up.",
1971
1978
  "fieldName": "bleed"
1972
1979
  },
1973
1980
  {
@@ -1976,6 +1983,7 @@
1976
1983
  "text": "boolean"
1977
1984
  },
1978
1985
  "default": "false",
1986
+ "description": "Shows the box as a bordered surface.\nUse this when the content needs a clear visual boundary from the surrounding page.",
1979
1987
  "fieldName": "bordered"
1980
1988
  },
1981
1989
  {
@@ -1984,6 +1992,7 @@
1984
1992
  "text": "boolean"
1985
1993
  },
1986
1994
  "default": "false",
1995
+ "description": "Shows the box with information styling.\nUse this for supporting informational content that should be visually separated from the surrounding page.",
1987
1996
  "fieldName": "info"
1988
1997
  },
1989
1998
  {
@@ -1992,6 +2001,7 @@
1992
2001
  "text": "boolean"
1993
2002
  },
1994
2003
  "default": "false",
2004
+ "description": "Shows the box with neutral styling.\nUse this for quiet grouped content that needs a background without strong emphasis.",
1995
2005
  "fieldName": "neutral"
1996
2006
  },
1997
2007
  {
@@ -1999,9 +2009,17 @@
1999
2009
  "type": {
2000
2010
  "text": "string"
2001
2011
  },
2012
+ "default": "'region'",
2013
+ "description": "ARIA role for the box wrapper.\nDefaults to a role of `region`. Set `role=\"none\"` to override this behaviour for purely visual grouping, or set a specific role when the box has a clearer semantic purpose.",
2002
2014
  "fieldName": "role"
2003
2015
  }
2004
2016
  ],
2017
+ "mixins": [
2018
+ {
2019
+ "name": "FormControlMixin",
2020
+ "package": "@open-wc/form-control"
2021
+ }
2022
+ ],
2005
2023
  "superclass": {
2006
2024
  "name": "LitElement",
2007
2025
  "package": "lit"
@@ -1 +1,30 @@
1
1
  ## Accessibility
2
+
3
+ Box wraps its slotted content in a section tag by default which is equivalant to role="region" for the purposes of screen readers.
4
+
5
+ ### Do Not Rely On Visual Treatment Alone
6
+
7
+ The `info`, `neutral`, `bordered`, and `bleed` properties are visual only. They do not change the meaning of the content for assistive technologies.
8
+
9
+ Always use headings, text, and semantic HTML inside the box to communicate structure and purpose.
10
+
11
+ ### Landmark Behaviour For Meaningful Sections
12
+
13
+ By default, w-box behaves as a landmark for screen readers. This means it represents a section of the page that users may want to navigate to directly.
14
+
15
+ We strongly suggest you provide a heading and an accessible landmark name to ensure that screen readers properly treat it as a landmark.
16
+
17
+ ```html
18
+   <w-box aria-labelledby="delivery-heading">
19
+     <h2 id="delivery-heading">Delivery</h2>
20
+     <p>Choose how you want the item delivered.</p>
21
+   </w-box>
22
+ ```
23
+
24
+ If you must use box for a purely visual grouping, set role none:
25
+
26
+ ```html
27
+ <w-box role="none">
28
+   <p>This box is only a visual container.</p>
29
+ </w-box>
30
+ ```
@@ -4,48 +4,53 @@
4
4
 
5
5
  | Name | Type | Default | Summary |
6
6
  |-|-|-|-|
7
- | bleed | `boolean` | `false` | - |
8
- | bordered | `boolean` | `false` | - |
9
- | info | `boolean` | `false` | - |
10
- | neutral | `boolean` | `false` | - |
11
- | role | `string` | `-` | - |
7
+ | bleed | `boolean` | `false` | Makes the box bleed to the container edge. |
8
+ | bordered | `boolean` | `false` | Shows the box as a bordered surface. |
9
+ | info | `boolean` | `false` | Shows the box with information styling. |
10
+ | neutral | `boolean` | `false` | Shows the box with neutral styling. |
11
+ | role | `string` | `'region'` | ARIA role for the box wrapper. |
12
12
 
13
13
  ### Property Details
14
14
 
15
15
  #### bleed
16
16
 
17
-
17
+ Makes the box bleed to the container edge.
18
+ Extends the box into the horizontal gutter on narrow screens. Adds negative horizontal margins and square side corners below the small breakpoint, then restores the normal margins and rounded corners from the small breakpoint and up.
18
19
 
19
20
  - Type: `boolean`
20
21
  - Default: `false`
21
22
 
22
23
  #### bordered
23
24
 
24
-
25
+ Shows the box as a bordered surface.
26
+ Use this when the content needs a clear visual boundary from the surrounding page.
25
27
 
26
28
  - Type: `boolean`
27
29
  - Default: `false`
28
30
 
29
31
  #### info
30
32
 
31
-
33
+ Shows the box with information styling.
34
+ Use this for supporting informational content that should be visually separated from the surrounding page.
32
35
 
33
36
  - Type: `boolean`
34
37
  - Default: `false`
35
38
 
36
39
  #### neutral
37
40
 
38
-
41
+ Shows the box with neutral styling.
42
+ Use this for quiet grouped content that needs a background without strong emphasis.
39
43
 
40
44
  - Type: `boolean`
41
45
  - Default: `false`
42
46
 
43
47
  #### role
44
48
 
45
-
49
+ ARIA role for the box wrapper.
50
+ Defaults to a role of `region`. Set `role="none"` to override this behaviour for purely visual grouping, or set a specific role when the box has a clearer semantic purpose.
46
51
 
47
52
  - Type: `string`
48
- - Default: `-`
53
+ - Default: `'region'`
49
54
 
50
55
  ### Types
51
56
 
@@ -8,58 +8,236 @@ Box is a layout component used for separating content areas on a page.
8
8
 
9
9
  ## Usage
10
10
 
11
+ Box is a layout component for visually separating a section of content from the surrounding page.
12
+
13
+ Use `w-box` for grouped content that needs padding, a background, or a border. The component does not add heading structure, spacing between children, or interactive behavior. Those you must provide yourself.
14
+
15
+ ### Basic Box
16
+
17
+ ```html
18
+ <w-box aria-labelledby="delivery-heading">
19
+ <h2 id="deliver-heading">Delivery</h2>
20
+ <p>Choose how you want the item delivered.</p>
21
+ </w-box>
22
+ ```
23
+
24
+ ### Visual Treatments
25
+
26
+ Use one visual treatment at a time:
27
+
28
+ - `neutral`: a quiet sunken surface for grouped content
29
+ - `info`: a subtle information background
30
+ - `bordered`: a bordered surface with the default background
31
+
32
+ ```html
33
+ <w-box neutral role="none">
34
+ <p>Neutral content area</p>
35
+ </w-box>
36
+
37
+ <w-box info role="none">
38
+ <p>Informational content area</p>
39
+ </w-box>
40
+
41
+ <w-box bordered role="none">
42
+ <p>Bordered content area</p>
43
+ </w-box>
44
+ ```
45
+
46
+ ### Bleed
47
+
48
+ Use `bleed` when a box sits inside a page gutter but should extend to the container edge on narrow screens. `bleed` is commonly combined with a visual treatment such as `neutral` or `info`.
49
+
50
+ ```html
51
+ <w-box neutral bleed aria-labelledby="summary-heading">
52
+ <h2 id="summary-heading">Summary</h2>
53
+ <p>This box extends into the horizontal gutter on narrow screens.</p>
54
+ </w-box>
55
+ ```
56
+
11
57
  ## Accessibility
12
58
 
59
+ Box wraps its slotted content in a section tag by default which is equivalant to role="region" for the purposes of screen readers.
60
+
61
+ ### Do Not Rely On Visual Treatment Alone
62
+
63
+ The `info`, `neutral`, `bordered`, and `bleed` properties are visual only. They do not change the meaning of the content for assistive technologies.
64
+
65
+ Always use headings, text, and semantic HTML inside the box to communicate structure and purpose.
66
+
67
+ ### Landmark Behaviour For Meaningful Sections
68
+
69
+ By default, w-box behaves as a landmark for screen readers. This means it represents a section of the page that users may want to navigate to directly.
70
+
71
+ We strongly suggest you provide a heading and an accessible landmark name to ensure that screen readers properly treat it as a landmark.
72
+
73
+ ```html
74
+   <w-box aria-labelledby="delivery-heading">
75
+     <h2 id="delivery-heading">Delivery</h2>
76
+     <p>Choose how you want the item delivered.</p>
77
+   </w-box>
78
+ ```
79
+
80
+ If you must use box for a purely visual grouping, set role none:
81
+
82
+ ```html
83
+ <w-box role="none">
84
+   <p>This box is only a visual container.</p>
85
+ </w-box>
86
+ ```
87
+
13
88
  ## Examples
14
89
 
90
+ ### Basic
91
+
92
+ <style-isolate>
93
+ <w-box aria-labelledby="delivery-heading">
94
+ <h2 id="delivery-heading">Delivery</h2>
95
+ <p>Choose how you want the item delivered.</p>
96
+ </w-box>
97
+ </style-isolate>
98
+
99
+ ```html
100
+ <w-box aria-labelledby="delivery-heading">
101
+ <h2 id="delivery-heading">Delivery</h2>
102
+ <p>Choose how you want the item delivered.</p>
103
+ </w-box>
104
+ ```
105
+
106
+ ### Neutral
107
+
108
+ <style-isolate>
109
+ <w-box neutral aria-labelledby="order-summary-heading">
110
+ <h2 id="order-summary-heading">Order summary</h2>
111
+ <p>Review the item price, delivery, and total before continuing.</p>
112
+ </w-box>
113
+ </style-isolate>
114
+
115
+ ```html
116
+ <w-box neutral aria-labelledby="order-summary-heading">
117
+ <h2 id="order-summary-heading">Order summary</h2>
118
+ <p>Review the item price, delivery, and total before continuing.</p>
119
+ </w-box>
120
+ ```
121
+
122
+ ### Info
123
+
124
+ <style-isolate>
125
+ <w-box info aria-labelledby="good-to-know-heading">
126
+ <h2 id="good-to-know-heading">Good to know</h2>
127
+ <p>You can change the delivery method before payment.</p>
128
+ </w-box>
129
+ </style-isolate>
130
+
131
+ ```html
132
+ <w-box info aria-labelledby="good-to-know-heading">
133
+ <h2 id="good-to-know-heading">Good to know</h2>
134
+ <p>You can change the delivery method before payment.</p>
135
+ </w-box>
136
+ ```
137
+
138
+ ### Bordered
139
+
140
+ <style-isolate>
141
+ <w-box bordered aria-labelledby="contact-seller-heading">
142
+ <h2 id="contact-seller-heading">Contact seller</h2>
143
+ <p>Send a message to ask about pickup times.</p>
144
+ </w-box>
145
+ </style-isolate>
146
+
147
+ ```html
148
+ <w-box bordered aria-labelledby="contact-seller-heading">
149
+ <h2 id="contact-seller-heading">Contact seller</h2>
150
+ <p>Send a message to ask about pickup times.</p>
151
+ </w-box>
152
+ ```
153
+
154
+ ### Bleed
155
+
156
+ <style-isolate>
157
+ <div style="padding: 0 16px;">
158
+ <w-box neutral bleed aria-labelledby="summary-heading">
159
+ <h2 id="summary-heading">Summary</h2>
160
+ <p>This box extends into the horizontal gutter on narrow screens.</p>
161
+ </w-box>
162
+ </div>
163
+ </style-isolate>
164
+
165
+ ```html
166
+ <div style="padding: 0 16px;">
167
+ <w-box neutral bleed aria-labelledby="summary-heading">
168
+ <h2 id="summary-heading">Summary</h2>
169
+ <p>This box extends into the horizontal gutter on narrow screens.</p>
170
+ </w-box>
171
+ </div>
172
+ ```
173
+
174
+ ### Visual Grouping Without Accessibility Landmarking
175
+
176
+ <style-isolate>
177
+ <w-box role="none">
178
+ <p>This box is only a visual container.</p>
179
+ </w-box>
180
+ </style-isolate>
181
+
182
+ ```html
183
+ <w-box role="none">
184
+ <p>This box is only a visual container.</p>
185
+ </w-box>
186
+ ```
187
+
15
188
  ## API Documentation
16
189
 
17
190
  ### Properties
18
191
 
19
192
  | Name | Type | Default | Summary |
20
193
  |-|-|-|-|
21
- | bleed | `boolean` | `false` | - |
22
- | bordered | `boolean` | `false` | - |
23
- | info | `boolean` | `false` | - |
24
- | neutral | `boolean` | `false` | - |
25
- | role | `string` | `-` | - |
194
+ | bleed | `boolean` | `false` | Makes the box bleed to the container edge. |
195
+ | bordered | `boolean` | `false` | Shows the box as a bordered surface. |
196
+ | info | `boolean` | `false` | Shows the box with information styling. |
197
+ | neutral | `boolean` | `false` | Shows the box with neutral styling. |
198
+ | role | `string` | `'region'` | ARIA role for the box wrapper. |
26
199
 
27
200
  ### Property Details
28
201
 
29
202
  #### bleed
30
203
 
31
-
204
+ Makes the box bleed to the container edge.
205
+ Extends the box into the horizontal gutter on narrow screens. Adds negative horizontal margins and square side corners below the small breakpoint, then restores the normal margins and rounded corners from the small breakpoint and up.
32
206
 
33
207
  - Type: `boolean`
34
208
  - Default: `false`
35
209
 
36
210
  #### bordered
37
211
 
38
-
212
+ Shows the box as a bordered surface.
213
+ Use this when the content needs a clear visual boundary from the surrounding page.
39
214
 
40
215
  - Type: `boolean`
41
216
  - Default: `false`
42
217
 
43
218
  #### info
44
219
 
45
-
220
+ Shows the box with information styling.
221
+ Use this for supporting informational content that should be visually separated from the surrounding page.
46
222
 
47
223
  - Type: `boolean`
48
224
  - Default: `false`
49
225
 
50
226
  #### neutral
51
227
 
52
-
228
+ Shows the box with neutral styling.
229
+ Use this for quiet grouped content that needs a background without strong emphasis.
53
230
 
54
231
  - Type: `boolean`
55
232
  - Default: `false`
56
233
 
57
234
  #### role
58
235
 
59
-
236
+ ARIA role for the box wrapper.
237
+ Defaults to a role of `region`. Set `role="none"` to override this behaviour for purely visual grouping, or set a specific role when the box has a clearer semantic purpose.
60
238
 
61
239
  - Type: `string`
62
- - Default: `-`
240
+ - Default: `'region'`
63
241
 
64
242
  ### Types
65
243
 
@@ -1 +1,99 @@
1
1
  ## Examples
2
+
3
+ ### Basic
4
+
5
+ <style-isolate>
6
+ <w-box aria-labelledby="delivery-heading">
7
+ <h2 id="delivery-heading">Delivery</h2>
8
+ <p>Choose how you want the item delivered.</p>
9
+ </w-box>
10
+ </style-isolate>
11
+
12
+ ```html
13
+ <w-box aria-labelledby="delivery-heading">
14
+ <h2 id="delivery-heading">Delivery</h2>
15
+ <p>Choose how you want the item delivered.</p>
16
+ </w-box>
17
+ ```
18
+
19
+ ### Neutral
20
+
21
+ <style-isolate>
22
+ <w-box neutral aria-labelledby="order-summary-heading">
23
+ <h2 id="order-summary-heading">Order summary</h2>
24
+ <p>Review the item price, delivery, and total before continuing.</p>
25
+ </w-box>
26
+ </style-isolate>
27
+
28
+ ```html
29
+ <w-box neutral aria-labelledby="order-summary-heading">
30
+ <h2 id="order-summary-heading">Order summary</h2>
31
+ <p>Review the item price, delivery, and total before continuing.</p>
32
+ </w-box>
33
+ ```
34
+
35
+ ### Info
36
+
37
+ <style-isolate>
38
+ <w-box info aria-labelledby="good-to-know-heading">
39
+ <h2 id="good-to-know-heading">Good to know</h2>
40
+ <p>You can change the delivery method before payment.</p>
41
+ </w-box>
42
+ </style-isolate>
43
+
44
+ ```html
45
+ <w-box info aria-labelledby="good-to-know-heading">
46
+ <h2 id="good-to-know-heading">Good to know</h2>
47
+ <p>You can change the delivery method before payment.</p>
48
+ </w-box>
49
+ ```
50
+
51
+ ### Bordered
52
+
53
+ <style-isolate>
54
+ <w-box bordered aria-labelledby="contact-seller-heading">
55
+ <h2 id="contact-seller-heading">Contact seller</h2>
56
+ <p>Send a message to ask about pickup times.</p>
57
+ </w-box>
58
+ </style-isolate>
59
+
60
+ ```html
61
+ <w-box bordered aria-labelledby="contact-seller-heading">
62
+ <h2 id="contact-seller-heading">Contact seller</h2>
63
+ <p>Send a message to ask about pickup times.</p>
64
+ </w-box>
65
+ ```
66
+
67
+ ### Bleed
68
+
69
+ <style-isolate>
70
+ <div style="padding: 0 16px;">
71
+ <w-box neutral bleed aria-labelledby="summary-heading">
72
+ <h2 id="summary-heading">Summary</h2>
73
+ <p>This box extends into the horizontal gutter on narrow screens.</p>
74
+ </w-box>
75
+ </div>
76
+ </style-isolate>
77
+
78
+ ```html
79
+ <div style="padding: 0 16px;">
80
+ <w-box neutral bleed aria-labelledby="summary-heading">
81
+ <h2 id="summary-heading">Summary</h2>
82
+ <p>This box extends into the horizontal gutter on narrow screens.</p>
83
+ </w-box>
84
+ </div>
85
+ ```
86
+
87
+ ### Visual Grouping Without Accessibility Landmarking
88
+
89
+ <style-isolate>
90
+ <w-box role="none">
91
+ <p>This box is only a visual container.</p>
92
+ </w-box>
93
+ </style-isolate>
94
+
95
+ ```html
96
+ <w-box role="none">
97
+ <p>This box is only a visual container.</p>
98
+ </w-box>
99
+ ```
@@ -1 +1,48 @@
1
1
  ## Usage
2
+
3
+ Box is a layout component for visually separating a section of content from the surrounding page.
4
+
5
+ Use `w-box` for grouped content that needs padding, a background, or a border. The component does not add heading structure, spacing between children, or interactive behavior. Those you must provide yourself.
6
+
7
+ ### Basic Box
8
+
9
+ ```html
10
+ <w-box aria-labelledby="delivery-heading">
11
+ <h2 id="deliver-heading">Delivery</h2>
12
+ <p>Choose how you want the item delivered.</p>
13
+ </w-box>
14
+ ```
15
+
16
+ ### Visual Treatments
17
+
18
+ Use one visual treatment at a time:
19
+
20
+ - `neutral`: a quiet sunken surface for grouped content
21
+ - `info`: a subtle information background
22
+ - `bordered`: a bordered surface with the default background
23
+
24
+ ```html
25
+ <w-box neutral role="none">
26
+ <p>Neutral content area</p>
27
+ </w-box>
28
+
29
+ <w-box info role="none">
30
+ <p>Informational content area</p>
31
+ </w-box>
32
+
33
+ <w-box bordered role="none">
34
+ <p>Bordered content area</p>
35
+ </w-box>
36
+ ```
37
+
38
+ ### Bleed
39
+
40
+ Use `bleed` when a box sits inside a page gutter but should extend to the container edge on narrow screens. `bleed` is commonly combined with a visual treatment such as `neutral` or `info`.
41
+
42
+ ```html
43
+ <w-box neutral bleed aria-labelledby="summary-heading">
44
+ <h2 id="summary-heading">Summary</h2>
45
+ <p>This box extends into the horizontal gutter on narrow screens.</p>
46
+ </w-box>
47
+ ```
48
+
package/dist/index.d.ts CHANGED
@@ -616,28 +616,38 @@ Use this with a parent element that has `position: relative`. Accepted values ar
616
616
  };
617
617
 
618
618
  export type WarpBoxProps = {
619
- /** */
619
+ /** Makes the box bleed to the container edge.
620
+ Extends the box into the horizontal gutter on narrow screens. Adds negative horizontal margins and square side corners below the small breakpoint, then restores the normal margins and rounded corners from the small breakpoint and up. */
620
621
  bleed?: WarpBox["bleed"];
621
- /** */
622
+ /** Shows the box as a bordered surface.
623
+ Use this when the content needs a clear visual boundary from the surrounding page. */
622
624
  bordered?: WarpBox["bordered"];
623
- /** */
625
+ /** Shows the box with information styling.
626
+ Use this for supporting informational content that should be visually separated from the surrounding page. */
624
627
  info?: WarpBox["info"];
625
- /** */
628
+ /** Shows the box with neutral styling.
629
+ Use this for quiet grouped content that needs a background without strong emphasis. */
626
630
  neutral?: WarpBox["neutral"];
627
- /** */
631
+ /** ARIA role for the box wrapper.
632
+ Defaults to a role of `region`. Set `role="none"` to override this behaviour for purely visual grouping, or set a specific role when the box has a clearer semantic purpose. */
628
633
  role?: WarpBox["role"];
629
634
  };
630
635
 
631
636
  export type WarpBoxSolidJsProps = {
632
- /** */
637
+ /** Makes the box bleed to the container edge.
638
+ Extends the box into the horizontal gutter on narrow screens. Adds negative horizontal margins and square side corners below the small breakpoint, then restores the normal margins and rounded corners from the small breakpoint and up. */
633
639
  "prop:bleed"?: WarpBox["bleed"];
634
- /** */
640
+ /** Shows the box as a bordered surface.
641
+ Use this when the content needs a clear visual boundary from the surrounding page. */
635
642
  "prop:bordered"?: WarpBox["bordered"];
636
- /** */
643
+ /** Shows the box with information styling.
644
+ Use this for supporting informational content that should be visually separated from the surrounding page. */
637
645
  "prop:info"?: WarpBox["info"];
638
- /** */
646
+ /** Shows the box with neutral styling.
647
+ Use this for quiet grouped content that needs a background without strong emphasis. */
639
648
  "prop:neutral"?: WarpBox["neutral"];
640
- /** */
649
+ /** ARIA role for the box wrapper.
650
+ Defaults to a role of `region`. Set `role="none"` to override this behaviour for purely visual grouping, or set a specific role when the box has a clearer semantic purpose. */
641
651
  "prop:role"?: WarpBox["role"];
642
652
 
643
653
  /** Set the innerHTML of the element */
@@ -2156,11 +2166,16 @@ export type CustomElements = {
2156
2166
  *
2157
2167
  * Component attributes and properties that can be applied to the element or by using JavaScript.
2158
2168
  *
2159
- * - `bleed`: undefined
2160
- * - `bordered`: undefined
2161
- * - `info`: undefined
2162
- * - `neutral`: undefined
2163
- * - `role`: undefined
2169
+ * - `bleed`: Makes the box bleed to the container edge.
2170
+ * Extends the box into the horizontal gutter on narrow screens. Adds negative horizontal margins and square side corners below the small breakpoint, then restores the normal margins and rounded corners from the small breakpoint and up.
2171
+ * - `bordered`: Shows the box as a bordered surface.
2172
+ * Use this when the content needs a clear visual boundary from the surrounding page.
2173
+ * - `info`: Shows the box with information styling.
2174
+ * Use this for supporting informational content that should be visually separated from the surrounding page.
2175
+ * - `neutral`: Shows the box with neutral styling.
2176
+ * Use this for quiet grouped content that needs a background without strong emphasis.
2177
+ * - `role`: ARIA role for the box wrapper.
2178
+ * Defaults to a role of `region`. Set `role="none"` to override this behaviour for purely visual grouping, or set a specific role when the box has a clearer semantic purpose.
2164
2179
  */
2165
2180
  "w-box": Partial<WarpBoxProps & BaseProps<WarpBox> & BaseEvents>;
2166
2181
 
@@ -3194,11 +3209,16 @@ export type CustomElementsSolidJs = {
3194
3209
  *
3195
3210
  * Component attributes and properties that can be applied to the element or by using JavaScript.
3196
3211
  *
3197
- * - `bleed`: undefined
3198
- * - `bordered`: undefined
3199
- * - `info`: undefined
3200
- * - `neutral`: undefined
3201
- * - `role`: undefined
3212
+ * - `bleed`: Makes the box bleed to the container edge.
3213
+ * Extends the box into the horizontal gutter on narrow screens. Adds negative horizontal margins and square side corners below the small breakpoint, then restores the normal margins and rounded corners from the small breakpoint and up.
3214
+ * - `bordered`: Shows the box as a bordered surface.
3215
+ * Use this when the content needs a clear visual boundary from the surrounding page.
3216
+ * - `info`: Shows the box with information styling.
3217
+ * Use this for supporting informational content that should be visually separated from the surrounding page.
3218
+ * - `neutral`: Shows the box with neutral styling.
3219
+ * Use this for quiet grouped content that needs a background without strong emphasis.
3220
+ * - `role`: ARIA role for the box wrapper.
3221
+ * Defaults to a role of `region`. Set `role="none"` to override this behaviour for purely visual grouping, or set a specific role when the box has a clearer semantic purpose.
3202
3222
  */
3203
3223
  "w-box": Partial<
3204
3224
  WarpBoxProps & WarpBoxSolidJsProps & BaseProps<WarpBox> & BaseEvents