@nypl/design-system-react-components 0.25.13 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/README.md +10 -10
  3. package/dist/components/Accordion/Accordion.d.ts +1 -1
  4. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  5. package/dist/components/Button/Button.d.ts +2 -2
  6. package/dist/components/Card/Card.d.ts +11 -9
  7. package/dist/components/Checkbox/Checkbox.d.ts +2 -2
  8. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +5 -4
  9. package/dist/components/ComponentWrapper/ComponentWrapper.d.ts +1 -1
  10. package/dist/components/DatePicker/DatePicker.d.ts +5 -6
  11. package/dist/components/Fieldset/Fieldset.d.ts +5 -6
  12. package/dist/components/Form/Form.d.ts +6 -6
  13. package/dist/components/Grid/GridTypes.d.ts +7 -7
  14. package/dist/components/Grid/SimpleGrid.d.ts +1 -1
  15. package/dist/components/Heading/Heading.d.ts +1 -1
  16. package/dist/components/HelperErrorText/HelperErrorText.d.ts +9 -8
  17. package/dist/components/Hero/Hero.d.ts +2 -1
  18. package/dist/components/HorizontalRule/HorizontalRule.d.ts +2 -10
  19. package/dist/components/Icons/Icon.d.ts +2 -1
  20. package/dist/components/Image/Image.d.ts +2 -2
  21. package/dist/components/Label/Label.d.ts +7 -4
  22. package/dist/components/Link/Link.d.ts +1 -1
  23. package/dist/components/List/List.d.ts +11 -11
  24. package/dist/components/List/ListTypes.d.ts +1 -1
  25. package/dist/components/Logo/Logo.d.ts +2 -1
  26. package/dist/components/Logo/LogoSvgs.d.ts +2 -0
  27. package/dist/components/Logo/LogoTypes.d.ts +2 -0
  28. package/dist/components/Modal/Modal.d.ts +28 -8
  29. package/dist/components/Notification/Notification.d.ts +4 -4
  30. package/dist/components/Pagination/Pagination.d.ts +2 -2
  31. package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +3 -3
  32. package/dist/components/Radio/Radio.d.ts +4 -6
  33. package/dist/components/RadioGroup/RadioGroup.d.ts +12 -6
  34. package/dist/components/SearchBar/SearchBar.d.ts +4 -4
  35. package/dist/components/Select/Select.d.ts +10 -6
  36. package/dist/components/Select/SelectTypes.d.ts +4 -0
  37. package/dist/components/SkeletonLoader/SkeletonLoader.d.ts +4 -3
  38. package/dist/components/Slider/Slider.d.ts +6 -4
  39. package/dist/components/StatusBadge/StatusBadge.d.ts +5 -1
  40. package/dist/components/StructuredContent/StructuredContent.d.ts +2 -2
  41. package/dist/components/Table/Table.d.ts +1 -1
  42. package/dist/components/Tabs/Tabs.d.ts +4 -3
  43. package/dist/components/Template/Template.d.ts +4 -3
  44. package/dist/components/Text/Text.d.ts +1 -1
  45. package/dist/components/TextInput/TextInput.d.ts +5 -5
  46. package/dist/components/Toggle/Toggle.d.ts +3 -4
  47. package/dist/components/VideoPlayer/VideoPlayer.d.ts +2 -1
  48. package/dist/design-system-react-components.cjs.development.js +1767 -1180
  49. package/dist/design-system-react-components.cjs.development.js.map +1 -1
  50. package/dist/design-system-react-components.cjs.production.min.js +1 -1
  51. package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
  52. package/dist/design-system-react-components.esm.js +1774 -1188
  53. package/dist/design-system-react-components.esm.js.map +1 -1
  54. package/dist/hooks/useCarouselStyles.d.ts +3 -2
  55. package/dist/hooks/useNYPLTheme.d.ts +12 -0
  56. package/dist/index.d.ts +5 -2
  57. package/dist/styles.css +1 -1
  58. package/dist/theme/components/button.d.ts +10 -2
  59. package/dist/theme/components/card.d.ts +42 -22
  60. package/dist/theme/components/checkbox.d.ts +5 -4
  61. package/dist/theme/components/checkboxGroup.d.ts +1 -1
  62. package/dist/theme/components/componentWrapper.d.ts +2 -2
  63. package/dist/theme/components/customTable.d.ts +84 -1
  64. package/dist/theme/components/fieldset.d.ts +4 -14
  65. package/dist/theme/components/global.d.ts +23 -17
  66. package/dist/theme/components/heading.d.ts +53 -0
  67. package/dist/theme/components/helperErrorText.d.ts +1 -0
  68. package/dist/theme/components/hero.d.ts +20 -14
  69. package/dist/theme/components/label.d.ts +9 -10
  70. package/dist/theme/components/list.d.ts +99 -9
  71. package/dist/theme/components/radio.d.ts +6 -4
  72. package/dist/theme/components/radioGroup.d.ts +1 -1
  73. package/dist/theme/components/select.d.ts +28 -5
  74. package/dist/theme/components/skeletonLoader.d.ts +2 -2
  75. package/dist/theme/components/slider.d.ts +6 -3
  76. package/dist/theme/components/structuredContent.d.ts +197 -0
  77. package/dist/theme/components/textInput.d.ts +18 -6
  78. package/dist/theme/components/toggle.d.ts +7 -4
  79. package/dist/theme/foundations/global.d.ts +2 -0
  80. package/dist/theme/foundations/radii.d.ts +1 -0
  81. package/dist/theme/foundations/spacing.d.ts +46 -43
  82. package/package.json +17 -19
  83. package/src/components/Accordion/Accordion.stories.mdx +9 -9
  84. package/src/components/Accordion/Accordion.test.tsx +21 -0
  85. package/src/components/Accordion/Accordion.tsx +13 -9
  86. package/src/components/Accordion/__snapshots__/Accordion.test.tsx.snap +276 -27
  87. package/src/components/Autosuggest/Autosuggest.stories.mdx +4 -3
  88. package/src/components/Breadcrumbs/Breadcrumbs.stories.mdx +21 -5
  89. package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +52 -31
  90. package/src/components/Breadcrumbs/Breadcrumbs.tsx +8 -7
  91. package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +211 -12
  92. package/src/components/Button/Button.stories.mdx +87 -23
  93. package/src/components/Button/Button.test.tsx +25 -0
  94. package/src/components/Button/Button.tsx +18 -7
  95. package/src/components/Button/__snapshots__/Button.test.tsx.snap +27 -7
  96. package/src/components/Card/Card.stories.mdx +287 -194
  97. package/src/components/Card/Card.test.tsx +102 -0
  98. package/src/components/Card/Card.tsx +73 -32
  99. package/src/components/Card/__snapshots__/Card.test.tsx.snap +196 -36
  100. package/src/components/Chakra/Grid.stories.mdx +4 -4
  101. package/src/components/Checkbox/Checkbox.stories.mdx +62 -10
  102. package/src/components/Checkbox/Checkbox.test.tsx +32 -9
  103. package/src/components/Checkbox/Checkbox.tsx +20 -15
  104. package/src/components/Checkbox/__snapshots__/Checkbox.test.tsx.snap +134 -7
  105. package/src/components/CheckboxGroup/CheckboxGroup.stories.mdx +65 -17
  106. package/src/components/CheckboxGroup/CheckboxGroup.test.tsx +137 -81
  107. package/src/components/CheckboxGroup/CheckboxGroup.tsx +31 -21
  108. package/src/components/CheckboxGroup/__snapshots__/CheckboxGroup.test.tsx.snap +332 -97
  109. package/src/components/ComponentWrapper/ComponentWrapper.test.tsx +12 -0
  110. package/src/components/ComponentWrapper/ComponentWrapper.tsx +39 -41
  111. package/src/components/ComponentWrapper/__snapshots__/ComponentWrapper.test.tsx.snap +47 -34
  112. package/src/components/DatePicker/DatePicker.stories.mdx +63 -27
  113. package/src/components/DatePicker/DatePicker.test.tsx +89 -13
  114. package/src/components/DatePicker/DatePicker.tsx +62 -56
  115. package/src/components/DatePicker/_DatePicker.scss +71 -13
  116. package/src/components/DatePicker/__snapshots__/DatePicker.test.tsx.snap +250 -206
  117. package/src/components/Fieldset/Fieldset.stories.mdx +33 -3
  118. package/src/components/Fieldset/Fieldset.test.tsx +58 -28
  119. package/src/components/Fieldset/Fieldset.tsx +35 -30
  120. package/src/components/Fieldset/__snapshots__/Fieldset.test.tsx.snap +40 -19
  121. package/src/components/Form/Form.stories.mdx +72 -39
  122. package/src/components/Form/Form.test.tsx +58 -15
  123. package/src/components/Form/Form.tsx +89 -67
  124. package/src/components/Form/__snapshots__/Form.test.tsx.snap +83 -5
  125. package/src/components/Grid/GridTypes.tsx +7 -7
  126. package/src/components/Grid/SimpleGrid.stories.mdx +34 -6
  127. package/src/components/Grid/SimpleGrid.test.tsx +9 -0
  128. package/src/components/Grid/SimpleGrid.tsx +29 -20
  129. package/src/components/Grid/__snapshots__/SimpleGrid.test.tsx.snap +16 -1
  130. package/src/components/Heading/Heading.stories.mdx +36 -3
  131. package/src/components/Heading/Heading.test.tsx +10 -0
  132. package/src/components/Heading/Heading.tsx +56 -50
  133. package/src/components/Heading/__snapshots__/Heading.test.tsx.snap +26 -7
  134. package/src/components/HelperErrorText/HelperErrorText.stories.mdx +64 -42
  135. package/src/components/HelperErrorText/HelperErrorText.test.tsx +15 -0
  136. package/src/components/HelperErrorText/HelperErrorText.tsx +40 -35
  137. package/src/components/HelperErrorText/__snapshots__/HelperErrorText.test.tsx.snap +35 -4
  138. package/src/components/Hero/Hero.stories.mdx +125 -95
  139. package/src/components/Hero/Hero.test.tsx +33 -0
  140. package/src/components/Hero/Hero.tsx +135 -126
  141. package/src/components/Hero/__snapshots__/Hero.test.tsx.snap +89 -17
  142. package/src/components/HorizontalRule/HorizontalRule.stories.mdx +26 -4
  143. package/src/components/HorizontalRule/HorizontalRule.test.tsx +9 -19
  144. package/src/components/HorizontalRule/HorizontalRule.tsx +9 -26
  145. package/src/components/HorizontalRule/__snapshots__/HorizontalRule.test.tsx.snap +18 -5
  146. package/src/components/Icons/Icon.stories.mdx +31 -6
  147. package/src/components/Icons/Icon.test.tsx +38 -0
  148. package/src/components/Icons/Icon.tsx +93 -76
  149. package/src/components/Icons/__snapshots__/Icon.test.tsx.snap +129 -0
  150. package/src/components/Image/Image.stories.mdx +29 -5
  151. package/src/components/Image/Image.test.tsx +8 -0
  152. package/src/components/Image/Image.tsx +38 -26
  153. package/src/components/Image/__snapshots__/Image.test.tsx.snap +24 -8
  154. package/src/components/Label/Label.stories.mdx +42 -20
  155. package/src/components/Label/Label.test.tsx +42 -17
  156. package/src/components/Label/Label.tsx +22 -13
  157. package/src/components/Label/__snapshots__/Label.test.tsx.snap +19 -15
  158. package/src/components/Link/Link.stories.mdx +25 -15
  159. package/src/components/Link/Link.test.tsx +21 -22
  160. package/src/components/Link/Link.tsx +8 -8
  161. package/src/components/Link/__snapshots__/Link.test.tsx.snap +37 -11
  162. package/src/components/List/List.stories.mdx +75 -40
  163. package/src/components/List/List.test.tsx +67 -19
  164. package/src/components/List/List.tsx +38 -25
  165. package/src/components/List/ListTypes.tsx +1 -1
  166. package/src/components/List/__snapshots__/List.test.tsx.snap +110 -8
  167. package/src/components/Logo/Logo.stories.mdx +30 -6
  168. package/src/components/Logo/Logo.test.tsx +17 -0
  169. package/src/components/Logo/Logo.tsx +18 -6
  170. package/src/components/Logo/LogoSvgs.tsx +4 -0
  171. package/src/components/Logo/LogoTypes.tsx +2 -0
  172. package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +73 -2
  173. package/src/components/Modal/Modal.stories.mdx +256 -136
  174. package/src/components/Modal/Modal.test.tsx +151 -9
  175. package/src/components/Modal/Modal.tsx +140 -20
  176. package/src/components/Modal/__snapshots__/Modal.test.tsx.snap +25 -0
  177. package/src/components/Notification/Notification.stories.mdx +25 -1
  178. package/src/components/Notification/Notification.test.tsx +23 -0
  179. package/src/components/Notification/Notification.tsx +46 -44
  180. package/src/components/Notification/__snapshots__/Notification.test.tsx.snap +158 -29
  181. package/src/components/Pagination/Pagination.stories.mdx +25 -6
  182. package/src/components/Pagination/Pagination.test.tsx +25 -0
  183. package/src/components/Pagination/Pagination.tsx +6 -6
  184. package/src/components/Pagination/__snapshots__/Pagination.test.tsx.snap +244 -27
  185. package/src/components/Placeholder/Placeholder.tsx +3 -1
  186. package/src/components/ProgressIndicator/ProgressIndicator.stories.mdx +76 -10
  187. package/src/components/ProgressIndicator/ProgressIndicator.test.tsx +81 -11
  188. package/src/components/ProgressIndicator/ProgressIndicator.tsx +17 -9
  189. package/src/components/ProgressIndicator/__snapshots__/ProgressIndicator.test.tsx.snap +101 -14
  190. package/src/components/Radio/Radio.stories.mdx +64 -12
  191. package/src/components/Radio/Radio.test.tsx +28 -8
  192. package/src/components/Radio/Radio.tsx +66 -63
  193. package/src/components/Radio/__snapshots__/Radio.test.tsx.snap +103 -6
  194. package/src/components/RadioGroup/RadioGroup.stories.mdx +224 -89
  195. package/src/components/RadioGroup/RadioGroup.test.tsx +122 -62
  196. package/src/components/RadioGroup/RadioGroup.tsx +106 -100
  197. package/src/components/RadioGroup/__snapshots__/RadioGroup.test.tsx.snap +1236 -1020
  198. package/src/components/SearchBar/SearchBar.stories.mdx +101 -36
  199. package/src/components/SearchBar/{SearchBar.Test.tsx → SearchBar.test.tsx} +46 -4
  200. package/src/components/SearchBar/SearchBar.tsx +17 -8
  201. package/src/components/SearchBar/__snapshots__/SearchBar.test.tsx.snap +1039 -0
  202. package/src/components/Select/Select.stories.mdx +128 -49
  203. package/src/components/Select/Select.test.tsx +63 -16
  204. package/src/components/Select/Select.tsx +131 -92
  205. package/src/components/Select/SelectTypes.tsx +5 -0
  206. package/src/components/Select/__snapshots__/Select.test.tsx.snap +765 -425
  207. package/src/components/SkeletonLoader/SkeletonLoader.stories.mdx +42 -10
  208. package/src/components/SkeletonLoader/SkeletonLoader.test.tsx +8 -0
  209. package/src/components/SkeletonLoader/SkeletonLoader.tsx +76 -72
  210. package/src/components/SkeletonLoader/__snapshots__/SkeletonLoader.test.tsx.snap +169 -10
  211. package/src/components/Slider/Slider.stories.mdx +91 -42
  212. package/src/components/Slider/Slider.test.tsx +65 -17
  213. package/src/components/Slider/Slider.tsx +26 -19
  214. package/src/components/Slider/__snapshots__/Slider.test.tsx.snap +403 -226
  215. package/src/components/StatusBadge/StatusBadge.stories.mdx +19 -1
  216. package/src/components/StatusBadge/StatusBadge.test.tsx +16 -0
  217. package/src/components/StatusBadge/StatusBadge.tsx +25 -20
  218. package/src/components/StatusBadge/__snapshots__/StatusBadge.test.tsx.snap +22 -3
  219. package/src/components/StructuredContent/StructuredContent.stories.mdx +131 -12
  220. package/src/components/StructuredContent/StructuredContent.test.tsx +34 -0
  221. package/src/components/StructuredContent/StructuredContent.tsx +80 -75
  222. package/src/components/StructuredContent/__snapshots__/StructuredContent.test.tsx.snap +102 -17
  223. package/src/components/StyleGuide/Bidirectionality.stories.mdx +5 -5
  224. package/src/components/StyleGuide/Breakpoints.stories.mdx +6 -6
  225. package/src/components/StyleGuide/Buttons.stories.mdx +2 -12
  226. package/src/components/StyleGuide/ColorCard.tsx +1 -1
  227. package/src/components/StyleGuide/Colors.stories.mdx +1 -2
  228. package/src/components/StyleGuide/DesignTokens.stories.mdx +56 -26
  229. package/src/components/StyleGuide/Forms.stories.mdx +27 -12
  230. package/src/components/StyleGuide/Iconography.stories.mdx +2 -12
  231. package/src/components/StyleGuide/Spacing.stories.mdx +80 -41
  232. package/src/components/StyleGuide/Typography.stories.mdx +30 -21
  233. package/src/components/Table/Table.stories.mdx +38 -11
  234. package/src/components/Table/Table.test.tsx +15 -0
  235. package/src/components/Table/Table.tsx +7 -7
  236. package/src/components/Table/__snapshots__/Table.test.tsx.snap +408 -5
  237. package/src/components/Tabs/Tabs.stories.mdx +52 -3
  238. package/src/components/Tabs/Tabs.test.tsx +16 -0
  239. package/src/components/Tabs/Tabs.tsx +10 -6
  240. package/src/components/Tabs/__snapshots__/Tabs.test.tsx.snap +394 -5
  241. package/src/components/Template/Template.stories.mdx +47 -43
  242. package/src/components/Template/Template.test.tsx +33 -0
  243. package/src/components/Template/Template.tsx +65 -60
  244. package/src/components/Template/__snapshots__/Template.test.tsx.snap +191 -20
  245. package/src/components/Text/Text.stories.mdx +20 -1
  246. package/src/components/Text/Text.test.tsx +12 -0
  247. package/src/components/Text/Text.tsx +6 -4
  248. package/src/components/Text/__snapshots__/Text.test.tsx.snap +21 -4
  249. package/src/components/TextInput/TextInput.stories.mdx +65 -19
  250. package/src/components/TextInput/TextInput.test.tsx +42 -28
  251. package/src/components/TextInput/TextInput.tsx +121 -113
  252. package/src/components/TextInput/__snapshots__/TextInput.test.tsx.snap +96 -73
  253. package/src/components/Toggle/Toggle.stories.mdx +80 -22
  254. package/src/components/Toggle/Toggle.test.tsx +27 -9
  255. package/src/components/Toggle/Toggle.tsx +22 -18
  256. package/src/components/Toggle/__snapshots__/Toggle.test.tsx.snap +128 -5
  257. package/src/components/VideoPlayer/VideoPlayer.stories.mdx +52 -4
  258. package/src/components/VideoPlayer/VideoPlayer.test.tsx +23 -0
  259. package/src/components/VideoPlayer/VideoPlayer.tsx +133 -126
  260. package/src/components/VideoPlayer/__snapshots__/VideoPlayer.test.tsx.snap +81 -39
  261. package/src/docs/Chakra.stories.mdx +50 -9
  262. package/src/docs/Welcome.stories.mdx +160 -41
  263. package/src/hooks/useCarouselStyles.stories.mdx +22 -2
  264. package/src/hooks/useCarouselStyles.ts +3 -2
  265. package/src/hooks/useNYPLTheme.stories.mdx +101 -0
  266. package/src/hooks/useNYPLTheme.ts +30 -6
  267. package/src/hooks/useWindowSize.stories.mdx +23 -0
  268. package/src/index.ts +5 -2
  269. package/src/styles/base/_place-holder.scss +1 -1
  270. package/src/styles.scss +0 -1
  271. package/src/theme/components/button.ts +15 -7
  272. package/src/theme/components/card.ts +30 -19
  273. package/src/theme/components/checkbox.ts +10 -8
  274. package/src/theme/components/checkboxGroup.ts +1 -1
  275. package/src/theme/components/componentWrapper.ts +2 -2
  276. package/src/theme/components/customTable.ts +39 -31
  277. package/src/theme/components/fieldset.ts +1 -2
  278. package/src/theme/components/global.ts +25 -20
  279. package/src/theme/components/heading.ts +1 -1
  280. package/src/theme/components/helperErrorText.ts +1 -0
  281. package/src/theme/components/hero.ts +13 -15
  282. package/src/theme/components/label.ts +4 -3
  283. package/src/theme/components/list.ts +73 -66
  284. package/src/theme/components/notification.ts +2 -2
  285. package/src/theme/components/radio.ts +9 -9
  286. package/src/theme/components/radioGroup.ts +1 -1
  287. package/src/theme/components/select.ts +31 -22
  288. package/src/theme/components/skeletonLoader.ts +3 -3
  289. package/src/theme/components/slider.ts +8 -7
  290. package/src/theme/components/statusBadge.ts +2 -2
  291. package/src/theme/components/structuredContent.ts +66 -1
  292. package/src/theme/components/tabs.ts +2 -2
  293. package/src/theme/components/template.ts +9 -9
  294. package/src/theme/components/textInput.ts +13 -12
  295. package/src/theme/components/toggle.ts +17 -10
  296. package/src/theme/components/videoPlayer.ts +1 -1
  297. package/src/theme/foundations/colors.ts +1 -1
  298. package/src/theme/foundations/radii.ts +1 -0
  299. package/src/theme/foundations/spacing.ts +70 -22
  300. package/src/theme/foundations/typography.ts +2 -2
  301. package/src/utils/componentCategories.ts +1 -2
  302. package/dist/components/SearchBar/SearchBar.Test.d.ts +0 -1
  303. package/dist/helpers/generateUUID.d.ts +0 -1
  304. package/src/components/Modal/_Modal.scss +0 -18
  305. package/src/helpers/generateUUID.tsx +0 -5
