@pingux/astro 2.207.1-alpha.0 → 2.208.1-alpha.0

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 (182) hide show
  1. package/lib/cjs/components/AIComponents/PromptInput/PromptInputReadMe.mdx +12 -15
  2. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.mdx +13 -19
  3. package/lib/cjs/components/AccordionGroup/AccordionGroup.mdx +16 -17
  4. package/lib/cjs/components/ArrayField/ArrayField.mdx +10 -15
  5. package/lib/cjs/components/Badge/Badge.mdx +6 -8
  6. package/lib/cjs/components/Badge/Badge.styles.d.ts +152 -0
  7. package/lib/cjs/components/Badge/Badge.styles.js +9 -1
  8. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.mdx +11 -17
  9. package/lib/cjs/components/Button/Button.mdx +8 -12
  10. package/lib/cjs/components/Calendar/Calendar.mdx +17 -22
  11. package/lib/cjs/components/Callout/Callout.mdx +8 -13
  12. package/lib/cjs/components/Card/Card.mdx +6 -8
  13. package/lib/cjs/components/CheckboxField/CheckboxField.mdx +11 -16
  14. package/lib/cjs/components/CodeEditor/CodeEditor.mdx +8 -13
  15. package/lib/cjs/components/CodeView/CodeView.mdx +5 -8
  16. package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.mdx +10 -13
  17. package/lib/cjs/components/ColorField/ColorField.mdx +13 -18
  18. package/lib/cjs/components/ComboBoxField/ComboBoxField.mdx +13 -15
  19. package/lib/cjs/components/CopyText/CopyText.mdx +6 -8
  20. package/lib/cjs/components/DataTable/DataTable.mdx +17 -22
  21. package/lib/cjs/components/DatePicker/DatePicker.mdx +20 -27
  22. package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.mdx +14 -19
  23. package/lib/cjs/components/ExpandableText/ExpandableText.mdx +9 -15
  24. package/lib/cjs/components/FileInputField/FileInputField.mdx +11 -16
  25. package/lib/cjs/components/Footer/Footer.mdx +9 -14
  26. package/lib/cjs/components/GridList/GridList.mdx +16 -21
  27. package/lib/cjs/components/HelpHint/HelpHint.mdx +8 -14
  28. package/lib/cjs/components/Icon/Icon.mdx +5 -3
  29. package/lib/cjs/components/IconButton/IconButton.mdx +7 -10
  30. package/lib/cjs/components/IconButtonToggle/IconButtonToggle.mdx +9 -15
  31. package/lib/cjs/components/Image/Image.mdx +4 -4
  32. package/lib/cjs/components/ImageUploadField/ImageUploadField.mdx +18 -24
  33. package/lib/cjs/components/Link/Link.mdx +5 -6
  34. package/lib/cjs/components/LinkSelectField/LinkSelectField.mdx +18 -24
  35. package/lib/cjs/components/ListItem/ListItem.mdx +6 -6
  36. package/lib/cjs/components/ListView/ListView.mdx +22 -23
  37. package/lib/cjs/components/Loader/Loader.mdx +6 -5
  38. package/lib/cjs/components/Menu/Menu.mdx +13 -18
  39. package/lib/cjs/components/Messages/Messages.mdx +9 -13
  40. package/lib/cjs/components/Modal/Modal.mdx +18 -19
  41. package/lib/cjs/components/MultivaluesField/MultivaluesField.mdx +14 -20
  42. package/lib/cjs/components/NavBar/NavBar.mdx +12 -17
  43. package/lib/cjs/components/NavSideBar/NavSideBar.mdx +12 -17
  44. package/lib/cjs/components/NavigationHeader/NavigationHeader.mdx +11 -16
  45. package/lib/cjs/components/NumberField/NumberField.mdx +16 -17
  46. package/lib/cjs/components/OverlayPanel/OverlayPanel.mdx +10 -14
  47. package/lib/cjs/components/Pagination/Pagination.js +4 -2
  48. package/lib/cjs/components/Pagination/Pagination.mdx +9 -13
  49. package/lib/cjs/components/Pagination/Pagination.styles.js +1 -1
  50. package/lib/cjs/components/PasswordField/PasswordField.mdx +10 -15
  51. package/lib/cjs/components/PopoverMenu/PopoverMenu.mdx +16 -22
  52. package/lib/cjs/components/ProgressBar/ProgressBar.mdx +6 -7
  53. package/lib/cjs/components/RadioGroupField/RadioGroupField.mdx +11 -17
  54. package/lib/cjs/components/RangeCalendar/RangeCalendar.mdx +17 -22
  55. package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.mdx +11 -16
  56. package/lib/cjs/components/SearchField/SearchField.mdx +8 -10
  57. package/lib/cjs/components/SelectField/SelectField.mdx +18 -23
  58. package/lib/cjs/components/Separator/Separator.mdx +4 -3
  59. package/lib/cjs/components/ServerErrorBoundary/ServerErrorBoundary.mdx +6 -8
  60. package/lib/cjs/components/SliderField/SliderField.mdx +12 -15
  61. package/lib/cjs/components/StatusIcon/StatusIcon.mdx +4 -3
  62. package/lib/cjs/components/Stepper/Stepper.mdx +18 -20
  63. package/lib/cjs/components/SwitchField/SwitchField.mdx +9 -14
  64. package/lib/cjs/components/TableBase/TableBase.js +4 -1
  65. package/lib/cjs/components/TableBase/TableBase.stories.js +8 -8
  66. package/lib/cjs/components/Tabs/Tabs.mdx +13 -18
  67. package/lib/cjs/components/TextAreaField/TextAreaField.mdx +8 -12
  68. package/lib/cjs/components/TextField/TextField.mdx +8 -12
  69. package/lib/cjs/components/TimeField/TimeField.mdx +12 -18
  70. package/lib/cjs/components/TooltipTrigger/TooltipTrigger.mdx +4 -3
  71. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.d.ts +42 -0
  72. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.js +38 -1
  73. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/cards.d.ts +3 -0
  74. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/cards.js +4 -0
  75. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.d.ts +3 -0
  76. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.js +3 -0
  77. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +26 -3
  78. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +27 -5
  79. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +220 -18
  80. package/lib/cjs/styles/themes/next-gen/next-gen.js +1 -1
  81. package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +202 -0
  82. package/lib/cjs/styles/themes/next-gen/variants/badges.js +42 -1
  83. package/lib/cjs/styles/themes/next-gen/variants/cards.d.ts +1 -1
  84. package/lib/cjs/styles/themes/next-gen/variants/cards.js +3 -1
  85. package/lib/cjs/styles/themes/next-gen/variants/tableBase.d.ts +11 -17
  86. package/lib/cjs/styles/themes/next-gen/variants/tableBase.js +13 -17
  87. package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +6 -0
  88. package/lib/cjs/styles/themes/next-gen/variants/text.js +6 -0
  89. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +11 -17
  90. package/lib/cjs/types/accessibilityTable.d.ts +8 -0
  91. package/lib/cjs/types/accessibilityTable.js +6 -0
  92. package/lib/cjs/types/index.d.ts +1 -0
  93. package/lib/cjs/types/index.js +75 -64
  94. package/lib/cjs/utils/docUtils/AccessibilityTable.d.ts +3 -0
  95. package/lib/cjs/utils/docUtils/AccessibilityTable.js +38 -0
  96. package/lib/cjs/utils/docUtils/AccessibilityTable.test.js +192 -0
  97. package/lib/cjs/utils/docUtils/accessibilityTableConstants.d.ts +130 -0
  98. package/lib/cjs/utils/docUtils/accessibilityTableConstants.js +137 -0
  99. package/lib/components/AIComponents/PromptInput/PromptInputReadMe.mdx +12 -15
  100. package/lib/components/AccordionGridGroup/AccordionGridGroup.mdx +13 -19
  101. package/lib/components/AccordionGroup/AccordionGroup.mdx +16 -17
  102. package/lib/components/ArrayField/ArrayField.mdx +10 -15
  103. package/lib/components/Badge/Badge.mdx +6 -8
  104. package/lib/components/Badge/Badge.styles.js +9 -1
  105. package/lib/components/Breadcrumbs/Breadcrumbs.mdx +11 -17
  106. package/lib/components/Button/Button.mdx +8 -12
  107. package/lib/components/Calendar/Calendar.mdx +17 -22
  108. package/lib/components/Callout/Callout.mdx +8 -13
  109. package/lib/components/Card/Card.mdx +6 -8
  110. package/lib/components/CheckboxField/CheckboxField.mdx +11 -16
  111. package/lib/components/CodeEditor/CodeEditor.mdx +8 -13
  112. package/lib/components/CodeView/CodeView.mdx +5 -8
  113. package/lib/components/CollapsiblePanel/CollapsiblePanel.mdx +10 -13
  114. package/lib/components/ColorField/ColorField.mdx +13 -18
  115. package/lib/components/ComboBoxField/ComboBoxField.mdx +13 -15
  116. package/lib/components/CopyText/CopyText.mdx +6 -8
  117. package/lib/components/DataTable/DataTable.mdx +17 -22
  118. package/lib/components/DatePicker/DatePicker.mdx +20 -27
  119. package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.mdx +14 -19
  120. package/lib/components/ExpandableText/ExpandableText.mdx +9 -15
  121. package/lib/components/FileInputField/FileInputField.mdx +11 -16
  122. package/lib/components/Footer/Footer.mdx +9 -14
  123. package/lib/components/GridList/GridList.mdx +16 -21
  124. package/lib/components/HelpHint/HelpHint.mdx +8 -14
  125. package/lib/components/Icon/Icon.mdx +5 -3
  126. package/lib/components/IconButton/IconButton.mdx +7 -10
  127. package/lib/components/IconButtonToggle/IconButtonToggle.mdx +9 -15
  128. package/lib/components/Image/Image.mdx +4 -4
  129. package/lib/components/ImageUploadField/ImageUploadField.mdx +18 -24
  130. package/lib/components/Link/Link.mdx +5 -6
  131. package/lib/components/LinkSelectField/LinkSelectField.mdx +18 -24
  132. package/lib/components/ListItem/ListItem.mdx +6 -6
  133. package/lib/components/ListView/ListView.mdx +22 -23
  134. package/lib/components/Loader/Loader.mdx +6 -5
  135. package/lib/components/Menu/Menu.mdx +13 -18
  136. package/lib/components/Messages/Messages.mdx +9 -13
  137. package/lib/components/Modal/Modal.mdx +18 -19
  138. package/lib/components/MultivaluesField/MultivaluesField.mdx +14 -20
  139. package/lib/components/NavBar/NavBar.mdx +12 -17
  140. package/lib/components/NavSideBar/NavSideBar.mdx +12 -17
  141. package/lib/components/NavigationHeader/NavigationHeader.mdx +11 -16
  142. package/lib/components/NumberField/NumberField.mdx +16 -17
  143. package/lib/components/OverlayPanel/OverlayPanel.mdx +10 -14
  144. package/lib/components/Pagination/Pagination.js +4 -2
  145. package/lib/components/Pagination/Pagination.mdx +9 -13
  146. package/lib/components/Pagination/Pagination.styles.js +1 -1
  147. package/lib/components/PasswordField/PasswordField.mdx +10 -15
  148. package/lib/components/PopoverMenu/PopoverMenu.mdx +16 -22
  149. package/lib/components/ProgressBar/ProgressBar.mdx +6 -7
  150. package/lib/components/RadioGroupField/RadioGroupField.mdx +11 -17
  151. package/lib/components/RangeCalendar/RangeCalendar.mdx +17 -22
  152. package/lib/components/RockerButtonGroup/RockerButtonGroup.mdx +11 -16
  153. package/lib/components/SearchField/SearchField.mdx +8 -10
  154. package/lib/components/SelectField/SelectField.mdx +18 -23
  155. package/lib/components/Separator/Separator.mdx +4 -3
  156. package/lib/components/ServerErrorBoundary/ServerErrorBoundary.mdx +6 -8
  157. package/lib/components/SliderField/SliderField.mdx +12 -15
  158. package/lib/components/StatusIcon/StatusIcon.mdx +4 -3
  159. package/lib/components/Stepper/Stepper.mdx +18 -20
  160. package/lib/components/SwitchField/SwitchField.mdx +9 -14
  161. package/lib/components/TableBase/TableBase.js +4 -1
  162. package/lib/components/TableBase/TableBase.stories.js +8 -8
  163. package/lib/components/Tabs/Tabs.mdx +13 -18
  164. package/lib/components/TextAreaField/TextAreaField.mdx +8 -12
  165. package/lib/components/TextField/TextField.mdx +8 -12
  166. package/lib/components/TimeField/TimeField.mdx +12 -18
  167. package/lib/components/TooltipTrigger/TooltipTrigger.mdx +4 -3
  168. package/lib/styles/themeOverrides/nextGenDarkMode/variants/badges.js +38 -1
  169. package/lib/styles/themeOverrides/nextGenDarkMode/variants/cards.js +4 -0
  170. package/lib/styles/themeOverrides/nextGenDarkMode/variants/text.js +3 -0
  171. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +27 -5
  172. package/lib/styles/themes/next-gen/next-gen.js +1 -1
  173. package/lib/styles/themes/next-gen/variants/badges.js +42 -1
  174. package/lib/styles/themes/next-gen/variants/cards.js +3 -1
  175. package/lib/styles/themes/next-gen/variants/tableBase.js +13 -17
  176. package/lib/styles/themes/next-gen/variants/text.js +6 -0
  177. package/lib/types/accessibilityTable.js +1 -0
  178. package/lib/types/index.js +1 -0
  179. package/lib/utils/docUtils/AccessibilityTable.js +30 -0
  180. package/lib/utils/docUtils/AccessibilityTable.test.js +190 -0
  181. package/lib/utils/docUtils/accessibilityTableConstants.js +130 -0
  182. package/package.json +1 -1
