@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.
- package/lib/cjs/components/AIComponents/PromptInput/PromptInputReadMe.mdx +12 -15
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.mdx +13 -19
- package/lib/cjs/components/AccordionGroup/AccordionGroup.mdx +16 -17
- package/lib/cjs/components/ArrayField/ArrayField.mdx +10 -15
- package/lib/cjs/components/Badge/Badge.mdx +6 -8
- package/lib/cjs/components/Badge/Badge.styles.d.ts +152 -0
- package/lib/cjs/components/Badge/Badge.styles.js +9 -1
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.mdx +11 -17
- package/lib/cjs/components/Button/Button.mdx +8 -12
- package/lib/cjs/components/Calendar/Calendar.mdx +17 -22
- package/lib/cjs/components/Callout/Callout.mdx +8 -13
- package/lib/cjs/components/Card/Card.mdx +6 -8
- package/lib/cjs/components/CheckboxField/CheckboxField.mdx +11 -16
- package/lib/cjs/components/CodeEditor/CodeEditor.mdx +8 -13
- package/lib/cjs/components/CodeView/CodeView.mdx +5 -8
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.mdx +10 -13
- package/lib/cjs/components/ColorField/ColorField.mdx +13 -18
- package/lib/cjs/components/ComboBoxField/ComboBoxField.mdx +13 -15
- package/lib/cjs/components/CopyText/CopyText.mdx +6 -8
- package/lib/cjs/components/DataTable/DataTable.mdx +17 -22
- package/lib/cjs/components/DatePicker/DatePicker.mdx +20 -27
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.mdx +14 -19
- package/lib/cjs/components/ExpandableText/ExpandableText.mdx +9 -15
- package/lib/cjs/components/FileInputField/FileInputField.mdx +11 -16
- package/lib/cjs/components/Footer/Footer.mdx +9 -14
- package/lib/cjs/components/GridList/GridList.mdx +16 -21
- package/lib/cjs/components/HelpHint/HelpHint.mdx +8 -14
- package/lib/cjs/components/Icon/Icon.mdx +5 -3
- package/lib/cjs/components/IconButton/IconButton.mdx +7 -10
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.mdx +9 -15
- package/lib/cjs/components/Image/Image.mdx +4 -4
- package/lib/cjs/components/ImageUploadField/ImageUploadField.mdx +18 -24
- package/lib/cjs/components/Link/Link.mdx +5 -6
- package/lib/cjs/components/LinkSelectField/LinkSelectField.mdx +18 -24
- package/lib/cjs/components/ListItem/ListItem.mdx +6 -6
- package/lib/cjs/components/ListView/ListView.mdx +22 -23
- package/lib/cjs/components/Loader/Loader.mdx +6 -5
- package/lib/cjs/components/Menu/Menu.mdx +13 -18
- package/lib/cjs/components/Messages/Messages.mdx +9 -13
- package/lib/cjs/components/Modal/Modal.mdx +18 -19
- package/lib/cjs/components/MultivaluesField/MultivaluesField.mdx +14 -20
- package/lib/cjs/components/NavBar/NavBar.mdx +12 -17
- package/lib/cjs/components/NavSideBar/NavSideBar.mdx +12 -17
- package/lib/cjs/components/NavigationHeader/NavigationHeader.mdx +11 -16
- package/lib/cjs/components/NumberField/NumberField.mdx +16 -17
- package/lib/cjs/components/OverlayPanel/OverlayPanel.mdx +10 -14
- package/lib/cjs/components/Pagination/Pagination.js +4 -2
- package/lib/cjs/components/Pagination/Pagination.mdx +9 -13
- package/lib/cjs/components/Pagination/Pagination.styles.js +1 -1
- package/lib/cjs/components/PasswordField/PasswordField.mdx +10 -15
- package/lib/cjs/components/PopoverMenu/PopoverMenu.mdx +16 -22
- package/lib/cjs/components/ProgressBar/ProgressBar.mdx +6 -7
- package/lib/cjs/components/RadioGroupField/RadioGroupField.mdx +11 -17
- package/lib/cjs/components/RangeCalendar/RangeCalendar.mdx +17 -22
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.mdx +11 -16
- package/lib/cjs/components/SearchField/SearchField.mdx +8 -10
- package/lib/cjs/components/SelectField/SelectField.mdx +18 -23
- package/lib/cjs/components/Separator/Separator.mdx +4 -3
- package/lib/cjs/components/ServerErrorBoundary/ServerErrorBoundary.mdx +6 -8
- package/lib/cjs/components/SliderField/SliderField.mdx +12 -15
- package/lib/cjs/components/StatusIcon/StatusIcon.mdx +4 -3
- package/lib/cjs/components/Stepper/Stepper.mdx +18 -20
- package/lib/cjs/components/SwitchField/SwitchField.mdx +9 -14
- package/lib/cjs/components/TableBase/TableBase.js +4 -1
- package/lib/cjs/components/TableBase/TableBase.stories.js +8 -8
- package/lib/cjs/components/Tabs/Tabs.mdx +13 -18
- package/lib/cjs/components/TextAreaField/TextAreaField.mdx +8 -12
- package/lib/cjs/components/TextField/TextField.mdx +8 -12
- package/lib/cjs/components/TimeField/TimeField.mdx +12 -18
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.mdx +4 -3
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.d.ts +42 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.js +38 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/cards.d.ts +3 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/cards.js +4 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.d.ts +3 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/text.js +3 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +26 -3
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +27 -5
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +220 -18
- package/lib/cjs/styles/themes/next-gen/next-gen.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +202 -0
- package/lib/cjs/styles/themes/next-gen/variants/badges.js +42 -1
- package/lib/cjs/styles/themes/next-gen/variants/cards.d.ts +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/cards.js +3 -1
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.d.ts +11 -17
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.js +13 -17
- package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +6 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.js +6 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +11 -17
- package/lib/cjs/types/accessibilityTable.d.ts +8 -0
- package/lib/cjs/types/accessibilityTable.js +6 -0
- package/lib/cjs/types/index.d.ts +1 -0
- package/lib/cjs/types/index.js +75 -64
- package/lib/cjs/utils/docUtils/AccessibilityTable.d.ts +3 -0
- package/lib/cjs/utils/docUtils/AccessibilityTable.js +38 -0
- package/lib/cjs/utils/docUtils/AccessibilityTable.test.js +192 -0
- package/lib/cjs/utils/docUtils/accessibilityTableConstants.d.ts +130 -0
- package/lib/cjs/utils/docUtils/accessibilityTableConstants.js +137 -0
- package/lib/components/AIComponents/PromptInput/PromptInputReadMe.mdx +12 -15
- package/lib/components/AccordionGridGroup/AccordionGridGroup.mdx +13 -19
- package/lib/components/AccordionGroup/AccordionGroup.mdx +16 -17
- package/lib/components/ArrayField/ArrayField.mdx +10 -15
- package/lib/components/Badge/Badge.mdx +6 -8
- package/lib/components/Badge/Badge.styles.js +9 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.mdx +11 -17
- package/lib/components/Button/Button.mdx +8 -12
- package/lib/components/Calendar/Calendar.mdx +17 -22
- package/lib/components/Callout/Callout.mdx +8 -13
- package/lib/components/Card/Card.mdx +6 -8
- package/lib/components/CheckboxField/CheckboxField.mdx +11 -16
- package/lib/components/CodeEditor/CodeEditor.mdx +8 -13
- package/lib/components/CodeView/CodeView.mdx +5 -8
- package/lib/components/CollapsiblePanel/CollapsiblePanel.mdx +10 -13
- package/lib/components/ColorField/ColorField.mdx +13 -18
- package/lib/components/ComboBoxField/ComboBoxField.mdx +13 -15
- package/lib/components/CopyText/CopyText.mdx +6 -8
- package/lib/components/DataTable/DataTable.mdx +17 -22
- package/lib/components/DatePicker/DatePicker.mdx +20 -27
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.mdx +14 -19
- package/lib/components/ExpandableText/ExpandableText.mdx +9 -15
- package/lib/components/FileInputField/FileInputField.mdx +11 -16
- package/lib/components/Footer/Footer.mdx +9 -14
- package/lib/components/GridList/GridList.mdx +16 -21
- package/lib/components/HelpHint/HelpHint.mdx +8 -14
- package/lib/components/Icon/Icon.mdx +5 -3
- package/lib/components/IconButton/IconButton.mdx +7 -10
- package/lib/components/IconButtonToggle/IconButtonToggle.mdx +9 -15
- package/lib/components/Image/Image.mdx +4 -4
- package/lib/components/ImageUploadField/ImageUploadField.mdx +18 -24
- package/lib/components/Link/Link.mdx +5 -6
- package/lib/components/LinkSelectField/LinkSelectField.mdx +18 -24
- package/lib/components/ListItem/ListItem.mdx +6 -6
- package/lib/components/ListView/ListView.mdx +22 -23
- package/lib/components/Loader/Loader.mdx +6 -5
- package/lib/components/Menu/Menu.mdx +13 -18
- package/lib/components/Messages/Messages.mdx +9 -13
- package/lib/components/Modal/Modal.mdx +18 -19
- package/lib/components/MultivaluesField/MultivaluesField.mdx +14 -20
- package/lib/components/NavBar/NavBar.mdx +12 -17
- package/lib/components/NavSideBar/NavSideBar.mdx +12 -17
- package/lib/components/NavigationHeader/NavigationHeader.mdx +11 -16
- package/lib/components/NumberField/NumberField.mdx +16 -17
- package/lib/components/OverlayPanel/OverlayPanel.mdx +10 -14
- package/lib/components/Pagination/Pagination.js +4 -2
- package/lib/components/Pagination/Pagination.mdx +9 -13
- package/lib/components/Pagination/Pagination.styles.js +1 -1
- package/lib/components/PasswordField/PasswordField.mdx +10 -15
- package/lib/components/PopoverMenu/PopoverMenu.mdx +16 -22
- package/lib/components/ProgressBar/ProgressBar.mdx +6 -7
- package/lib/components/RadioGroupField/RadioGroupField.mdx +11 -17
- package/lib/components/RangeCalendar/RangeCalendar.mdx +17 -22
- package/lib/components/RockerButtonGroup/RockerButtonGroup.mdx +11 -16
- package/lib/components/SearchField/SearchField.mdx +8 -10
- package/lib/components/SelectField/SelectField.mdx +18 -23
- package/lib/components/Separator/Separator.mdx +4 -3
- package/lib/components/ServerErrorBoundary/ServerErrorBoundary.mdx +6 -8
- package/lib/components/SliderField/SliderField.mdx +12 -15
- package/lib/components/StatusIcon/StatusIcon.mdx +4 -3
- package/lib/components/Stepper/Stepper.mdx +18 -20
- package/lib/components/SwitchField/SwitchField.mdx +9 -14
- package/lib/components/TableBase/TableBase.js +4 -1
- package/lib/components/TableBase/TableBase.stories.js +8 -8
- package/lib/components/Tabs/Tabs.mdx +13 -18
- package/lib/components/TextAreaField/TextAreaField.mdx +8 -12
- package/lib/components/TextField/TextField.mdx +8 -12
- package/lib/components/TimeField/TimeField.mdx +12 -18
- package/lib/components/TooltipTrigger/TooltipTrigger.mdx +4 -3
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/badges.js +38 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/cards.js +4 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/text.js +3 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +27 -5
- package/lib/styles/themes/next-gen/next-gen.js +1 -1
- package/lib/styles/themes/next-gen/variants/badges.js +42 -1
- package/lib/styles/themes/next-gen/variants/cards.js +3 -1
- package/lib/styles/themes/next-gen/variants/tableBase.js +13 -17
- package/lib/styles/themes/next-gen/variants/text.js +6 -0
- package/lib/types/accessibilityTable.js +1 -0
- package/lib/types/index.js +1 -0
- package/lib/utils/docUtils/AccessibilityTable.js +30 -0
- package/lib/utils/docUtils/AccessibilityTable.test.js +190 -0
- package/lib/utils/docUtils/accessibilityTableConstants.js +130 -0
- 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: '
|
|
93
|
-
Failed: '
|
|
94
|
-
Rejected: '
|
|
95
|
-
Active: '
|
|
96
|
-
Inactive: '
|
|
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:
|
|
259
|
+
isSortable: false
|
|
260
260
|
}, {
|
|
261
261
|
name: 'Continent',
|
|
262
262
|
key: 'continent',
|
|
263
|
-
isSortable:
|
|
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:
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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;
|
|
@@ -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;
|
|
@@ -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:
|
|
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:
|
|
698
|
+
color: any;
|
|
676
699
|
};
|
|
677
700
|
data: {
|
|
678
|
-
color:
|
|
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:
|
|
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(
|
|
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:
|
|
295
|
+
color: _onyxTokens.astroTokensDark.color.font.base
|
|
274
296
|
},
|
|
275
297
|
data: {
|
|
276
|
-
color:
|
|
298
|
+
color: _onyxTokens.astroTokensDark.color.font.base
|
|
277
299
|
},
|
|
278
300
|
resizer: {
|
|
279
301
|
backgroundColor: _onyxTokens.astroTokensDark.color.common['border-dark']
|