@@ -0,0 +1,1039 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`SearchBar renders the UI snapshot correctly 1`] = `
4
+ <div
5
+ className="css-1xdhyk6"
6
+ >
7
+ <form
8
+ aria-label="SearchBar label - Search for items in Animal Crossing New Horizons"
9
+ className="css-1xdhyk6"
10
+ id="searchbar-form-basic"
11
+ onSubmit={[MockFunction]}
12
+ role="search"
13
+ >
14
+ <div
15
+ className="css-1xdhyk6"
16
+ >
17
+ <input
18
+ aria-label="Item Search"
19
+ className="chakra-input css-0"
20
+ disabled={false}
21
+ id="searchbar-textinput-basic"
22
+ name="textInputName"
23
+ onBlur={[Function]}
24
+ onChange={[MockFunction]}
25
+ onFocus={[Function]}
26
+ placeholder="Item Search "
27
+ required={false}
28
+ step={null}
29
+ type="text"
30
+ />
31
+
32
+ </div>
33
+ <button
34
+ className="chakra-button css-1me3d5y"
35
+ data-testid="button"
36
+ id="searchbar-button-basic"
37
+ onClick={null}
38
+ type="submit"
39
+ >
40
+ <svg
41
+ aria-hidden={true}
42
+ className="chakra-icon css-1grhd2q"
43
+ focusable={false}
44
+ id="searchbar-icon-basic"
45
+ role="img"
46
+ title="search icon"
47
+ viewBox="0 0 24 24"
48
+ >
49
+ <g
50
+ stroke="currentColor"
51
+ strokeWidth="1.5"
52
+ >
53
+ <path
54
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
55
+ fill="none"
56
+ strokeLinecap="round"
57
+ />
58
+ <path
59
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
60
+ fill="currentColor"
61
+ strokeLinecap="round"
62
+ />
63
+ <circle
64
+ cx="12"
65
+ cy="12"
66
+ fill="none"
67
+ r="11.25"
68
+ strokeMiterlimit="10"
69
+ />
70
+ </g>
71
+ </svg>
72
+ Search
73
+ </button>
74
+ </form>
75
+ <div
76
+ aria-atomic={true}
77
+ aria-live="off"
78
+ className="css-1xdhyk6"
79
+ dangerouslySetInnerHTML={
80
+ Object {
81
+ "__html": "Search for items in Animal Crossing New Horizons",
82
+ }
83
+ }
84
+ data-isinvalid={false}
85
+ id="basic-helperText"
86
+ />
87
+ </div>
88
+ `;
89
+
90
+ exports[`SearchBar renders the UI snapshot correctly 2`] = `
91
+ <div
92
+ className="css-1xdhyk6"
93
+ >
94
+ <form
95
+ aria-label="SearchBar label - Search for items in Animal Crossing New Horizons"
96
+ className="css-1xdhyk6"
97
+ id="searchbar-form-withSelect"
98
+ onSubmit={[MockFunction]}
99
+ role="search"
100
+ >
101
+ <div
102
+ className="css-1xdhyk6"
103
+ >
104
+ <div
105
+ className="css-0"
106
+ >
107
+ <div
108
+ className="chakra-select__wrapper css-42b2qy"
109
+ >
110
+ <select
111
+ aria-label="Select a category"
112
+ className="chakra-select css-1ik61og"
113
+ disabled={false}
114
+ id="searchbar-select-withSelect"
115
+ name="selectName"
116
+ onBlur={[Function]}
117
+ onChange={[Function]}
118
+ onFocus={[Function]}
119
+ required={false}
120
+ value="Songs"
121
+ >
122
+ <option
123
+ value="Art"
124
+ >
125
+ Art
126
+ </option>
127
+ <option
128
+ value="Bushes"
129
+ >
130
+ Bushes
131
+ </option>
132
+ <option
133
+ value="Clothing"
134
+ >
135
+ Clothing
136
+ </option>
137
+ <option
138
+ value="Flowers"
139
+ >
140
+ Flowers
141
+ </option>
142
+ <option
143
+ value="Fossils"
144
+ >
145
+ Fossils
146
+ </option>
147
+ <option
148
+ value="Fruits"
149
+ >
150
+ Fruits
151
+ </option>
152
+ <option
153
+ value="Furniture"
154
+ >
155
+ Furniture
156
+ </option>
157
+ <option
158
+ value="Songs"
159
+ >
160
+ Songs
161
+ </option>
162
+ <option
163
+ value="Tools"
164
+ >
165
+ Tools
166
+ </option>
167
+ <option
168
+ value="Villagers"
169
+ >
170
+ Villagers
171
+ </option>
172
+ </select>
173
+ <div
174
+ className="chakra-select__icon-wrapper css-162mkon"
175
+ >
176
+ <svg
177
+ aria-hidden={true}
178
+ className="chakra-icon chakra-select__icon css-1grhd2q"
179
+ focusable={false}
180
+ id="searchbar-select-withSelect-icon"
181
+ role="presentation"
182
+ style={
183
+ Object {
184
+ "color": "currentColor",
185
+ "height": "1em",
186
+ "width": "1em",
187
+ }
188
+ }
189
+ title="arrow icon"
190
+ viewBox="0 0 24 24"
191
+ >
192
+ <g
193
+ stroke="currentColor"
194
+ strokeWidth="1.5"
195
+ >
196
+ <path
197
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
198
+ fill="none"
199
+ strokeLinecap="round"
200
+ />
201
+ <path
202
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
203
+ fill="currentColor"
204
+ strokeLinecap="round"
205
+ />
206
+ <circle
207
+ cx="12"
208
+ cy="12"
209
+ fill="none"
210
+ r="11.25"
211
+ strokeMiterlimit="10"
212
+ />
213
+ </g>
214
+ </svg>
215
+ </div>
216
+ </div>
217
+ </div>
218
+
219
+ </div>
220
+ <div
221
+ className="css-1xdhyk6"
222
+ >
223
+ <input
224
+ aria-label="Item Search"
225
+ className="chakra-input css-0"
226
+ disabled={false}
227
+ id="searchbar-textinput-withSelect"
228
+ name="textInputName"
229
+ onBlur={[Function]}
230
+ onChange={[MockFunction]}
231
+ onFocus={[Function]}
232
+ placeholder="Item Search "
233
+ required={false}
234
+ step={null}
235
+ type="text"
236
+ />
237
+
238
+ </div>
239
+ <button
240
+ className="chakra-button css-1me3d5y"
241
+ data-testid="button"
242
+ id="searchbar-button-withSelect"
243
+ onClick={null}
244
+ type="submit"
245
+ >
246
+ <svg
247
+ aria-hidden={true}
248
+ className="chakra-icon css-1grhd2q"
249
+ focusable={false}
250
+ id="searchbar-icon-withSelect"
251
+ role="img"
252
+ title="search icon"
253
+ viewBox="0 0 24 24"
254
+ >
255
+ <g
256
+ stroke="currentColor"
257
+ strokeWidth="1.5"
258
+ >
259
+ <path
260
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
261
+ fill="none"
262
+ strokeLinecap="round"
263
+ />
264
+ <path
265
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
266
+ fill="currentColor"
267
+ strokeLinecap="round"
268
+ />
269
+ <circle
270
+ cx="12"
271
+ cy="12"
272
+ fill="none"
273
+ r="11.25"
274
+ strokeMiterlimit="10"
275
+ />
276
+ </g>
277
+ </svg>
278
+ Search
279
+ </button>
280
+ </form>
281
+ <div
282
+ aria-atomic={true}
283
+ aria-live="off"
284
+ className="css-1xdhyk6"
285
+ dangerouslySetInnerHTML={
286
+ Object {
287
+ "__html": "Search for items in Animal Crossing New Horizons",
288
+ }
289
+ }
290
+ data-isinvalid={false}
291
+ id="withSelect-helperText"
292
+ />
293
+ </div>
294
+ `;
295
+
296
+ exports[`SearchBar renders the UI snapshot correctly 3`] = `
297
+ <div
298
+ className="css-1xdhyk6"
299
+ >
300
+ <form
301
+ aria-label="SearchBar label"
302
+ className="css-1xdhyk6"
303
+ id="searchbar-form-withoutHelperText"
304
+ onSubmit={[MockFunction]}
305
+ role="search"
306
+ >
307
+ <div
308
+ className="css-1xdhyk6"
309
+ >
310
+ <input
311
+ aria-label="Item Search"
312
+ className="chakra-input css-0"
313
+ disabled={false}
314
+ id="searchbar-textinput-withoutHelperText"
315
+ name="textInputName"
316
+ onBlur={[Function]}
317
+ onChange={[MockFunction]}
318
+ onFocus={[Function]}
319
+ placeholder="Item Search "
320
+ required={false}
321
+ step={null}
322
+ type="text"
323
+ />
324
+
325
+ </div>
326
+ <button
327
+ className="chakra-button css-1me3d5y"
328
+ data-testid="button"
329
+ id="searchbar-button-withoutHelperText"
330
+ onClick={null}
331
+ type="submit"
332
+ >
333
+ <svg
334
+ aria-hidden={true}
335
+ className="chakra-icon css-1grhd2q"
336
+ focusable={false}
337
+ id="searchbar-icon-withoutHelperText"
338
+ role="img"
339
+ title="search icon"
340
+ viewBox="0 0 24 24"
341
+ >
342
+ <g
343
+ stroke="currentColor"
344
+ strokeWidth="1.5"
345
+ >
346
+ <path
347
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
348
+ fill="none"
349
+ strokeLinecap="round"
350
+ />
351
+ <path
352
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
353
+ fill="currentColor"
354
+ strokeLinecap="round"
355
+ />
356
+ <circle
357
+ cx="12"
358
+ cy="12"
359
+ fill="none"
360
+ r="11.25"
361
+ strokeMiterlimit="10"
362
+ />
363
+ </g>
364
+ </svg>
365
+ Search
366
+ </button>
367
+ </form>
368
+ </div>
369
+ `;
370
+
371
+ exports[`SearchBar renders the UI snapshot correctly 4`] = `
372
+ <div
373
+ className="css-1xdhyk6"
374
+ >
375
+ <form
376
+ aria-label="SearchBar label"
377
+ className="css-1xdhyk6"
378
+ id="searchbar-form-invalidState"
379
+ onSubmit={[MockFunction]}
380
+ role="search"
381
+ >
382
+ <div
383
+ className="css-1xdhyk6"
384
+ >
385
+ <input
386
+ aria-invalid={true}
387
+ aria-label="Item Search - There is an error related to this field."
388
+ className="chakra-input css-0"
389
+ disabled={false}
390
+ id="searchbar-textinput-invalidState"
391
+ name="textInputName"
392
+ onBlur={[Function]}
393
+ onChange={[MockFunction]}
394
+ onFocus={[Function]}
395
+ placeholder="Item Search "
396
+ required={false}
397
+ step={null}
398
+ type="text"
399
+ />
400
+ </div>
401
+ <button
402
+ className="chakra-button css-1me3d5y"
403
+ data-testid="button"
404
+ id="searchbar-button-invalidState"
405
+ onClick={null}
406
+ type="submit"
407
+ >
408
+ <svg
409
+ aria-hidden={true}
410
+ className="chakra-icon css-1grhd2q"
411
+ focusable={false}
412
+ id="searchbar-icon-invalidState"
413
+ role="img"
414
+ title="search icon"
415
+ viewBox="0 0 24 24"
416
+ >
417
+ <g
418
+ stroke="currentColor"
419
+ strokeWidth="1.5"
420
+ >
421
+ <path
422
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
423
+ fill="none"
424
+ strokeLinecap="round"
425
+ />
426
+ <path
427
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
428
+ fill="currentColor"
429
+ strokeLinecap="round"
430
+ />
431
+ <circle
432
+ cx="12"
433
+ cy="12"
434
+ fill="none"
435
+ r="11.25"
436
+ strokeMiterlimit="10"
437
+ />
438
+ </g>
439
+ </svg>
440
+ Search
441
+ </button>
442
+ </form>
443
+ </div>
444
+ `;
445
+
446
+ exports[`SearchBar renders the UI snapshot correctly 5`] = `
447
+ <div
448
+ className="css-1xdhyk6"
449
+ >
450
+ <form
451
+ aria-label="SearchBar label"
452
+ className="css-1xdhyk6"
453
+ id="searchbar-form-disabledState"
454
+ onSubmit={[MockFunction]}
455
+ role="search"
456
+ >
457
+ <div
458
+ className="css-1xdhyk6"
459
+ >
460
+ <input
461
+ aria-label="Item Search"
462
+ className="chakra-input css-0"
463
+ disabled={true}
464
+ id="searchbar-textinput-disabledState"
465
+ name="textInputName"
466
+ onBlur={[Function]}
467
+ onChange={[MockFunction]}
468
+ onFocus={[Function]}
469
+ placeholder="Item Search "
470
+ required={false}
471
+ step={null}
472
+ type="text"
473
+ />
474
+
475
+ </div>
476
+ <button
477
+ className="chakra-button css-1me3d5y"
478
+ data-testid="button"
479
+ disabled={true}
480
+ id="searchbar-button-disabledState"
481
+ onClick={null}
482
+ type="submit"
483
+ >
484
+ <svg
485
+ aria-hidden={true}
486
+ className="chakra-icon css-1grhd2q"
487
+ focusable={false}
488
+ id="searchbar-icon-disabledState"
489
+ role="img"
490
+ title="search icon"
491
+ viewBox="0 0 24 24"
492
+ >
493
+ <g
494
+ stroke="currentColor"
495
+ strokeWidth="1.5"
496
+ >
497
+ <path
498
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
499
+ fill="none"
500
+ strokeLinecap="round"
501
+ />
502
+ <path
503
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
504
+ fill="currentColor"
505
+ strokeLinecap="round"
506
+ />
507
+ <circle
508
+ cx="12"
509
+ cy="12"
510
+ fill="none"
511
+ r="11.25"
512
+ strokeMiterlimit="10"
513
+ />
514
+ </g>
515
+ </svg>
516
+ Search
517
+ </button>
518
+ </form>
519
+ </div>
520
+ `;
521
+
522
+ exports[`SearchBar renders the UI snapshot correctly 6`] = `
523
+ <div
524
+ className="css-1xdhyk6"
525
+ >
526
+ <form
527
+ aria-label="SearchBar label"
528
+ className="css-1xdhyk6"
529
+ id="searchbar-form-requiredState"
530
+ onSubmit={[MockFunction]}
531
+ role="search"
532
+ >
533
+ <div
534
+ className="css-1xdhyk6"
535
+ >
536
+ <input
537
+ aria-label="Item Search"
538
+ aria-required={true}
539
+ className="chakra-input css-0"
540
+ disabled={true}
541
+ id="searchbar-textinput-requiredState"
542
+ name="textInputName"
543
+ onBlur={[Function]}
544
+ onChange={[MockFunction]}
545
+ onFocus={[Function]}
546
+ placeholder="Item Search (Required)"
547
+ required={true}
548
+ step={null}
549
+ type="text"
550
+ />
551
+
552
+ </div>
553
+ <button
554
+ className="chakra-button css-1me3d5y"
555
+ data-testid="button"
556
+ disabled={true}
557
+ id="searchbar-button-requiredState"
558
+ onClick={null}
559
+ type="submit"
560
+ >
561
+ <svg
562
+ aria-hidden={true}
563
+ className="chakra-icon css-1grhd2q"
564
+ focusable={false}
565
+ id="searchbar-icon-requiredState"
566
+ role="img"
567
+ title="search icon"
568
+ viewBox="0 0 24 24"
569
+ >
570
+ <g
571
+ stroke="currentColor"
572
+ strokeWidth="1.5"
573
+ >
574
+ <path
575
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
576
+ fill="none"
577
+ strokeLinecap="round"
578
+ />
579
+ <path
580
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
581
+ fill="currentColor"
582
+ strokeLinecap="round"
583
+ />
584
+ <circle
585
+ cx="12"
586
+ cy="12"
587
+ fill="none"
588
+ r="11.25"
589
+ strokeMiterlimit="10"
590
+ />
591
+ </g>
592
+ </svg>
593
+ Search
594
+ </button>
595
+ </form>
596
+ </div>
597
+ `;
598
+
599
+ exports[`SearchBar renders the UI snapshot correctly 7`] = `
600
+ <div
601
+ className="css-1xdhyk6"
602
+ >
603
+ <form
604
+ aria-label="SearchBar label"
605
+ className="css-1xdhyk6"
606
+ id="searchbar-form-noBrandButtonType"
607
+ onSubmit={[MockFunction]}
608
+ role="search"
609
+ >
610
+ <div
611
+ className="css-1xdhyk6"
612
+ >
613
+ <input
614
+ aria-label="Item Search"
615
+ aria-required={true}
616
+ className="chakra-input css-0"
617
+ disabled={true}
618
+ id="searchbar-textinput-noBrandButtonType"
619
+ name="textInputName"
620
+ onBlur={[Function]}
621
+ onChange={[MockFunction]}
622
+ onFocus={[Function]}
623
+ placeholder="Item Search (Required)"
624
+ required={true}
625
+ step={null}
626
+ type="text"
627
+ />
628
+
629
+ </div>
630
+ <button
631
+ className="chakra-button css-1me3d5y"
632
+ data-testid="button"
633
+ disabled={true}
634
+ id="searchbar-button-noBrandButtonType"
635
+ onClick={null}
636
+ type="submit"
637
+ >
638
+ <svg
639
+ aria-hidden={true}
640
+ className="chakra-icon css-1grhd2q"
641
+ focusable={false}
642
+ id="searchbar-icon-noBrandButtonType"
643
+ role="img"
644
+ title="search icon"
645
+ viewBox="0 0 24 24"
646
+ >
647
+ <g
648
+ stroke="currentColor"
649
+ strokeWidth="1.5"
650
+ >
651
+ <path
652
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
653
+ fill="none"
654
+ strokeLinecap="round"
655
+ />
656
+ <path
657
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
658
+ fill="currentColor"
659
+ strokeLinecap="round"
660
+ />
661
+ <circle
662
+ cx="12"
663
+ cy="12"
664
+ fill="none"
665
+ r="11.25"
666
+ strokeMiterlimit="10"
667
+ />
668
+ </g>
669
+ </svg>
670
+ Search
671
+ </button>
672
+ </form>
673
+ </div>
674
+ `;
675
+
676
+ exports[`SearchBar renders the UI snapshot correctly 8`] = `
677
+ <div
678
+ className="css-1xdhyk6"
679
+ >
680
+ <h2
681
+ className="chakra-heading css-1xdhyk6"
682
+ id="withHeading-heading"
683
+ >
684
+ A Heading
685
+ </h2>
686
+ <form
687
+ aria-label="SearchBar label"
688
+ className="css-1xdhyk6"
689
+ id="searchbar-form-withHeading"
690
+ onSubmit={[MockFunction]}
691
+ role="search"
692
+ >
693
+ <button
694
+ className="chakra-button css-1me3d5y"
695
+ data-testid="button"
696
+ id="searchbar-button-withHeading"
697
+ onClick={null}
698
+ type="submit"
699
+ >
700
+ <svg
701
+ aria-hidden={true}
702
+ className="chakra-icon css-1grhd2q"
703
+ focusable={false}
704
+ id="searchbar-icon-withHeading"
705
+ role="img"
706
+ title="search icon"
707
+ viewBox="0 0 24 24"
708
+ >
709
+ <g
710
+ stroke="currentColor"
711
+ strokeWidth="1.5"
712
+ >
713
+ <path
714
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
715
+ fill="none"
716
+ strokeLinecap="round"
717
+ />
718
+ <path
719
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
720
+ fill="currentColor"
721
+ strokeLinecap="round"
722
+ />
723
+ <circle
724
+ cx="12"
725
+ cy="12"
726
+ fill="none"
727
+ r="11.25"
728
+ strokeMiterlimit="10"
729
+ />
730
+ </g>
731
+ </svg>
732
+ Search
733
+ </button>
734
+ </form>
735
+ </div>
736
+ `;
737
+
738
+ exports[`SearchBar renders the UI snapshot correctly 9`] = `
739
+ <div
740
+ className="css-1xdhyk6"
741
+ >
742
+ <p
743
+ className="chakra-text css-1xdhyk6"
744
+ >
745
+ A description
746
+ </p>
747
+ <form
748
+ aria-label="SearchBar label"
749
+ className="css-1xdhyk6"
750
+ id="searchbar-form-withDescription"
751
+ onSubmit={[MockFunction]}
752
+ role="search"
753
+ >
754
+ <button
755
+ className="chakra-button css-1me3d5y"
756
+ data-testid="button"
757
+ id="searchbar-button-withDescription"
758
+ onClick={null}
759
+ type="submit"
760
+ >
761
+ <svg
762
+ aria-hidden={true}
763
+ className="chakra-icon css-1grhd2q"
764
+ focusable={false}
765
+ id="searchbar-icon-withDescription"
766
+ role="img"
767
+ title="search icon"
768
+ viewBox="0 0 24 24"
769
+ >
770
+ <g
771
+ stroke="currentColor"
772
+ strokeWidth="1.5"
773
+ >
774
+ <path
775
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
776
+ fill="none"
777
+ strokeLinecap="round"
778
+ />
779
+ <path
780
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
781
+ fill="currentColor"
782
+ strokeLinecap="round"
783
+ />
784
+ <circle
785
+ cx="12"
786
+ cy="12"
787
+ fill="none"
788
+ r="11.25"
789
+ strokeMiterlimit="10"
790
+ />
791
+ </g>
792
+ </svg>
793
+ Search
794
+ </button>
795
+ </form>
796
+ </div>
797
+ `;
798
+
799
+ exports[`SearchBar renders the UI snapshot correctly 10`] = `
800
+ <div
801
+ className="css-1xdhyk6"
802
+ >
803
+ <h2
804
+ className="chakra-heading css-1xdhyk6"
805
+ id="withHeadingAndDescription-heading"
806
+ >
807
+ A Heading
808
+ </h2>
809
+ <p
810
+ className="chakra-text css-1xdhyk6"
811
+ >
812
+ A description
813
+ </p>
814
+ <form
815
+ aria-label="SearchBar label"
816
+ className="css-1xdhyk6"
817
+ id="searchbar-form-withHeadingAndDescription"
818
+ onSubmit={[MockFunction]}
819
+ role="search"
820
+ >
821
+ <button
822
+ className="chakra-button css-1me3d5y"
823
+ data-testid="button"
824
+ id="searchbar-button-withHeadingAndDescription"
825
+ onClick={null}
826
+ type="submit"
827
+ >
828
+ <svg
829
+ aria-hidden={true}
830
+ className="chakra-icon css-1grhd2q"
831
+ focusable={false}
832
+ id="searchbar-icon-withHeadingAndDescription"
833
+ role="img"
834
+ title="search icon"
835
+ viewBox="0 0 24 24"
836
+ >
837
+ <g
838
+ stroke="currentColor"
839
+ strokeWidth="1.5"
840
+ >
841
+ <path
842
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
843
+ fill="none"
844
+ strokeLinecap="round"
845
+ />
846
+ <path
847
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
848
+ fill="currentColor"
849
+ strokeLinecap="round"
850
+ />
851
+ <circle
852
+ cx="12"
853
+ cy="12"
854
+ fill="none"
855
+ r="11.25"
856
+ strokeMiterlimit="10"
857
+ />
858
+ </g>
859
+ </svg>
860
+ Search
861
+ </button>
862
+ </form>
863
+ </div>
864
+ `;
865
+
866
+ exports[`SearchBar renders the UI snapshot correctly 11`] = `
867
+ <div
868
+ className="css-1xdhyk6"
869
+ >
870
+ <form
871
+ aria-label="SearchBar label - Search for items in Animal Crossing New Horizons"
872
+ className="css-kle7zy"
873
+ id="searchbar-form-chakra"
874
+ onSubmit={[MockFunction]}
875
+ role="search"
876
+ >
877
+ <div
878
+ className="css-1xdhyk6"
879
+ >
880
+ <input
881
+ aria-label="Item Search"
882
+ className="chakra-input css-0"
883
+ disabled={false}
884
+ id="searchbar-textinput-chakra"
885
+ name="textInputName"
886
+ onBlur={[Function]}
887
+ onChange={[MockFunction]}
888
+ onFocus={[Function]}
889
+ placeholder="Item Search "
890
+ required={false}
891
+ step={null}
892
+ type="text"
893
+ />
894
+
895
+ </div>
896
+ <button
897
+ className="chakra-button css-1me3d5y"
898
+ data-testid="button"
899
+ id="searchbar-button-chakra"
900
+ onClick={null}
901
+ type="submit"
902
+ >
903
+ <svg
904
+ aria-hidden={true}
905
+ className="chakra-icon css-1grhd2q"
906
+ focusable={false}
907
+ id="searchbar-icon-chakra"
908
+ role="img"
909
+ title="search icon"
910
+ viewBox="0 0 24 24"
911
+ >
912
+ <g
913
+ stroke="currentColor"
914
+ strokeWidth="1.5"
915
+ >
916
+ <path
917
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
918
+ fill="none"
919
+ strokeLinecap="round"
920
+ />
921
+ <path
922
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
923
+ fill="currentColor"
924
+ strokeLinecap="round"
925
+ />
926
+ <circle
927
+ cx="12"
928
+ cy="12"
929
+ fill="none"
930
+ r="11.25"
931
+ strokeMiterlimit="10"
932
+ />
933
+ </g>
934
+ </svg>
935
+ Search
936
+ </button>
937
+ </form>
938
+ <div
939
+ aria-atomic={true}
940
+ aria-live="off"
941
+ className="css-1xdhyk6"
942
+ dangerouslySetInnerHTML={
943
+ Object {
944
+ "__html": "Search for items in Animal Crossing New Horizons",
945
+ }
946
+ }
947
+ data-isinvalid={false}
948
+ id="chakra-helperText"
949
+ />
950
+ </div>
951
+ `;
952
+
953
+ exports[`SearchBar renders the UI snapshot correctly 12`] = `
954
+ <div
955
+ className="css-1xdhyk6"
956
+ data-testid="props"
957
+ >
958
+ <form
959
+ aria-label="SearchBar label - Search for items in Animal Crossing New Horizons"
960
+ className="css-1xdhyk6"
961
+ id="searchbar-form-props"
962
+ onSubmit={[MockFunction]}
963
+ role="search"
964
+ >
965
+ <div
966
+ className="css-1xdhyk6"
967
+ >
968
+ <input
969
+ aria-label="Item Search"
970
+ className="chakra-input css-0"
971
+ disabled={false}
972
+ id="searchbar-textinput-props"
973
+ name="textInputName"
974
+ onBlur={[Function]}
975
+ onChange={[MockFunction]}
976
+ onFocus={[Function]}
977
+ placeholder="Item Search "
978
+ required={false}
979
+ step={null}
980
+ type="text"
981
+ />
982
+
983
+ </div>
984
+ <button
985
+ className="chakra-button css-1me3d5y"
986
+ data-testid="button"
987
+ id="searchbar-button-props"
988
+ onClick={null}
989
+ type="submit"
990
+ >
991
+ <svg
992
+ aria-hidden={true}
993
+ className="chakra-icon css-1grhd2q"
994
+ focusable={false}
995
+ id="searchbar-icon-props"
996
+ role="img"
997
+ title="search icon"
998
+ viewBox="0 0 24 24"
999
+ >
1000
+ <g
1001
+ stroke="currentColor"
1002
+ strokeWidth="1.5"
1003
+ >
1004
+ <path
1005
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
1006
+ fill="none"
1007
+ strokeLinecap="round"
1008
+ />
1009
+ <path
1010
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
1011
+ fill="currentColor"
1012
+ strokeLinecap="round"
1013
+ />
1014
+ <circle
1015
+ cx="12"
1016
+ cy="12"
1017
+ fill="none"
1018
+ r="11.25"
1019
+ strokeMiterlimit="10"
1020
+ />
1021
+ </g>
1022
+ </svg>
1023
+ Search
1024
+ </button>
1025
+ </form>
1026
+ <div
1027
+ aria-atomic={true}
1028
+ aria-live="off"
1029
+ className="css-1xdhyk6"
1030
+ dangerouslySetInnerHTML={
1031
+ Object {
1032
+ "__html": "Search for items in Animal Crossing New Horizons",
1033
+ }
1034
+ }
1035
+ data-isinvalid={false}
1036
+ id="props-helperText"
1037
+ />
1038
+ </div>
1039
+ `;