@nypl/design-system-react-components 0.25.13 → 0.26.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 (299) hide show
  1. package/CHANGELOG.md +58 -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/Notification/Notification.d.ts +4 -4
  29. package/dist/components/Pagination/Pagination.d.ts +2 -2
  30. package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +3 -3
  31. package/dist/components/Radio/Radio.d.ts +4 -6
  32. package/dist/components/RadioGroup/RadioGroup.d.ts +12 -6
  33. package/dist/components/SearchBar/SearchBar.d.ts +4 -4
  34. package/dist/components/Select/Select.d.ts +10 -6
  35. package/dist/components/Select/SelectTypes.d.ts +4 -0
  36. package/dist/components/SkeletonLoader/SkeletonLoader.d.ts +4 -3
  37. package/dist/components/Slider/Slider.d.ts +6 -4
  38. package/dist/components/StatusBadge/StatusBadge.d.ts +5 -1
  39. package/dist/components/StructuredContent/StructuredContent.d.ts +2 -2
  40. package/dist/components/Table/Table.d.ts +1 -1
  41. package/dist/components/Tabs/Tabs.d.ts +4 -3
  42. package/dist/components/Template/Template.d.ts +4 -3
  43. package/dist/components/Text/Text.d.ts +1 -1
  44. package/dist/components/TextInput/TextInput.d.ts +5 -5
  45. package/dist/components/Toggle/Toggle.d.ts +3 -4
  46. package/dist/components/VideoPlayer/VideoPlayer.d.ts +2 -1
  47. package/dist/design-system-react-components.cjs.development.js +1663 -1139
  48. package/dist/design-system-react-components.cjs.development.js.map +1 -1
  49. package/dist/design-system-react-components.cjs.production.min.js +1 -1
  50. package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
  51. package/dist/design-system-react-components.esm.js +1667 -1143
  52. package/dist/design-system-react-components.esm.js.map +1 -1
  53. package/dist/hooks/useCarouselStyles.d.ts +3 -2
  54. package/dist/hooks/useNYPLTheme.d.ts +12 -0
  55. package/dist/index.d.ts +4 -1
  56. package/dist/styles.css +1 -1
  57. package/dist/theme/components/button.d.ts +10 -2
  58. package/dist/theme/components/card.d.ts +42 -22
  59. package/dist/theme/components/checkbox.d.ts +5 -4
  60. package/dist/theme/components/checkboxGroup.d.ts +1 -1
  61. package/dist/theme/components/componentWrapper.d.ts +2 -2
  62. package/dist/theme/components/customTable.d.ts +84 -1
  63. package/dist/theme/components/fieldset.d.ts +4 -14
  64. package/dist/theme/components/global.d.ts +23 -17
  65. package/dist/theme/components/heading.d.ts +53 -0
  66. package/dist/theme/components/helperErrorText.d.ts +1 -0
  67. package/dist/theme/components/hero.d.ts +20 -14
  68. package/dist/theme/components/label.d.ts +9 -10
  69. package/dist/theme/components/list.d.ts +99 -9
  70. package/dist/theme/components/radio.d.ts +6 -4
  71. package/dist/theme/components/radioGroup.d.ts +1 -1
  72. package/dist/theme/components/select.d.ts +34 -5
  73. package/dist/theme/components/skeletonLoader.d.ts +2 -2
  74. package/dist/theme/components/slider.d.ts +6 -3
  75. package/dist/theme/components/structuredContent.d.ts +197 -0
  76. package/dist/theme/components/textInput.d.ts +18 -6
  77. package/dist/theme/components/toggle.d.ts +7 -4
  78. package/dist/theme/foundations/global.d.ts +2 -0
  79. package/dist/theme/foundations/radii.d.ts +1 -0
  80. package/dist/theme/foundations/spacing.d.ts +46 -43
  81. package/package.json +5 -6
  82. package/src/components/Accordion/Accordion.stories.mdx +9 -9
  83. package/src/components/Accordion/Accordion.test.tsx +21 -0
  84. package/src/components/Accordion/Accordion.tsx +13 -9
  85. package/src/components/Accordion/__snapshots__/Accordion.test.tsx.snap +276 -27
  86. package/src/components/Autosuggest/Autosuggest.stories.mdx +4 -3
  87. package/src/components/Breadcrumbs/Breadcrumbs.stories.mdx +21 -5
  88. package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +52 -31
  89. package/src/components/Breadcrumbs/Breadcrumbs.tsx +8 -7
  90. package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +211 -12
  91. package/src/components/Button/Button.stories.mdx +87 -23
  92. package/src/components/Button/Button.test.tsx +25 -0
  93. package/src/components/Button/Button.tsx +18 -7
  94. package/src/components/Button/__snapshots__/Button.test.tsx.snap +27 -7
  95. package/src/components/Card/Card.stories.mdx +287 -194
  96. package/src/components/Card/Card.test.tsx +102 -0
  97. package/src/components/Card/Card.tsx +73 -32
  98. package/src/components/Card/__snapshots__/Card.test.tsx.snap +195 -35
  99. package/src/components/Chakra/Grid.stories.mdx +4 -4
  100. package/src/components/Checkbox/Checkbox.stories.mdx +62 -10
  101. package/src/components/Checkbox/Checkbox.test.tsx +32 -9
  102. package/src/components/Checkbox/Checkbox.tsx +20 -15
  103. package/src/components/Checkbox/__snapshots__/Checkbox.test.tsx.snap +134 -7
  104. package/src/components/CheckboxGroup/CheckboxGroup.stories.mdx +65 -17
  105. package/src/components/CheckboxGroup/CheckboxGroup.test.tsx +137 -81
  106. package/src/components/CheckboxGroup/CheckboxGroup.tsx +31 -21
  107. package/src/components/CheckboxGroup/__snapshots__/CheckboxGroup.test.tsx.snap +332 -97
  108. package/src/components/ComponentWrapper/ComponentWrapper.test.tsx +12 -0
  109. package/src/components/ComponentWrapper/ComponentWrapper.tsx +39 -41
  110. package/src/components/ComponentWrapper/__snapshots__/ComponentWrapper.test.tsx.snap +47 -34
  111. package/src/components/DatePicker/DatePicker.stories.mdx +63 -27
  112. package/src/components/DatePicker/DatePicker.test.tsx +89 -13
  113. package/src/components/DatePicker/DatePicker.tsx +62 -56
  114. package/src/components/DatePicker/_DatePicker.scss +71 -13
  115. package/src/components/DatePicker/__snapshots__/DatePicker.test.tsx.snap +250 -206
  116. package/src/components/Fieldset/Fieldset.stories.mdx +33 -3
  117. package/src/components/Fieldset/Fieldset.test.tsx +58 -28
  118. package/src/components/Fieldset/Fieldset.tsx +35 -30
  119. package/src/components/Fieldset/__snapshots__/Fieldset.test.tsx.snap +40 -19
  120. package/src/components/Form/Form.stories.mdx +72 -39
  121. package/src/components/Form/Form.test.tsx +58 -15
  122. package/src/components/Form/Form.tsx +89 -67
  123. package/src/components/Form/__snapshots__/Form.test.tsx.snap +83 -5
  124. package/src/components/Grid/GridTypes.tsx +7 -7
  125. package/src/components/Grid/SimpleGrid.stories.mdx +34 -6
  126. package/src/components/Grid/SimpleGrid.test.tsx +9 -0
  127. package/src/components/Grid/SimpleGrid.tsx +29 -20
  128. package/src/components/Grid/__snapshots__/SimpleGrid.test.tsx.snap +16 -1
  129. package/src/components/Heading/Heading.stories.mdx +36 -3
  130. package/src/components/Heading/Heading.test.tsx +10 -0
  131. package/src/components/Heading/Heading.tsx +56 -50
  132. package/src/components/Heading/__snapshots__/Heading.test.tsx.snap +26 -7
  133. package/src/components/HelperErrorText/HelperErrorText.stories.mdx +64 -42
  134. package/src/components/HelperErrorText/HelperErrorText.test.tsx +15 -0
  135. package/src/components/HelperErrorText/HelperErrorText.tsx +40 -35
  136. package/src/components/HelperErrorText/__snapshots__/HelperErrorText.test.tsx.snap +35 -4
  137. package/src/components/Hero/Hero.stories.mdx +125 -95
  138. package/src/components/Hero/Hero.test.tsx +33 -0
  139. package/src/components/Hero/Hero.tsx +135 -126
  140. package/src/components/Hero/__snapshots__/Hero.test.tsx.snap +89 -17
  141. package/src/components/HorizontalRule/HorizontalRule.stories.mdx +26 -4
  142. package/src/components/HorizontalRule/HorizontalRule.test.tsx +9 -19
  143. package/src/components/HorizontalRule/HorizontalRule.tsx +9 -26
  144. package/src/components/HorizontalRule/__snapshots__/HorizontalRule.test.tsx.snap +18 -5
  145. package/src/components/Icons/Icon.stories.mdx +31 -6
  146. package/src/components/Icons/Icon.test.tsx +38 -0
  147. package/src/components/Icons/Icon.tsx +93 -76
  148. package/src/components/Icons/__snapshots__/Icon.test.tsx.snap +129 -0
  149. package/src/components/Image/Image.stories.mdx +29 -5
  150. package/src/components/Image/Image.test.tsx +8 -0
  151. package/src/components/Image/Image.tsx +38 -26
  152. package/src/components/Image/__snapshots__/Image.test.tsx.snap +24 -8
  153. package/src/components/Label/Label.stories.mdx +42 -20
  154. package/src/components/Label/Label.test.tsx +42 -17
  155. package/src/components/Label/Label.tsx +22 -13
  156. package/src/components/Label/__snapshots__/Label.test.tsx.snap +19 -15
  157. package/src/components/Link/Link.stories.mdx +25 -1
  158. package/src/components/Link/Link.test.tsx +21 -0
  159. package/src/components/Link/Link.tsx +8 -8
  160. package/src/components/Link/__snapshots__/Link.test.tsx.snap +37 -11
  161. package/src/components/List/List.stories.mdx +75 -40
  162. package/src/components/List/List.test.tsx +67 -19
  163. package/src/components/List/List.tsx +38 -25
  164. package/src/components/List/ListTypes.tsx +1 -1
  165. package/src/components/List/__snapshots__/List.test.tsx.snap +110 -8
  166. package/src/components/Logo/Logo.stories.mdx +30 -6
  167. package/src/components/Logo/Logo.test.tsx +17 -0
  168. package/src/components/Logo/Logo.tsx +18 -6
  169. package/src/components/Logo/LogoSvgs.tsx +4 -0
  170. package/src/components/Logo/LogoTypes.tsx +2 -0
  171. package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +73 -2
  172. package/src/components/Modal/Modal.stories.mdx +13 -0
  173. package/src/components/Notification/Notification.stories.mdx +25 -1
  174. package/src/components/Notification/Notification.test.tsx +23 -0
  175. package/src/components/Notification/Notification.tsx +46 -44
  176. package/src/components/Notification/__snapshots__/Notification.test.tsx.snap +158 -29
  177. package/src/components/Pagination/Pagination.stories.mdx +24 -4
  178. package/src/components/Pagination/Pagination.test.tsx +25 -0
  179. package/src/components/Pagination/Pagination.tsx +6 -6
  180. package/src/components/Pagination/__snapshots__/Pagination.test.tsx.snap +244 -27
  181. package/src/components/Placeholder/Placeholder.tsx +3 -1
  182. package/src/components/ProgressIndicator/ProgressIndicator.stories.mdx +76 -10
  183. package/src/components/ProgressIndicator/ProgressIndicator.test.tsx +81 -11
  184. package/src/components/ProgressIndicator/ProgressIndicator.tsx +17 -9
  185. package/src/components/ProgressIndicator/__snapshots__/ProgressIndicator.test.tsx.snap +101 -14
  186. package/src/components/Radio/Radio.stories.mdx +64 -12
  187. package/src/components/Radio/Radio.test.tsx +28 -8
  188. package/src/components/Radio/Radio.tsx +66 -63
  189. package/src/components/Radio/__snapshots__/Radio.test.tsx.snap +103 -6
  190. package/src/components/RadioGroup/RadioGroup.stories.mdx +224 -89
  191. package/src/components/RadioGroup/RadioGroup.test.tsx +122 -62
  192. package/src/components/RadioGroup/RadioGroup.tsx +106 -100
  193. package/src/components/RadioGroup/__snapshots__/RadioGroup.test.tsx.snap +1236 -1020
  194. package/src/components/SearchBar/SearchBar.stories.mdx +101 -36
  195. package/src/components/SearchBar/{SearchBar.Test.tsx → SearchBar.test.tsx} +46 -4
  196. package/src/components/SearchBar/SearchBar.tsx +17 -8
  197. package/src/components/SearchBar/__snapshots__/SearchBar.test.tsx.snap +1039 -0
  198. package/src/components/Select/Select.stories.mdx +128 -49
  199. package/src/components/Select/Select.test.tsx +63 -16
  200. package/src/components/Select/Select.tsx +125 -92
  201. package/src/components/Select/SelectTypes.tsx +5 -0
  202. package/src/components/Select/__snapshots__/Select.test.tsx.snap +749 -409
  203. package/src/components/SkeletonLoader/SkeletonLoader.stories.mdx +42 -10
  204. package/src/components/SkeletonLoader/SkeletonLoader.test.tsx +8 -0
  205. package/src/components/SkeletonLoader/SkeletonLoader.tsx +76 -72
  206. package/src/components/SkeletonLoader/__snapshots__/SkeletonLoader.test.tsx.snap +169 -10
  207. package/src/components/Slider/Slider.stories.mdx +91 -42
  208. package/src/components/Slider/Slider.test.tsx +65 -17
  209. package/src/components/Slider/Slider.tsx +26 -19
  210. package/src/components/Slider/__snapshots__/Slider.test.tsx.snap +403 -226
  211. package/src/components/StatusBadge/StatusBadge.stories.mdx +19 -1
  212. package/src/components/StatusBadge/StatusBadge.test.tsx +16 -0
  213. package/src/components/StatusBadge/StatusBadge.tsx +25 -20
  214. package/src/components/StatusBadge/__snapshots__/StatusBadge.test.tsx.snap +22 -3
  215. package/src/components/StructuredContent/StructuredContent.stories.mdx +131 -12
  216. package/src/components/StructuredContent/StructuredContent.test.tsx +34 -0
  217. package/src/components/StructuredContent/StructuredContent.tsx +80 -75
  218. package/src/components/StructuredContent/__snapshots__/StructuredContent.test.tsx.snap +102 -17
  219. package/src/components/StyleGuide/Bidirectionality.stories.mdx +5 -5
  220. package/src/components/StyleGuide/Breakpoints.stories.mdx +6 -6
  221. package/src/components/StyleGuide/Buttons.stories.mdx +2 -12
  222. package/src/components/StyleGuide/ColorCard.tsx +1 -1
  223. package/src/components/StyleGuide/Colors.stories.mdx +1 -2
  224. package/src/components/StyleGuide/DesignTokens.stories.mdx +56 -26
  225. package/src/components/StyleGuide/Forms.stories.mdx +27 -12
  226. package/src/components/StyleGuide/Iconography.stories.mdx +2 -12
  227. package/src/components/StyleGuide/Spacing.stories.mdx +80 -41
  228. package/src/components/StyleGuide/Typography.stories.mdx +30 -21
  229. package/src/components/Table/Table.stories.mdx +38 -11
  230. package/src/components/Table/Table.test.tsx +15 -0
  231. package/src/components/Table/Table.tsx +7 -7
  232. package/src/components/Table/__snapshots__/Table.test.tsx.snap +408 -5
  233. package/src/components/Tabs/Tabs.stories.mdx +52 -3
  234. package/src/components/Tabs/Tabs.test.tsx +16 -0
  235. package/src/components/Tabs/Tabs.tsx +10 -6
  236. package/src/components/Tabs/__snapshots__/Tabs.test.tsx.snap +394 -5
  237. package/src/components/Template/Template.stories.mdx +47 -43
  238. package/src/components/Template/Template.test.tsx +33 -0
  239. package/src/components/Template/Template.tsx +65 -60
  240. package/src/components/Template/__snapshots__/Template.test.tsx.snap +191 -20
  241. package/src/components/Text/Text.stories.mdx +20 -1
  242. package/src/components/Text/Text.test.tsx +12 -0
  243. package/src/components/Text/Text.tsx +6 -4
  244. package/src/components/Text/__snapshots__/Text.test.tsx.snap +21 -4
  245. package/src/components/TextInput/TextInput.stories.mdx +65 -19
  246. package/src/components/TextInput/TextInput.test.tsx +42 -28
  247. package/src/components/TextInput/TextInput.tsx +121 -113
  248. package/src/components/TextInput/__snapshots__/TextInput.test.tsx.snap +96 -73
  249. package/src/components/Toggle/Toggle.stories.mdx +80 -22
  250. package/src/components/Toggle/Toggle.test.tsx +27 -9
  251. package/src/components/Toggle/Toggle.tsx +22 -18
  252. package/src/components/Toggle/__snapshots__/Toggle.test.tsx.snap +128 -5
  253. package/src/components/VideoPlayer/VideoPlayer.stories.mdx +52 -4
  254. package/src/components/VideoPlayer/VideoPlayer.test.tsx +23 -0
  255. package/src/components/VideoPlayer/VideoPlayer.tsx +133 -126
  256. package/src/components/VideoPlayer/__snapshots__/VideoPlayer.test.tsx.snap +81 -39
  257. package/src/docs/Chakra.stories.mdx +50 -9
  258. package/src/docs/Welcome.stories.mdx +160 -41
  259. package/src/hooks/useCarouselStyles.stories.mdx +22 -2
  260. package/src/hooks/useCarouselStyles.ts +3 -2
  261. package/src/hooks/useNYPLTheme.stories.mdx +101 -0
  262. package/src/hooks/useNYPLTheme.ts +30 -6
  263. package/src/hooks/useWindowSize.stories.mdx +23 -0
  264. package/src/index.ts +4 -1
  265. package/src/styles/base/_place-holder.scss +1 -1
  266. package/src/theme/components/button.ts +15 -7
  267. package/src/theme/components/card.ts +30 -19
  268. package/src/theme/components/checkbox.ts +10 -8
  269. package/src/theme/components/checkboxGroup.ts +1 -1
  270. package/src/theme/components/componentWrapper.ts +2 -2
  271. package/src/theme/components/customTable.ts +39 -31
  272. package/src/theme/components/fieldset.ts +1 -2
  273. package/src/theme/components/global.ts +25 -20
  274. package/src/theme/components/heading.ts +1 -1
  275. package/src/theme/components/helperErrorText.ts +1 -0
  276. package/src/theme/components/hero.ts +13 -15
  277. package/src/theme/components/label.ts +4 -3
  278. package/src/theme/components/list.ts +73 -66
  279. package/src/theme/components/notification.ts +2 -2
  280. package/src/theme/components/radio.ts +9 -9
  281. package/src/theme/components/radioGroup.ts +1 -1
  282. package/src/theme/components/select.ts +35 -22
  283. package/src/theme/components/skeletonLoader.ts +3 -3
  284. package/src/theme/components/slider.ts +8 -7
  285. package/src/theme/components/statusBadge.ts +2 -2
  286. package/src/theme/components/structuredContent.ts +66 -1
  287. package/src/theme/components/tabs.ts +2 -2
  288. package/src/theme/components/template.ts +9 -9
  289. package/src/theme/components/textInput.ts +13 -12
  290. package/src/theme/components/toggle.ts +17 -10
  291. package/src/theme/components/videoPlayer.ts +1 -1
  292. package/src/theme/foundations/colors.ts +1 -1
  293. package/src/theme/foundations/radii.ts +1 -0
  294. package/src/theme/foundations/spacing.ts +70 -22
  295. package/src/theme/foundations/typography.ts +2 -2
  296. package/src/utils/componentCategories.ts +1 -2
  297. package/dist/components/SearchBar/SearchBar.Test.d.ts +0 -1
  298. package/dist/helpers/generateUUID.d.ts +0 -1
  299. package/src/helpers/generateUUID.tsx +0 -5