@@ -89,11 +89,11 @@ var objects = [{
89
89
  total_grant: '75,000'
90
90
  }];
91
91
  var statusVariant = {
92
- Pending: 'warningStatusBadge',
93
- Failed: 'criticalStatusBadge',
94
- Rejected: 'criticalStatusBadge',
95
- Active: 'healthyStatusBadge',
96
- Inactive: 'secondaryStatusBadge'
92
+ Pending: 'tableBaseBadge.secondary',
93
+ Failed: 'tableBaseBadge.critical',
94
+ Rejected: 'tableBaseBadge.critical',
95
+ Active: 'tableBaseBadge.healthy',
96
+ Inactive: 'tableBaseBadge.secondary'
97
97
  };
98
98
  var Default = exports.Default = function Default() {
99
99
  return (0, _react2.jsx)(_.Card, {
@@ -256,11 +256,11 @@ var DynamicWithSorting = exports.DynamicWithSorting = function DynamicWithSortin
256
256
  }, {
257
257
  name: 'Population',
258
258
  key: 'population',
259
- isSortable: true
259
+ isSortable: false
260
260
  }, {
261
261
  name: 'Continent',
262
262
  key: 'continent',
263
- isSortable: true
263
+ isSortable: false
264
264
  }];
265
265
  var rows = [{
266
266
  id: 1,
@@ -367,7 +367,7 @@ var DynamicWithSorting = exports.DynamicWithSorting = function DynamicWithSortin
367
367
  }, function (column) {
368
368
  return (0, _react2.jsx)(_.Column, {
369
369
  minWidth: 155,
370
- allowsSorting: true
370
+ allowsSorting: column.isSortable
371
371
  }, column.name);
372
372
  }), (0, _react2.jsx)(_.TBody, {
373
373
  items: list.items,
@@ -1,5 +1,7 @@
1
1
  import { Meta } from '@storybook/addon-docs/blocks';
2
2
  import * as TabsStories from './Tabs.stories';
3
+ import AccessibilityTable from '../../utils/docUtils/AccessibilityTable';
4
+ import { KeyboardRows, ScreenReaderRows } from '../../utils/docUtils/accessibilityTableConstants';
3
5
 
4
6
  <Meta of={TabsStories} isTemplate />
5
7
 
@@ -21,21 +23,14 @@ This component requires the Tab component.
21
23
 
22
24
  This component should adhere to the [WAI-ARIA Tabs](https://www.w3.org/WAI/ARIA/apg/patterns/tabs/) accessibility guidelines.
23
25
 
24
- #### Keyboard Navigation
25
-
26
- These keys provide additional functionality to the component.
27
-
28
- | Keys | Function |
29
- | ---- | ---- |
30
- | Tab | The field is focusable using the Tab key and follows the page tab sequence. |
31
- | Arrow keys | When a tab is focused, tabs can be navigated using the left and right arrow keys. |
32
- | Shift + Tab | Moves focus to the previous focusable component. |
33
- | Home(Fn + Right Arrow Key) Or Control/Command + Home| Shifts the focus to the first tab. |
34
- | End(Fn + Left Arrow Key) Or Control/Command + End | Shifts the focus to the last tab. |
35
-
36
- #### Screen Readers
37
-
38
- This component uses the following attributes to assist screen readers:
39
- - The **`aria-orientation`** attribute indicates whether the orientation is horizontal, vertical, unknown, or ambiguous.
40
- - Each tab uses the **`aria-selected`** attribute to indicate the selection status, and the **`aria-control`** attribute is supplied with the associated panel ID that displays the content.
41
- - Each tab uses the **`aria-labelledby`** with the label ID to reference it.
26
+ <AccessibilityTable keyboardRows={[
27
+ KeyboardRows.tabField,
28
+ { key: 'Arrow keys', description: 'When a tab is focused, tabs can be navigated using the left and right arrow keys.' },
29
+ KeyboardRows.shiftTabFocusPrevious,
30
+ { key: 'Home(Fn + Right Arrow Key) Or Control/Command + Home', description: 'Shifts the focus to the first tab.' },
31
+ { key: 'End(Fn + Left Arrow Key) Or Control/Command + End', description: 'Shifts the focus to the last tab.' },
32
+ ]} screenReaderRows={[
33
+ ScreenReaderRows.ariaOrientationWithTrailingSpace,
34
+ 'Each tab uses the **`aria-selected`** attribute to indicate the selection status, and the **`aria-control`** attribute is supplied with the associated panel ID that displays the content.',
35
+ 'Each tab uses the **`aria-labelledby`** with the label ID to reference it.',
36
+ ]} />
@@ -1,5 +1,7 @@
1
1
  import { Meta } from '@storybook/addon-docs/blocks';
2
2
  import * as TextAreaFieldStories from './TextAreaField.stories';
3
+ import AccessibilityTable from '../../utils/docUtils/AccessibilityTable';
4
+ import { KeyboardRows, ScreenReaderRows } from '../../utils/docUtils/accessibilityTableConstants';
3
5
 
4
6
  <Meta of={TextAreaFieldStories} isTemplate />
5
7
 
@@ -21,15 +23,9 @@ This component can be used independently and does not require additional compone
21
23
 
22
24
  ### Accessibility
23
25
 
24
- #### Keyboard Navigation
25
-
26
- These keys provide additional functionality to the component.
27
-
28
- | Keys | Functions |
29
- | ---- | --------- |
30
- | Tab | The field is focusable using the Tab key and follows the page tab sequence. |
31
- | Shift + Tab | Moves focus to the previous focusable component. |
32
-
33
- #### Screen readers
34
-
35
- This component uses the **`aria-labelledby`** attribute pointing to the label, and the **`aria-invalid`** attribute to detect incorrect values or status errors, which is set to “False” by default.
26
+ <AccessibilityTable keyboardRows={[
27
+ KeyboardRows.tabField,
28
+ KeyboardRows.shiftTabFocusPrevious,
29
+ ]} screenReaderRows={[
30
+ ScreenReaderRows.ariaLabelledByInvalidFalse,
31
+ ]} />
@@ -1,5 +1,7 @@
1
1
  import { Meta } from '@storybook/addon-docs/blocks';
2
2
  import * as TextFieldStories from './TextField.stories';
3
+ import AccessibilityTable from '../../utils/docUtils/AccessibilityTable';
4
+ import { KeyboardRows, ScreenReaderRows } from '../../utils/docUtils/accessibilityTableConstants';
3
5
 
4
6
  <Meta of={TextFieldStories} isTemplate />
5
7
 
@@ -21,15 +23,9 @@ This component can be used independently and does not require additional compone
21
23
 
22
24
  ### Accessibility
23
25
 
24
- #### Keyboard Navigation
25
-
26
- These keys provide additional functionality to the component.
27
-
28
- | Keys | Functions |
29
- | ---- | --------- |
30
- | Tab | The field is focusable using the Tab key and follows the page tab sequence. |
31
- | Shift + Tab | Moves focus to the previous focusable component. |
32
-
33
- #### Screen readers
34
-
35
- This component uses the **`aria-labelledby`** attribute pointing to the label, and the **`aria-invalid`** attribute to detect incorrect values or status errors, which is set to “False” by default.
26
+ <AccessibilityTable keyboardRows={[
27
+ KeyboardRows.tabField,
28
+ KeyboardRows.shiftTabFocusPrevious,
29
+ ]} screenReaderRows={[
30
+ ScreenReaderRows.ariaLabelledByInvalidFalse,
31
+ ]} />
@@ -1,5 +1,7 @@
1
1
  import { Meta } from '@storybook/addon-docs/blocks';
2
2
  import * as TimeFieldStories from './TimeField.stories';
3
+ import AccessibilityTable from '../../utils/docUtils/AccessibilityTable';
4
+ import { KeyboardRows, ScreenReaderRows } from '../../utils/docUtils/accessibilityTableConstants';
3
5
 
4
6
  <Meta of={TimeFieldStories} isTemplate />
5
7
 
@@ -16,21 +18,13 @@ and [useTimeFieldState](https://react-spectrum.adobe.com/react-stately/useTimeFi
16
18
 
17
19
  This component can be used independently and does not require additional components.
18
20
 
19
- #### Keyboard Navigation
20
-
21
- These keys provide additional functionality to the component.
22
-
23
- | Keys | Functions |
24
- | ---- | --------- |
25
- | Tab | Focuses the field and follows the page tab sequence. |
26
- | Shift + Tab | Moves focus to the previous focusable component. |
27
- | Up and down Arrow keys | When segments are focused, it increments and decrements time values |
28
- | Left and right arrows | Moves focus between segments. |
29
-
30
- #### Screen Readers
31
-
32
- This component uses the following attributes to assist screen readers:
33
-
34
- - The **`aria-label`** attribute is used to provide an accessible name.
35
- - The hidden input, TimeField, and all spin buttons have an **`aria-labelledby`** attribute pointing to the label ID, along with the **`aria-label`** attribute for an accessible name.
36
- - Each spin button has an **`aria-valuenow`**, **`aria-valuemin`**, and **`aria-valuemax`** to represent the current value, minimum allowed value, and maximum allowed value.
21
+ <AccessibilityTable keyboardRows={[
22
+ KeyboardRows.tabFocusesField,
23
+ KeyboardRows.shiftTabFocusPrevious,
24
+ { key: 'Up and down Arrow keys', description: 'When segments are focused, it increments and decrements time values.' },
25
+ { key: 'Left and right arrows', description: 'Moves focus between segments.' },
26
+ ]} screenReaderRows={[
27
+ ScreenReaderRows.ariaLabelAccessibleName,
28
+ 'The hidden input, TimeField, and all spin buttons have an **`aria-labelledby`** attribute pointing to the label ID, along with the **`aria-label`** attribute for an accessible name.',
29
+ 'Each spin button has an **`aria-valuenow`**, **`aria-valuemin`**, and **`aria-valuemax`** to represent the current value, minimum allowed value, and maximum allowed value.',
30
+ ]} />
@@ -1,5 +1,6 @@
1
1
  import { Meta } from '@storybook/addon-docs/blocks';
2
2
  import * as TooltipTriggerStories from './TooltipTrigger.stories';
3
+ import AccessibilityTable from '../../utils/docUtils/AccessibilityTable';
3
4
 
4
5
  <Meta of={TooltipTriggerStories} isTemplate />
5
6
 
@@ -19,6 +20,6 @@ This component requires the [Button](./?path=/docs/components-button--default) a
19
20
 
20
21
  ### Accessibility
21
22
 
22
- #### Screen Readers
23
-
24
- The trigger button uses the **`aria-describedby`** attribute with the tooltip container ID to announce the screen reader content when it becomes visible.
23
+ <AccessibilityTable screenReaderRows={[
24
+ 'The trigger button uses the **`aria-describedby`** attribute with the tooltip container ID to announce the screen reader content when it becomes visible.',
25
+ ]} />
@@ -151,5 +151,47 @@ declare const badges: {
151
151
  color: string;
152
152
  };
153
153
  };
154
+ tableBaseBadge: {
155
+ active: {
156
+ backgroundColor: string;
157
+ '& > span': {
158
+ color: any;
159
+ fontSize: string;
160
+ lineHeight: string;
161
+ };
162
+ };
163
+ warning: {
164
+ backgroundColor: string;
165
+ '& > span': {
166
+ color: any;
167
+ fontSize: string;
168
+ lineHeight: string;
169
+ };
170
+ };
171
+ critical: {
172
+ backgroundColor: string;
173
+ '& > span': {
174
+ color: any;
175
+ fontSize: string;
176
+ lineHeight: string;
177
+ };
178
+ };
179
+ healthy: {
180
+ backgroundColor: string;
181
+ '& > span': {
182
+ color: any;
183
+ fontSize: string;
184
+ lineHeight: string;
185
+ };
186
+ };
187
+ secondary: {
188
+ backgroundColor: string;
189
+ '& > span': {
190
+ color: any;
191
+ fontSize: string;
192
+ lineHeight: string;
193
+ };
194
+ };
195
+ };
154
196
  };
155
197
  export default badges;
@@ -110,6 +110,42 @@ var itemBadgeWithSlot = _objectSpread(_objectSpread({}, selectedItemBadge), {},
110
110
  }
111
111
  }
112
112
  });
