@pingux/astro 2.9.2 → 2.13.0-alpha.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 (336) hide show
  1. package/README.md +6 -2
  2. package/lib/README.md +6 -2
  3. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.mdx +40 -0
  4. package/lib/cjs/components/AccordionGroup/Accordion.styles.js +1 -2
  5. package/lib/cjs/components/AccordionGroup/AccordionGroup.mdx +41 -0
  6. package/lib/cjs/components/ArrayField/ArrayField.mdx +34 -0
  7. package/lib/cjs/components/AstroWrapper/AstroWrapper.mdx +16 -0
  8. package/lib/cjs/components/Avatar/Avatar.mdx +14 -0
  9. package/lib/cjs/components/Badge/Badge.mdx +24 -0
  10. package/lib/cjs/components/Box/Box.d.ts +4 -0
  11. package/lib/cjs/components/Box/Box.js +4 -19
  12. package/lib/cjs/components/Box/Box.mdx +23 -0
  13. package/lib/cjs/components/Box/Box.styles.d.ts +6 -0
  14. package/lib/cjs/components/Box/Box.test.d.ts +1 -0
  15. package/lib/cjs/components/Box/Box.test.js +2 -6
  16. package/lib/cjs/components/Box/index.d.ts +1 -0
  17. package/lib/cjs/components/Bracket/Bracket.mdx +17 -0
  18. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.mdx +40 -0
  19. package/lib/cjs/components/Button/Button.mdx +40 -0
  20. package/lib/cjs/components/Button/Button.stories.js +30 -5
  21. package/lib/cjs/components/Button/Buttons.styles.js +25 -7
  22. package/lib/cjs/components/Calendar/Calendar.mdx +39 -0
  23. package/lib/cjs/components/Callout/Callout.mdx +28 -0
  24. package/lib/cjs/components/Card/Card.mdx +32 -0
  25. package/lib/cjs/components/CheckboxField/CheckboxField.mdx +42 -0
  26. package/lib/cjs/components/CodeView/CodeView.mdx +23 -0
  27. package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.mdx +29 -0
  28. package/lib/cjs/components/ColorField/ColorField.mdx +38 -0
  29. package/lib/cjs/components/ComboBoxField/ComboBoxField.mdx +66 -0
  30. package/lib/cjs/components/CopyText/CopyText.mdx +23 -0
  31. package/lib/cjs/components/DataTable/DataTable.mdx +54 -0
  32. package/lib/cjs/components/DatePicker/DatePicker.mdx +49 -0
  33. package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +2 -1
  34. package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.mdx +36 -0
  35. package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +29 -45
  36. package/lib/cjs/components/FileInputField/FileInputField.mdx +33 -0
  37. package/lib/cjs/components/HelpHint/HelpHint.js +145 -27
  38. package/lib/cjs/components/HelpHint/HelpHint.mdx +32 -0
  39. package/lib/cjs/components/HelpHint/HelpHint.stories.js +40 -7
  40. package/lib/cjs/components/HelpHint/HelpHint.styles.js +9 -1
  41. package/lib/cjs/components/HelpHint/HelpHint.test.js +202 -30
  42. package/lib/cjs/components/Icon/Icon.d.ts +4 -0
  43. package/lib/cjs/components/Icon/Icon.js +4 -27
  44. package/lib/cjs/components/Icon/Icon.mdx +49 -0
  45. package/lib/cjs/components/Icon/Icon.stories.d.ts +8 -0
  46. package/lib/cjs/components/Icon/Icon.test.d.ts +1 -0
  47. package/lib/cjs/components/Icon/index.d.ts +1 -0
  48. package/lib/cjs/components/IconBadge/IconBadge.mdx +14 -0
  49. package/lib/cjs/components/IconButton/IconButton.mdx +33 -0
  50. package/lib/cjs/components/IconButtonToggle/IconButtonToggle.mdx +31 -0
  51. package/lib/cjs/components/Image/Image.mdx +28 -0
  52. package/lib/cjs/components/ImageUploadField/ImageUploadField.mdx +38 -0
  53. package/lib/cjs/components/Link/Link.mdx +27 -0
  54. package/lib/cjs/components/Link/Link.styles.js +10 -0
  55. package/lib/cjs/components/LinkSelectField/LinkSelectField.mdx +47 -0
  56. package/lib/cjs/components/ListItem/ListItem.mdx +21 -0
  57. package/lib/cjs/components/ListView/ListView.mdx +44 -0
  58. package/lib/cjs/components/ListView/ListView.stories.js +93 -47
  59. package/lib/cjs/components/Loader/Loader.d.ts +4 -0
  60. package/lib/cjs/components/Loader/Loader.js +0 -14
  61. package/lib/cjs/components/Loader/Loader.mdx +29 -0
  62. package/lib/cjs/components/Loader/Loader.styles.d.ts +53 -0
  63. package/lib/cjs/components/Loader/Loader.test.d.ts +1 -0
  64. package/lib/cjs/components/Loader/index.d.ts +1 -0
  65. package/lib/cjs/components/Menu/Menu.mdx +43 -0
  66. package/lib/cjs/components/Messages/Messages.mdx +35 -0
  67. package/lib/cjs/components/Modal/Modal.mdx +59 -0
  68. package/lib/cjs/components/MultivaluesField/MultivaluesField.mdx +44 -0
  69. package/lib/cjs/components/NavBar/NavBar.mdx +42 -0
  70. package/lib/cjs/components/NumberField/NumberField.mdx +39 -0
  71. package/lib/cjs/components/OverlayPanel/OverlayPanel.mdx +39 -0
  72. package/lib/cjs/components/PasswordField/PasswordField.mdx +33 -0
  73. package/lib/cjs/components/PopoverContainer/PopoverContainer.d.ts +9 -0
  74. package/lib/cjs/components/PopoverContainer/PopoverContainer.js +7 -38
  75. package/lib/cjs/components/PopoverContainer/index.d.ts +2 -0
  76. package/lib/cjs/components/PopoverMenu/PopoverMenu.mdx +53 -0
  77. package/lib/cjs/components/RadioGroupField/RadioGroupField.mdx +41 -0
  78. package/lib/cjs/components/RequirementsList/RequirementsList.mdx +17 -0
  79. package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.mdx +36 -0
  80. package/lib/cjs/components/ScrollBox/ScrollBox.mdx +17 -0
  81. package/lib/cjs/components/SearchField/SearchField.mdx +33 -0
  82. package/lib/cjs/components/SelectField/SelectField.mdx +46 -0
  83. package/lib/cjs/components/Separator/Separator.mdx +19 -0
  84. package/lib/cjs/components/Stepper/Stepper.mdx +41 -0
  85. package/lib/cjs/components/SwitchField/SwitchField.mdx +36 -0
  86. package/lib/cjs/components/Table/Table.mdx +30 -0
  87. package/lib/cjs/components/TableCell/TableCell.d.ts +12 -0
  88. package/lib/cjs/components/TableCell/TableCell.js +0 -5
  89. package/lib/cjs/components/TableCell/TableCell.test.d.ts +1 -0
  90. package/lib/cjs/components/TableCell/index.d.ts +1 -0
  91. package/lib/cjs/components/Tabs/Tabs.mdx +40 -0
  92. package/lib/cjs/components/Text/Text.d.ts +4 -0
  93. package/lib/cjs/components/Text/Text.js +3 -7
  94. package/lib/cjs/components/Text/Text.mdx +13 -0
  95. package/lib/cjs/components/Text/Text.stories.d.ts +6 -0
  96. package/lib/cjs/components/Text/Text.styles.d.ts +286 -0
  97. package/lib/cjs/components/Text/Text.test.d.ts +1 -0
  98. package/lib/cjs/components/Text/index.d.ts +1 -0
  99. package/lib/cjs/components/TextAreaField/TextAreaField.mdx +34 -0
  100. package/lib/cjs/components/TextField/TextField.mdx +34 -0
  101. package/lib/cjs/components/TimeZonePicker/TimeZonePicker.mdx +18 -0
  102. package/lib/cjs/components/TooltipTrigger/Tooltip.styles.js +2 -1
  103. package/lib/cjs/components/TooltipTrigger/TooltipTrigger.js +2 -0
  104. package/lib/cjs/components/TooltipTrigger/TooltipTrigger.mdx +23 -0
  105. package/lib/cjs/components/TooltipTrigger/TooltipTrigger.test.js +47 -1
  106. package/lib/cjs/docs/Props.stories.mdx +35 -0
  107. package/lib/cjs/docs/Welcome.stories.mdx +149 -0
  108. package/lib/cjs/docs/hooks/useDebounce.stories.mdx +59 -0
  109. package/lib/cjs/docs/hooks/useModalState.stories.mdx +83 -0
  110. package/lib/cjs/docs/hooks/useOverlayPanelState.stories.mdx +84 -0
  111. package/lib/cjs/docs/theme/AstroNanoTheme.stories.mdx +174 -0
  112. package/lib/cjs/docs/theme/AstroTheme.stories.mdx +20 -0
  113. package/lib/cjs/docs/theme/CustomThemes.stories.mdx +70 -0
  114. package/lib/cjs/docs/theme/StylingGuideline.stories.mdx +116 -0
  115. package/lib/cjs/docs/utils/messagesReducer.stories.mdx +64 -0
  116. package/lib/cjs/experimental/EditButton/EditButton.js +63 -0
  117. package/lib/cjs/experimental/EditButton/EditButton.mdx +9 -0
  118. package/lib/cjs/experimental/EditButton/EditButton.stories.js +91 -0
  119. package/lib/cjs/experimental/EditButton/EditButton.test.js +71 -0
  120. package/lib/cjs/experimental/EditButton/index.js +14 -0
  121. package/lib/cjs/experimental/ListView/ListView.mdx +47 -0
  122. package/lib/cjs/experimental/ListView/ListView.stories.js +742 -0
  123. package/lib/cjs/experimental/ListViewItem/ListViewItem.js +23 -5
  124. package/lib/cjs/experimental/ListViewItem/ListViewItem.mdx +36 -0
  125. package/lib/cjs/experimental/ListViewItem/ListViewItem.stories.js +31 -7
  126. package/lib/cjs/experimental/ListViewItem/ListViewItem.test.js +51 -7
  127. package/lib/cjs/experimental/ListViewItem/controls/ListViewItemEditButton.js +1 -4
  128. package/lib/cjs/experimental/ListViewItem/controls/ListViewItemEditButton.stories.js +4 -1
  129. package/lib/cjs/experimental/ListViewItem/controls/ListViewItemSwitchField.js +1 -0
  130. package/lib/cjs/experimental/ListViewItem/listViewItemAttributes.js +28 -13
  131. package/lib/cjs/experimental/PanelHeader/PanelHeader.js +88 -0
  132. package/lib/cjs/experimental/PanelHeader/PanelHeader.mdx +19 -0
  133. package/lib/cjs/experimental/PanelHeader/PanelHeader.stories.js +71 -0
  134. package/lib/cjs/experimental/PanelHeader/PanelHeader.styles.js +38 -0
  135. package/lib/cjs/experimental/PanelHeader/PanelHeader.test.js +46 -0
  136. package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderCloseButton.js +34 -0
  137. package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderCloseButton.stories.js +31 -0
  138. package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderCloseButton.test.js +25 -0
  139. package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderMenu.js +27 -0
  140. package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderMenu.stories.js +36 -0
  141. package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderMenu.test.js +58 -0
  142. package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderSwitchField.js +27 -0
  143. package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderSwitchField.stories.js +41 -0
  144. package/lib/cjs/experimental/PanelHeader/controls/PanelHeaderSwitchField.test.js +25 -0
  145. package/lib/cjs/experimental/PanelHeader/index.js +14 -0
  146. package/lib/cjs/experimental/README.stories.mdx +7 -0
  147. package/lib/cjs/experimental/SaveBar/SaveBar.mdx +13 -0
  148. package/lib/cjs/experimental/recipes/ListAndPanel.stories.js +1 -1
  149. package/lib/cjs/hooks/usePropWarning/usePropWarning.js +1 -1
  150. package/lib/cjs/hooks/useStatusClasses/useStatusClasses.js +2 -2
  151. package/lib/cjs/hooks/useTShirtSize/useTShirtSize.js +1 -1
  152. package/lib/cjs/index.d.ts +173 -0
  153. package/lib/cjs/index.js +53 -1
  154. package/lib/cjs/recipes/{AttributesAndPingOneMapping.stories.js → AttributeMapping.stories.js} +392 -132
  155. package/lib/cjs/styles/colors.js +1 -1
  156. package/lib/cjs/styles/variants/README.md +98 -0
  157. package/lib/cjs/styles/variants/variants.js +2 -0
  158. package/lib/cjs/types/box.d.ts +10 -0
  159. package/lib/cjs/types/box.js +6 -0
  160. package/lib/cjs/types/icon.d.ts +34 -0
  161. package/lib/cjs/types/icon.js +6 -0
  162. package/lib/cjs/types/index.d.ts +7 -0
  163. package/lib/cjs/types/index.js +86 -0
  164. package/lib/cjs/types/loader.d.ts +14 -0
  165. package/lib/cjs/types/loader.js +6 -0
  166. package/lib/cjs/types/mdx.d.js +1 -0
  167. package/lib/cjs/types/popoverContainer.d.ts +23 -0
  168. package/lib/cjs/types/popoverContainer.js +6 -0
  169. package/lib/cjs/types/shared/dom.d.ts +9 -0
  170. package/lib/cjs/types/shared/dom.js +6 -0
  171. package/lib/cjs/types/shared/index.d.ts +3 -0
  172. package/lib/cjs/types/shared/index.js +42 -0
  173. package/lib/cjs/types/shared/style.d.ts +11 -0
  174. package/lib/cjs/types/shared/style.js +6 -0
  175. package/lib/cjs/types/shared/test.d.ts +3 -0
  176. package/lib/cjs/types/shared/test.js +6 -0
  177. package/lib/cjs/types/shared/utils.d.ts +1 -0
  178. package/lib/cjs/types/shared/utils.js +6 -0
  179. package/lib/cjs/types/tableCell.d.ts +5 -0
  180. package/lib/cjs/types/tableCell.js +6 -0
  181. package/lib/cjs/types/text.d.ts +3 -0
  182. package/lib/cjs/types/text.js +6 -0
  183. package/lib/cjs/utils/designUtils/figmaLinks.js +2 -1
  184. package/lib/components/AccordionGridGroup/AccordionGridGroup.mdx +40 -0
  185. package/lib/components/AccordionGroup/Accordion.styles.js +1 -2
  186. package/lib/components/AccordionGroup/AccordionGroup.mdx +41 -0
  187. package/lib/components/ArrayField/ArrayField.mdx +34 -0
  188. package/lib/components/AstroWrapper/AstroWrapper.mdx +16 -0
  189. package/lib/components/Avatar/Avatar.mdx +14 -0
  190. package/lib/components/Badge/Badge.mdx +24 -0
  191. package/lib/components/Box/Box.js +4 -19
  192. package/lib/components/Box/Box.mdx +23 -0
  193. package/lib/components/Box/Box.test.js +2 -6
  194. package/lib/components/Bracket/Bracket.mdx +17 -0
  195. package/lib/components/Breadcrumbs/Breadcrumbs.mdx +40 -0
  196. package/lib/components/Button/Button.mdx +40 -0
  197. package/lib/components/Button/Button.stories.js +30 -5
  198. package/lib/components/Button/Buttons.styles.js +25 -7
  199. package/lib/components/Calendar/Calendar.mdx +39 -0
  200. package/lib/components/Callout/Callout.mdx +28 -0
  201. package/lib/components/Card/Card.mdx +32 -0
  202. package/lib/components/CheckboxField/CheckboxField.mdx +42 -0
  203. package/lib/components/CodeView/CodeView.mdx +23 -0
  204. package/lib/components/CollapsiblePanel/CollapsiblePanel.mdx +29 -0
  205. package/lib/components/ColorField/ColorField.mdx +38 -0
  206. package/lib/components/ComboBoxField/ComboBoxField.mdx +66 -0
  207. package/lib/components/CopyText/CopyText.mdx +23 -0
  208. package/lib/components/DataTable/DataTable.mdx +54 -0
  209. package/lib/components/DatePicker/DatePicker.mdx +49 -0
  210. package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +2 -1
  211. package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.mdx +36 -0
  212. package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.stories.js +29 -45
  213. package/lib/components/FileInputField/FileInputField.mdx +33 -0
  214. package/lib/components/HelpHint/HelpHint.js +148 -30
  215. package/lib/components/HelpHint/HelpHint.mdx +32 -0
  216. package/lib/components/HelpHint/HelpHint.stories.js +37 -6
  217. package/lib/components/HelpHint/HelpHint.styles.js +9 -1
  218. package/lib/components/HelpHint/HelpHint.test.js +202 -30
  219. package/lib/components/Icon/Icon.js +2 -25
  220. package/lib/components/Icon/Icon.mdx +49 -0
  221. package/lib/components/IconBadge/IconBadge.mdx +14 -0
  222. package/lib/components/IconButton/IconButton.mdx +33 -0
  223. package/lib/components/IconButtonToggle/IconButtonToggle.mdx +31 -0
  224. package/lib/components/Image/Image.mdx +28 -0
  225. package/lib/components/ImageUploadField/ImageUploadField.mdx +38 -0
  226. package/lib/components/Link/Link.mdx +27 -0
  227. package/lib/components/Link/Link.styles.js +10 -0
  228. package/lib/components/LinkSelectField/LinkSelectField.mdx +47 -0
  229. package/lib/components/ListItem/ListItem.mdx +21 -0
  230. package/lib/components/ListView/ListView.mdx +44 -0
  231. package/lib/components/ListView/ListView.stories.js +94 -48
  232. package/lib/components/Loader/Loader.js +0 -14
  233. package/lib/components/Loader/Loader.mdx +29 -0
  234. package/lib/components/Menu/Menu.mdx +43 -0
  235. package/lib/components/Messages/Messages.mdx +35 -0
  236. package/lib/components/Modal/Modal.mdx +59 -0
  237. package/lib/components/MultivaluesField/MultivaluesField.mdx +44 -0
  238. package/lib/components/NavBar/NavBar.mdx +42 -0
  239. package/lib/components/NumberField/NumberField.mdx +39 -0
  240. package/lib/components/OverlayPanel/OverlayPanel.mdx +39 -0
  241. package/lib/components/PasswordField/PasswordField.mdx +33 -0
  242. package/lib/components/PopoverContainer/PopoverContainer.js +7 -38
  243. package/lib/components/PopoverMenu/PopoverMenu.mdx +53 -0
  244. package/lib/components/RadioGroupField/RadioGroupField.mdx +41 -0
  245. package/lib/components/RequirementsList/RequirementsList.mdx +17 -0
  246. package/lib/components/RockerButtonGroup/RockerButtonGroup.mdx +36 -0
  247. package/lib/components/ScrollBox/ScrollBox.mdx +17 -0
  248. package/lib/components/SearchField/SearchField.mdx +33 -0
  249. package/lib/components/SelectField/SelectField.mdx +46 -0
  250. package/lib/components/Separator/Separator.mdx +19 -0
  251. package/lib/components/Stepper/Stepper.mdx +41 -0
  252. package/lib/components/SwitchField/SwitchField.mdx +36 -0
  253. package/lib/components/Table/Table.mdx +30 -0
  254. package/lib/components/TableCell/TableCell.js +0 -5
  255. package/lib/components/Tabs/Tabs.mdx +40 -0
  256. package/lib/components/Text/Text.js +3 -7
  257. package/lib/components/Text/Text.mdx +13 -0
  258. package/lib/components/TextAreaField/TextAreaField.mdx +34 -0
  259. package/lib/components/TextField/TextField.mdx +34 -0
  260. package/lib/components/TimeZonePicker/TimeZonePicker.mdx +18 -0
  261. package/lib/components/TooltipTrigger/Tooltip.styles.js +1 -1
  262. package/lib/components/TooltipTrigger/TooltipTrigger.js +2 -0
  263. package/lib/components/TooltipTrigger/TooltipTrigger.mdx +23 -0
  264. package/lib/components/TooltipTrigger/TooltipTrigger.test.js +48 -2
  265. package/lib/docs/Props.stories.mdx +35 -0
  266. package/lib/docs/Welcome.stories.mdx +149 -0
  267. package/lib/docs/hooks/useDebounce.stories.mdx +59 -0
  268. package/lib/docs/hooks/useModalState.stories.mdx +83 -0
  269. package/lib/docs/hooks/useOverlayPanelState.stories.mdx +84 -0
  270. package/lib/docs/theme/AstroNanoTheme.stories.mdx +174 -0
  271. package/lib/docs/theme/AstroTheme.stories.mdx +20 -0
  272. package/lib/docs/theme/CustomThemes.stories.mdx +70 -0
  273. package/lib/docs/theme/StylingGuideline.stories.mdx +116 -0
  274. package/lib/docs/utils/messagesReducer.stories.mdx +64 -0
  275. package/lib/experimental/EditButton/EditButton.js +50 -0
  276. package/lib/experimental/EditButton/EditButton.mdx +9 -0
  277. package/lib/experimental/EditButton/EditButton.stories.js +75 -0
  278. package/lib/experimental/EditButton/EditButton.test.js +68 -0
  279. package/lib/experimental/EditButton/index.js +1 -0
  280. package/lib/experimental/ListView/ListView.mdx +47 -0
  281. package/lib/experimental/ListView/ListView.stories.js +729 -0
  282. package/lib/experimental/ListViewItem/ListViewItem.js +24 -6
  283. package/lib/experimental/ListViewItem/ListViewItem.mdx +36 -0
  284. package/lib/experimental/ListViewItem/ListViewItem.stories.js +28 -5
  285. package/lib/experimental/ListViewItem/ListViewItem.test.js +45 -1
  286. package/lib/experimental/ListViewItem/controls/ListViewItemEditButton.js +1 -4
  287. package/lib/experimental/ListViewItem/controls/ListViewItemEditButton.stories.js +4 -1
  288. package/lib/experimental/ListViewItem/controls/ListViewItemSwitchField.js +1 -0
  289. package/lib/experimental/ListViewItem/listViewItemAttributes.js +25 -12
  290. package/lib/experimental/PanelHeader/PanelHeader.js +75 -0
  291. package/lib/experimental/PanelHeader/PanelHeader.mdx +19 -0
  292. package/lib/experimental/PanelHeader/PanelHeader.stories.js +59 -0
  293. package/lib/experimental/PanelHeader/PanelHeader.styles.js +30 -0
  294. package/lib/experimental/PanelHeader/PanelHeader.test.js +43 -0
  295. package/lib/experimental/PanelHeader/controls/PanelHeaderCloseButton.js +25 -0
  296. package/lib/experimental/PanelHeader/controls/PanelHeaderCloseButton.stories.js +21 -0
  297. package/lib/experimental/PanelHeader/controls/PanelHeaderCloseButton.test.js +22 -0
  298. package/lib/experimental/PanelHeader/controls/PanelHeaderMenu.js +18 -0
  299. package/lib/experimental/PanelHeader/controls/PanelHeaderMenu.stories.js +26 -0
  300. package/lib/experimental/PanelHeader/controls/PanelHeaderMenu.test.js +55 -0
  301. package/lib/experimental/PanelHeader/controls/PanelHeaderSwitchField.js +18 -0
  302. package/lib/experimental/PanelHeader/controls/PanelHeaderSwitchField.stories.js +32 -0
  303. package/lib/experimental/PanelHeader/controls/PanelHeaderSwitchField.test.js +22 -0
  304. package/lib/experimental/PanelHeader/index.js +1 -0
  305. package/lib/experimental/README.stories.mdx +7 -0
  306. package/lib/experimental/SaveBar/SaveBar.mdx +13 -0
  307. package/lib/experimental/recipes/ListAndPanel.stories.js +1 -1
  308. package/lib/hooks/usePropWarning/usePropWarning.js +1 -1
  309. package/lib/hooks/useStatusClasses/useStatusClasses.js +2 -2
  310. package/lib/hooks/useTShirtSize/useTShirtSize.js +1 -1
  311. package/lib/index.js +6 -0
  312. package/lib/recipes/AttributeMapping.stories.js +540 -0
  313. package/lib/styles/colors.js +1 -1
  314. package/lib/styles/variants/README.md +98 -0
  315. package/lib/styles/variants/variants.js +2 -0
  316. package/lib/types/box.js +1 -0
  317. package/lib/types/icon.js +1 -0
  318. package/lib/types/index.js +7 -0
  319. package/lib/types/loader.js +1 -0
  320. package/lib/types/mdx.d.js +0 -0
  321. package/lib/types/popoverContainer.js +1 -0
  322. package/lib/types/shared/dom.js +1 -0
  323. package/lib/types/shared/index.js +3 -0
  324. package/lib/types/shared/style.js +1 -0
  325. package/lib/types/shared/test.js +1 -0
  326. package/lib/types/shared/utils.js +1 -0
  327. package/lib/types/tableCell.js +1 -0
  328. package/lib/types/text.js +1 -0
  329. package/lib/utils/designUtils/figmaLinks.js +2 -1
  330. package/package.json +20 -6
  331. package/CHANGELOG.md +0 -2565
  332. package/NOTICE +0 -2481
  333. package/NOTICE.html +0 -9174
  334. package/lib/cjs/recipes/AttributeMappingReadOnlyField.stories.js +0 -254
  335. package/lib/recipes/AttributeMappingReadOnlyField.stories.js +0 -243
  336. package/lib/recipes/AttributesAndPingOneMapping.stories.js +0 -282
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
3
+ var _typeof3 = require("@babel/runtime-corejs3/helpers/typeof");
4
4
  var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