@@ -2,83 +2,93 @@
2
2
 
3
3
  exports[`Select Renders the UI snapshot correctly 1`] = `
4
4
  <div
5
- className="css-0"
5
+ className="css-1xdhyk6"
6
6
  >
7
- <label
7
+ <div
8
8
  className="css-0"
9
- htmlFor="select"
10
- id="select-label"
11
9
  >
12
- Which Succession sibling are you?
13
10
  <div
14
11
  className="css-0"
15
12
  >
16
- Optional
13
+ <label
14
+ className="css-1xdhyk6"
15
+ htmlFor="select"
16
+ id="select-label"
17
+ >
18
+ Which Succession sibling are you?
19
+ </label>
17
20
  </div>
18
- </label>
19
- <div
20
- className="chakra-select__wrapper css-42b2qy"
21
- >
22
- <select
23
- className="chakra-select css-1ik61og"
24
- disabled={false}
25
- id="select"
26
- name="succession-sibling"
27
- onBlur={[Function]}
28
- onFocus={[Function]}
29
- required={false}
30
- >
31
- <option>
32
- Kendall
33
- </option>
34
- <option>
35
- Shiv
36
- </option>
37
- <option>
38
- Connor
39
- </option>
40
- <option>
41
- Roman
42
- </option>
43
- <option>
44
- Tom
45
- </option>
46
- </select>
47
21
  <div
48
- className="chakra-select__icon-wrapper css-162mkon"
22
+ className="chakra-select__wrapper css-42b2qy"
49
23
  >
50
- <svg
51
- aria-hidden={true}
52
- className="chakra-icon chakra-select__icon css-onkibi"
53
- focusable={false}
54
- id="select-icon"
55
- role="img"
56
- title="arrow icon"
57
- viewBox="0 0 24 24"
24
+ <select
25
+ className="chakra-select css-1ik61og"
26
+ disabled={false}
27
+ id="select"
28
+ name="succession-sibling"
29
+ onBlur={[Function]}
30
+ onFocus={[Function]}
31
+ required={false}
32
+ >
33
+ <option>
34
+ Kendall
35
+ </option>
36
+ <option>
37
+ Shiv
38
+ </option>
39
+ <option>
40
+ Connor
41
+ </option>
42
+ <option>
43
+ Roman
44
+ </option>
45
+ <option>
46
+ Tom
47
+ </option>
48
+ </select>
49
+ <div
50
+ className="chakra-select__icon-wrapper css-162mkon"
58
51
  >
59
- <g
60
- stroke="currentColor"
61
- strokeWidth="1.5"
52
+ <svg
53
+ aria-hidden={true}
54
+ className="chakra-icon chakra-select__icon css-1grhd2q"
55
+ focusable={false}
56
+ id="select-icon"
57
+ role="presentation"
58
+ style={
59
+ Object {
60
+ "color": "currentColor",
61
+ "height": "1em",
62
+ "width": "1em",
63
+ }
64
+ }
65
+ title="arrow icon"
66
+ viewBox="0 0 24 24"
62
67
  >
63
- <path
64
- d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
65
- fill="none"
66
- strokeLinecap="round"
67
- />
68
- <path
69
- d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
70
- fill="currentColor"
71
- strokeLinecap="round"
72
- />
73
- <circle
74
- cx="12"
75
- cy="12"
76
- fill="none"
77
- r="11.25"
78
- strokeMiterlimit="10"
79
- />
80
- </g>
81
- </svg>
68
+ <g
69
+ stroke="currentColor"
70
+ strokeWidth="1.5"
71
+ >
72
+ <path
73
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
74
+ fill="none"
75
+ strokeLinecap="round"
76
+ />
77
+ <path
78
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
79
+ fill="currentColor"
80
+ strokeLinecap="round"
81
+ />
82
+ <circle
83
+ cx="12"
84
+ cy="12"
85
+ fill="none"
86
+ r="11.25"
87
+ strokeMiterlimit="10"
88
+ />
89
+ </g>
90
+ </svg>
91
+ </div>
82
92
  </div>
83
93
  </div>
84
94
  </div>
@@ -86,84 +96,94 @@ exports[`Select Renders the UI snapshot correctly 1`] = `
86
96
 