113
+ var tableBaseBadgeSpanStyle = {
114
+ fontSize: '11.25px',
115
+ lineHeight: '1'
116
+ };
117
+ var tableBaseBadge = {
118
+ active: {
119
+ backgroundColor: "".concat(_onyxTokens.astroTokensDark.color.blue[500], " !important"),
120
+ '& > span': _objectSpread(_objectSpread({}, tableBaseBadgeSpanStyle), {}, {
121
+ color: _onyxTokens.astroTokensDark.color.black
122
+ })
123
+ },
124
+ warning: {
125
+ backgroundColor: "".concat(_onyxTokens.astroTokensDark.color.yellow[500], " !important"),
126
+ '& > span': _objectSpread(_objectSpread({}, tableBaseBadgeSpanStyle), {}, {
127
+ color: _onyxTokens.astroTokensDark.color.black
128
+ })
129
+ },
130
+ critical: {
131
+ backgroundColor: "".concat(_onyxTokens.astroTokensDark.color.red[500], " !important"),
132
+ '& > span': _objectSpread(_objectSpread({}, tableBaseBadgeSpanStyle), {}, {
133
+ color: _onyxTokens.astroTokensDark.color.black
134
+ })
135
+ },
136
+ healthy: {
137
+ backgroundColor: "".concat(_onyxTokens.astroTokensDark.color.green[500], " !important"),
138
+ '& > span': _objectSpread(_objectSpread({}, tableBaseBadgeSpanStyle), {}, {
139
+ color: _onyxTokens.astroTokensDark.color.black
140
+ })
141
+ },
142
+ secondary: {
143
+ backgroundColor: "".concat(_onyxTokens.astroTokensDark.color.gray[500], " !important"),
144
+ '& > span': _objectSpread(_objectSpread({}, tableBaseBadgeSpanStyle), {}, {
145
+ color: _onyxTokens.astroTokensDark.color.black
146
+ })
147
+ }
148
+ };
113
149
  var badges = {
114
150
  baseBadge: baseBadge,
115
151
  primary: primary,
@@ -154,6 +190,7 @@ var badges = {
154
190
  '& span': {
155
191
  color: 'font.base'
156
192
  }
157
- }
193
+ },
194
+ tableBaseBadge: tableBaseBadge
158
195
  };