5
5
  var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
6
6
  var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
@@ -17,13 +17,13 @@ _Object$defineProperty(exports, "__esModule", {
17
17
  exports["default"] = void 0;
18
18
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
19
19
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
20
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/typeof"));
20
21
  var _react = _interopRequireWildcard(require("react"));
21
- var _propTypes = _interopRequireDefault(require("prop-types"));
22
22
  var _hooks = require("../../hooks");
23
23
  var _Box = _interopRequireDefault(require("../Box"));
24
24
  var _react2 = require("@emotion/react");
25
25
  function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
26
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
26
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
27
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
28
28
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
29
29
  var Icon = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
@@ -32,7 +32,7 @@ var Icon = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
32
32
  sx = props.sx;
33
33
  var _useTShirtSize = (0, _hooks.useTShirtSize)(props),
34
34
  sizeProps = _useTShirtSize.sizeProps;
35
- var title = props.title || (IconComponent.type ? {
35
+ var title = props.title || ((0, _typeof2["default"])(IconComponent) === 'object' && 'type' in IconComponent ? {
36
36
  name: IconComponent.type.name
37
37
  } : null);
38
38
  return (0, _react2.jsx)(_Box["default"], (0, _extends2["default"])({
@@ -48,29 +48,6 @@ var Icon = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
48
48
  }, sx)
49
49
  }));
50
50
  });
