@transferwise/components 0.0.0-experimental-4f2af7f → 0.0.0-experimental-8bbf3ee

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 (263) hide show
  1. package/build/actionOption/ActionOption.js.map +1 -1
  2. package/build/actionOption/ActionOption.mjs.map +1 -1
  3. package/build/checkboxOption/CheckboxOption.js.map +1 -1
  4. package/build/checkboxOption/CheckboxOption.mjs.map +1 -1
  5. package/build/index.js +0 -2
  6. package/build/index.js.map +1 -1
  7. package/build/index.mjs +0 -1
  8. package/build/index.mjs.map +1 -1
  9. package/build/legacylistItem/LegacyListItem.js.map +1 -1
  10. package/build/legacylistItem/LegacyListItem.mjs.map +1 -1
  11. package/build/main.css +1 -771
  12. package/build/navigationOption/NavigationOption.js.map +1 -1
  13. package/build/navigationOption/NavigationOption.mjs.map +1 -1
  14. package/build/navigationOptionsList/NavigationOptionsList.js.map +1 -1
  15. package/build/navigationOptionsList/NavigationOptionsList.mjs.map +1 -1
  16. package/build/radioOption/RadioOption.js.map +1 -1
  17. package/build/radioOption/RadioOption.mjs.map +1 -1
  18. package/build/styles/button/Button.css +1 -1
  19. package/build/styles/main.css +1 -771
  20. package/build/summary/Summary.js +0 -8
  21. package/build/summary/Summary.js.map +1 -1
  22. package/build/summary/Summary.mjs +0 -8
  23. package/build/summary/Summary.mjs.map +1 -1
  24. package/build/switchOption/SwitchOption.js +0 -8
  25. package/build/switchOption/SwitchOption.js.map +1 -1
  26. package/build/switchOption/SwitchOption.mjs +0 -8
  27. package/build/switchOption/SwitchOption.mjs.map +1 -1
  28. package/build/types/actionOption/ActionOption.d.ts +0 -8
  29. package/build/types/actionOption/ActionOption.d.ts.map +1 -1
  30. package/build/types/checkboxOption/CheckboxOption.d.ts +0 -8
  31. package/build/types/checkboxOption/CheckboxOption.d.ts.map +1 -1
  32. package/build/types/index.d.ts +0 -2
  33. package/build/types/index.d.ts.map +1 -1
  34. package/build/types/legacylistItem/LegacyListItem.d.ts +0 -8
  35. package/build/types/legacylistItem/LegacyListItem.d.ts.map +1 -1
  36. package/build/types/navigationOption/NavigationOption.d.ts +0 -8
  37. package/build/types/navigationOption/NavigationOption.d.ts.map +1 -1
  38. package/build/types/navigationOptionsList/NavigationOptionsList.d.ts +0 -9
  39. package/build/types/navigationOptionsList/NavigationOptionsList.d.ts.map +1 -1
  40. package/build/types/radioOption/RadioOption.d.ts +0 -8
  41. package/build/types/radioOption/RadioOption.d.ts.map +1 -1
  42. package/build/types/summary/Summary.d.ts +0 -8
  43. package/build/types/summary/Summary.d.ts.map +1 -1
  44. package/build/types/switchOption/SwitchOption.d.ts +0 -8
  45. package/build/types/switchOption/SwitchOption.d.ts.map +1 -1
  46. package/package.json +1 -1
  47. package/src/actionButton/ActionButton.story.tsx +1 -1
  48. package/src/actionOption/ActionOption.story.tsx +0 -4
  49. package/src/actionOption/ActionOption.tsx +0 -8
  50. package/src/avatar/Avatar.story.tsx +1 -1
  51. package/src/avatarWrapper/AvatarWrapper.story.tsx +1 -1
  52. package/src/badge/Badge.story.tsx +1 -1
  53. package/src/button/Button.css +1 -1
  54. package/src/button/Button.less +1 -1
  55. package/src/button/Button.story.tsx +46 -10
  56. package/src/button/LegacyButton.story.tsx +1 -1
  57. package/src/checkboxOption/CheckboxOption.story.tsx +0 -4
  58. package/src/checkboxOption/CheckboxOption.tsx +0 -8
  59. package/src/index.ts +0 -15
  60. package/src/legacylistItem/LegacyListItem.story.tsx +1 -5
  61. package/src/legacylistItem/LegacyListItem.tests.story.tsx +1 -2
  62. package/src/legacylistItem/LegacyListItem.tsx +0 -8
  63. package/src/list/List.story.tsx +3 -13
  64. package/src/main.css +1 -771
  65. package/src/main.less +0 -1
  66. package/src/navigationOption/NavigationOption.story.tsx +1 -4
  67. package/src/navigationOption/NavigationOption.tsx +0 -8
  68. package/src/navigationOptionsList/NavigationOptionsList.story.tsx +0 -4
  69. package/src/navigationOptionsList/NavigationOptionsList.tsx +0 -9
  70. package/src/radioOption/RadioOption.story.tsx +0 -4
  71. package/src/radioOption/RadioOption.tsx +0 -8
  72. package/src/select/Select.story.tsx +1 -1
  73. package/src/summary/Summary.story.tsx +0 -4
  74. package/src/summary/Summary.tsx +0 -8
  75. package/src/switchOption/SwitchOption.story.tsx +1 -4
  76. package/src/switchOption/SwitchOption.tsx +0 -8
  77. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js +0 -56
  78. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js.map +0 -1
  79. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs +0 -54
  80. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs.map +0 -1
  81. package/build/listItem/AvatarLayout/ListItemAvatarLayout.js +0 -23
  82. package/build/listItem/AvatarLayout/ListItemAvatarLayout.js.map +0 -1
  83. package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs +0 -21
  84. package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs.map +0 -1
  85. package/build/listItem/AvatarView/ListItemAvatarView.js +0 -23
  86. package/build/listItem/AvatarView/ListItemAvatarView.js.map +0 -1
  87. package/build/listItem/AvatarView/ListItemAvatarView.mjs +0 -21
  88. package/build/listItem/AvatarView/ListItemAvatarView.mjs.map +0 -1
  89. package/build/listItem/Button/ListItemButton.js +0 -43
  90. package/build/listItem/Button/ListItemButton.js.map +0 -1
  91. package/build/listItem/Button/ListItemButton.mjs +0 -41
  92. package/build/listItem/Button/ListItemButton.mjs.map +0 -1
  93. package/build/listItem/Checkbox/ListItemCheckbox.js +0 -30
  94. package/build/listItem/Checkbox/ListItemCheckbox.js.map +0 -1
  95. package/build/listItem/Checkbox/ListItemCheckbox.mjs +0 -28
  96. package/build/listItem/Checkbox/ListItemCheckbox.mjs.map +0 -1
  97. package/build/listItem/IconButton/ListItemIconButton.js +0 -56
  98. package/build/listItem/IconButton/ListItemIconButton.js.map +0 -1
  99. package/build/listItem/IconButton/ListItemIconButton.mjs +0 -54
  100. package/build/listItem/IconButton/ListItemIconButton.mjs.map +0 -1
  101. package/build/listItem/Image/ListItemImage.js +0 -31
  102. package/build/listItem/Image/ListItemImage.js.map +0 -1
  103. package/build/listItem/Image/ListItemImage.mjs +0 -29
  104. package/build/listItem/Image/ListItemImage.mjs.map +0 -1
  105. package/build/listItem/ListItem.js +0 -309
  106. package/build/listItem/ListItem.js.map +0 -1
  107. package/build/listItem/ListItem.mjs +0 -304
  108. package/build/listItem/ListItem.mjs.map +0 -1
  109. package/build/listItem/ListItemContext.js +0 -8
  110. package/build/listItem/ListItemContext.js.map +0 -1
  111. package/build/listItem/ListItemContext.mjs +0 -6
  112. package/build/listItem/ListItemContext.mjs.map +0 -1
  113. package/build/listItem/Navigation/ListItemNavigation.js +0 -44
  114. package/build/listItem/Navigation/ListItemNavigation.js.map +0 -1
  115. package/build/listItem/Navigation/ListItemNavigation.mjs +0 -42
  116. package/build/listItem/Navigation/ListItemNavigation.mjs.map +0 -1
  117. package/build/listItem/Prompt/ListItemPrompt.js +0 -59
  118. package/build/listItem/Prompt/ListItemPrompt.js.map +0 -1
  119. package/build/listItem/Prompt/ListItemPrompt.mjs +0 -54
  120. package/build/listItem/Prompt/ListItemPrompt.mjs.map +0 -1
  121. package/build/listItem/Radio/ListItemRadio.js +0 -30
  122. package/build/listItem/Radio/ListItemRadio.js.map +0 -1
  123. package/build/listItem/Radio/ListItemRadio.mjs +0 -28
  124. package/build/listItem/Radio/ListItemRadio.mjs.map +0 -1
  125. package/build/listItem/Switch/ListItemSwitch.js +0 -30
  126. package/build/listItem/Switch/ListItemSwitch.js.map +0 -1
  127. package/build/listItem/Switch/ListItemSwitch.mjs +0 -28
  128. package/build/listItem/Switch/ListItemSwitch.mjs.map +0 -1
  129. package/build/listItem/useListItemControl.js +0 -22
  130. package/build/listItem/useListItemControl.js.map +0 -1
  131. package/build/listItem/useListItemControl.mjs +0 -20
  132. package/build/listItem/useListItemControl.mjs.map +0 -1
  133. package/build/listItem/useListItemMedia.js +0 -21
  134. package/build/listItem/useListItemMedia.js.map +0 -1
  135. package/build/listItem/useListItemMedia.mjs +0 -19
  136. package/build/listItem/useListItemMedia.mjs.map +0 -1
  137. package/build/styles/listItem/ListItem.css +0 -770
  138. package/build/styles/listItem/ListItem.grid.css +0 -370
  139. package/build/styles/listItem/Prompt/ListItemPrompt.css +0 -157
  140. package/build/types/listItem/AdditionalInfo/ListItemAdditionalInfo.d.ts +0 -15
  141. package/build/types/listItem/AdditionalInfo/ListItemAdditionalInfo.d.ts.map +0 -1
  142. package/build/types/listItem/AdditionalInfo/index.d.ts +0 -3
  143. package/build/types/listItem/AdditionalInfo/index.d.ts.map +0 -1
  144. package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts +0 -18
  145. package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts.map +0 -1
  146. package/build/types/listItem/AvatarLayout/index.d.ts +0 -3
  147. package/build/types/listItem/AvatarLayout/index.d.ts.map +0 -1
  148. package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts +0 -16
  149. package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts.map +0 -1
  150. package/build/types/listItem/AvatarView/index.d.ts +0 -3
  151. package/build/types/listItem/AvatarView/index.d.ts.map +0 -1
  152. package/build/types/listItem/Button/ListItemButton.d.ts +0 -20
  153. package/build/types/listItem/Button/ListItemButton.d.ts.map +0 -1
  154. package/build/types/listItem/Button/index.d.ts +0 -3
  155. package/build/types/listItem/Button/index.d.ts.map +0 -1
  156. package/build/types/listItem/Checkbox/ListItemCheckbox.d.ts +0 -14
  157. package/build/types/listItem/Checkbox/ListItemCheckbox.d.ts.map +0 -1
  158. package/build/types/listItem/Checkbox/index.d.ts +0 -3
  159. package/build/types/listItem/Checkbox/index.d.ts.map +0 -1
  160. package/build/types/listItem/IconButton/ListItemIconButton.d.ts +0 -18
  161. package/build/types/listItem/IconButton/ListItemIconButton.d.ts.map +0 -1
  162. package/build/types/listItem/IconButton/index.d.ts +0 -3
  163. package/build/types/listItem/IconButton/index.d.ts.map +0 -1
  164. package/build/types/listItem/Image/ListItemImage.d.ts +0 -25
  165. package/build/types/listItem/Image/ListItemImage.d.ts.map +0 -1
  166. package/build/types/listItem/Image/index.d.ts +0 -3
  167. package/build/types/listItem/Image/index.d.ts.map +0 -1
  168. package/build/types/listItem/ListItem.d.ts +0 -111
  169. package/build/types/listItem/ListItem.d.ts.map +0 -1
  170. package/build/types/listItem/ListItemContext.d.ts +0 -21
  171. package/build/types/listItem/ListItemContext.d.ts.map +0 -1
  172. package/build/types/listItem/Navigation/ListItemNavigation.d.ts +0 -15
  173. package/build/types/listItem/Navigation/ListItemNavigation.d.ts.map +0 -1
  174. package/build/types/listItem/Navigation/index.d.ts +0 -3
  175. package/build/types/listItem/Navigation/index.d.ts.map +0 -1
  176. package/build/types/listItem/Prompt/ListItemPrompt.d.ts +0 -16
  177. package/build/types/listItem/Prompt/ListItemPrompt.d.ts.map +0 -1
  178. package/build/types/listItem/Prompt/index.d.ts +0 -3
  179. package/build/types/listItem/Prompt/index.d.ts.map +0 -1
  180. package/build/types/listItem/Radio/ListItemRadio.d.ts +0 -14
  181. package/build/types/listItem/Radio/ListItemRadio.d.ts.map +0 -1
  182. package/build/types/listItem/Radio/index.d.ts +0 -3
  183. package/build/types/listItem/Radio/index.d.ts.map +0 -1
  184. package/build/types/listItem/Switch/ListItemSwitch.d.ts +0 -14
  185. package/build/types/listItem/Switch/ListItemSwitch.d.ts.map +0 -1
  186. package/build/types/listItem/Switch/index.d.ts +0 -3
  187. package/build/types/listItem/Switch/index.d.ts.map +0 -1
  188. package/build/types/listItem/_stories/helpers.d.ts +0 -27
  189. package/build/types/listItem/_stories/helpers.d.ts.map +0 -1
  190. package/build/types/listItem/_stories/subcomponents.d.ts +0 -18
  191. package/build/types/listItem/_stories/subcomponents.d.ts.map +0 -1
  192. package/build/types/listItem/index.d.ts +0 -14
  193. package/build/types/listItem/index.d.ts.map +0 -1
  194. package/build/types/listItem/test-utils.d.ts +0 -7
  195. package/build/types/listItem/test-utils.d.ts.map +0 -1
  196. package/build/types/listItem/useListItemControl.d.ts +0 -5
  197. package/build/types/listItem/useListItemControl.d.ts.map +0 -1
  198. package/build/types/listItem/useListItemMedia.d.ts +0 -6
  199. package/build/types/listItem/useListItemMedia.d.ts.map +0 -1
  200. package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.spec.tsx +0 -56
  201. package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.story.tsx +0 -198
  202. package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.tsx +0 -36
  203. package/src/listItem/AdditionalInfo/index.ts +0 -2
  204. package/src/listItem/AvatarLayout/ListItemAvatarLayout.spec.tsx +0 -59
  205. package/src/listItem/AvatarLayout/ListItemAvatarLayout.story.tsx +0 -124
  206. package/src/listItem/AvatarLayout/ListItemAvatarLayout.tsx +0 -27
  207. package/src/listItem/AvatarLayout/index.ts +0 -2
  208. package/src/listItem/AvatarView/ListItemAvatarView.spec.tsx +0 -75
  209. package/src/listItem/AvatarView/ListItemAvatarView.story.tsx +0 -339
  210. package/src/listItem/AvatarView/ListItemAvatarView.tsx +0 -27
  211. package/src/listItem/AvatarView/index.ts +0 -2
  212. package/src/listItem/Button/ListItemButton.spec.tsx +0 -68
  213. package/src/listItem/Button/ListItemButton.story.tsx +0 -473
  214. package/src/listItem/Button/ListItemButton.tsx +0 -56
  215. package/src/listItem/Button/index.ts +0 -2
  216. package/src/listItem/Checkbox/ListItemCheckbox.spec.tsx +0 -82
  217. package/src/listItem/Checkbox/ListItemCheckbox.story.tsx +0 -128
  218. package/src/listItem/Checkbox/ListItemCheckbox.tsx +0 -33
  219. package/src/listItem/Checkbox/index.ts +0 -2
  220. package/src/listItem/IconButton/ListItemIconButton.spec.tsx +0 -119
  221. package/src/listItem/IconButton/ListItemIconButton.story.tsx +0 -284
  222. package/src/listItem/IconButton/ListItemIconButton.tsx +0 -73
  223. package/src/listItem/IconButton/index.ts +0 -2
  224. package/src/listItem/Image/ListItemImage.spec.tsx +0 -30
  225. package/src/listItem/Image/ListItemImage.story.tsx +0 -80
  226. package/src/listItem/Image/ListItemImage.tsx +0 -46
  227. package/src/listItem/Image/index.ts +0 -2
  228. package/src/listItem/ListItem.css +0 -770
  229. package/src/listItem/ListItem.grid.css +0 -370
  230. package/src/listItem/ListItem.grid.less +0 -622
  231. package/src/listItem/ListItem.less +0 -287
  232. package/src/listItem/ListItem.spec.tsx +0 -1511
  233. package/src/listItem/ListItem.tsx +0 -438
  234. package/src/listItem/ListItemContext.tsx +0 -26
  235. package/src/listItem/Navigation/ListItemNavigation.spec.tsx +0 -59
  236. package/src/listItem/Navigation/ListItemNavigation.story.tsx +0 -112
  237. package/src/listItem/Navigation/ListItemNavigation.tsx +0 -39
  238. package/src/listItem/Navigation/index.ts +0 -2
  239. package/src/listItem/Prompt/ListItemPrompt.css +0 -157
  240. package/src/listItem/Prompt/ListItemPrompt.less +0 -134
  241. package/src/listItem/Prompt/ListItemPrompt.spec.tsx +0 -36
  242. package/src/listItem/Prompt/ListItemPrompt.story.tsx +0 -204
  243. package/src/listItem/Prompt/ListItemPrompt.tsx +0 -32
  244. package/src/listItem/Prompt/index.ts +0 -2
  245. package/src/listItem/Radio/ListItemRadio.spec.tsx +0 -66
  246. package/src/listItem/Radio/ListItemRadio.story.tsx +0 -111
  247. package/src/listItem/Radio/ListItemRadio.tsx +0 -33
  248. package/src/listItem/Radio/index.ts +0 -2
  249. package/src/listItem/Switch/ListItemSwitch.spec.tsx +0 -47
  250. package/src/listItem/Switch/ListItemSwitch.story.tsx +0 -79
  251. package/src/listItem/Switch/ListItemSwitch.tsx +0 -33
  252. package/src/listItem/Switch/index.ts +0 -2
  253. package/src/listItem/_stories/ListItem.focus.test.story.tsx +0 -265
  254. package/src/listItem/_stories/ListItem.layout.test.story.tsx +0 -354
  255. package/src/listItem/_stories/ListItem.scenarios.story.tsx +0 -228
  256. package/src/listItem/_stories/ListItem.story.tsx +0 -774
  257. package/src/listItem/_stories/ListItem.variants.test.story.tsx +0 -271
  258. package/src/listItem/_stories/helpers.tsx +0 -53
  259. package/src/listItem/_stories/subcomponents.tsx +0 -139
  260. package/src/listItem/index.ts +0 -14
  261. package/src/listItem/test-utils.tsx +0 -33
  262. package/src/listItem/useListItemControl.tsx +0 -18
  263. package/src/listItem/useListItemMedia.tsx +0 -16
