@warp-ds/elements 2.9.1-next.3 → 2.9.1-next.4

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 (91) hide show
  1. package/dist/custom-elements.json +83 -239
  2. package/dist/docs/affix/affix.md +9 -10
  3. package/dist/docs/affix/api.md +9 -10
  4. package/dist/docs/alert/alert.md +4 -2
  5. package/dist/docs/alert/api.md +4 -2
  6. package/dist/docs/attention/api.md +16 -14
  7. package/dist/docs/attention/attention.md +16 -14
  8. package/dist/docs/badge/api.md +5 -6
  9. package/dist/docs/badge/badge.md +5 -6
  10. package/dist/docs/box/api.md +3 -4
  11. package/dist/docs/box/box.md +3 -4
  12. package/dist/docs/breadcrumbs/accessibility.md +46 -0
  13. package/dist/docs/breadcrumbs/api.md +8 -8
  14. package/dist/docs/breadcrumbs/breadcrumbs.md +127 -9
  15. package/dist/docs/breadcrumbs/examples.md +35 -0
  16. package/dist/docs/breadcrumbs/usage.md +36 -0
  17. package/dist/docs/button/api.md +15 -13
  18. package/dist/docs/button/button.md +15 -13
  19. package/dist/docs/card/api.md +5 -6
  20. package/dist/docs/card/card.md +5 -6
  21. package/dist/docs/combobox/api.md +18 -19
  22. package/dist/docs/combobox/combobox.md +18 -19
  23. package/dist/docs/datepicker/api.md +38 -39
  24. package/dist/docs/datepicker/datepicker.md +38 -39
  25. package/dist/docs/expandable/api.md +11 -12
  26. package/dist/docs/expandable/expandable.md +11 -12
  27. package/dist/docs/link/api.md +8 -6
  28. package/dist/docs/link/link.md +8 -6
  29. package/dist/docs/page-indicator/api.md +7 -8
  30. package/dist/docs/page-indicator/page-indicator.md +7 -8
  31. package/dist/docs/pagination/api.md +17 -9
  32. package/dist/docs/pagination/pagination.md +17 -9
  33. package/dist/docs/pill/api.md +30 -17
  34. package/dist/docs/pill/pill.md +30 -17
  35. package/dist/docs/select/api.md +17 -9
  36. package/dist/docs/select/select.md +17 -9
  37. package/dist/docs/slider/api.md +37 -116
  38. package/dist/docs/slider/examples.md +331 -0
  39. package/dist/docs/slider/slider.md +378 -118
  40. package/dist/docs/slider/usage.md +10 -0
  41. package/dist/docs/slider-thumb/api.md +26 -55
  42. package/dist/docs/slider-thumb/slider-thumb.md +26 -57
  43. package/dist/docs/step/api.md +3 -4
  44. package/dist/docs/step/step.md +3 -4
  45. package/dist/docs/step-indicator/api.md +3 -4
  46. package/dist/docs/step-indicator/step-indicator.md +3 -4
  47. package/dist/docs/switch/api.md +13 -5
  48. package/dist/docs/switch/switch.md +13 -5
  49. package/dist/docs/tab/api.md +9 -62
  50. package/dist/docs/tab/tab.md +9 -70
  51. package/dist/docs/tab-panel/api.md +7 -11
  52. package/dist/docs/tab-panel/tab-panel.md +7 -19
  53. package/dist/docs/tabs/accessibility.md +11 -0
  54. package/dist/docs/tabs/api.md +10 -18
  55. package/dist/docs/tabs/examples.md +68 -0
  56. package/dist/docs/tabs/tabs.md +97 -20
  57. package/dist/docs/tabs/usage.md +8 -0
  58. package/dist/docs/textarea/api.md +15 -16
  59. package/dist/docs/textarea/textarea.md +15 -16
  60. package/dist/docs/textfield/api.md +14 -15
  61. package/dist/docs/textfield/textfield.md +14 -15
  62. package/dist/index.d.ts +124 -224
  63. package/dist/packages/breadcrumbs/breadcrumbs.d.ts +7 -1
  64. package/dist/packages/breadcrumbs/breadcrumbs.js.map +2 -2
  65. package/dist/packages/pagination/pagination.test.js +38 -0
  66. package/dist/packages/slider/slider.d.ts +34 -45
  67. package/dist/packages/slider/slider.js +1 -1
  68. package/dist/packages/slider/slider.js.map +2 -2
  69. package/dist/packages/slider-thumb/slider-thumb.d.ts +36 -31
  70. package/dist/packages/slider-thumb/slider-thumb.js +1 -1
  71. package/dist/packages/slider-thumb/slider-thumb.js.map +2 -2
  72. package/dist/packages/tab/tab.d.ts +29 -24
  73. package/dist/packages/tab/tab.js +3 -3
  74. package/dist/packages/tab/tab.js.map +2 -2
  75. package/dist/packages/tab-panel/tab-panel.d.ts +9 -8
  76. package/dist/packages/tab-panel/tab-panel.js +3 -3
  77. package/dist/packages/tab-panel/tab-panel.js.map +2 -2
  78. package/dist/packages/tabs/index.d.ts +1 -0
  79. package/dist/packages/tabs/index.js +0 -1
  80. package/dist/packages/tabs/react.d.ts +4 -3
  81. package/dist/packages/tabs/tabs.d.ts +9 -3
  82. package/dist/packages/tabs/tabs.js.map +2 -2
  83. package/dist/packages/tabs/tabs.react.stories.d.ts +2 -2
  84. package/dist/web-types.json +201 -93
  85. package/package.json +2 -1
  86. package/dist/docs/tab/accessibility.md +0 -1
  87. package/dist/docs/tab/examples.md +0 -1
  88. package/dist/docs/tab/usage.md +0 -1
  89. package/dist/docs/tab-panel/accessibility.md +0 -1
  90. package/dist/docs/tab-panel/examples.md +0 -1
  91. package/dist/docs/tab-panel/usage.md +0 -1