87
97
  exports[`Select Renders the UI snapshot correctly 2`] = `
88
98
  <div
89
- className="css-0"
99
+ className="css-1xdhyk6"
90
100
  >
91
- <label
101
+ <div
92
102
  className="css-0"
93
- htmlFor="select"
94
- id="select-label"
95
103
  >
96
- Which Succession sibling are you?
97
104
  <div
98
105
  className="css-0"
99
106
  >
100
- Optional
107
+ <label
108
+ className="css-1xdhyk6"
109
+ htmlFor="select"
110
+ id="select-label"
111
+ >
112
+ Which Succession sibling are you?
113
+ </label>
101
114
  </div>
102
- </label>
103
- <div
104
- className="chakra-select__wrapper css-42b2qy"
105
- >
106
- <select
107
- className="chakra-select css-1ik61og"
108
- disabled={true}
109
- id="select"
110
- name="succession-sibling"
111
- onBlur={[Function]}
112
- onFocus={[Function]}
113
- required={false}
114
- >
115
- <option>
116
- Kendall
117
- </option>
118
- <option>
119
- Shiv
120
- </option>
121
- <option>
122
- Connor
123
- </option>
124
- <option>
125
- Roman
126
- </option>
127
- <option>
128
- Tom
129
- </option>
130
- </select>
131
115
  <div
132
- className="chakra-select__icon-wrapper css-162mkon"
133
- data-disabled=""
116
+ className="chakra-select__wrapper css-42b2qy"
134
117
  >
135
- <svg
136
- aria-hidden={true}
137
- className="chakra-icon chakra-select__icon css-onkibi"
138
- focusable={false}
139
- id="select-icon"
140
- role="img"
141
- title="arrow icon"
142
- viewBox="0 0 24 24"
118
+ <select
119
+ className="chakra-select css-1ik61og"
120
+ disabled={true}
121
+ id="select"
122
+ name="succession-sibling"
123
+ onBlur={[Function]}
124
+ onFocus={[Function]}
125
+ required={false}
126
+ >
127
+ <option>
128
+ Kendall
129
+ </option>
130
+ <option>
131
+ Shiv
132
+ </option>
133
+ <option>
134
+ Connor
135
+ </option>
136
+ <option>
137
+ Roman
138
+ </option>
139
+ <option>
140
+ Tom
141
+ </option>
142
+ </select>
143
+ <div
144
+ className="chakra-select__icon-wrapper css-162mkon"
145
+ data-disabled=""
143
146
  >
144
- <g
145
- stroke="currentColor"
146
- strokeWidth="1.5"
147
+ <svg
148
+ aria-hidden={true}
149
+ className="chakra-icon chakra-select__icon css-1grhd2q"
150
+ focusable={false}
151
+ id="select-icon"
152
+ role="presentation"
153
+ style={
154
+ Object {
155
+ "color": "currentColor",
156
+ "height": "1em",
157
+ "width": "1em",
158
+ }
159
+ }
160
+ title="arrow icon"
161
+ viewBox="0 0 24 24"
147
162
  >
148
- <path
149
- d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
150
- fill="none"
151
- strokeLinecap="round"
152
- />
153
- <path
154
- d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
155
- fill="currentColor"
156
- strokeLinecap="round"
157
- />
158
- <circle
159
- cx="12"
160
- cy="12"
161
- fill="none"
162
- r="11.25"
163
- strokeMiterlimit="10"
164
- />
165
- </g>
166
- </svg>
163
+ <g
164
+ stroke="currentColor"
165
+ strokeWidth="1.5"
166
+ >
167
+ <path
168
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
169
+ fill="none"
170
+ strokeLinecap="round"
171
+ />
172
+ <path
173
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
174
+ fill="currentColor"
175
+ strokeLinecap="round"
176
+ />
177
+ <circle
178
+ cx="12"
179
+ cy="12"
180
+ fill="none"
181
+ r="11.25"
182
+ strokeMiterlimit="10"
183
+ />
184
+ </g>
185
+ </svg>
186
+ </div>
167
187
  </div>
168
188
  </div>
169
189
  </div>
@@ -171,94 +191,99 @@ exports[`Select Renders the UI snapshot correctly 2`] = `
171
191
 