159
196
  var _default = exports["default"] = badges;
@@ -25,5 +25,8 @@ declare const cards: {
25
25
  activeCard: {
26
26
  borderColor: string;
27
27
  };
28
+ tableWrapper: {
29
+ borderColor: any;
30
+ };
28
31
  };
29
32
  export default cards;
@@ -5,6 +5,7 @@ _Object$defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports["default"] = void 0;
8
+ var _onyxTokens = require("@pingux/onyx-tokens");
8
9
  var cards = {
9
10
  dark: {
10
11
  border: '1px solid',
@@ -31,6 +32,9 @@ var cards = {
31
32
  },
32
33
  activeCard: {
33
34
  borderColor: 'border.attachment'
35
+ },
36
+ tableWrapper: {
37
+ borderColor: _onyxTokens.astroTokensDark.color.common.border
34
38
  }
35
39
  };
36
40
  var _default = exports["default"] = cards;
@@ -48,6 +48,9 @@ export declare const text: {
48
48
  pageHeaderTitle: {
49
49
  color: any;
50
50
  };
51
+ headText: {
52
+ color: any;
53
+ };
51
54
  linkSelectFieldLabel: {
52
55
  color: any;
53
56
  };
@@ -56,6 +56,9 @@ var text = exports.text = {
56
56
  pageHeaderTitle: {
57
57
  color: _onyxTokens.astroTokensDark.color.gray[100]
58
58
  },
59
+ headText: {
60
+ color: _onyxTokens.astroTokensDark.color.font.base
61
+ },
59
62
  linkSelectFieldLabel: {
60
63
  color: _onyxTokens.astroTokensDark.color.font.link
61
64
  },
@@ -664,18 +664,41 @@ declare const _default: {
664
664
  };
665
665
  };
666
666
  caption: {
667
- color: string;
667
+ color: any;
668
+ borderBottomColor: any;
668
669
  };
669
670
  thead: {
671
+ borderBottomColor: any;
670
672
  '&.is-sticky': {
671
673
  boxShadow: string;
672
674
  };
673
675
  };
676
+ tbody: {
677
+ borderTopColor: any;
678
+ };
679
+ row: {
680
+ borderBottomColor: any;
681
+ '&.is-hovered': {
682
+ bg: any;
683
+ '& > td:last-of-type': {
684
+ bg: any;
685
+ };
686
+ };
687
+ '&:nth-of-type(odd)': {
688
+ bg: any;
689
+ '&.is-hovered': {
690
+ bg: any;
691
+ };
692
+ '& > td:last-of-type': {
693
+ bg: any;
694
+ };
695
+ };
696
+ };
674
697
  head: {
675
- color: string;
698
+ color: any;
676
699
  };
677
700
  data: {
678
- color: string;
701
+ color: any;
679
702
  };
680
703
  resizer: {
681
704
  backgroundColor: any;
@@ -7,7 +7,6 @@ _Object$defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports["default"] = void 0;
9
9
  var _onyxTokens = require("@pingux/onyx-tokens");
10
- var _colors = require("../colors");
11
10
  var _avatar = require("./avatar");
12
11
  var _callout = _interopRequireDefault(require("./callout"));
13
12
  var _footer = require("./footer");
@@ -262,18 +261,41 @@ var _default = exports["default"] = {
262
261
  }
263
262
  },
264
263
  caption: {
265
- color: 'text.secondary'
264
+ color: _onyxTokens.astroTokensDark.color.font.base,
265
+ borderBottomColor: _onyxTokens.astroTokensDark.color.common.border
266
266
  },
267
267
  thead: {
268
+ borderBottomColor: _onyxTokens.astroTokensDark.color.common.border,
268
269
  '&.is-sticky': {
269
- boxShadow: "0 1px 0 ".concat(_colors.colors.border.base)
270
+ boxShadow: "0 1px 0 ".concat(_onyxTokens.astroTokensDark.color.common.border)
271
+ }
272
+ },
273
+ tbody: {
274
+ borderTopColor: _onyxTokens.astroTokensDark.color.common.border
275
+ },
276
+ row: {
277
+ borderBottomColor: _onyxTokens.astroTokensDark.color.common.border,
278
+ '&.is-hovered': {
279
+ bg: _onyxTokens.astroTokensDark.color['table-row'].hover.bg,
280
+ '& > td:last-of-type': {
281
+ bg: _onyxTokens.astroTokensDark.color['table-row'].hover.bg
282
+ }
283
+ },
284
+ '&:nth-of-type(odd)': {
285
+ bg: _onyxTokens.astroTokensDark.color.common.bg.base,
286
+ '&.is-hovered': {
287
+ bg: _onyxTokens.astroTokensDark.color['table-row'].hover.bg
288
+ },
289
+ '& > td:last-of-type': {
290
+ bg: _onyxTokens.astroTokensDark.color.common.bg.base
291
+ }
270
292
  }
271
293
  },
272
294
  head: {
273
- color: 'text.secondary'
295
+ color: _onyxTokens.astroTokensDark.color.font.base
274
296
  },
275
297
  data: {
276
- color: 'text.secondary'
298
+ color: _onyxTokens.astroTokensDark.color.font.base
277
299
  },
278
300
  resizer: {
279
301
  backgroundColor: _onyxTokens.astroTokensDark.color.common['border-dark']