@@ -1,92 +1,63 @@
1
- ## API Documentation
1
+ ### `<w-slider-thumb>` API
2
2
 
3
- ### Properties
3
+ #### Properties
4
4
 
5
5
  | Name | Type | Default | Summary |
6
6
  |-|-|-|-|
7
- | ariaDescription | `string` | `-` | - |
8
- | ariaDescriptionText | `unknown` | `-` | - |
9
- | ariaLabel | `string` | `-` | - |
10
- | boundaryValue | `string` | `-` | - |
11
- | name | `string` | `-` | - |
12
- | placeholder | `string` | `-` | - |
13
- | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
14
- | textFieldDisplayValue | `unknown` | `-` | Value to display in the textfield (shows boundary when focused on empty value) |
15
- | tooltipDisplayValue | `string \| number` | `-` | Value to display in the tooltip |
16
- | value | `string` | `-` | - |
7
+ | aria-description | `string` | `-` | Contextual information for assistive technology, should it be needed |
8
+ | aria-label | `string` | ``label` from `w-slider`` | Label for the range input. |
9
+ | name | `string` | `-` | The name of this input field in the form. The canonical source of the value is the text field. |
10
+ | placeholder | `string` | `-` | Placeholder in empty text fields |
11
+ | value | `string` | `-` | The initial value, if any |
17
12
 
18
- ### Property Details
19
-
20
- #### ariaDescription
13
+ #### Property Details
21
14
 
15
+ ##### aria-description
22
16
 
17
+ Contextual information for assistive technology, should it be needed
23
18
 
24
19
  - Type: `string`
25
20
  - Default: `-`
26
21
 
27
- #### ariaDescriptionText
28
-
29
-
30
-
31
- - Type: `unknown`
32
- - Default: `-`
33
-
34
- #### ariaLabel
35
-
22
+ ##### aria-label
36
23
 
24
+ Label for the range input.
37
25
 
38
26
  - Type: `string`
39
- - Default: `-`
40
-
41
- #### boundaryValue
27
+ - Default: ``label` from `w-slider``
42
28
 
29
+ ##### name
43
30
 
31
+ The name of this input field in the form. The canonical source of the value is the text field.
44
32
 
45
33
  - Type: `string`
46
34
  - Default: `-`
47
35
 
48
- #### name
49
-
36
+ ##### placeholder
50
37
 
38
+ Placeholder in empty text fields
51
39
 
52
40
  - Type: `string`
53
41
  - Default: `-`
54
42
 
55
- #### placeholder
56
-
43
+ ##### value
57
44
 
45
+ The initial value, if any
58
46
 
59
47
  - Type: `string`
60
48
  - Default: `-`