172
192
  exports[`Select Renders the UI snapshot correctly 3`] = `
173
193
  <div
174
- className="css-0"
194
+ className="css-1xdhyk6"
175
195
  >
176
- <label
196
+ <div
177
197
  className="css-0"
178
- htmlFor="select"
179
- id="select-label"
180
198
  >
181
- Which Succession sibling are you?
182
199
  <div
183
200
  className="css-0"
184
201
  >
185
- Optional
202
+ <label
203
+ className="css-1xdhyk6"
204
+ htmlFor="select"
205
+ id="select-label"
206
+ >
207
+ Which Succession sibling are you?
208
+ </label>
186
209
  </div>
187
- </label>
188
- <div
189
- className="chakra-select__wrapper css-42b2qy"
190
- >
191
- <select
192
- aria-invalid={true}
193
- className="chakra-select css-1ik61og"
194
- disabled={false}
195
- id="select"
196
- name="succession-sibling"
197
- onBlur={[Function]}
198
- onFocus={[Function]}
199
- required={false}
200
- >
201
- <option>
202
- Kendall
203
- </option>
204
- <option>
205
- Shiv
206
- </option>
207
- <option>
208
- Connor
209
- </option>
210
- <option>
211
- Roman
212
- </option>
213
- <option>
214
- Tom
215
- </option>
216
- </select>
217
210
  <div
218
- className="chakra-select__icon-wrapper css-162mkon"
211
+ className="chakra-select__wrapper css-42b2qy"
219
212
  >
220
- <svg
221
- aria-hidden={true}
222
- className="chakra-icon chakra-select__icon css-onkibi"
223
- focusable={false}
224
- id="select-icon"
225
- role="img"
226
- title="arrow icon"
227
- viewBox="0 0 24 24"
213
+ <select
214
+ aria-invalid={true}
215
+ className="chakra-select css-1ik61og"
216
+ disabled={false}
217
+ id="select"
218
+ name="succession-sibling"
219
+ onBlur={[Function]}
220
+ onFocus={[Function]}
221
+ required={false}
222
+ >
223
+ <option>
224
+ Kendall
225
+ </option>
226
+ <option>
227
+ Shiv
228
+ </option>
229
+ <option>
230
+ Connor
231
+ </option>
232
+ <option>
233
+ Roman
234
+ </option>
235
+ <option>
236
+ Tom
237
+ </option>
238
+ </select>
239
+ <div
240
+ className="chakra-select__icon-wrapper css-162mkon"
228
241
  >
229
- <g
230
- stroke="currentColor"
231
- strokeWidth="1.5"
242
+ <svg
243
+ aria-hidden={true}
244
+ className="chakra-icon chakra-select__icon css-1grhd2q"
245
+ focusable={false}
246
+ id="select-icon"
247
+ role="presentation"
248
+ style={
249
+ Object {
250
+ "color": "currentColor",
251
+ "height": "1em",
252
+ "width": "1em",
253
+ }
254
+ }
255
+ title="arrow icon"
256
+ viewBox="0 0 24 24"
232
257
  >
233
- <path
234
- d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
235
- fill="none"
236
- strokeLinecap="round"
237
- />
238
- <path
239
- d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
240
- fill="currentColor"
241
- strokeLinecap="round"
242
- />
243
- <circle
244
- cx="12"
245
- cy="12"
246
- fill="none"
247
- r="11.25"
248
- strokeMiterlimit="10"
249
- />
250
- </g>
251
- </svg>
258
+ <g
259
+ stroke="currentColor"
260
+ strokeWidth="1.5"
261
+ >
262
+ <path
263
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
264
+ fill="none"
265
+ strokeLinecap="round"
266
+ />
267
+ <path
268
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
269
+ fill="currentColor"
270
+ strokeLinecap="round"
271
+ />
272
+ <circle
273
+ cx="12"
274
+ cy="12"
275
+ fill="none"
276
+ r="11.25"
277
+ strokeMiterlimit="10"
278
+ />
279
+ </g>
280
+ </svg>
281
+ </div>
252
282
  </div>
253
- </div>
254
- <div
255
- aria-disabled={false}
256
- className="css-0"
257
- >
258
283
  <div
259
284
  aria-atomic={true}
260
285
  aria-live="polite"
261
- className=" css-0"
286
+ className="css-1xdhyk6"
262
287
  dangerouslySetInnerHTML={
263
288
  Object {
264
289
  "__html": "Tom doesn't count as a sibling :(.",
@@ -273,94 +298,99 @@ exports[`Select Renders the UI snapshot correctly 3`] = `
273
298
 