@@ -1,56 +0,0 @@
1
- 'use strict';
2
-
3
- var clsx = require('clsx');
4
- var React = require('react');
5
- var IconButton$1 = require('../../iconButton/IconButton.js');
6
- var useListItemControl = require('../useListItemControl.js');
7
- var ListItemContext = require('../ListItemContext.js');
8
- var jsxRuntime = require('react/jsx-runtime');
9
-
10
- const IconButton = function ({
11
- priority = 'minimal',
12
- 'aria-label': ariaLabel,
13
- ...props
14
- }) {
15
- const {
16
- partiallyInteractive,
17
- ...restProps
18
- } = props;
19
- const {
20
- ids,
21
- props: itemProps
22
- } = React.useContext(ListItemContext.ListItemContext);
23
- const {
24
- baseItemProps
25
- } = useListItemControl.useListItemControl('icon-button', {
26
- partiallyInteractive,
27
- ...restProps
28
- });
29
- const getAriaProps = () => {
30
- const labelIds = [itemProps.inverted ? ids.subtitle : ids.title, itemProps.inverted ? ids.title : ids.subtitle, itemProps.inverted ? ids.valueSubtitle : ids.valueTitle, itemProps.inverted ? ids.valueTitle : ids.valueSubtitle].join(' ');
31
- const descriptorIds = [ids.additionalInfo, ids.prompt].join(' ');
32
- if (ariaLabel) {
33
- return {
34
- 'aria-label': ariaLabel,
35
- 'aria-describedby': labelIds.concat(descriptorIds)
36
- };
37
- }
38
- return {
39
- 'aria-labelledby': labelIds,
40
- 'aria-describedby': descriptorIds
41
- };
42
- };
43
- return /*#__PURE__*/jsxRuntime.jsx(IconButton$1.default, {
44
- ...restProps,
45
- ...getAriaProps(),
46
- className: clsx.clsx('wds-list-item-control', !partiallyInteractive && props.href && 'wds-list-item-control_pseudo-element'),
47
- id: ids.control,
48
- size: 40,
49
- priority: priority,
50
- disabled: baseItemProps.disabled
51
- });
52
- };
53
- IconButton.displayName = 'ListItem.IconButton';
54
-
55
- exports.IconButton = IconButton;
56
- //# sourceMappingURL=ListItemIconButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ListItemIconButton.js","sources":["../../../src/listItem/IconButton/ListItemIconButton.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { useContext, type ReactNode } from 'react';\nimport IconButtonComp, { type IconButtonProps } from '../../iconButton';\nimport { useListItemControl } from '../useListItemControl';\nimport { ListItemContext } from '../ListItemContext';\n\nexport type ListItemIconButtonProps = Pick<\n IconButtonProps,\n 'priority' | 'type' | 'onClick' | 'href' | 'target' | 'aria-label'\n> & {\n children: ReactNode;\n partiallyInteractive?: boolean;\n};\n\n/**\n * This component allows for rendering a IconButton control. It's a thin wrapper around the\n * [IconButton component](https://storybook.wise.design/?path=/docs/actions-iconbutton--docs), but offers only\n * a subset of its features in line with the ListItem's constraints. <br />\n * <br />\n * Please refer to the [Design documentation](https://wise.design/components/list-item---icon-button) for details.\n */\nexport const IconButton = function ({\n priority = 'minimal',\n 'aria-label': ariaLabel,\n ...props\n}: ListItemIconButtonProps) {\n const { partiallyInteractive, ...restProps } = props;\n\n const { ids, props: itemProps } = useContext(ListItemContext);\n const { baseItemProps } = useListItemControl('icon-button', {\n partiallyInteractive,\n ...restProps,\n });\n\n const getAriaProps = () => {\n const labelIds = [\n itemProps.inverted ? ids.subtitle : ids.title,\n itemProps.inverted ? ids.title : ids.subtitle,\n itemProps.inverted ? ids.valueSubtitle : ids.valueTitle,\n itemProps.inverted ? ids.valueTitle : ids.valueSubtitle,\n ].join(' ');\n const descriptorIds = [ids.additionalInfo, ids.prompt].join(' ');\n\n if (ariaLabel) {\n return {\n 'aria-label': ariaLabel,\n 'aria-describedby': labelIds.concat(descriptorIds),\n };\n }\n\n return {\n 'aria-labelledby': labelIds,\n 'aria-describedby': descriptorIds,\n };\n };\n\n return (\n <IconButtonComp\n {...restProps}\n {...getAriaProps()}\n className={clsx(\n 'wds-list-item-control',\n !partiallyInteractive && props.href && 'wds-list-item-control_pseudo-element',\n )}\n id={ids.control}\n size={40}\n priority={priority}\n disabled={baseItemProps.disabled}\n />\n );\n};\n\nIconButton.displayName = 'ListItem.IconButton';\n"],"names":["IconButton","priority","ariaLabel","props","partiallyInteractive","restProps","ids","itemProps","useContext","ListItemContext","baseItemProps","useListItemControl","getAriaProps","labelIds","inverted","subtitle","title","valueSubtitle","valueTitle","join","descriptorIds","additionalInfo","prompt","concat","_jsx","IconButtonComp","className","clsx","href","id","control","size","disabled","displayName"],"mappings":";;;;;;;;;AAqBO,MAAMA,UAAU,GAAG,UAAU;AAClCC,EAAAA,QAAQ,GAAG,SAAS;AACpB,EAAA,YAAY,EAAEC,SAAS;EACvB,GAAGC;AAAK,CACgB,EAAA;EACxB,MAAM;IAAEC,oBAAoB;IAAE,GAAGC;AAAS,GAAE,GAAGF,KAAK;EAEpD,MAAM;IAAEG,GAAG;AAAEH,IAAAA,KAAK,EAAEI;AAAS,GAAE,GAAGC,gBAAU,CAACC,+BAAe,CAAC;EAC7D,MAAM;AAAEC,IAAAA;AAAa,GAAE,GAAGC,qCAAkB,CAAC,aAAa,EAAE;IAC1DP,oBAAoB;IACpB,GAAGC;AACJ,GAAA,CAAC;EAEF,MAAMO,YAAY,GAAGA,MAAK;IACxB,MAAMC,QAAQ,GAAG,CACfN,SAAS,CAACO,QAAQ,GAAGR,GAAG,CAACS,QAAQ,GAAGT,GAAG,CAACU,KAAK,EAC7CT,SAAS,CAACO,QAAQ,GAAGR,GAAG,CAACU,KAAK,GAAGV,GAAG,CAACS,QAAQ,EAC7CR,SAAS,CAACO,QAAQ,GAAGR,GAAG,CAACW,aAAa,GAAGX,GAAG,CAACY,UAAU,EACvDX,SAAS,CAACO,QAAQ,GAAGR,GAAG,CAACY,UAAU,GAAGZ,GAAG,CAACW,aAAa,CACxD,CAACE,IAAI,CAAC,GAAG,CAAC;AACX,IAAA,MAAMC,aAAa,GAAG,CAACd,GAAG,CAACe,cAAc,EAAEf,GAAG,CAACgB,MAAM,CAAC,CAACH,IAAI,CAAC,GAAG,CAAC;AAEhE,IAAA,IAAIjB,SAAS,EAAE;MACb,OAAO;AACL,QAAA,YAAY,EAAEA,SAAS;AACvB,QAAA,kBAAkB,EAAEW,QAAQ,CAACU,MAAM,CAACH,aAAa;OAClD;AACH,IAAA;IAEA,OAAO;AACL,MAAA,iBAAiB,EAAEP,QAAQ;AAC3B,MAAA,kBAAkB,EAAEO;KACrB;EACH,CAAC;EAED,oBACEI,cAAA,CAACC,oBAAc,EAAA;AAAA,IAAA,GACTpB,SAAS;IAAA,GACTO,YAAY,EAAE;AAClBc,IAAAA,SAAS,EAAEC,SAAI,CACb,uBAAuB,EACvB,CAACvB,oBAAoB,IAAID,KAAK,CAACyB,IAAI,IAAI,sCAAsC,CAC7E;IACFC,EAAE,EAAEvB,GAAG,CAACwB,OAAQ;AAChBC,IAAAA,IAAI,EAAE,EAAG;AACT9B,IAAAA,QAAQ,EAAEA,QAAS;IACnB+B,QAAQ,EAAEtB,aAAa,CAACsB;AAAS,GAAA,CACjC;AAEN;AAEAhC,UAAU,CAACiC,WAAW,GAAG,qBAAqB;;;;"}
@@ -1,54 +0,0 @@
1
- import { clsx } from 'clsx';
2
- import { useContext } from 'react';
3
- import IconButton$1 from '../../iconButton/IconButton.mjs';
4
- import { useListItemControl } from '../useListItemControl.mjs';
5
- import { ListItemContext } from '../ListItemContext.mjs';
6
- import { jsx } from 'react/jsx-runtime';
7
-
8
- const IconButton = function ({
9
- priority = 'minimal',
10
- 'aria-label': ariaLabel,
11
- ...props
12
- }) {
13
- const {
14
- partiallyInteractive,
15
- ...restProps
16
- } = props;
17
- const {
18
- ids,
19
- props: itemProps
20
- } = useContext(ListItemContext);
21
- const {
22
- baseItemProps
23
- } = useListItemControl('icon-button', {
24
- partiallyInteractive,
25
- ...restProps
26
- });
27
- const getAriaProps = () => {
28
- const labelIds = [itemProps.inverted ? ids.subtitle : ids.title, itemProps.inverted ? ids.title : ids.subtitle, itemProps.inverted ? ids.valueSubtitle : ids.valueTitle, itemProps.inverted ? ids.valueTitle : ids.valueSubtitle].join(' ');
29
- const descriptorIds = [ids.additionalInfo, ids.prompt].join(' ');
30
- if (ariaLabel) {
31
- return {
32
- 'aria-label': ariaLabel,
33
- 'aria-describedby': labelIds.concat(descriptorIds)
34
- };
35
- }
36
- return {
37
- 'aria-labelledby': labelIds,
38
- 'aria-describedby': descriptorIds
39
- };
40
- };
41
- return /*#__PURE__*/jsx(IconButton$1, {
42
- ...restProps,
43
- ...getAriaProps(),
44
- className: clsx('wds-list-item-control', !partiallyInteractive && props.href && 'wds-list-item-control_pseudo-element'),
45
- id: ids.control,
46
- size: 40,
47
- priority: priority,
48
- disabled: baseItemProps.disabled
49
- });
50
- };
51
- IconButton.displayName = 'ListItem.IconButton';
52
-
53
- export { IconButton };
54
- //# sourceMappingURL=ListItemIconButton.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ListItemIconButton.mjs","sources":["../../../src/listItem/IconButton/ListItemIconButton.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { useContext, type ReactNode } from 'react';\nimport IconButtonComp, { type IconButtonProps } from '../../iconButton';\nimport { useListItemControl } from '../useListItemControl';\nimport { ListItemContext } from '../ListItemContext';\n\nexport type ListItemIconButtonProps = Pick<\n IconButtonProps,\n 'priority' | 'type' | 'onClick' | 'href' | 'target' | 'aria-label'\n> & {\n children: ReactNode;\n partiallyInteractive?: boolean;\n};\n\n/**\n * This component allows for rendering a IconButton control. It's a thin wrapper around the\n * [IconButton component](https://storybook.wise.design/?path=/docs/actions-iconbutton--docs), but offers only\n * a subset of its features in line with the ListItem's constraints. <br />\n * <br />\n * Please refer to the [Design documentation](https://wise.design/components/list-item---icon-button) for details.\n */\nexport const IconButton = function ({\n priority = 'minimal',\n 'aria-label': ariaLabel,\n ...props\n}: ListItemIconButtonProps) {\n const { partiallyInteractive, ...restProps } = props;\n\n const { ids, props: itemProps } = useContext(ListItemContext);\n const { baseItemProps } = useListItemControl('icon-button', {\n partiallyInteractive,\n ...restProps,\n });\n\n const getAriaProps = () => {\n const labelIds = [\n itemProps.inverted ? ids.subtitle : ids.title,\n itemProps.inverted ? ids.title : ids.subtitle,\n itemProps.inverted ? ids.valueSubtitle : ids.valueTitle,\n itemProps.inverted ? ids.valueTitle : ids.valueSubtitle,\n ].join(' ');\n const descriptorIds = [ids.additionalInfo, ids.prompt].join(' ');\n\n if (ariaLabel) {\n return {\n 'aria-label': ariaLabel,\n 'aria-describedby': labelIds.concat(descriptorIds),\n };\n }\n\n return {\n 'aria-labelledby': labelIds,\n 'aria-describedby': descriptorIds,\n };\n };\n\n return (\n <IconButtonComp\n {...restProps}\n {...getAriaProps()}\n className={clsx(\n 'wds-list-item-control',\n !partiallyInteractive && props.href && 'wds-list-item-control_pseudo-element',\n )}\n id={ids.control}\n size={40}\n priority={priority}\n disabled={baseItemProps.disabled}\n />\n );\n};\n\nIconButton.displayName = 'ListItem.IconButton';\n"],"names":["IconButton","priority","ariaLabel","props","partiallyInteractive","restProps","ids","itemProps","useContext","ListItemContext","baseItemProps","useListItemControl","getAriaProps","labelIds","inverted","subtitle","title","valueSubtitle","valueTitle","join","descriptorIds","additionalInfo","prompt","concat","_jsx","IconButtonComp","className","clsx","href","id","control","size","disabled","displayName"],"mappings":";;;;;;;AAqBO,MAAMA,UAAU,GAAG,UAAU;AAClCC,EAAAA,QAAQ,GAAG,SAAS;AACpB,EAAA,YAAY,EAAEC,SAAS;EACvB,GAAGC;AAAK,CACgB,EAAA;EACxB,MAAM;IAAEC,oBAAoB;IAAE,GAAGC;AAAS,GAAE,GAAGF,KAAK;EAEpD,MAAM;IAAEG,GAAG;AAAEH,IAAAA,KAAK,EAAEI;AAAS,GAAE,GAAGC,UAAU,CAACC,eAAe,CAAC;EAC7D,MAAM;AAAEC,IAAAA;AAAa,GAAE,GAAGC,kBAAkB,CAAC,aAAa,EAAE;IAC1DP,oBAAoB;IACpB,GAAGC;AACJ,GAAA,CAAC;EAE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('../../image/Image.js');
4
- var clsx = require('clsx');
5
- var useListItemMedia = require('../useListItemMedia.js');
6
- var jsxRuntime = require('react/jsx-runtime');
7
-
8
- const Image = ({
9
- alt = '',
10
- size = 48,
11
- className,
12
- ...props
13
- }) => {
14
- useListItemMedia.useListItemMedia(size);
15
- return /*#__PURE__*/jsxRuntime.jsx("div", {
16
- className: clsx.clsx('wds-list-item-media-image-wrapper'),
17
- style: {
18
- '--wds-list-item-media-size': `${size}px`
19
- },
20
- children: /*#__PURE__*/jsxRuntime.jsx(Image$1.default, {
21
- ...props,
22
- className: clsx.clsx(className, 'wds-list-item-media-image'),
23
- alt: alt,
24
- role: alt ? undefined : 'presentation'
25
- })
26
- });
27
- };
28
- Image.displayName = 'ListItem.Image';
29
-
30
- exports.Image = Image;
31
- //# sourceMappingURL=ListItemImage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ListItemImage.js","sources":["../../../src/listItem/Image/ListItemImage.tsx"],"sourcesContent":["import ImageComp, { type ImageProps } from '../../image';\nimport { clsx } from 'clsx';\nimport { useListItemMedia } from '../useListItemMedia';\n\nexport type ListItemImageProps = Omit<ImageProps, 'stretch' | 'shrink' | 'id' | 'alt' | 'role'> & {\n /**\n * The size of square container for the image, matching available avatar sizes.\n */\n size?: 32 | 40 | 48 | 56 | 72;\n /**\n * When unset, it will force `role=\"presentation\"` on the image. Otherwise, the image will use its implicit img role.\n */\n alt?: string;\n};\n\n/**\n * This component should be used as a last resort, for rare cases when `<ListItem.AvatarView />`\n * or `<ListItem.AvatarLayout />` are insufficient.\n * It's a wrapper around the\n * [Image component](https://storybook.wise.design/?path=/docs/content-image--docs), but offers only\n * a subset of its props, in line with the ListItem's constraints.\n *\n * > **NB**: This component is [not intended for use with illustrations](https://wise.design/foundations/illustration#scale).\n */\nexport const Image = ({ alt = '', size = 48, className, ...props }: ListItemImageProps) => {\n useListItemMedia(size);\n\n return (\n <div\n className={clsx('wds-list-item-media-image-wrapper')}\n style={\n {\n '--wds-list-item-media-size': `${size}px`,\n } as React.CSSProperties\n }\n >\n <ImageComp\n {...props}\n className={clsx(className, 'wds-list-item-media-image')}\n alt={alt}\n role={alt ? undefined : 'presentation'}\n />\n </div>\n );\n};\nImage.displayName = 'ListItem.Image';\n"],"names":["Image","alt","size","className","props","useListItemMedia","_jsx","clsx","style","children","ImageComp","role","undefined","displayName"],"mappings":";;;;;;;AAwBO,MAAMA,KAAK,GAAGA,CAAC;AAAEC,EAAAA,GAAG,GAAG,EAAE;AAAEC,EAAAA,IAAI,GAAG,EAAE;EAAEC,SAAS;EAAE,GAAGC;AAAK,CAAsB,KAAI;EACxFC,iCAAgB,CAACH,IAAI,CAAC;AAEtB,EAAA,oBACEI,cAAA,CAAA,KAAA,EAAA;AACEH,IAAAA,SAAS,EAAEI,SAAI,CAAC,mCAAmC,CAAE;AACrDC,IAAAA,KAAK,EACH;MACE,4BAA4B,EAAE,GAAGN,IAAI,CAAA,EAAA;KAExC;IAAAO,QAAA,eAEDH,cAAA,CAACI,eAAS,EAAA;AAAA,MAAA,GACJN,KAAK;AACTD,MAAAA,SAAS,EAAEI,SAAI,CAACJ,SAAS,EAAE,2BAA2B,CAAE;AACxDF,MAAAA,GAAG,EAAEA,GAAI;AACTU,MAAAA,IAAI,EAAEV,GAAG,GAAGW,SAAS,GAAG;KAAe;AAE3C,GAAK,CAAC;AAEV;AACAZ,KAAK,CAACa,WAAW,GAAG,gBAAgB;;;;"}
@@ -1,29 +0,0 @@
1
- import Image$1 from '../../image/Image.mjs';
2
- import { clsx } from 'clsx';
3
- import { useListItemMedia } from '../useListItemMedia.mjs';
4
- import { jsx } from 'react/jsx-runtime';
5
-
6
- const Image = ({
7
- alt = '',
8
- size = 48,
9
- className,
10
- ...props
11
- }) => {
12
- useListItemMedia(size);
13
- return /*#__PURE__*/jsx("div", {
14
- className: clsx('wds-list-item-media-image-wrapper'),
15
- style: {
16
- '--wds-list-item-media-size': `${size}px`
17
- },
18
- children: /*#__PURE__*/jsx(Image$1, {
19
- ...props,
20
- className: clsx(className, 'wds-list-item-media-image'),
21
- alt: alt,
22
- role: alt ? undefined : 'presentation'
23
- })
24
- });
25
- };
26
- Image.displayName = 'ListItem.Image';
27
-
28
- export { Image };
29
- //# sourceMappingURL=ListItemImage.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ListItemImage.mjs","sources":["../../../src/listItem/Image/ListItemImage.tsx"],"sourcesContent":["import ImageComp, { type ImageProps } from '../../image';\nimport { clsx } from 'clsx';\nimport { useListItemMedia } from '../useListItemMedia';\n\nexport type ListItemImageProps = Omit<ImageProps, 'stretch' | 'shrink' | 'id' | 'alt' | 'role'> & {\n /**\n * The size of square container for the image, matching available avatar sizes.\n */\n size?: 32 | 40 | 48 | 56 | 72;\n /**\n * When unset, it will force `role=\"presentation\"` on the image. Otherwise, the image will use its implicit img role.\n */\n alt?: string;\n};\n\n/**\n * This component should be used as a last resort, for rare cases when `<ListItem.AvatarView />`\n * or `<ListItem.AvatarLayout />` are insufficient.\n * It's a wrapper around the\n * [Image component](https://storybook.wise.design/?path=/docs/content-image--docs), but offers only\n * a subset of its props, in line with the ListItem's constraints.\n *\n * > **NB**: This component is [not intended for use with illustrations](https://wise.design/foundations/illustration#scale).\n */\nexport const Image = ({ alt = '', size = 48, className, ...props }: ListItemImageProps) => {\n useListItemMedia(size);\n\n return (\n <div\n className={clsx('wds-list-item-media-image-wrapper')}\n style={\n {\n '--wds-list-item-media-size': `${size}px`,\n } as React.CSSProperties\n }\n >\n <ImageComp\n {...props}\n className={clsx(className, 'wds-list-item-media-image')}\n alt={alt}\n role={alt ? undefined : 'presentation'}\n />\n </div>\n );\n};\nImage.displayName = 'ListItem.Image';\n"],"names":["Image","alt","size","className","props","useListItemMedia","_jsx","clsx","style","children","ImageComp","role","undefined","displayName"],"mappings":";;;;;AAwBO,MAAMA,KAAK,GAAGA,CAAC;AAAEC,EAAAA,GAAG,GAAG,EAAE;AAAEC,EAAAA,IAAI,GAAG,EAAE;EAAEC,SAAS;EAAE,GAAGC;AAAK,CAAsB,KAAI;EACxFC,gBAAgB,CAACH,IAAI,CAAC;AAEtB,EAAA,oBACEI,GAAA,CAAA,KAAA,EAAA;AACEH,IAAAA,SAAS,EAAEI,IAAI,CAAC,mCAAmC,CAAE;AACrDC,IAAAA,KAAK,EACH;MACE,4BAA4B,EAAE,GAAGN,IAAI,CAAA,EAAA;KAExC;IAAAO,QAAA,eAEDH,GAAA,CAACI,OAAS,EAAA;AAAA,MAAA,GACJN,KAAK;AACTD,MAAAA,SAAS,EAAEI,IAAI,CAACJ,SAAS,EAAE,2BAA2B,CAAE;AACxDF,MAAAA,GAAG,EAAEA,GAAI;AACTU,MAAAA,IAAI,EAAEV,GAAG,GAAGW,SAAS,GAAG;KAAe;AAE3C,GAAK,CAAC;AAEV;AACAZ,KAAK,CAACa,WAAW,GAAG,gBAAgB;;;;"}
@@ -1,309 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var React = require('react');
6
- require('../common/theme.js');
7
- require('../common/direction.js');
8
- require('../common/propsValues/control.js');
9
- require('../common/propsValues/breakpoint.js');
10
- require('../common/propsValues/size.js');
11
- var typography = require('../common/propsValues/typography.js');
12
- require('../common/propsValues/width.js');
13
- require('../common/propsValues/type.js');
14
- require('../common/propsValues/dateMode.js');
15
- require('../common/propsValues/monthFormat.js');
16
- require('../common/propsValues/position.js');
17
- require('../common/propsValues/layouts.js');
18
- require('../common/propsValues/status.js');
19
- require('../common/propsValues/sentiment.js');
20
- require('../common/propsValues/profileType.js');
21
- require('../common/propsValues/variant.js');
22
- require('../common/propsValues/scroll.js');
23
- require('../common/propsValues/markdownNodeType.js');
24
- require('../common/fileType.js');
25
- require('@transferwise/icons');
26
- var clsx = require('clsx');
27
- require('react-intl');
28
- require('../common/closeButton/CloseButton.messages.js');
29
- var jsxRuntime = require('react/jsx-runtime');
30
- var Body = require('../body/Body.js');
31
- var ListItemAdditionalInfo = require('./AdditionalInfo/ListItemAdditionalInfo.js');
32
- var ListItemIconButton = require('./IconButton/ListItemIconButton.js');
33
- var ListItemCheckbox = require('./Checkbox/ListItemCheckbox.js');
34
- var ListItemNavigation = require('./Navigation/ListItemNavigation.js');
35
- var ListItemButton = require('./Button/ListItemButton.js');
36
- var ListItemRadio = require('./Radio/ListItemRadio.js');
37
- var ListItemSwitch = require('./Switch/ListItemSwitch.js');
38
- var ListItemAvatarLayout = require('./AvatarLayout/ListItemAvatarLayout.js');
39
- var ListItemAvatarView = require('./AvatarView/ListItemAvatarView.js');
40
- var ListItemImage = require('./Image/ListItemImage.js');
41
- var ListItemPrompt = require('./Prompt/ListItemPrompt.js');
42
- require('../primitives/PrimitiveButton/PrimitiveButton.js');
43
- var PrimitiveAnchor = require('../primitives/PrimitiveAnchor/PrimitiveAnchor.js');
44
- var ListItemContext = require('./ListItemContext.js');
45
-
46
- const ListItem = ({
47
- as: ListItemElement = 'li',
48
- title,
49
- subtitle,
50
- additionalInfo,
51
- prompt,
52
- inverted,
53
- media,
54
- spotlight,
55
- valueTitle,
56
- valueSubtitle,
57
- control = null,
58
- disabled,
59
- className,
60
- valueColumnWidth,
61
- id
62
- }) => {
63
- const idPrefix = React.useId();
64
- const [controlProps, setControlProps] = React.useState({});
65
- const [controlType, setControlType] = React.useState('non-interactive');
66
- const [mediaSize, setMediaSize] = React.useState();
67
- const ids = {
68
- title: `${idPrefix}_title`,
69
- ...(subtitle ? {
70
- subtitle: `${idPrefix}_subtitle`
71
- } : {}),
72
- ...(valueTitle ? {
73
- valueTitle: `${idPrefix}_value-title`
74
- } : {}),
75
- ...(valueSubtitle ? {
76
- valueSubtitle: `${idPrefix}_value-subtitle`
77
- } : {}),
78
- control: `${idPrefix}_control`,
79
- ...(prompt ? {
80
- prompt: `${idPrefix}_prompt`
81
- } : {}),
82
- ...(additionalInfo ? {
83
- additionalInfo: `${idPrefix}_additional-info`
84
- } : {})
85
- };
86
- const isPartiallyInteractive = Boolean((controlType === 'button' || controlType === 'icon-button') && controlProps?.partiallyInteractive);
87
- const isFullyInteractive = controlType !== 'non-interactive' && !isPartiallyInteractive;
88
- const isButtonAsLink = (controlType === 'button' || controlType === 'icon-button') && Boolean(controlProps?.href);
89
- const titlesAndValues = [inverted ? ids.subtitle : ids.title, inverted ? ids.title : ids.subtitle, inverted ? ids.valueSubtitle : ids.valueTitle, inverted ? ids.valueTitle : ids.valueSubtitle].join(' ');
90
- const additionalInfoPrompt = [ids.additionalInfo, ids.prompt].filter(Boolean).join(' ');
91
- const describedByIds = React.useMemo(() => {
92
- return isFullyInteractive && !isButtonAsLink ? additionalInfoPrompt : `${titlesAndValues} ${additionalInfoPrompt}`;
93
- }, [isFullyInteractive]);
94
- const listItemContext = React.useMemo(() => ({
95
- setControlType,
96
- setControlProps,
97
- setMediaSize,
98
- ids,
99
- props: {
100
- disabled,
101
- inverted
102
- },
103
- mediaSize,
104
- describedByIds
105
- }), [describedByIds, mediaSize]);
106
- const gridColumnsStyle = {
107
- '--wds-list-item-body-left': valueColumnWidth ? `${100 - valueColumnWidth}fr` : '50fr',
108
- '--wds-list-item-body-right': valueColumnWidth ? `${valueColumnWidth}fr` : '50fr'
109
- };
110
- const getFeatureClassName = () => {
111
- const partials = [];
112
- const hasMedia = Boolean(media);
113
- const hasControl = Boolean(control);
114
- const hasInfo = Boolean(additionalInfo);
115
- const hasPrompt = Boolean(prompt);
116
- /* eslint-disable functional/immutable-data */
117
- if (hasMedia && hasControl) {
118
- partials.push('wds-list-item-hasMedia-hasControl');
119
- }
120
- if (hasMedia && !hasControl) {
121
- partials.push('wds-list-item-hasMedia-noControl');
122
- }
123
- if (!hasMedia && hasControl) {
124
- partials.push('wds-list-item-noMedia-hasControl');
125
- }
126
- if (!hasMedia && !hasControl) {
127
- partials.push('wds-list-item-noMedia-noControl');
128
- }
129
- if (hasInfo && hasPrompt) {
130
- partials.push('wds-list-item-hasInfo-hasPrompt');
131
- }
132
- if (hasInfo && !hasPrompt) {
133
- partials.push('wds-list-item-hasInfo-noPrompt');
134
- }
135
- if (!hasInfo && hasPrompt) {
136
- partials.push('wds-list-item-noInfo-hasPrompt');
137
- }
138
- if (!hasInfo && !hasPrompt) {
139
- partials.push('wds-list-item-noInfo-noPrompt');
140
- }
141
- /* eslint-enable functional/immutable-data */
142
- return partials.join(' ');
143
- };
144
- return /*#__PURE__*/jsxRuntime.jsx(ListItemContext.ListItemContext.Provider, {
145
- value: listItemContext,
146
- children: /*#__PURE__*/jsxRuntime.jsxs(ListItemElement, {
147
- className: clsx.clsx('wds-list-item', `wds-list-item-${controlType}`, getFeatureClassName(), {
148
- 'wds-list-item-interactive': isFullyInteractive,
149
- 'wds-list-item-partially-interactive': isPartiallyInteractive,
150
- [`wds-list-item-spotlight wds-list-item-spotlight-${spotlight}`]: isFullyInteractive && !!spotlight,
151
- disabled
152
- }, className),
153
- id: id,
154
- "aria-disabled": disabled,
155
- children: [spotlight === 'inactive' && /*#__PURE__*/jsxRuntime.jsx("svg", {
156
- "aria-hidden": "true",
157
- className: "wds-list-item-spotlight__border",
158
- children: /*#__PURE__*/jsxRuntime.jsx("rect", {})
159
- }), /*#__PURE__*/jsxRuntime.jsxs(View, {
160
- isPartiallyInteractive,
161
- subtitle,
162
- additionalInfo,
163
- disabled,
164
- prompt,
165
- controlType,
166
- controlProps,
167
- className: getFeatureClassName(),
168
- children: [media && /*#__PURE__*/jsxRuntime.jsx("div", {
169
- className: "wds-list-item-media",
170
- children: media
171
- }), /*#__PURE__*/jsxRuntime.jsxs("div", {
172
- className: "wds-list-item-body",
173
- style: valueColumnWidth ? gridColumnsStyle : undefined,
174
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
175
- className: clsx.clsx({
176
- 'wds-list-item-body-center': title && !subtitle
177
- }),
178
- children: (() => {
179
- const titles = [/*#__PURE__*/jsxRuntime.jsx(Body.default, {
180
- id: ids.title,
181
- type: typography.Typography.BODY_LARGE_BOLD,
182
- className: "wds-list-item-title",
183
- children: title
184
- }, ids.title)];
185
- if (subtitle) {
186
- titles.push(/*#__PURE__*/jsxRuntime.jsx(Body.default, {
187
- id: ids.subtitle,
188
- className: "wds-list-item-subtitle",
189
- children: subtitle
190
- }, ids.subtitle));
191
- }
192
- return inverted ? [...titles].reverse() : titles;
193
- })()
194
- }), (valueTitle || valueSubtitle) && /*#__PURE__*/jsxRuntime.jsx("span", {
195
- className: clsx.clsx('wds-list-item-value', {
196
- 'flex-column': valueTitle !== undefined || valueSubtitle !== undefined,
197
- 'wds-list-item-body-center': valueTitle && !valueSubtitle || !valueTitle && valueSubtitle
198
- }),
199
- children: (() => {
200
- const values = [];
201
- if (valueTitle) {
202
- values.push(/*#__PURE__*/jsxRuntime.jsx(Body.default, {
203
- id: ids.valueTitle,
204
- type: typography.Typography.BODY_LARGE_BOLD,
205
- className: "wds-list-item-title-value",
206
- children: valueTitle
207
- }, ids.valueTitle));
208
- }
209
- if (valueSubtitle) {
210
- values.push(/*#__PURE__*/jsxRuntime.jsx(Body.default, {
211
- id: ids.valueSubtitle,
212
- className: "wds-list-item-subtitle-value",
213
- children: valueSubtitle
214
- }, ids.valueSubtitle));
215
- }
216
- return inverted ? [...values].reverse() : values;
217
- })()
218
- })]
219
- }), control === null ? null : /*#__PURE__*/jsxRuntime.jsx(Body.default, {
220
- className: clsx.clsx('wds-list-item-control-wrapper', {
221
- 'wds-list-item-button-control': controlType === 'button'
222
- }),
223
- style: {
224
- '--wds-list-item-control-wrapper-height': mediaSize ? `${mediaSize}px` : 'auto'
225
- },
226
- children: control
227
- })]
228
- })]
229
- })
230
- });
231
- };
232
- function View({
233
- children,
234
- subtitle,
235
- additionalInfo,
236
- prompt,
237
- disabled,
238
- isPartiallyInteractive,
239
- controlType = 'non-interactive',
240
- controlProps,
241
- className = ''
242
- }) {
243
- const {
244
- ids,
245
- describedByIds
246
- } = React.useContext(ListItemContext.ListItemContext);
247
- const isLinkControl = ['navigation'].includes(controlType);
248
- const isHrefProvided = isLinkControl && !!controlProps?.href;
249
- const renderExtras = () => /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
250
- children: [Boolean(subtitle) && additionalInfo, prompt]
251
- });
252
- if (isLinkControl && isHrefProvided) {
253
- return (
254
- /*#__PURE__*/
255
- // for link instances of .Navigation, .IconButton, .Button
256
- jsxRuntime.jsxs("div", {
257
- className: clsx.clsx('wds-list-item-gridWrapper', className),
258
- children: [/*#__PURE__*/jsxRuntime.jsx(PrimitiveAnchor.default, {
259
- "aria-describedby": describedByIds,
260
- href: controlProps?.href,
261
- target: controlProps?.target,
262
- className: clsx.clsx('wds-list-item-view d-flex flex-row', {
263
- 'wds-list-item-control': controlType === 'navigation'
264
- }),
265
- disabled: disabled,
266
- children: children
267
- }), renderExtras()]
268
- })
269
- );
270
- }
271
- if (isPartiallyInteractive || controlType === 'non-interactive') {
272
- return /*#__PURE__*/jsxRuntime.jsxs("div", {
273
- className: clsx.clsx('wds-list-item-gridWrapper', className),
274
- children: [/*#__PURE__*/jsxRuntime.jsx("div", {
275
- className: clsx.clsx('wds-list-item-view d-flex flex-row'),
276
- children: children
277
- }), renderExtras()]
278
- });
279
- }
280
- // for form control instances of .Radio, .Checkbox, .Switch, .Button, .Navigation etc
281
- // Radio cannot be wrapped in a <fieldset> element to announce it as a group.
282
- const InputWrapper = controlType === 'radio' ? 'div' : 'fieldset';
283
- return /*#__PURE__*/jsxRuntime.jsxs(InputWrapper, {
284
- className: clsx.clsx('wds-list-item-gridWrapper', className),
285
- children: [/*#__PURE__*/jsxRuntime.jsx("label", {
286
- htmlFor: ids.control,
287
- className: clsx.clsx('wds-list-item-view', {
288
- clickable: !disabled,
289
- fullyInteractive: !isPartiallyInteractive
290
- }),
291
- children: children
292
- }), renderExtras()]
293
- });
294
- }
295
- ListItem.Image = ListItemImage.Image;
296
- ListItem.AvatarView = ListItemAvatarView.AvatarView;
297
- ListItem.AvatarLayout = ListItemAvatarLayout.AvatarLayout;
298
- ListItem.AdditionalInfo = ListItemAdditionalInfo.AdditionalInfo;
299
- ListItem.Checkbox = ListItemCheckbox.Checkbox;
300
- ListItem.Radio = ListItemRadio.Radio;
301
- ListItem.IconButton = ListItemIconButton.IconButton;
302
- ListItem.Navigation = ListItemNavigation.Navigation;
303
- ListItem.Button = ListItemButton.Button;
304
- ListItem.Switch = ListItemSwitch.Switch;
305
- ListItem.Prompt = ListItemPrompt.Prompt;
306
-
307
- exports.ListItem = ListItem;
308
- exports.default = ListItem;
309
- //# sourceMappingURL=ListItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ListItem.js","sources":["../../src/listItem/ListItem.tsx"],"sourcesContent":["import {\n useContext,\n useId,\n useMemo,\n useState,\n type PropsWithChildren,\n type ReactNode,\n} from 'react';\nimport { Typography } from '../common';\nimport Body from '../body';\nimport { AdditionalInfo } from './AdditionalInfo';\nimport { IconButton, type ListItemIconButtonProps } from './IconButton';\nimport { Checkbox, type ListItemCheckboxProps } from './Checkbox';\nimport { Navigation, type ListItemNavigationProps } from './Navigation';\nimport { clsx } from 'clsx';\nimport { Button, type ListItemButtonProps } from './Button';\nimport { Radio, type ListItemRadioProps } from './Radio';\nimport { Switch, type ListItemSwitchProps } from './Switch';\nimport { AvatarLayout } from './AvatarLayout';\nimport { AvatarView } from './AvatarView';\nimport { Image } from './Image';\nimport { Prompt } from './Prompt';\nimport { PrimitiveAnchor } from '../primitives';\nimport {\n ListItemContext,\n type ListItemContextData,\n type ListItemMediaSize,\n} from './ListItemContext';\n\nexport type ListItemTypes =\n | 'non-interactive'\n | 'navigation'\n | 'radio'\n | 'checkbox'\n | 'switch'\n | 'button'\n | 'icon-button';\n\nexport type ListItemControlProps =\n | ListItemNavigationProps\n | ListItemCheckboxProps\n | ListItemButtonProps\n | ListItemIconButtonProps\n | ListItemRadioProps\n | ListItemSwitchProps;\n\nexport type ListItemProps = {\n as?: 'li' | 'div';\n /**\n * Swaps vertical hierarchy of title and subtitle and their corresponding right values.\n */\n inverted?: boolean;\n disabled?: boolean;\n /**\n * Highlights the list item as an action to be taken or already taken. <br />\n */\n spotlight?: 'active' | 'inactive';\n title: ReactNode;\n subtitle?: ReactNode;\n /**\n * Requires `<ListItem.AdditionalInfo />` component as a sole child. <br />\n * Can be only rendered if `subtitle` is also provided.\n */\n additionalInfo?: ReactNode;\n valueTitle?: ReactNode;\n valueSubtitle?: ReactNode;\n /**\n * Requires one of the following as a sole child: <br />\n * `<ListItem.AvatarView />`,\n * `<ListItem.AvatarLayout />` or\n * `<ListItem.Image />`\n */\n media?: ReactNode;\n /**\n * Requires one of the following as a sole child: <br/>\n * `<ListItem.Button />`, <br/>\n * `<ListItem.Checkbox />`, <br/>\n * `<ListItem.IconButton />`, <br/>\n * `<ListItem.Navigation />`, <br/>\n * `<ListItem.Radio />`, or\n * `<ListItem.Switch />`\n */\n control?: ReactNode;\n /**\n * Requires `<ListItem.Prompt />` component as a sole child.\n */\n prompt?: ReactNode;\n className?: string;\n /**\n * A number between `0–100` which resolves to a `fr` value of a `grid-template-columns` declaration. E.g. `valueColumnWidth={25}` will result in a `75fr 25fr`. <br />\n * Controls the width ratio of left side content (title and subtitle) to the right side content.\n */\n valueColumnWidth?: number;\n id?: string;\n};\n\n/**\n * @see [Design documentation](https://wise.design/components/list-item)\n * @see [Storybook documentation](https://storybook.wise.design/?path=/docs/content-listitem--docs)\n */\nexport const ListItem = ({\n as: ListItemElement = 'li',\n title,\n subtitle,\n additionalInfo,\n prompt,\n inverted,\n media,\n spotlight,\n valueTitle,\n valueSubtitle,\n control = null,\n disabled,\n className,\n valueColumnWidth,\n id,\n}: ListItemProps) => {\n const idPrefix = useId();\n const [controlProps, setControlProps] = useState<ListItemControlProps>({});\n const [controlType, setControlType] = useState<ListItemTypes>('non-interactive');\n const [mediaSize, setMediaSize] = useState<ListItemMediaSize | undefined>();\n\n const ids: ListItemContextData['ids'] = {\n title: `${idPrefix}_title`,\n ...(subtitle ? { subtitle: `${idPrefix}_subtitle` } : {}),\n ...(valueTitle ? { valueTitle: `${idPrefix}_value-title` } : {}),\n ...(valueSubtitle ? { valueSubtitle: `${idPrefix}_value-subtitle` } : {}),\n control: `${idPrefix}_control`,\n ...(prompt ? { prompt: `${idPrefix}_prompt` } : {}),\n ...(additionalInfo ? { additionalInfo: `${idPrefix}_additional-info` } : {}),\n };\n\n const isPartiallyInteractive = Boolean(\n (controlType === 'button' || controlType === 'icon-button') &&\n (controlProps as ListItemButtonProps | ListItemIconButtonProps)?.partiallyInteractive,\n );\n const isFullyInteractive = controlType !== 'non-interactive' && !isPartiallyInteractive;\n const isButtonAsLink =\n (controlType === 'button' || controlType === 'icon-button') &&\n Boolean((controlProps as ListItemButtonProps | ListItemIconButtonProps)?.href);\n\n const titlesAndValues = [\n inverted ? ids.subtitle : ids.title,\n inverted ? ids.title : ids.subtitle,\n inverted ? ids.valueSubtitle : ids.valueTitle,\n inverted ? ids.valueTitle : ids.valueSubtitle,\n ].join(' ');\n const additionalInfoPrompt = [ids.additionalInfo, ids.prompt].filter(Boolean).join(' ');\n\n const describedByIds = useMemo(() => {\n return isFullyInteractive && !isButtonAsLink\n ? additionalInfoPrompt\n : `${titlesAndValues} ${additionalInfoPrompt}`;\n }, [isFullyInteractive]);\n\n const listItemContext = useMemo(\n () => ({\n setControlType,\n setControlProps,\n setMediaSize,\n ids,\n props: { disabled, inverted },\n mediaSize,\n describedByIds,\n }),\n [describedByIds, mediaSize],\n );\n const gridColumnsStyle = {\n '--wds-list-item-body-left': valueColumnWidth ? `${100 - valueColumnWidth}fr` : '50fr',\n '--wds-list-item-body-right': valueColumnWidth ? `${valueColumnWidth}fr` : '50fr',\n } as React.CSSProperties;\n\n const getFeatureClassName = () => {\n const partials = [];\n const hasMedia = Boolean(media);\n const hasControl = Boolean(control);\n const hasInfo = Boolean(additionalInfo);\n const hasPrompt = Boolean(prompt);\n\n /* eslint-disable functional/immutable-data */\n if (hasMedia && hasControl) {\n partials.push('wds-list-item-hasMedia-hasControl');\n }\n\n if (hasMedia && !hasControl) {\n partials.push('wds-list-item-hasMedia-noControl');\n }\n\n if (!hasMedia && hasControl) {\n partials.push('wds-list-item-noMedia-hasControl');\n }\n\n if (!hasMedia && !hasControl) {\n partials.push('wds-list-item-noMedia-noControl');\n }\n\n if (hasInfo && hasPrompt) {\n partials.push('wds-list-item-hasInfo-hasPrompt');\n }\n if (hasInfo && !hasPrompt) {\n partials.push('wds-list-item-hasInfo-noPrompt');\n }\n if (!hasInfo && hasPrompt) {\n partials.push('wds-list-item-noInfo-hasPrompt');\n }\n if (!hasInfo && !hasPrompt) {\n partials.push('wds-list-item-noInfo-noPrompt');\n }\n /* eslint-enable functional/immutable-data */\n\n return partials.join(' ');\n };\n\n return (\n <ListItemContext.Provider value={listItemContext}>\n <ListItemElement\n className={clsx(\n 'wds-list-item',\n `wds-list-item-${controlType}`,\n getFeatureClassName(),\n {\n 'wds-list-item-interactive': isFullyInteractive,\n 'wds-list-item-partially-interactive': isPartiallyInteractive,\n [`wds-list-item-spotlight wds-list-item-spotlight-${spotlight}`]:\n isFullyInteractive && !!spotlight,\n disabled,\n },\n className,\n )}\n id={id}\n aria-disabled={disabled}\n >\n {spotlight === 'inactive' && (\n <svg aria-hidden=\"true\" className=\"wds-list-item-spotlight__border\">\n <rect />\n </svg>\n )}\n\n <View\n {...{\n isPartiallyInteractive,\n subtitle,\n additionalInfo,\n disabled,\n prompt,\n controlType,\n controlProps,\n }}\n className={getFeatureClassName()}\n >\n {media && <div className=\"wds-list-item-media\">{media}</div>}\n\n {/* Title + Subtitle + Values - Group */}\n <div\n className=\"wds-list-item-body\"\n style={valueColumnWidth ? gridColumnsStyle : undefined}\n >\n {/* Title + Subtitle + Values - Group */}\n <span\n className={clsx({\n 'wds-list-item-body-center': title && !subtitle,\n })}\n >\n {(() => {\n const titles = [\n <Body\n key={ids.title}\n id={ids.title}\n type={Typography.BODY_LARGE_BOLD}\n className=\"wds-list-item-title\"\n >\n {title}\n </Body>,\n ];\n if (subtitle) {\n titles.push(\n <Body key={ids.subtitle} id={ids.subtitle} className=\"wds-list-item-subtitle\">\n {subtitle}\n </Body>,\n );\n }\n return inverted ? [...titles].reverse() : titles;\n })()}\n </span>\n\n {(valueTitle || valueSubtitle) && (\n <span\n className={clsx('wds-list-item-value', {\n 'flex-column': valueTitle !== undefined || valueSubtitle !== undefined,\n 'wds-list-item-body-center':\n (valueTitle && !valueSubtitle) || (!valueTitle && valueSubtitle),\n })}\n >\n {(() => {\n const values = [];\n if (valueTitle) {\n values.push(\n <Body\n key={ids.valueTitle}\n id={ids.valueTitle}\n type={Typography.BODY_LARGE_BOLD}\n className=\"wds-list-item-title-value\"\n >\n {valueTitle}\n </Body>,\n );\n }\n if (valueSubtitle) {\n values.push(\n <Body\n key={ids.valueSubtitle}\n id={ids.valueSubtitle}\n className=\"wds-list-item-subtitle-value\"\n >\n {valueSubtitle}\n </Body>,\n );\n }\n return inverted ? [...values].reverse() : values;\n })()}\n </span>\n )}\n </div>\n\n {control === null ? null : (\n <Body\n className={clsx('wds-list-item-control-wrapper', {\n 'wds-list-item-button-control': controlType === 'button',\n })}\n style={\n {\n '--wds-list-item-control-wrapper-height': mediaSize ? `${mediaSize}px` : 'auto',\n } as React.CSSProperties\n }\n >\n {control}\n </Body>\n )}\n </View>\n </ListItemElement>\n </ListItemContext.Provider>\n );\n};\n\ntype ViewProps = PropsWithChildren<{\n isPartiallyInteractive: boolean;\n controlType?: ListItemTypes;\n controlProps?: ListItemControlProps;\n}> &\n Pick<ListItemProps, 'subtitle' | 'additionalInfo' | 'disabled' | 'prompt' | 'className'>;\n\nfunction View({\n children,\n subtitle,\n additionalInfo,\n prompt,\n disabled,\n isPartiallyInteractive,\n controlType = 'non-interactive',\n controlProps,\n className = '',\n}: ViewProps) {\n const { ids, describedByIds } = useContext<ListItemContextData>(ListItemContext);\n const isLinkControl = ['navigation'].includes(controlType);\n\n const isHrefProvided = isLinkControl && !!(controlProps as ListItemNavigationProps)?.href;\n\n const renderExtras = () => (\n <>\n {Boolean(subtitle) && additionalInfo}\n {prompt}\n </>\n );\n\n if (isLinkControl && isHrefProvided) {\n return (\n // for link instances of .Navigation, .IconButton, .Button\n <div className={clsx('wds-list-item-gridWrapper', className)}>\n <PrimitiveAnchor\n aria-describedby={describedByIds}\n href={(controlProps as ListItemNavigationProps)?.href}\n target={(controlProps as ListItemNavigationProps)?.target}\n className={clsx('wds-list-item-view d-flex flex-row', {\n 'wds-list-item-control': controlType === 'navigation',\n })}\n disabled={disabled}\n >\n {children}\n </PrimitiveAnchor>\n\n {renderExtras()}\n </div>\n );\n }\n\n if (isPartiallyInteractive || controlType === 'non-interactive') {\n return (\n <div className={clsx('wds-list-item-gridWrapper', className)}>\n <div className={clsx('wds-list-item-view d-flex flex-row')}>{children}</div>\n\n {renderExtras()}\n </div>\n );\n }\n\n // for form control instances of .Radio, .Checkbox, .Switch, .Button, .Navigation etc\n // Radio cannot be wrapped in a <fieldset> element to announce it as a group.\n const InputWrapper = controlType === 'radio' ? 'div' : 'fieldset';\n return (\n <InputWrapper className={clsx('wds-list-item-gridWrapper', className)}>\n <label\n htmlFor={ids.control}\n className={clsx('wds-list-item-view', {\n clickable: !disabled,\n fullyInteractive: !isPartiallyInteractive,\n })}\n >\n {children}\n </label>\n\n {renderExtras()}\n </InputWrapper>\n );\n}\n\nListItem.Image = Image;\nListItem.AvatarView = AvatarView;\nListItem.AvatarLayout = AvatarLayout;\nListItem.AdditionalInfo = AdditionalInfo;\nListItem.Checkbox = Checkbox;\nListItem.Radio = Radio;\nListItem.IconButton = IconButton;\nListItem.Navigation = Navigation;\nListItem.Button = Button;\nListItem.Switch = Switch;\nListItem.Prompt = Prompt;\n\nexport default ListItem;\n"],"names":["ListItem","as","ListItemElement","title","subtitle","additionalInfo","prompt","inverted","media","spotlight","valueTitle","valueSubtitle","control","disabled","className","valueColumnWidth","id","idPrefix","useId","controlProps","setControlProps","useState","controlType","setControlType","mediaSize","setMediaSize","ids","isPartiallyInteractive","Boolean","partiallyInteractive","isFullyInteractive","isButtonAsLink","href","titlesAndValues","join","additionalInfoPrompt","filter","describedByIds","useMemo","listItemContext","props","gridColumnsStyle","getFeatureClassName","partials","hasMedia","hasControl","hasInfo","hasPrompt","push","_jsx","ListItemContext","Provider","value","children","_jsxs","clsx","View","style","undefined","titles","Body","type","Typography","BODY_LARGE_BOLD","reverse","values","useContext","isLinkControl","includes","isHrefProvided","renderExtras","_Fragment","PrimitiveAnchor","target","InputWrapper","htmlFor","clickable","fullyInteractive","Image","AvatarView","AvatarLayout","AdditionalInfo","Checkbox","Radio","IconButton","Navigation","Button","Switch","Prompt"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGO,MAAMA,QAAQ,GAAGA,CAAC;EACvBC,EAAE,EAAEC,eAAe,GAAG,IAAI;EAC1BC,KAAK;EACLC,QAAQ;EACRC,cAAc;EACdC,MAAM;EACNC,QAAQ;EACRC,KAAK;EACLC,SAAS;EACTC,UAAU;EACVC,aAAa;AACbC,EAAAA,OAAO,GAAG,IAAI;EACdC,QAAQ;EACRC,SAAS;EACTC,gBAAgB;AAChBC,EAAAA;AAAE,CACY,KAAI;AAClB,EAAA,MAAMC,QAAQ,GAAGC,WAAK,EAAE;EACxB,MAAM,CAACC,YAAY,EAAEC,eAAe,CAAC,GAAGC,cAAQ,CAAuB,EAAE,CAAC;EAC1E,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAGF,cAAQ,CAAgB,iBAAiB,CAAC;EAChF,MAAM,CAACG,SAAS,EAAEC,YAAY,CAAC,GAAGJ,cAAQ,EAAiC;AAE3E,EAAA,MAAMK,GAAG,GAA+B;IACtCvB,KAAK,EAAE,CAAA,EAAGc,QAAQ,CAAA,MAAA,CAAQ;AAC1B,IAAA,IAAIb,QAAQ,GAAG;MAAEA,QAAQ,EAAE,GAAGa,QAAQ,CAAA,SAAA;KAAa,GAAG,EAAE,CAAC;AACzD,IAAA,IAAIP,UAAU,GAAG;MAAEA,UAAU,EAAE,GAAGO,QAAQ,CAAA,YAAA;KAAgB,GAAG,EAAE,CAAC;AAChE,IAA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