61
49
 
62
- #### shadowRootOptions
63
-
50
+ #### Events
64
51
 
52
+ ##### slidervalidity
65
53
 
66
- - Type: `object`
67
- - Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
54
+ Internal event used by (and stopped by) `w-slider`.
68
55
 
69
- #### textFieldDisplayValue
56
+ - Type: `CustomEvent`
57
+ ##### thumbreset
70
58
 
71
- Value to display in the textfield (shows boundary when focused on empty value)
59
+ Internal event used by (and stopped by) `w-slider`.
72
60
 
73
- - Type: `unknown`
74
- - Default: `-`
75
-
76
- #### tooltipDisplayValue
77
-
78
- Value to display in the tooltip
79
-
80
- - Type: `string \| number`
81
- - Default: `-`
82
-
83
- #### value
84
-
85
-
86
-
87
- - Type: `string`
88
- - Default: `-`
61
+ - Type: `CustomEvent`
89
62
 
90
- ### Types
91
63
 
92
- No types documented.
@@ -4,103 +4,72 @@
4
4
 
5
5
  Component to place inside a `<w-slider>`.
6
6
 
7
- [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
8
-
9
7
  ## Usage
10
8
 
11
9
  ## Accessibility
12
10
 
13
11
  ## Examples
14
12
 
15
- ## API Documentation
13
+ ### `<w-slider-thumb>` API
16
14
 
17
- ### Properties
15
+ #### Properties
18
16
 
19
17
  | Name | Type | Default | Summary |
20
18
  |-|-|-|-|
21
- | ariaDescription | `string` | `-` | - |
22
- | ariaDescriptionText | `unknown` | `-` | - |
23
- | ariaLabel | `string` | `-` | - |
24
- | boundaryValue | `string` | `-` | - |
25
- | name | `string` | `-` | - |
26
- | placeholder | `string` | `-` | - |
27
- | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
28
- | textFieldDisplayValue | `unknown` | `-` | Value to display in the textfield (shows boundary when focused on empty value) |
29
- | tooltipDisplayValue | `string \| number` | `-` | Value to display in the tooltip |
30
- | value | `string` | `-` | - |
31
-
32
- ### Property Details
19
+ | aria-description | `string` | `-` | Contextual information for assistive technology, should it be needed |
20
+ | aria-label | `string` | ``label` from `w-slider`` | Label for the range input. |
21
+ | name | `string` | `-` | The name of this input field in the form. The canonical source of the value is the text field. |
22
+ | placeholder | `string` | `-` | Placeholder in empty text fields |
23
+ | value | `string` | `-` | The initial value, if any |
33
24
 
34
- #### ariaDescription
25
+ #### Property Details
35
26
 
27
+ ##### aria-description
36
28
 
29
+ Contextual information for assistive technology, should it be needed
37
30
 
38
31
  - Type: `string`
39
32
  - Default: `-`
40
33
 
41
- #### ariaDescriptionText
42
-
43
-
44
-
45
- - Type: `unknown`
46
- - Default: `-`
47
-
48
- #### ariaLabel
49
-
34
+ ##### aria-label
50
35
 
36
+ Label for the range input.
51
37
 
52
38
  - Type: `string`
53
- - Default: `-`
54
-
55
- #### boundaryValue
39
+ - Default: ``label` from `w-slider``
56
40
 
41
+ ##### name
57
42
 
43
+ The name of this input field in the form. The canonical source of the value is the text field.
58
44
 
59
45
  - Type: `string`
60
46
  - Default: `-`
61
47
 
62
- #### name
63
-
48
+ ##### placeholder
64
49
 
50
+ Placeholder in empty text fields
65
51
 
66
52
  - Type: `string`
67
53
  - Default: `-`
68
54
 
69
- #### placeholder
70
-
55
+ ##### value
71
56
 
57
+ The initial value, if any
72
58
 
73
59
  - Type: `string`
74
60
  - Default: `-`
75
61
 
76
- #### shadowRootOptions
62
+ #### Events
77
63
 
64
+ ##### slidervalidity
78
65
 
66
+ Internal event used by (and stopped by) `w-slider`.
79
67
 
80
- - Type: `object`
81
- - Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
68
+ - Type: `CustomEvent`
69
+ ##### thumbreset
82
70
 
83
- #### textFieldDisplayValue
71
+ Internal event used by (and stopped by) `w-slider`.
84
72
 
85
- Value to display in the textfield (shows boundary when focused on empty value)
86
-
87
- - Type: `unknown`
88
- - Default: `-`
89
-
90
- #### tooltipDisplayValue
91
-
92
- Value to display in the tooltip
93
-
94
- - Type: `string \| number`
95
- - Default: `-`
96
-
97
- #### value
98
-
99
-
100
-
101
- - Type: `string`
102
- - Default: `-`
73
+ - Type: `CustomEvent`
103
74
 
104
- ### Types
105
75
 
106
- No types documented.
@@ -1,4 +1,6 @@
1
- ## API Documentation
1
+ ## `<w-step>` API
2
+
3
+ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
2
4
 
3
5
  ### Properties
4
6
 
@@ -23,6 +25,3 @@
23
25
  - Type: `boolean`
24
26
  - Default: `false`
25
27
 
26
- ### Types
27
-
28
- No types documented.
@@ -10,7 +10,9 @@ Individual step component that shows a single step in a process
10
10
 
11
11
  ## Examples
12
12
 
13
- ## API Documentation
13
+ ## `<w-step>` API
14
+
15
+ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
14
16
 
15
17
  ### Properties
16
18
 
@@ -35,6 +37,3 @@ Individual step component that shows a single step in a process
35
37
  - Type: `boolean`
36
38
  - Default: `false`
37
39
 
38
- ### Types
39
-
40
- No types documented.
@@ -1,4 +1,6 @@
1
- ## API Documentation
1
+ ## `<w-step-indicator>` API
2
+
3
+ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
2
4
 
3
5
  ### Properties
4
6
 
@@ -23,6 +25,3 @@
23
25
  - Type: `boolean`
24
26
  - Default: `false`
25
27
 
26
- ### Types
27
-
28
- No types documented.
@@ -12,7 +12,9 @@ Steps are used to show progress through a process or to guide users through a mu
12
12
 
13
13
  ## Examples
14
14
 
15
- ## API Documentation
15
+ ## `<w-step-indicator>` API
16
+
17
+ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
16
18
 
17
19
  ### Properties
18
20
 
@@ -37,6 +39,3 @@ Steps are used to show progress through a process or to guide users through a mu
37
39
  - Type: `boolean`
38
40
  - Default: `false`
39
41
 
40
- ### Types
41
-
42
- No types documented.
@@ -1,4 +1,6 @@
1
- ## API Documentation
1
+ ## `<w-switch>` API
2
+
3
+ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
2
4
 
3
5
  ### Properties
4
6
 
@@ -7,7 +9,7 @@
7
9
  | checked | `boolean` | `false` | - |
8
10
  | disabled | `boolean` | `false` | - |
9
11
  | name | `string` | `-` | - |
10
- | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
12
+ | shadowRootOptions (JS only) | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
11
13
  | value | `string` | `-` | - |
12
14
 
13
15
  ### Property Details
@@ -33,7 +35,7 @@
33
35
  - Type: `string`
34
36
  - Default: `-`
35
37
 
36
- #### shadowRootOptions
38
+ #### shadowRootOptions (JS only)
37
39
 
38
40
 
39
41
 
@@ -47,6 +49,12 @@
47
49
  - Type: `string`
48
50
  - Default: `-`
49
51
 
50
- ### Types
52
+ ### Events
53
+
54
+ #### change
55
+
56
+
57
+
58
+ - Type: `CustomEvent`
59
+
51
60
 
52
- No types documented.
@@ -10,7 +10,9 @@
10
10
 
11
11
  ## Examples
12
12
 
13
- ## API Documentation
13
+ ## `<w-switch>` API
14
+
15
+ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
14
16
 
15
17
  ### Properties
16
18
 
@@ -19,7 +21,7 @@
19
21
  | checked | `boolean` | `false` | - |
20
22
  | disabled | `boolean` | `false` | - |
21
23
  | name | `string` | `-` | - |
22
- | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
24
+ | shadowRootOptions (JS only) | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
23
25
  | value | `string` | `-` | - |
24
26
 
25
27
  ### Property Details
@@ -45,7 +47,7 @@
45
47
  - Type: `string`
46
48
  - Default: `-`
47
49
 
48
- #### shadowRootOptions
50
+ #### shadowRootOptions (JS only)
49
51
 
50
52
 
51
53
 
@@ -59,6 +61,12 @@
59
61
  - Type: `string`
60
62
  - Default: `-`
61
63
 
62
- ### Types
64
+ ### Events
65
+
66
+ #### change
67
+
68
+
69
+
70
+ - Type: `CustomEvent`
71
+
63
72
 
64
- No types documented.
@@ -1,78 +1,25 @@
1
- ## API Documentation
1
+ ### `<w-tab>` API
2
2
 
3
- ### Properties
3
+ #### Properties
4
4
 
5
5
  | Name | Type | Default | Summary |
6
6
  |-|-|-|-|
7
- | _computedAriaSelected | `'true' \| 'false' \| undefined` | `-` | Computed aria-selected: prefers parent-managed, falls back to own property |
8
- | active | `boolean` | `false` | **Deprecated**: Use `aria-selected="true"` instead |
9
- | ariaSelected | `'true' \| 'false'` | `-` | - |
10
- | for | `string` | `-` | - |
11
- | id | `string` | `-` | - |
12
- | over | `boolean` | `false` | - |
13
- | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
14
- | tabIndex | `number` | `-` | Override tabIndex setter to set _parentTabIndex (for backwards compatibility). |
7
+ | for | `string` | `-` | The `id` of the `<w-tab-panel>` this tab controls. |
8
+ | over | `boolean` | `false` | Whether to show the `icon` slot over the tab title instead of inline. |
15
9
 
16
- ### Property Details
17
-
18
- #### _computedAriaSelected
19
-
20
- Computed aria-selected: prefers parent-managed, falls back to own property
21
-
22
- - Type: `'true' \| 'false' \| undefined`
23
- - Default: `-`
24
-
25
- #### active
26
-
27
- **Deprecated**: Use `aria-selected="true"` instead
28
-
29
-
30
-
31
- - Type: `boolean`
32
- - Default: `false`
33
-
34
- #### ariaSelected
35
-
36
-
37
-
38
- - Type: `'true' \| 'false'`
39
- - Default: `-`
40
-
41
- #### for
10
+ #### Property Details
42
11
 
12
+ ##### for
43
13
 
14
+ The `id` of the `<w-tab-panel>` this tab controls.
44
15
 
45
16
  - Type: `string`
46
17
  - Default: `-`
47
18
 
48
- #### id
49
-
50
-
51
-
52
- - Type: `string`
53
- - Default: `-`
54
-
55
- #### over
56
-
19
+ ##### over
57
20
 
21
+ Whether to show the `icon` slot over the tab title instead of inline.
58
22
 
59
23
  - Type: `boolean`
60
24
  - Default: `false`
61
25
 
62
- #### shadowRootOptions
63
-
64
-
65
-
66
- - Type: `object`
67
- - Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
68
-
69
- #### tabIndex
70
-
71
- Override tabIndex setter to set _parentTabIndex (for backwards compatibility).
72
-
73
- - Type: `number`
74
- - Default: `-`
75
-
76
- ### Types
77
-
78
- No types documented.
@@ -4,89 +4,28 @@
4
4
 
5
5
  Individual tab component used within w-tabs container.
6
6
 
7
- [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
7
+ ### `<w-tab>` API
8
8
 
9
- ## Usage
10
-
11
- ## Accessibility
12
-
13
- ## Examples
14
-
15
- ## API Documentation
16
-
17
- ### Properties
9
+ #### Properties
18
10
 
19
11
  | Name | Type | Default | Summary |
20
12
  |-|-|-|-|
21
- | _computedAriaSelected | `'true' \| 'false' \| undefined` | `-` | Computed aria-selected: prefers parent-managed, falls back to own property |
22
- | active | `boolean` | `false` | **Deprecated**: Use `aria-selected="true"` instead |
23
- | ariaSelected | `'true' \| 'false'` | `-` | - |
24
- | for | `string` | `-` | - |
25
- | id | `string` | `-` | - |
26
- | over | `boolean` | `false` | - |
27
- | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
28
- | tabIndex | `number` | `-` | Override tabIndex setter to set _parentTabIndex (for backwards compatibility). |
29
-
30
- ### Property Details
31
-
32
- #### _computedAriaSelected
33
-
34
- Computed aria-selected: prefers parent-managed, falls back to own property
35
-
36
- - Type: `'true' \| 'false' \| undefined`
37
- - Default: `-`
38
-
39
- #### active
13
+ | for | `string` | `-` | The `id` of the `<w-tab-panel>` this tab controls. |
14
+ | over | `boolean` | `false` | Whether to show the `icon` slot over the tab title instead of inline. |
40
15
 
41
- **Deprecated**: Use `aria-selected="true"` instead
42
-
43
-
44
-
45
- - Type: `boolean`
46
- - Default: `false`
47
-
48
- #### ariaSelected
49
-
50
-
51
-
52
- - Type: `'true' \| 'false'`
53
- - Default: `-`
54
-
55
- #### for
16
+ #### Property Details
56
17
 
18
+ ##### for
57
19
 
20
+ The `id` of the `<w-tab-panel>` this tab controls.
58
21
 
59
22
  - Type: `string`
60
23
  - Default: `-`
61
24
 
62
- #### id
63
-
64
-
65
-
66
- - Type: `string`
67
- - Default: `-`
68
-
69
- #### over
70
-
25
+ ##### over
71
26
 
27
+ Whether to show the `icon` slot over the tab title instead of inline.
72
28
 
73
29
  - Type: `boolean`
74
30
  - Default: `false`
75
31
 
76
- #### shadowRootOptions
77
-
78
-
79
-
80
- - Type: `object`
81
- - Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
82
-
83
- #### tabIndex
84
-
85
- Override tabIndex setter to set _parentTabIndex (for backwards compatibility).
86
-
87
- - Type: `number`
88
- - Default: `-`
89
-
90
- ### Types
91
-
92
- No types documented.
@@ -1,21 +1,17 @@
1
- ## API Documentation
1
+ ### `<w-tab-panel>` API
2
2
 
3
- ### Properties
3
+ #### Properties
4
4
 
5
5
  | Name | Type | Default | Summary |
6
6
  |-|-|-|-|
7
- | active | `boolean` | `-` | Whether this panel is active (visible). |
7
+ | id | `string` | `-` | Required so `<w-tab>` has something to target. |
8
8
 
9
- ### Property Details
9
+ #### Property Details
10
10
 
11
- #### active
11
+ ##### id
12
12
 
13
- Whether this panel is active (visible).
14
- Set by parent w-tabs via the _parentActive property.
13
+ Required so `<w-tab>` has something to target.
15
14
 
16
- - Type: `boolean`
15
+ - Type: `string`
17
16
  - Default: `-`
18
17
 
19
- ### Types
20
-
21
- No types documented.
@@ -5,32 +5,20 @@
5
5
  Tab panel component that holds content for individual tabs.
6
6
  Each tab panel should have a name that matches a corresponding tab.
7
7
 
8
- [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
8
+ ### `<w-tab-panel>` API
9
9
 
10
- ## Usage
11
-
12
- ## Accessibility
13
-
14
- ## Examples
15
-
16
- ## API Documentation
17
-
18
- ### Properties
10
+ #### Properties
19
11
 
20
12
  | Name | Type | Default | Summary |
21
13
  |-|-|-|-|
22
- | active | `boolean` | `-` | Whether this panel is active (visible). |
14
+ | id | `string` | `-` | Required so `<w-tab>` has something to target. |
23
15
 
24
- ### Property Details
16
+ #### Property Details
25
17
 
26
- #### active
18
+ ##### id
27
19
 
28
- Whether this panel is active (visible).
29
- Set by parent w-tabs via the _parentActive property.
20
+ Required so `<w-tab>` has something to target.
30
21
 
31
- - Type: `boolean`
22
+ - Type: `string`
32
23
  - Default: `-`
33
24
 
34
- ### Types
35
-
36
- No types documented.
@@ -1 +1,12 @@
1
1
  ## Accessibility
2
+
3
+ The tabs component follows the WAI-ARIA Tabs pattern:
4
+
5
+ - The tab list gets `role="tablist"`
6
+ - Each tab button gets `role="tab"` with `aria-selected` reflecting its active state
7
+ - Each tab button gets `aria-controls` pointing to its associated panel
8
+ - Each panel gets `role="tabpanel"` with `aria-labelledby` pointing to its associated tab
9
+ - Keyboard navigation is supported:
10
+ - `ArrowLeft`/`ArrowRight`: Navigate between tabs
11
+ - `Home`: Move to first tab
12
+ - `End`: Move to last tab