274
299
  exports[`Select Renders the UI snapshot correctly 4`] = `
275
300
  <div
276
- className="css-0"
301
+ className="css-1xdhyk6"
277
302
  >
278
- <label
303
+ <div
279
304
  className="css-0"
280
- htmlFor="select"
281
- id="select-label"
282
305
  >
283
- Which Succession sibling are you?
284
306
  <div
285
307
  className="css-0"
286
308
  >
287
- Optional
309
+ <label
310
+ className="css-1xdhyk6"
311
+ htmlFor="select"
312
+ id="select-label"
313
+ >
314
+ Which Succession sibling are you?
315
+ </label>
288
316
  </div>
289
- </label>
290
- <div
291
- className="chakra-select__wrapper css-42b2qy"
292
- >
293
- <select
294
- aria-describedby="select-helperText"
295
- className="chakra-select css-1ik61og"
296
- disabled={false}
297
- id="select"
298
- name="succession-sibling"
299
- onBlur={[Function]}
300
- onFocus={[Function]}
301
- required={false}
302
- >
303
- <option>
304
- Kendall
305
- </option>
306
- <option>
307
- Shiv
308
- </option>
309
- <option>
310
- Connor
311
- </option>
312
- <option>
313
- Roman
314
- </option>
315
- <option>
316
- Tom
317
- </option>
318
- </select>
319
317
  <div
320
- className="chakra-select__icon-wrapper css-162mkon"
318
+ className="chakra-select__wrapper css-42b2qy"
321
319
  >
322
- <svg
323
- aria-hidden={true}
324
- className="chakra-icon chakra-select__icon css-onkibi"
325
- focusable={false}
326
- id="select-icon"
327
- role="img"
328
- title="arrow icon"
329
- viewBox="0 0 24 24"
320
+ <select
321
+ aria-describedby="select-helperText"
322
+ className="chakra-select css-1ik61og"
323
+ disabled={false}
324
+ id="select"
325
+ name="succession-sibling"
326
+ onBlur={[Function]}
327
+ onFocus={[Function]}
328
+ required={false}
330
329
  >
331
- <g
332
- stroke="currentColor"
333
- strokeWidth="1.5"
330
+ <option>
331
+ Kendall
332
+ </option>
333
+ <option>
334
+ Shiv
335
+ </option>
336
+ <option>
337
+ Connor
338
+ </option>
339
+ <option>
340
+ Roman
341
+ </option>
342
+ <option>
343
+ Tom
344
+ </option>
345
+ </select>
346
+ <div
347
+ className="chakra-select__icon-wrapper css-162mkon"
348
+ >
349
+ <svg
350
+ aria-hidden={true}
351
+ className="chakra-icon chakra-select__icon css-1grhd2q"
352
+ focusable={false}
353
+ id="select-icon"
354
+ role="presentation"
355
+ style={
356
+ Object {
357
+ "color": "currentColor",
358
+ "height": "1em",
359
+ "width": "1em",
360
+ }
361
+ }
362
+ title="arrow icon"
363
+ viewBox="0 0 24 24"
334
364
  >
335
- <path
336
- d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
337
- fill="none"
338
- strokeLinecap="round"
339
- />
340
- <path
341
- d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
342
- fill="currentColor"
343
- strokeLinecap="round"
344
- />
345
- <circle
346
- cx="12"
347
- cy="12"
348
- fill="none"
349
- r="11.25"
350
- strokeMiterlimit="10"
351
- />
352
- </g>
353
- </svg>
365
+ <g
366
+ stroke="currentColor"
367
+ strokeWidth="1.5"
368
+ >
369
+ <path
370
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
371
+ fill="none"
372
+ strokeLinecap="round"
373
+ />
374
+ <path
375
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
376
+ fill="currentColor"
377
+ strokeLinecap="round"
378
+ />
379
+ <circle
380
+ cx="12"
381
+ cy="12"
382
+ fill="none"
383
+ r="11.25"
384
+ strokeMiterlimit="10"
385
+ />
386
+ </g>
387
+ </svg>
388
+ </div>
354
389
  </div>
355
- </div>
356
- <div
357
- aria-disabled={false}
358
- className="css-0"
359
- >
360
390
  <div
361
391
  aria-atomic={true}
362
392
  aria-live="off"
363
- className=" css-0"
393
+ className="css-1xdhyk6"
364
394
  dangerouslySetInnerHTML={
365
395
  Object {
366
396
  "__html": "Remember, Logan will judge you no matter who you pick.",
@@ -375,170 +405,480 @@ exports[`Select Renders the UI snapshot correctly 4`] = `
375
405
 