51
- Icon.propTypes = {
52
- /** The icon to render. */
53
- icon: _propTypes["default"].elementType.isRequired,
54
- /**
55
- * The size of the icon container. If given a number value, it will be converted to pixels.
56
- * Tshirt sizing is recommended and can be passed to the size prop as 'xs', 'sm' , 'md'
57
- * rendering 15, 20, and 25 pixel svg containers. */
58
- size: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]),
59
- /** A theme-aware prop to set the icon's color. */
60
- color: _propTypes["default"].string,
61
- /**
62
- * The title associated with the icon. It is recommended that icons always have an associated
63
- * title in order to allow a better user experience for those using screen readers.
64
- * The **`id`** in the title object will be the id of the title and
65
- * is also what will be supplied to the **`aria-labelledby`** attribute in the SVG.
66
- * The **`name`** in the title object will be the content of the title.
67
- * This prop can only be used when importing the icon from [@pingux/mdi-react](https://www.npmjs.com/package/@pingux/mdi-react).
68
- * */
69
- title: _propTypes["default"].shape({
70
- id: _propTypes["default"].string,
71
- name: _propTypes["default"].string
72
- })
73
- };
74
51
  Icon.defaultProps = {
75
52
  size: 20
76
53
  };
@@ -0,0 +1,49 @@
1
+ import { Meta } from '@storybook/addon-docs';
2
+
3
+ <Meta title="Components/Icon/Icon" />
4
+
5
+ # Icon
6
+
7
+ Icons are small images that represent concepts or capabilities that often provide information or lead users to other pages within the application.
8
+
9
+ Icon should be:
10
+ - Centrally aligned when used in a group with an appropriate amount of space between them.
11
+ - Paired with text or a tooltip when its intention is not immediately evident.
12
+ - Relatively sized when used with text.
13
+
14
+ Icon shouldn’t:
15
+ - Include letters in the icon design.
16
+ - Be randomly scaled to fit the layout.
17
+
18
+ Regarding sizing, this component uses the **1em x 1em** container by default and maintains the aspect ratios. You can:
19
+
20
+ - Use SVGR to import SVG files as React components and then pass them into icon components.
21
+ - Use the theme to color the icon.
22
+
23
+ **Note**: Ensure that the dimensions in Webpack configuration file are set to false, or the icon cannot be resized using the size property.
24
+ See [SVGR docs](https://react-svgr.com/docs/options/#dimensions) for more information.
25
+ - Import icons from the [Material UI Icon Library](https://materialdesignicons.com/)
26
+
27
+ It is built on top of the [Box from Theme-UI](https://theme-ui.com/components/box/) and uses the available [props from Theme-UI](https://theme-ui.com/sx-prop).
28
+
29
+ ### Required Components
30
+
31
+ This component can be used independently and does not require additional components.
32
+
33
+ ### Accessibility
34
+
35
+ #### Labelling
36
+
37
+ The Icon component accepts the title prop:
38
+ `title={{ id: 'unique id', name: 'short description of the icon'}}`.
39
+ The `name` will be passed inside `<title>` element of the SVG.
40
+ The `id` is optional. If not specified, it will be generated automatically.
41
+ This is needed to make SVG icon accessible.
42
+
43
+ #### Screen Readers
44
+
45
+ If the icon has a title associated with it, the **`aria-labelledby`** attribute is used to provide the label ID.
46
+
47
+
48
+
49
+
@@ -0,0 +1,8 @@
1
+ import { Story } from '@storybook/react';
2
+ import { IconProps } from '../../types';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
+ export default _default;
5
+ export declare const Default: Story<IconProps>;
6
+ export declare const SVGIcons: Story;
7
+ export declare const Sizes: Story;
8
+ export declare const CommonlyUsed: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './Icon';
@@ -0,0 +1,14 @@
1
+ import { Meta } from '@storybook/addon-docs';
2
+
3
+ <Meta title="Components/IconBadge/IconBadge" />
4
+
5
+ # IconBadge
6
+
7
+ IconBadge is a pair of overlapping icons. It should be paired with text or a [tooltip](./?path=/story/components-tooltiptrigger--icon-with-tooltip) when its meaning is unclear.
8
+ It should only have Icon as a child component.
9
+
10
+ The component follows the same pattern as icons. Check [Icon](./?path=/docs/components-icon--default) component for best practices.
11
+
12
+ ### Required Components
13
+
14
+ This component requires the [Icon](./?path=/story/components-icon--default) component.
@@ -0,0 +1,33 @@
1
+ import { Meta } from '@storybook/addon-docs';
2
+
3
+ <Meta title="Components/IconButton/IconButton" />
4
+
5
+ # IconButton
6
+
7
+ The component combines the functionality of a [Button](./?path=/docs/components-button--default) and an [Icon](./?path=/story/components-icon--default).
8
+ This component applies specific styles necessary for icons and changes the behavior pattern for buttons and ensures compatibility across browsers and devices.
9
+
10
+ IconButtons should:
11
+ - Use meaningful symbols that represent a basic idea or concept.
12
+ - Include a title rendered as a tooltip when more descriptive information is needed.
13
+ - Use an **aria-label** or **aria-labelledby** attribute to provide a label or label ID.
14
+
15
+ IconButtons should not include anything other than an [Icon](.?path=/docs/components-icon--default) as a child component. If you need to pair an icon with text inside a button, review the [Button](./?path=/docs/components-button--default) component.
16
+
17
+ ### Required Components
18
+
19
+ This component requires the [Icon](./?path=/story/components-icon--default) component.
20
+
21
+ ### Accessibility
22
+ This component adheres to [WAI-ARIA Button](https://www.w3.org/TR/wai-aria-practices-1.1/examples/button/button.html) accessibility guidelines.
23
+
24
+ #### Keyboard Navigation
25
+
26
+ | Key | Functions |
27
+ | ---- | ---- |
28
+ | Space or Enter | Selects the icon button. |
29
+ | Tab | Focuses the icon button and follows the page tab sequence. |
30
+
31
+ #### Screen Readers
32
+
33
+ This component uses the **`aria-label`** to provide an accessible name.
@@ -0,0 +1,31 @@
1
+ import { Meta } from '@storybook/addon-docs';
2
+
3
+ <Meta title="Components/IconButtonToggle/IconButtonToggle" />
4
+
5
+ # IconButtonToggle
6
+
7
+ The component combines the functionality of an IconButton and two conditionally toggled Icons.
8
+ It uses [Icon](./?path=/story/components-icon--default) component under the hood and users can change its property via `iconProps` prop.
9
+
10
+ ### Required Components
11
+
12
+ This component can be used independently and does not require additional components.
13
+
14
+ ### Accessibility
15
+ This component adheres to [WAI-ARIA Button](https://www.w3.org/TR/wai-aria-practices-1.1/examples/button/button.html) accessibility guidelines.
16
+
17
+ #### Keyboard Navigation
18
+
19
+ | Key | Functions |
20
+ | ---- | ---- |
21
+ | Space or Enter | Selects the component. |
22
+ | Tab | Focuses the component and follows the page tab sequence. |
23
+
24
+ #### Screen Readers
25
+
26
+ This component uses the following attributes to assist screen readers:
27
+ - This component uses the **`aria-label`** to provide an accessible name, which toggles based on the toggle state.
28
+ - The **`aria-labelledby`** attribute is used to provide the label ID.
29
+
30
+
31
+
@@ -0,0 +1,28 @@
1
+ import { Meta } from '@storybook/addon-docs';
2
+
3
+ <Meta title="Components/Image/Image" />
4
+
5
+ # Image
6
+
7
+ Image fields are used to display images, such as photos, screen captures, and diagrams.
8
+
9
+ Images should:
10
+ - Be clear and easy to read if text is included.
11
+ - Aim to be one of the five ratios: 1:1, 3:2, 16:9, 21:9, 3:1.
12
+
13
+ Images should not:
14
+ - Include long paragraphs of text over the image. Ideally, when placing text over an image, the text contrast ratio should meet [AA standards](https://www.w3.org/WAI/WCAG21/Techniques/general/G18).
15
+ - Be used to represent concepts or capabilities using small and simple graphics. Use an [Icon](./?path=/docs/components-icon--default) instead.
16
+
17
+ ### Required Components
18
+
19
+ This component can be used independently and does not require additional components.
20
+
21
+ ### Accessibility
22
+
23
+ #### Screen Readers
24
+
25
+ This component uses the following attributes to assist screen readers:
26
+ - The **`alt`** attribute specifies an alternate text for the image.
27
+
28
+
@@ -0,0 +1,38 @@
1
+ import { Meta } from '@storybook/addon-docs';
2
+
3
+ <Meta title="Components/ImageUploadField/ImageUploadField" />
4
+
5
+ # ImageUploadField
6
+
7
+ The ImageUploadField component is a variation of the [FileInputField](./?path=/docs/form-fileinputfield--default) used for uploading images.
8
+
9
+ ### Required components
10
+
11
+ This component requires the OverlayProvider component.
12
+
13
+ ### Accessibility
14
+
15
+ #### Keyboard Navigation
16
+
17
+ These keys provide additional functionality to the component.
18
+
19
+ | Keys | Functions |
20
+ | ---- | --------- |
21
+ | Tab | Focuses the field and follows the page tab sequence. |
22
+ | Space or Enter | When the trigger is focused, the file browser opens. When the menu item is focused, it triggers an action. |
23
+ | Down arrow | After uploading, pressing the Down arrow with a focused trigger opens the popover menu. |
24
+ | Arrow keys | Can be used to move the selection in the popover. |
25
+ | Shift + Tab | Moves focus to the previous focusable component.|
26
+ | Home(Fn + Right Arrow Key) Or Control/Command + Home | Shifts the focus to the first item in the listbox. |
27
+ | End(Fn + Left Arrow Key) Or Control/Command + End | Shifts the focus to the last item in the listbox. |
28
+ | Esc | Pressing the escape key closes the popover menu and adds focus to the trigger. |
29
+
30
+ #### Screen readers
31
+
32
+ This component uses the following attributes to assist screen readers:
33
+
34
+ - The input uses the **`aria-labelledby`** attribute to reference the label.
35
+ - The trigger button uses the **`aria-label`** attribute to provide an accessible name.
36
+ - The **`aria-expanded`** attribute is used to indicate the expansion or collapse of the popover.
37
+ - The **`aria-haspopup`** attribute indicates the type of popup content as a menu. Once expanded, **`aria-controls`** is added to the button pointing to the popover.
38
+ - The menu uses vertical **`aria-orientation`** by default, and each menu item has a “False” **`aria-disabled`** value.
@@ -0,0 +1,27 @@
1
+ import { Meta } from '@storybook/addon-docs';
2
+
3
+ <Meta title="Components/Link/Link" />
4
+
5
+ # Link
6
+
7
+ This basic link component is built on [Link from Theme-UI](https://theme-ui.com/components/link) and [useLink](https://react-spectrum.adobe.com/react-aria/useLink.html) from React Aria.
8
+
9
+ Links should:
10
+ - Have the same font size as surrounding text when used inline.
11
+ - Be considerate of the screen reader. Write descriptive link text and alternate text.
12
+
13
+ Link shouldn’t be used in titles, and preferably used within the body text.
14
+
15
+ ### Required Components
16
+
17
+ This component can be used independently and does not require additional components.
18
+
19
+ ### Accessibility
20
+ This component adheres to [WAI-ARIA Link](https://www.w3.org/WAI/ARIA/apg/patterns/link/) accessibility guidelines.
21
+
22
+ #### Keyboard Navigation
23
+
24
+ | Key | Functions |
25
+ | ---- | ---- |
26
+ | Space or Enter | Selects the link. |
27
+ | Tab | Focuses the link and follows the page tab sequence. |
@@ -42,8 +42,18 @@ var web = _objectSpread(_objectSpread({}, app), {}, {
42
42
  },
43
43
  '&.is-focused': _objectSpread({}, _Buttons.focusWithCroppedOutline)
44
44
  });
45
+ var popover = _objectSpread(_objectSpread({}, app), {}, {
46
+ color: 'white',
47
+ fontSize: 'sm',
48
+ fontWeight: 1,
49
+ textDecoration: 'underline',
50
+ '&.is-hovered': {
51
+ cursor: 'pointer'
52
+ }
53
+ });
45
54
  var _default = {
46
55
  app: app,
56
+ popover: popover,
47
57
  web: web
48
58
  };
49
59
  exports["default"] = _default;
@@ -0,0 +1,47 @@
1
+ import { Meta } from '@storybook/addon-docs';
2
+
3
+ <Meta title="Components/LinkSelectField/LinkSelectField" />
4
+
5
+ # LinkSelectField
6
+
7
+ The LinkSelectField component collects information from a dropdown menu of options using [useSelect](https://react-spectrum.adobe.com/react-aria/useSelect.html) from React Aria and
8
+ [useSelectState](https://react-spectrum.adobe.com/react-stately/useSelectState.html) from React Stately.
9
+ It does not rely on native browser or mobile implementations.
10
+
11
+ This component should be used to limit the options available to users.
12
+ It should not be used:
13
+ - When there are fewer than 3 options for the user to choose from:
14
+ - Use the [RadioGroupField](./?path=/docs/form-radiogroupfield--default) if users must choose 1 option.
15
+ - Use the [CheckBoxField](./?path=/docs/form-checkboxfield--default) if users can choose more than 1 option.
16
+ - If the exact input value is important to specify, use the [TextField](./?path=/docs/form-textfield--default).
17
+
18
+ ### Required components
19
+
20
+ This component requires the OverlayProvider and Item originating from [react-stately/collections](https://react-spectrum.adobe.com/react-stately/collections.html).
21
+
22
+ ### Accessibility
23
+
24
+ #### Keyboard Navigation
25
+
26
+ These keys provide additional functionality to the component.
27
+
28
+ | Keys | Functions |
29
+ | ---- | --------- |
30
+ | Tab | Focuses the field and follows the page tab sequence. |
31
+ | Space or Enter | When the trigger is focused, the menu opens or closes. When the menu item is focused, it selects the listbox option. |
32
+ | Arrow keys | Can be used to move the selection in the listbox. |
33
+ | Shift + Tab | Moves focus to the previous focusable component.|
34
+ | Home(Fn + Right Arrow Key) Or Control/Command + Home | Shifts the focus to the first item in the listbox. |
35
+ | End(Fn + Left Arrow Key) Or Control/Command + End | Shifts the focus to the last item in the listbox. |
36
+ | Esc | Pressing the escape key closes the popover menu and adds focus to the previously focused component.|
37
+
38
+ #### Screen readers
39
+
40
+ This component uses the following attributes to assist screen readers:
41
+
42
+ - The trigger button uses the **`aria-expanded`** attribute to indicate the expansion or collapse of the popover menu, the **`aria-label`** attribute to provide an accessible name, and the **`aria-labelledby`** attribute to reference the label.
43
+ - The **`aria-haspopup`** attribute indicates the type of popup content as a listbox.
44
+ - A visually hidden DismissButton is added for screen reader users to close the overlay in the absence of a dismiss button.
45
+ - The listbox in the popover uses the **`aria-labelledby`** attribute, which also references the label.
46
+ - Each option uses the **`aria-selected`** attribute to indicate the selection state, **`aria-posinset`** to give the option’s position in the current set of list items, and **`aria-setsize`** to define the current set of options.
47
+ - The **`aria-disabled`** attribute value is “False” for each option, by default.
@@ -0,0 +1,21 @@
1
+ import { Meta } from '@storybook/addon-docs';
2
+
3
+ <Meta title="Components/ListItem/ListItem" />
4
+
5
+ # ListItem
6
+
7
+ ListItems are items that display within the [ListView](./?path=/docs/components-listview--default) component.
8
+ This component accepts most of its styling properties from [Styled System](https://styled-system.com/table/).
9
+
10
+ ### Required Components
11
+
12
+ This component can be used independently and does not require additional components.
13
+
14
+ ### Accessibility
15
+
16
+ #### Keyboard Navigation
17
+
18
+ | Key | Functions |
19
+ | ---- | ---- |
20
+ | Space or Enter | Selects the item. |
21
+ | Tab | Focuses item and follows the page tab sequence. |
@@ -0,0 +1,44 @@
1
+ import { Meta } from '@storybook/addon-docs';
2
+
3
+ <Meta title="Components/ListView/ListView" />
4
+
5
+ # ListView
6
+
7
+ ListViews are used to display a list of items. Users can select, view, or edit items in this list.
8
+ This virtualized component supports asynchronous data in infinitely scrollable lists.
9
+
10
+ This component should:
11
+ - Be used to list items that contain a significant amount of information within them.
12
+ - Be able to access ListItem information.
13
+
14
+ It shouldn’t be used to list items that only have a single piece of information.
15
+
16
+ ### Required Components
17
+
18
+ This component requires [ListItem](./?path=/docs/components-listitem--default).
19
+
20
+ ### Accessibility
21
+
22
+ This component should adhere to the [WAI-ARIA ListBox](https://www.w3.org/WAI/ARIA/apg/patterns/listbox/) accessibility guidelines.
23
+
24
+ #### Keyboard Navigation
25
+
26
+ These keys provide additional functionality to the component.
27
+
28
+ | Key | Functions |
29
+ | ---- | ---- |
30
+ | Space or Enter | Selects the item. |
31
+ | Tab | Focuses item and follows the page tab sequence. |
32
+ | Shift + Tab | Moves focus to the previous focusable component. |
33
+ | Arrow keys | Can be used to move the selection in the menu. |
34
+ | Home(Fn + Right Arrow Key) Or Control/Command + Home | Shifts the focus to the first row. |
35
+ | End(Fn + Left Arrow Key) Or Control/Command + End | Shifts the focus to the last visible row. |
36
+
37
+ #### Screen Readers
38
+
39
+ This component uses the following attributes to assist screen readers:
40
+ - The **`aria-label`** attribute is used to provide an accessible name.
41
+ - The **`aria-rowcount`** and **`aria-columncount`** attributes are used to indicate the total number of rows and columns in the grid structure.
42
+ - The **`aria-multiselectable`** attribute is used to indicate that users can toggle between items in the grid.
43
+ - Each ListViewItem uses the **`aria-rowindex`** attribute, which defines a component's position in the total number of rows.
44
+ - Each item also uses the aria-label, **`aria-colindex`** attributes to indicate the component’s column position and aria-selected to indicate the currently selected state.