376
406
  exports[`Select Renders the UI snapshot correctly 5`] = `
377
407
  <div
378
- className="css-0"
408
+ className="css-1xdhyk6"
409
+ >
410
+ <div
411
+ className="css-0"
412
+ >
413
+ <div
414
+ className="css-0"
415
+ >
416
+ <label
417
+ className="css-1xdhyk6"
418
+ htmlFor="select"
419
+ id="select-label"
420
+ >
421
+ Which Succession sibling are you?
422
+ <span>
423
+ (Required)
424
+ </span>
425
+ </label>
426
+ </div>
427
+ <div
428
+ className="chakra-select__wrapper css-42b2qy"
429
+ >
430
+ <select
431
+ aria-required={true}
432
+ className="chakra-select css-1ik61og"
433
+ disabled={false}
434
+ id="select"
435
+ name="succession-sibling"
436
+ onBlur={[Function]}
437
+ onFocus={[Function]}
438
+ required={true}
439
+ >
440
+ <option>
441
+ Kendall
442
+ </option>
443
+ <option>
444
+ Shiv
445
+ </option>
446
+ <option>
447
+ Connor
448
+ </option>
449
+ <option>
450
+ Roman
451
+ </option>
452
+ <option>
453
+ Tom
454
+ </option>
455
+ </select>
456
+ <div
457
+ className="chakra-select__icon-wrapper css-162mkon"
458
+ >
459
+ <svg
460
+ aria-hidden={true}
461
+ className="chakra-icon chakra-select__icon css-1grhd2q"
462
+ focusable={false}
463
+ id="select-icon"
464
+ role="presentation"
465
+ style={
466
+ Object {
467
+ "color": "currentColor",
468
+ "height": "1em",
469
+ "width": "1em",
470
+ }
471
+ }
472
+ title="arrow icon"
473
+ viewBox="0 0 24 24"
474
+ >
475
+ <g
476
+ stroke="currentColor"
477
+ strokeWidth="1.5"
478
+ >
479
+ <path
480
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
481
+ fill="none"
482
+ strokeLinecap="round"
483
+ />
484
+ <path
485
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
486
+ fill="currentColor"
487
+ strokeLinecap="round"
488
+ />
489
+ <circle
490
+ cx="12"
491
+ cy="12"
492
+ fill="none"
493
+ r="11.25"
494
+ strokeMiterlimit="10"
495
+ />
496
+ </g>
497
+ </svg>
498
+ </div>
499
+ </div>
500
+ </div>
501
+ </div>
502
+ `;
503
+
504
+ exports[`Select Renders the UI snapshot correctly 6`] = `
505
+ <div
506
+ className="css-1xdhyk6"
379
507
  >
380
- <label
508
+ <div
381
509
  className="css-0"
382
- htmlFor="select"
383
- id="select-label"
384
510
  >
385
- Which Succession sibling are you?
386
511
  <div
387
512
  className="css-0"
388
513
  >
389
- Required
514
+ <label
515
+ className="css-1xdhyk6"
516
+ htmlFor="select"
517
+ id="select-label"
518
+ >
519
+ Which Succession sibling are you?
520
+ <span>
521
+ (Required)
522
+ </span>
523
+ </label>
524
+ </div>
525
+ <div
526
+ className="chakra-select__wrapper css-42b2qy"
527
+ >
528
+ <select
529
+ aria-required={true}
530
+ className="chakra-select css-1ik61og"
531
+ disabled={false}
532
+ id="select"
533
+ name="succession-sibling"
534
+ onBlur={[Function]}
535
+ onFocus={[Function]}
536
+ required={true}
537
+ >
538
+ <option>
539
+ Kendall
540
+ </option>
541
+ <option>
542
+ Shiv
543
+ </option>
544
+ <option>
545
+ Connor
546
+ </option>
547
+ <option>
548
+ Roman
549
+ </option>
550
+ <option>
551
+ Tom
552
+ </option>
553
+ </select>
554
+ <div
555
+ className="chakra-select__icon-wrapper css-162mkon"
556
+ >
557
+ <svg
558
+ aria-hidden={true}
559
+ className="chakra-icon chakra-select__icon css-1grhd2q"
560
+ focusable={false}
561
+ id="select-icon"
562
+ role="presentation"
563
+ style={
564
+ Object {
565
+ "color": "currentColor",
566
+ "height": "1em",
567
+ "width": "1em",
568
+ }
569
+ }
570
+ title="arrow icon"
571
+ viewBox="0 0 24 24"
572
+ >
573
+ <g
574
+ stroke="currentColor"
575
+ strokeWidth="1.5"
576
+ >
577
+ <path
578
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
579
+ fill="none"
580
+ strokeLinecap="round"
581
+ />
582
+ <path
583
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
584
+ fill="currentColor"
585
+ strokeLinecap="round"
586
+ />
587
+ <circle
588
+ cx="12"
589
+ cy="12"
590
+ fill="none"
591
+ r="11.25"
592
+ strokeMiterlimit="10"
593
+ />
594
+ </g>
595
+ </svg>
596
+ </div>
390
597
  </div>
391
- </label>
598
+ </div>
599
+ </div>
600
+ `;
601
+
602
+ exports[`Select Renders the UI snapshot correctly 7`] = `
603
+ <div
604
+ className="css-1xdhyk6"
605
+ >
392
606
  <div
393
- className="chakra-select__wrapper css-42b2qy"
607
+ className="css-0"
394
608
  >
395
- <select
396
- aria-required={true}
397
- className="chakra-select css-1ik61og"
398
- disabled={false}
399
- id="select"
400
- name="succession-sibling"
401
- onBlur={[Function]}
402
- onFocus={[Function]}
403
- required={true}
609
+ <div
610
+ className="css-0"
404
611
  >
405
- <option>
406
- Kendall
407
- </option>
408
- <option>
409
- Shiv
410
- </option>
411
- <option>
412
- Connor
413
- </option>
414
- <option>
415
- Roman
416
- </option>
417
- <option>
418
- Tom
419
- </option>
420
- </select>
612
+ <label
613
+ className="css-1xdhyk6"
614
+ htmlFor="select"
615
+ id="select-label"
616
+ >
617
+ Which Succession sibling are you?
618
+ </label>
619
+ </div>
421
620
  <div
422
- className="chakra-select__icon-wrapper css-162mkon"
621
+ className="chakra-select__wrapper css-42b2qy"
423
622
  >
424
- <svg
425
- aria-hidden={true}
426
- className="chakra-icon chakra-select__icon css-onkibi"
427
- focusable={false}
428
- id="select-icon"
429
- role="img"
430
- title="arrow icon"
431
- viewBox="0 0 24 24"
623
+ <select
624
+ className="chakra-select css-1ik61og"
625
+ disabled={false}
626
+ id="select"
627
+ name="succession-sibling"
628
+ onBlur={[Function]}
629
+ onChange={[MockFunction]}
630
+ onFocus={[Function]}
631
+ required={false}
632
+ value=""
633
+ >
634
+ <option>
635
+ Kendall
636
+ </option>
637
+ <option>
638
+ Shiv
639
+ </option>
640
+ <option>
641
+ Connor
642
+ </option>
643
+ <option>
644
+ Roman
645
+ </option>
646
+ <option>
647
+ Tom
648
+ </option>
649
+ </select>
650
+ <div
651
+ className="chakra-select__icon-wrapper css-162mkon"
432
652
  >
433
- <g
434
- stroke="currentColor"
435
- strokeWidth="1.5"
653
+ <svg
654
+ aria-hidden={true}
655
+ className="chakra-icon chakra-select__icon css-1grhd2q"
656
+ focusable={false}
657
+ id="select-icon"
658
+ role="presentation"
659
+ style={
660
+ Object {
661
+ "color": "currentColor",
662
+ "height": "1em",
663
+ "width": "1em",
664
+ }
665
+ }
666
+ title="arrow icon"
667
+ viewBox="0 0 24 24"
436
668
  >
437
- <path
438
- d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
439
- fill="none"
440
- strokeLinecap="round"
441
- />
442
- <path
443
- d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
444
- fill="currentColor"
445
- strokeLinecap="round"
446
- />
447
- <circle
448
- cx="12"
449
- cy="12"
450
- fill="none"
451
- r="11.25"
452
- strokeMiterlimit="10"
453
- />
454
- </g>
455
- </svg>
669
+ <g
670
+ stroke="currentColor"
671
+ strokeWidth="1.5"
672
+ >
673
+ <path
674
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
675
+ fill="none"
676
+ strokeLinecap="round"
677
+ />
678
+ <path
679
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
680
+ fill="currentColor"
681
+ strokeLinecap="round"
682
+ />
683
+ <circle
684
+ cx="12"
685
+ cy="12"
686
+ fill="none"
687
+ r="11.25"
688
+ strokeMiterlimit="10"
689
+ />
690
+ </g>
691
+ </svg>
692
+ </div>
456
693
  </div>
457
694
  </div>
458
695
  </div>
459
696
  `;
460
697
 
461
- exports[`Select Renders the UI snapshot correctly 6`] = `
698
+ exports[`Select Renders the UI snapshot correctly 8`] = `
462
699
  <div
463
- className="css-0"
700
+ className="css-kle7zy"
464
701
  >
465
- <label
702
+ <div
466
703
  className="css-0"
467
- htmlFor="select"
468
- id="select-label"
469
704
  >
470
- Which Succession sibling are you?
471
705
  <div
472
706
  className="css-0"
473
707
  >
474
- Optional
708
+ <label
709
+ className="css-1xdhyk6"
710
+ htmlFor="chakra"
711
+ id="chakra-label"
712
+ >
713
+ Which Succession sibling are you?
714
+ </label>
715
+ </div>
716
+ <div
717
+ className="chakra-select__wrapper css-42b2qy"
718
+ >
719
+ <select
720
+ className="chakra-select css-1ik61og"
721
+ disabled={false}
722
+ id="chakra"
723
+ name="succession-sibling"
724
+ onBlur={[Function]}
725
+ onFocus={[Function]}
726
+ required={false}
727
+ >
728
+ <option>
729
+ Kendall
730
+ </option>
731
+ <option>
732
+ Shiv
733
+ </option>
734
+ <option>
735
+ Connor
736
+ </option>
737
+ <option>
738
+ Roman
739
+ </option>
740
+ <option>
741
+ Tom
742
+ </option>
743
+ </select>
744
+ <div
745
+ className="chakra-select__icon-wrapper css-162mkon"
746
+ >
747
+ <svg
748
+ aria-hidden={true}
749
+ className="chakra-icon chakra-select__icon css-1grhd2q"
750
+ focusable={false}
751
+ id="chakra-icon"
752
+ role="presentation"
753
+ style={
754
+ Object {
755
+ "color": "currentColor",
756
+ "height": "1em",
757
+ "width": "1em",
758
+ }
759
+ }
760
+ title="arrow icon"
761
+ viewBox="0 0 24 24"
762
+ >
763
+ <g
764
+ stroke="currentColor"
765
+ strokeWidth="1.5"
766
+ >
767
+ <path
768
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
769
+ fill="none"
770
+ strokeLinecap="round"
771
+ />
772
+ <path
773
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
774
+ fill="currentColor"
775
+ strokeLinecap="round"
776
+ />
777
+ <circle
778
+ cx="12"
779
+ cy="12"
780
+ fill="none"
781
+ r="11.25"
782
+ strokeMiterlimit="10"
783
+ />
784
+ </g>
785
+ </svg>
786
+ </div>
475
787
  </div>
476
- </label>
788
+ </div>
789
+ </div>
790
+ `;
791
+
792
+ exports[`Select Renders the UI snapshot correctly 9`] = `
793
+ <div
794
+ className="css-1xdhyk6"
795
+ data-testid="props"
796
+ >
477
797
  <div
478
- className="chakra-select__wrapper css-42b2qy"
798
+ className="css-0"
479
799
  >
480
- <select
481
- className="chakra-select css-1ik61og"
482
- disabled={false}
483
- id="select"
484
- name="succession-sibling"
485
- onBlur={[Function]}
486
- onChange={[MockFunction]}
487
- onFocus={[Function]}
488
- required={false}
489
- value=""
800
+ <div
801
+ className="css-0"
490
802
  >
491
- <option>
492
- Kendall
493
- </option>
494
- <option>
495
- Shiv
496
- </option>
497
- <option>
498
- Connor
499
- </option>
500
- <option>
501
- Roman
502
- </option>
503
- <option>
504
- Tom
505
- </option>
506
- </select>
803
+ <label
804
+ className="css-1xdhyk6"
805
+ htmlFor="props"
806
+ id="props-label"
807
+ >
808
+ Which Succession sibling are you?
809
+ </label>
810
+ </div>
507
811
  <div
508
- className="chakra-select__icon-wrapper css-162mkon"
812
+ className="chakra-select__wrapper css-42b2qy"
509
813
  >
510
- <svg
511
- aria-hidden={true}
512
- className="chakra-icon chakra-select__icon css-onkibi"
513
- focusable={false}
514
- id="select-icon"
515
- role="img"
516
- title="arrow icon"
517
- viewBox="0 0 24 24"
814
+ <select
815
+ className="chakra-select css-1ik61og"
816
+ disabled={false}
817
+ id="props"
818
+ name="succession-sibling"
819
+ onBlur={[Function]}
820
+ onFocus={[Function]}
821
+ required={false}
822
+ >
823
+ <option>
824
+ Kendall
825
+ </option>
826
+ <option>
827
+ Shiv
828
+ </option>
829
+ <option>
830
+ Connor
831
+ </option>
832
+ <option>
833
+ Roman
834
+ </option>
835
+ <option>
836
+ Tom
837
+ </option>
838
+ </select>
839
+ <div
840
+ className="chakra-select__icon-wrapper css-162mkon"
518
841
  >
519
- <g
520
- stroke="currentColor"
521
- strokeWidth="1.5"
842
+ <svg
843
+ aria-hidden={true}
844
+ className="chakra-icon chakra-select__icon css-1grhd2q"
845
+ focusable={false}
846
+ id="props-icon"
847
+ role="presentation"
848
+ style={
849
+ Object {
850
+ "color": "currentColor",
851
+ "height": "1em",
852
+ "width": "1em",
853
+ }
854
+ }
855
+ title="arrow icon"
856
+ viewBox="0 0 24 24"
522
857
  >
523
- <path
524
- d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
525
- fill="none"
526
- strokeLinecap="round"
527
- />
528
- <path
529
- d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
530
- fill="currentColor"
531
- strokeLinecap="round"
532
- />
533
- <circle
534
- cx="12"
535
- cy="12"
536
- fill="none"
537
- r="11.25"
538
- strokeMiterlimit="10"
539
- />
540
- </g>
541
- </svg>
858
+ <g
859
+ stroke="currentColor"
860
+ strokeWidth="1.5"
861
+ >
862
+ <path
863
+ d="M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
864
+ fill="none"
865
+ strokeLinecap="round"
866
+ />
867
+ <path
868
+ d="M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
869
+ fill="currentColor"
870
+ strokeLinecap="round"
871
+ />
872
+ <circle
873
+ cx="12"
874
+ cy="12"
875
+ fill="none"
876
+ r="11.25"
877
+ strokeMiterlimit="10"
878
+ />
879
+ </g>
880
+ </svg>
881
+ </div>
542
882
  </div>
543
883
  </div>
544
884
  </div>