@nypl/design-system-react-components 1.0.0 → 1.0.3-beta

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 (296) hide show
  1. package/README.md +3 -5
  2. package/dist/components/Checkbox/Checkbox.d.ts +0 -1
  3. package/dist/components/ComponentWrapper/ComponentWrapper.d.ts +8 -0
  4. package/dist/components/Heading/Heading.d.ts +2 -0
  5. package/dist/components/Logo/Logo.d.ts +1 -1
  6. package/dist/components/Logo/LogoSvgs.d.ts +4 -0
  7. package/dist/components/Slider/Slider.d.ts +1 -2
  8. package/dist/components/TextInput/TextInput.d.ts +2 -1
  9. package/dist/design-system-react-components.cjs.development.js +1038 -674
  10. package/dist/design-system-react-components.cjs.development.js.map +1 -1
  11. package/dist/design-system-react-components.cjs.production.min.js +1 -1
  12. package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
  13. package/dist/design-system-react-components.esm.js +1039 -675
  14. package/dist/design-system-react-components.esm.js.map +1 -1
  15. package/dist/hooks/{tests → __tests__}/useCarouselStyles.test.d.ts +0 -0
  16. package/dist/theme/components/button.d.ts +1 -0
  17. package/dist/theme/components/card.d.ts +98 -13
  18. package/dist/theme/components/checkboxGroup.d.ts +1 -1
  19. package/dist/theme/components/global.d.ts +2 -2
  20. package/dist/theme/components/heading.d.ts +4 -16
  21. package/dist/theme/components/image.d.ts +6 -0
  22. package/dist/theme/components/radio.d.ts +8 -0
  23. package/dist/theme/components/radioGroup.d.ts +1 -1
  24. package/dist/theme/components/skipNavigation.d.ts +3 -0
  25. package/dist/theme/components/structuredContent.d.ts +0 -5
  26. package/dist/theme/components/template.d.ts +4 -1
  27. package/dist/utils/utils.d.ts +15 -0
  28. package/package.json +6 -7
  29. package/CHANGELOG.md +0 -1399
  30. package/src/__tests__/fileMock.ts +0 -6
  31. package/src/__tests__/setup.ts +0 -27
  32. package/src/__tests__/utils/utils.test.ts +0 -18
  33. package/src/components/AccessibilityGuide/SkipNavigation.stories.mdx +0 -42
  34. package/src/components/Accordion/Accordion.stories.mdx +0 -361
  35. package/src/components/Accordion/Accordion.test.tsx +0 -237
  36. package/src/components/Accordion/Accordion.tsx +0 -136
  37. package/src/components/Accordion/__snapshots__/Accordion.test.tsx.snap +0 -734
  38. package/src/components/Autosuggest/Autosuggest.stories.mdx +0 -75
  39. package/src/components/Autosuggest/Autosuggest.stories.tsx +0 -211
  40. package/src/components/Autosuggest/_Autosuggest.scss +0 -51
  41. package/src/components/Breadcrumbs/Breadcrumbs.stories.mdx +0 -231
  42. package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +0 -144
  43. package/src/components/Breadcrumbs/Breadcrumbs.tsx +0 -98
  44. package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +0 -695
  45. package/src/components/Button/Button.stories.mdx +0 -320
  46. package/src/components/Button/Button.test.tsx +0 -184
  47. package/src/components/Button/Button.tsx +0 -95
  48. package/src/components/Button/__snapshots__/Button.test.tsx.snap +0 -106
  49. package/src/components/ButtonGroup/ButtonGroup.stories.mdx +0 -147
  50. package/src/components/ButtonGroup/ButtonGroup.test.tsx +0 -141
  51. package/src/components/ButtonGroup/ButtonGroup.tsx +0 -99
  52. package/src/components/ButtonGroup/__snapshots__/ButtonGroup.test.tsx.snap +0 -117
  53. package/src/components/Card/Card.stories.mdx +0 -1043
  54. package/src/components/Card/Card.test.tsx +0 -388
  55. package/src/components/Card/Card.tsx +0 -345
  56. package/src/components/Card/__snapshots__/Card.test.tsx.snap +0 -568
  57. package/src/components/Chakra/Box.stories.mdx +0 -52
  58. package/src/components/Chakra/Center.stories.mdx +0 -96
  59. package/src/components/Chakra/Flex.stories.mdx +0 -111
  60. package/src/components/Chakra/Grid.stories.mdx +0 -89
  61. package/src/components/Chakra/Stack.stories.mdx +0 -109
  62. package/src/components/Checkbox/Checkbox.stories.mdx +0 -243
  63. package/src/components/Checkbox/Checkbox.test.tsx +0 -319
  64. package/src/components/Checkbox/Checkbox.tsx +0 -166
  65. package/src/components/Checkbox/__snapshots__/Checkbox.test.tsx.snap +0 -616
  66. package/src/components/CheckboxGroup/CheckboxGroup.stories.mdx +0 -462
  67. package/src/components/CheckboxGroup/CheckboxGroup.test.tsx +0 -492
  68. package/src/components/CheckboxGroup/CheckboxGroup.tsx +0 -173
  69. package/src/components/CheckboxGroup/__snapshots__/CheckboxGroup.test.tsx.snap +0 -1722
  70. package/src/components/ComponentWrapper/ComponentWrapper.test.tsx +0 -163
  71. package/src/components/ComponentWrapper/ComponentWrapper.tsx +0 -67
  72. package/src/components/ComponentWrapper/__snapshots__/ComponentWrapper.test.tsx.snap +0 -98
  73. package/src/components/DatePicker/DatePicker.stories.mdx +0 -452
  74. package/src/components/DatePicker/DatePicker.test.tsx +0 -940
  75. package/src/components/DatePicker/DatePicker.tsx +0 -450
  76. package/src/components/DatePicker/_DatePicker.scss +0 -100
  77. package/src/components/DatePicker/__snapshots__/DatePicker.test.tsx.snap +0 -889
  78. package/src/components/Fieldset/Fieldset.stories.mdx +0 -96
  79. package/src/components/Fieldset/Fieldset.test.tsx +0 -155
  80. package/src/components/Fieldset/Fieldset.tsx +0 -55
  81. package/src/components/Fieldset/__snapshots__/Fieldset.test.tsx.snap +0 -89
  82. package/src/components/Form/Form.stories.mdx +0 -426
  83. package/src/components/Form/Form.test.tsx +0 -234
  84. package/src/components/Form/Form.tsx +0 -124
  85. package/src/components/Form/__snapshots__/Form.test.tsx.snap +0 -115
  86. package/src/components/Grid/SimpleGrid.stories.mdx +0 -338
  87. package/src/components/Grid/SimpleGrid.test.tsx +0 -79
  88. package/src/components/Grid/SimpleGrid.tsx +0 -49
  89. package/src/components/Grid/__snapshots__/SimpleGrid.test.tsx.snap +0 -23
  90. package/src/components/Heading/Heading.stories.mdx +0 -184
  91. package/src/components/Heading/Heading.test.tsx +0 -171
  92. package/src/components/Heading/Heading.tsx +0 -101
  93. package/src/components/Heading/__snapshots__/Heading.test.tsx.snap +0 -90
  94. package/src/components/HelperErrorText/HelperErrorText.stories.mdx +0 -172
  95. package/src/components/HelperErrorText/HelperErrorText.test.tsx +0 -114
  96. package/src/components/HelperErrorText/HelperErrorText.tsx +0 -62
  97. package/src/components/HelperErrorText/__snapshots__/HelperErrorText.test.tsx.snap +0 -93
  98. package/src/components/Hero/Hero.stories.mdx +0 -378
  99. package/src/components/Hero/Hero.test.tsx +0 -611
  100. package/src/components/Hero/Hero.tsx +0 -203
  101. package/src/components/Hero/__snapshots__/Hero.test.tsx.snap +0 -379
  102. package/src/components/HorizontalRule/HorizontalRule.stories.mdx +0 -73
  103. package/src/components/HorizontalRule/HorizontalRule.test.tsx +0 -54
  104. package/src/components/HorizontalRule/HorizontalRule.tsx +0 -27
  105. package/src/components/HorizontalRule/__snapshots__/HorizontalRule.test.tsx.snap +0 -44
  106. package/src/components/Icons/Icon.stories.mdx +0 -413
  107. package/src/components/Icons/Icon.test.tsx +0 -120
  108. package/src/components/Icons/Icon.tsx +0 -187
  109. package/src/components/Icons/IconSvgs.tsx +0 -64
  110. package/src/components/Icons/__snapshots__/Icon.test.tsx.snap +0 -129
  111. package/src/components/Image/Image.stories.mdx +0 -332
  112. package/src/components/Image/Image.test.tsx +0 -155
  113. package/src/components/Image/Image.tsx +0 -171
  114. package/src/components/Image/__snapshots__/Image.test.tsx.snap +0 -269
  115. package/src/components/Label/Label.stories.mdx +0 -100
  116. package/src/components/Label/Label.test.tsx +0 -116
  117. package/src/components/Label/Label.tsx +0 -55
  118. package/src/components/Label/__snapshots__/Label.test.tsx.snap +0 -45
  119. package/src/components/Link/Link.stories.mdx +0 -249
  120. package/src/components/Link/Link.test.tsx +0 -224
  121. package/src/components/Link/Link.tsx +0 -178
  122. package/src/components/Link/__snapshots__/Link.test.tsx.snap +0 -286
  123. package/src/components/List/List.stories.mdx +0 -393
  124. package/src/components/List/List.test.tsx +0 -265
  125. package/src/components/List/List.tsx +0 -156
  126. package/src/components/List/__snapshots__/List.test.tsx.snap +0 -213
  127. package/src/components/Logo/Logo.stories.mdx +0 -290
  128. package/src/components/Logo/Logo.test.tsx +0 -116
  129. package/src/components/Logo/Logo.tsx +0 -147
  130. package/src/components/Logo/LogoSvgs.tsx +0 -82
  131. package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +0 -142
  132. package/src/components/Modal/Modal.stories.mdx +0 -301
  133. package/src/components/Modal/Modal.test.tsx +0 -157
  134. package/src/components/Modal/Modal.tsx +0 -154
  135. package/src/components/Modal/__snapshots__/Modal.test.tsx.snap +0 -25
  136. package/src/components/Notification/Notification.stories.mdx +0 -358
  137. package/src/components/Notification/Notification.test.tsx +0 -279
  138. package/src/components/Notification/Notification.tsx +0 -224
  139. package/src/components/Notification/__snapshots__/Notification.test.tsx.snap +0 -525
  140. package/src/components/Pagination/Pagination.stories.mdx +0 -184
  141. package/src/components/Pagination/Pagination.test.tsx +0 -419
  142. package/src/components/Pagination/Pagination.tsx +0 -269
  143. package/src/components/Pagination/__snapshots__/Pagination.test.tsx.snap +0 -544
  144. package/src/components/Placeholder/Placeholder.tsx +0 -19
  145. package/src/components/ProgressIndicator/ProgressIndicator.stories.mdx +0 -360
  146. package/src/components/ProgressIndicator/ProgressIndicator.test.tsx +0 -298
  147. package/src/components/ProgressIndicator/ProgressIndicator.tsx +0 -132
  148. package/src/components/ProgressIndicator/__snapshots__/ProgressIndicator.test.tsx.snap +0 -434
  149. package/src/components/Radio/Radio.stories.mdx +0 -216
  150. package/src/components/Radio/Radio.test.tsx +0 -247
  151. package/src/components/Radio/Radio.tsx +0 -128
  152. package/src/components/Radio/__snapshots__/Radio.test.tsx.snap +0 -411
  153. package/src/components/RadioGroup/RadioGroup.stories.mdx +0 -478
  154. package/src/components/RadioGroup/RadioGroup.test.tsx +0 -471
  155. package/src/components/RadioGroup/RadioGroup.tsx +0 -170
  156. package/src/components/RadioGroup/__snapshots__/RadioGroup.test.tsx.snap +0 -1430
  157. package/src/components/SearchBar/SearchBar.stories.mdx +0 -518
  158. package/src/components/SearchBar/SearchBar.test.tsx +0 -435
  159. package/src/components/SearchBar/SearchBar.tsx +0 -210
  160. package/src/components/SearchBar/__snapshots__/SearchBar.test.tsx.snap +0 -1027
  161. package/src/components/Select/Select.stories.mdx +0 -439
  162. package/src/components/Select/Select.test.tsx +0 -358
  163. package/src/components/Select/Select.tsx +0 -181
  164. package/src/components/Select/__snapshots__/Select.test.tsx.snap +0 -885
  165. package/src/components/SkeletonLoader/SkeletonLoader.stories.mdx +0 -142
  166. package/src/components/SkeletonLoader/SkeletonLoader.test.tsx +0 -116
  167. package/src/components/SkeletonLoader/SkeletonLoader.tsx +0 -123
  168. package/src/components/SkeletonLoader/__snapshots__/SkeletonLoader.test.tsx.snap +0 -898
  169. package/src/components/SkipNavigation/SkipNavigation.stories.mdx +0 -90
  170. package/src/components/SkipNavigation/SkipNavigation.test.tsx +0 -63
  171. package/src/components/SkipNavigation/SkipNavigation.tsx +0 -51
  172. package/src/components/SkipNavigation/__snapshots__/SkipNavigation.test.tsx.snap +0 -130
  173. package/src/components/Slider/Slider.stories.mdx +0 -628
  174. package/src/components/Slider/Slider.test.tsx +0 -736
  175. package/src/components/Slider/Slider.tsx +0 -322
  176. package/src/components/Slider/__snapshots__/Slider.test.tsx.snap +0 -2153
  177. package/src/components/StatusBadge/StatusBadge.stories.mdx +0 -109
  178. package/src/components/StatusBadge/StatusBadge.test.tsx +0 -70
  179. package/src/components/StatusBadge/StatusBadge.tsx +0 -35
  180. package/src/components/StatusBadge/__snapshots__/StatusBadge.test.tsx.snap +0 -47
  181. package/src/components/StructuredContent/StructuredContent.stories.mdx +0 -567
  182. package/src/components/StructuredContent/StructuredContent.test.tsx +0 -435
  183. package/src/components/StructuredContent/StructuredContent.tsx +0 -139
  184. package/src/components/StructuredContent/__snapshots__/StructuredContent.test.tsx.snap +0 -368
  185. package/src/components/StyleGuide/Bidirectionality.stories.mdx +0 -206
  186. package/src/components/StyleGuide/Breakpoints.stories.mdx +0 -55
  187. package/src/components/StyleGuide/Buttons.stories.mdx +0 -194
  188. package/src/components/StyleGuide/ColorCard.tsx +0 -43
  189. package/src/components/StyleGuide/Colors.stories.mdx +0 -201
  190. package/src/components/StyleGuide/DesignTokens.stories.mdx +0 -193
  191. package/src/components/StyleGuide/Forms.stories.mdx +0 -94
  192. package/src/components/StyleGuide/Iconography.stories.mdx +0 -142
  193. package/src/components/StyleGuide/Spacing.stories.mdx +0 -116
  194. package/src/components/StyleGuide/Typography.stories.mdx +0 -419
  195. package/src/components/Table/Table.stories.mdx +0 -276
  196. package/src/components/Table/Table.test.tsx +0 -208
  197. package/src/components/Table/Table.tsx +0 -131
  198. package/src/components/Table/__snapshots__/Table.test.tsx.snap +0 -1703
  199. package/src/components/Tabs/Tabs.stories.mdx +0 -338
  200. package/src/components/Tabs/Tabs.test.tsx +0 -298
  201. package/src/components/Tabs/Tabs.tsx +0 -264
  202. package/src/components/Tabs/__snapshots__/Tabs.test.tsx.snap +0 -584
  203. package/src/components/Template/Template.stories.mdx +0 -691
  204. package/src/components/Template/Template.test.tsx +0 -309
  205. package/src/components/Template/Template.tsx +0 -326
  206. package/src/components/Template/__snapshots__/Template.test.tsx.snap +0 -342
  207. package/src/components/Text/Text.stories.mdx +0 -103
  208. package/src/components/Text/Text.test.tsx +0 -63
  209. package/src/components/Text/Text.tsx +0 -50
  210. package/src/components/Text/__snapshots__/Text.test.tsx.snap +0 -50
  211. package/src/components/TextInput/TextInput.stories.mdx +0 -268
  212. package/src/components/TextInput/TextInput.test.tsx +0 -451
  213. package/src/components/TextInput/TextInput.tsx +0 -240
  214. package/src/components/TextInput/__snapshots__/TextInput.test.tsx.snap +0 -264
  215. package/src/components/Toggle/Toggle.stories.mdx +0 -237
  216. package/src/components/Toggle/Toggle.test.tsx +0 -170
  217. package/src/components/Toggle/Toggle.tsx +0 -126
  218. package/src/components/Toggle/__snapshots__/Toggle.test.tsx.snap +0 -442
  219. package/src/components/VideoPlayer/VideoPlayer.stories.mdx +0 -211
  220. package/src/components/VideoPlayer/VideoPlayer.test.tsx +0 -308
  221. package/src/components/VideoPlayer/VideoPlayer.tsx +0 -188
  222. package/src/components/VideoPlayer/__snapshots__/VideoPlayer.test.tsx.snap +0 -187
  223. package/src/docs/Chakra.stories.mdx +0 -563
  224. package/src/docs/Welcome.stories.mdx +0 -148
  225. package/src/helpers/types.ts +0 -1
  226. package/src/hooks/tests/useCarouselStyles.test.ts +0 -140
  227. package/src/hooks/tests/useNYPLTheme.test.tsx +0 -36
  228. package/src/hooks/useCarouselStyles.stories.mdx +0 -30
  229. package/src/hooks/useCarouselStyles.ts +0 -35
  230. package/src/hooks/useNYPLTheme.stories.mdx +0 -98
  231. package/src/hooks/useNYPLTheme.ts +0 -91
  232. package/src/hooks/useWindowSize.stories.mdx +0 -23
  233. package/src/hooks/useWindowSize.ts +0 -40
  234. package/src/index.ts +0 -136
  235. package/src/resources.scss +0 -6
  236. package/src/styles/base/_01-breakpoints.scss +0 -27
  237. package/src/styles/base/_02-mixins.scss +0 -103
  238. package/src/styles/base/_place-holder.scss +0 -33
  239. package/src/styles/space/_space-inline.scss +0 -79
  240. package/src/styles/space/_space-inset.scss +0 -57
  241. package/src/styles/space/_space-stack.scss +0 -116
  242. package/src/styles.scss +0 -23
  243. package/src/theme/components/accordion.ts +0 -25
  244. package/src/theme/components/breadcrumb.ts +0 -94
  245. package/src/theme/components/button.ts +0 -132
  246. package/src/theme/components/buttonGroup.ts +0 -10
  247. package/src/theme/components/card.ts +0 -231
  248. package/src/theme/components/checkbox.ts +0 -110
  249. package/src/theme/components/checkboxGroup.ts +0 -10
  250. package/src/theme/components/componentWrapper.ts +0 -14
  251. package/src/theme/components/customTable.ts +0 -77
  252. package/src/theme/components/datePicker.ts +0 -17
  253. package/src/theme/components/fieldset.ts +0 -23
  254. package/src/theme/components/global.ts +0 -91
  255. package/src/theme/components/globalMixins.ts +0 -24
  256. package/src/theme/components/heading.ts +0 -79
  257. package/src/theme/components/helperErrorText.ts +0 -14
  258. package/src/theme/components/hero.ts +0 -238
  259. package/src/theme/components/horizontalRule.ts +0 -17
  260. package/src/theme/components/icon.ts +0 -88
  261. package/src/theme/components/image.ts +0 -135
  262. package/src/theme/components/label.ts +0 -15
  263. package/src/theme/components/link.ts +0 -63
  264. package/src/theme/components/list.ts +0 -88
  265. package/src/theme/components/logo.ts +0 -58
  266. package/src/theme/components/notification.ts +0 -132
  267. package/src/theme/components/pagination.ts +0 -17
  268. package/src/theme/components/progressIndicator.ts +0 -67
  269. package/src/theme/components/radio.ts +0 -103
  270. package/src/theme/components/radioGroup.ts +0 -10
  271. package/src/theme/components/searchBar.ts +0 -19
  272. package/src/theme/components/select.ts +0 -72
  273. package/src/theme/components/skeletonLoader.ts +0 -113
  274. package/src/theme/components/skipNavigation.ts +0 -26
  275. package/src/theme/components/slider.ts +0 -95
  276. package/src/theme/components/statusBadge.ts +0 -26
  277. package/src/theme/components/structuredContent.ts +0 -149
  278. package/src/theme/components/tabs.ts +0 -109
  279. package/src/theme/components/template.ts +0 -114
  280. package/src/theme/components/text.ts +0 -38
  281. package/src/theme/components/textInput.ts +0 -65
  282. package/src/theme/components/toggle.ts +0 -109
  283. package/src/theme/components/videoPlayer.ts +0 -47
  284. package/src/theme/foundations/breakpoints.ts +0 -24
  285. package/src/theme/foundations/colors.ts +0 -212
  286. package/src/theme/foundations/global.ts +0 -43
  287. package/src/theme/foundations/radii.ts +0 -7
  288. package/src/theme/foundations/shadows.ts +0 -5
  289. package/src/theme/foundations/spacing.ts +0 -136
  290. package/src/theme/foundations/typography.ts +0 -107
  291. package/src/theme/index.ts +0 -131
  292. package/src/theme/provider.tsx +0 -9
  293. package/src/theme/types.ts +0 -1
  294. package/src/utils/componentCategories.ts +0 -152
  295. package/src/utils/interfaces.ts +0 -5
  296. package/src/utils/utils.ts +0 -44
@@ -1,1430 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Radio Button renders the UI snapshot correctly 1`] = `
4
- <fieldset
5
- className="css-1u8qly9"
6
- id="radio-group-column"
7
- >
8
- <legend>
9
- column
10
- </legend>
11
- <div
12
- className="chakra-radio-group css-0"
13
- role="radiogroup"
14
- >
15
- <div
16
- className="chakra-stack css-1wdv1uh"
17
- >
18
- <label
19
- className="chakra-radio css-13p0l12"
20
- >
21
- <input
22
- checked={false}
23
- className="chakra-radio__input"
24
- disabled={false}
25
- id="radio-2"
26
- name="column"
27
- onBlur={[Function]}
28
- onChange={[Function]}
29
- onFocus={[Function]}
30
- onKeyDown={[Function]}
31
- onKeyUp={[Function]}
32
- required={false}
33
- style={
34
- Object {
35
- "border": "0px",
36
- "clip": "rect(0px, 0px, 0px, 0px)",
37
- "height": "1px",
38
- "margin": "-1px",
39
- "overflow": "hidden",
40
- "padding": "0px",
41
- "position": "absolute",
42
- "whiteSpace": "nowrap",
43
- "width": "1px",
44
- }
45
- }
46
- type="radio"
47
- value="2"
48
- />
49
- <span
50
- aria-hidden={true}
51
- className="css-14wybg9"
52
- onMouseDown={[Function]}
53
- onMouseEnter={[Function]}
54
- onMouseLeave={[Function]}
55
- onMouseUp={[Function]}
56
- />
57
- <span
58
- className="chakra-radio__label css-1y8kf23"
59
- onMouseDown={[Function]}
60
- onTouchStart={[Function]}
61
- >
62
- Radio 2
63
- </span>
64
- </label>
65
- <label
66
- className="chakra-radio css-13p0l12"
67
- >
68
- <input
69
- checked={false}
70
- className="chakra-radio__input"
71
- disabled={false}
72
- id="radio-3"
73
- name="column"
74
- onBlur={[Function]}
75
- onChange={[Function]}
76
- onFocus={[Function]}
77
- onKeyDown={[Function]}
78
- onKeyUp={[Function]}
79
- required={false}
80
- style={
81
- Object {
82
- "border": "0px",
83
- "clip": "rect(0px, 0px, 0px, 0px)",
84
- "height": "1px",
85
- "margin": "-1px",
86
- "overflow": "hidden",
87
- "padding": "0px",
88
- "position": "absolute",
89
- "whiteSpace": "nowrap",
90
- "width": "1px",
91
- }
92
- }
93
- type="radio"
94
- value="3"
95
- />
96
- <span
97
- aria-hidden={true}
98
- className="css-14wybg9"
99
- onMouseDown={[Function]}
100
- onMouseEnter={[Function]}
101
- onMouseLeave={[Function]}
102
- onMouseUp={[Function]}
103
- />
104
- <span
105
- className="chakra-radio__label css-1y8kf23"
106
- onMouseDown={[Function]}
107
- onTouchStart={[Function]}
108
- >
109
- Radio 3
110
- </span>
111
- </label>
112
- </div>
113
- </div>
114
- </fieldset>
115
- `;
116
-
117
- exports[`Radio Button renders the UI snapshot correctly 2`] = `
118
- <fieldset
119
- className="css-1u8qly9"
120
- id="radio-group-row"
121
- >
122
- <legend>
123
- row
124
- </legend>
125
- <div
126
- className="chakra-radio-group css-0"
127
- role="radiogroup"
128
- >
129
- <div
130
- className="chakra-stack css-1objuxj"
131
- >
132
- <label
133
- className="chakra-radio css-13p0l12"
134
- >
135
- <input
136
- checked={false}
137
- className="chakra-radio__input"
138
- disabled={false}
139
- id="radio-2"
140
- name="row"
141
- onBlur={[Function]}
142
- onChange={[Function]}
143
- onFocus={[Function]}
144
- onKeyDown={[Function]}
145
- onKeyUp={[Function]}
146
- required={false}
147
- style={
148
- Object {
149
- "border": "0px",
150
- "clip": "rect(0px, 0px, 0px, 0px)",
151
- "height": "1px",
152
- "margin": "-1px",
153
- "overflow": "hidden",
154
- "padding": "0px",
155
- "position": "absolute",
156
- "whiteSpace": "nowrap",
157
- "width": "1px",
158
- }
159
- }
160
- type="radio"
161
- value="2"
162
- />
163
- <span
164
- aria-hidden={true}
165
- className="css-14wybg9"
166
- onMouseDown={[Function]}
167
- onMouseEnter={[Function]}
168
- onMouseLeave={[Function]}
169
- onMouseUp={[Function]}
170
- />
171
- <span
172
- className="chakra-radio__label css-1y8kf23"
173
- onMouseDown={[Function]}
174
- onTouchStart={[Function]}
175
- >
176
- Radio 2
177
- </span>
178
- </label>
179
- <label
180
- className="chakra-radio css-13p0l12"
181
- >
182
- <input
183
- checked={false}
184
- className="chakra-radio__input"
185
- disabled={false}
186
- id="radio-3"
187
- name="row"
188
- onBlur={[Function]}
189
- onChange={[Function]}
190
- onFocus={[Function]}
191
- onKeyDown={[Function]}
192
- onKeyUp={[Function]}
193
- required={false}
194
- style={
195
- Object {
196
- "border": "0px",
197
- "clip": "rect(0px, 0px, 0px, 0px)",
198
- "height": "1px",
199
- "margin": "-1px",
200
- "overflow": "hidden",
201
- "padding": "0px",
202
- "position": "absolute",
203
- "whiteSpace": "nowrap",
204
- "width": "1px",
205
- }
206
- }
207
- type="radio"
208
- value="3"
209
- />
210
- <span
211
- aria-hidden={true}
212
- className="css-14wybg9"
213
- onMouseDown={[Function]}
214
- onMouseEnter={[Function]}
215
- onMouseLeave={[Function]}
216
- onMouseUp={[Function]}
217
- />
218
- <span
219
- className="chakra-radio__label css-1y8kf23"
220
- onMouseDown={[Function]}
221
- onTouchStart={[Function]}
222
- >
223
- Radio 3
224
- </span>
225
- </label>
226
- </div>
227
- </div>
228
- </fieldset>
229
- `;
230
-
231
- exports[`Radio Button renders the UI snapshot correctly 3`] = `
232
- <fieldset
233
- className="css-1u8qly9"
234
- id="radio-group-noLabel"
235
- >
236
- <legend>
237
- no label
238
- </legend>
239
- <div
240
- aria-label="no label"
241
- className="chakra-radio-group css-0"
242
- role="radiogroup"
243
- >
244
- <div
245
- className="chakra-stack css-1wdv1uh"
246
- >
247
- <label
248
- className="chakra-radio css-13p0l12"
249
- >
250
- <input
251
- checked={false}
252
- className="chakra-radio__input"
253
- disabled={false}
254
- id="radio-2"
255
- name="noLabel"
256
- onBlur={[Function]}
257
- onChange={[Function]}
258
- onFocus={[Function]}
259
- onKeyDown={[Function]}
260
- onKeyUp={[Function]}
261
- required={false}
262
- style={
263
- Object {
264
- "border": "0px",
265
- "clip": "rect(0px, 0px, 0px, 0px)",
266
- "height": "1px",
267
- "margin": "-1px",
268
- "overflow": "hidden",
269
- "padding": "0px",
270
- "position": "absolute",
271
- "whiteSpace": "nowrap",
272
- "width": "1px",
273
- }
274
- }
275
- type="radio"
276
- value="2"
277
- />
278
- <span
279
- aria-hidden={true}
280
- className="css-14wybg9"
281
- onMouseDown={[Function]}
282
- onMouseEnter={[Function]}
283
- onMouseLeave={[Function]}
284
- onMouseUp={[Function]}
285
- />
286
- <span
287
- className="chakra-radio__label css-1y8kf23"
288
- onMouseDown={[Function]}
289
- onTouchStart={[Function]}
290
- >
291
- Radio 2
292
- </span>
293
- </label>
294
- <label
295
- className="chakra-radio css-13p0l12"
296
- >
297
- <input
298
- checked={false}
299
- className="chakra-radio__input"
300
- disabled={false}
301
- id="radio-3"
302
- name="noLabel"
303
- onBlur={[Function]}
304
- onChange={[Function]}
305
- onFocus={[Function]}
306
- onKeyDown={[Function]}
307
- onKeyUp={[Function]}
308
- required={false}
309
- style={
310
- Object {
311
- "border": "0px",
312
- "clip": "rect(0px, 0px, 0px, 0px)",
313
- "height": "1px",
314
- "margin": "-1px",
315
- "overflow": "hidden",
316
- "padding": "0px",
317
- "position": "absolute",
318
- "whiteSpace": "nowrap",
319
- "width": "1px",
320
- }
321
- }
322
- type="radio"
323
- value="3"
324
- />
325
- <span
326
- aria-hidden={true}
327
- className="css-14wybg9"
328
- onMouseDown={[Function]}
329
- onMouseEnter={[Function]}
330
- onMouseLeave={[Function]}
331
- onMouseUp={[Function]}
332
- />
333
- <span
334
- className="chakra-radio__label css-1y8kf23"
335
- onMouseDown={[Function]}
336
- onTouchStart={[Function]}
337
- >
338
- Radio 3
339
- </span>
340
- </label>
341
- </div>
342
- </div>
343
- </fieldset>
344
- `;
345
-
346
- exports[`Radio Button renders the UI snapshot correctly 4`] = `
347
- <fieldset
348
- className="css-1u8qly9"
349
- id="radio-group-helperText"
350
- >
351
- <legend>
352
- helperText
353
- </legend>
354
- <div
355
- className="chakra-radio-group css-0"
356
- role="radiogroup"
357
- >
358
- <div
359
- className="chakra-stack css-1wdv1uh"
360
- >
361
- <label
362
- className="chakra-radio css-13p0l12"
363
- >
364
- <input
365
- checked={false}
366
- className="chakra-radio__input"
367
- disabled={false}
368
- id="radio-2"
369
- name="helperText"
370
- onBlur={[Function]}
371
- onChange={[Function]}
372
- onFocus={[Function]}
373
- onKeyDown={[Function]}
374
- onKeyUp={[Function]}
375
- required={false}
376
- style={
377
- Object {
378
- "border": "0px",
379
- "clip": "rect(0px, 0px, 0px, 0px)",
380
- "height": "1px",
381
- "margin": "-1px",
382
- "overflow": "hidden",
383
- "padding": "0px",
384
- "position": "absolute",
385
- "whiteSpace": "nowrap",
386
- "width": "1px",
387
- }
388
- }
389
- type="radio"
390
- value="2"
391
- />
392
- <span
393
- aria-hidden={true}
394
- className="css-14wybg9"
395
- onMouseDown={[Function]}
396
- onMouseEnter={[Function]}
397
- onMouseLeave={[Function]}
398
- onMouseUp={[Function]}
399
- />
400
- <span
401
- className="chakra-radio__label css-1y8kf23"
402
- onMouseDown={[Function]}
403
- onTouchStart={[Function]}
404
- >
405
- Radio 2
406
- </span>
407
- </label>
408
- <label
409
- className="chakra-radio css-13p0l12"
410
- >
411
- <input
412
- checked={false}
413
- className="chakra-radio__input"
414
- disabled={false}
415
- id="radio-3"
416
- name="helperText"
417
- onBlur={[Function]}
418
- onChange={[Function]}
419
- onFocus={[Function]}
420
- onKeyDown={[Function]}
421
- onKeyUp={[Function]}
422
- required={false}
423
- style={
424
- Object {
425
- "border": "0px",
426
- "clip": "rect(0px, 0px, 0px, 0px)",
427
- "height": "1px",
428
- "margin": "-1px",
429
- "overflow": "hidden",
430
- "padding": "0px",
431
- "position": "absolute",
432
- "whiteSpace": "nowrap",
433
- "width": "1px",
434
- }
435
- }
436
- type="radio"
437
- value="3"
438
- />
439
- <span
440
- aria-hidden={true}
441
- className="css-14wybg9"
442
- onMouseDown={[Function]}
443
- onMouseEnter={[Function]}
444
- onMouseLeave={[Function]}
445
- onMouseUp={[Function]}
446
- />
447
- <span
448
- className="chakra-radio__label css-1y8kf23"
449
- onMouseDown={[Function]}
450
- onTouchStart={[Function]}
451
- >
452
- Radio 3
453
- </span>
454
- </label>
455
- </div>
456
- </div>
457
- <div
458
- aria-atomic={true}
459
- aria-live="off"
460
- className="css-1xdhyk6"
461
- dangerouslySetInnerHTML={
462
- Object {
463
- "__html": "helper text",
464
- }
465
- }
466
- data-isinvalid={false}
467
- id="helperText-helperErrorText"
468
- />
469
- </fieldset>
470
- `;
471
-
472
- exports[`Radio Button renders the UI snapshot correctly 5`] = `
473
- <fieldset
474
- className="css-1u8qly9"
475
- id="radio-group-invalidText"
476
- >
477
- <legend>
478
- invalidText
479
- </legend>
480
- <div
481
- className="chakra-radio-group css-0"
482
- role="radiogroup"
483
- >
484
- <div
485
- className="chakra-stack css-1wdv1uh"
486
- >
487
- <label
488
- className="chakra-radio css-13p0l12"
489
- >
490
- <input
491
- checked={false}
492
- className="chakra-radio__input"
493
- disabled={false}
494
- id="radio-2"
495
- name="invalidText"
496
- onBlur={[Function]}
497
- onChange={[Function]}
498
- onFocus={[Function]}
499
- onKeyDown={[Function]}
500
- onKeyUp={[Function]}
501
- required={false}
502
- style={
503
- Object {
504
- "border": "0px",
505
- "clip": "rect(0px, 0px, 0px, 0px)",
506
- "height": "1px",
507
- "margin": "-1px",
508
- "overflow": "hidden",
509
- "padding": "0px",
510
- "position": "absolute",
511
- "whiteSpace": "nowrap",
512
- "width": "1px",
513
- }
514
- }
515
- type="radio"
516
- value="2"
517
- />
518
- <span
519
- aria-hidden={true}
520
- className="css-14wybg9"
521
- onMouseDown={[Function]}
522
- onMouseEnter={[Function]}
523
- onMouseLeave={[Function]}
524
- onMouseUp={[Function]}
525
- />
526
- <span
527
- className="chakra-radio__label css-1y8kf23"
528
- onMouseDown={[Function]}
529
- onTouchStart={[Function]}
530
- >
531
- Radio 2
532
- </span>
533
- </label>
534
- <label
535
- className="chakra-radio css-13p0l12"
536
- >
537
- <input
538
- checked={false}
539
- className="chakra-radio__input"
540
- disabled={false}
541
- id="radio-3"
542
- name="invalidText"
543
- onBlur={[Function]}
544
- onChange={[Function]}
545
- onFocus={[Function]}
546
- onKeyDown={[Function]}
547
- onKeyUp={[Function]}
548
- required={false}
549
- style={
550
- Object {
551
- "border": "0px",
552
- "clip": "rect(0px, 0px, 0px, 0px)",
553
- "height": "1px",
554
- "margin": "-1px",
555
- "overflow": "hidden",
556
- "padding": "0px",
557
- "position": "absolute",
558
- "whiteSpace": "nowrap",
559
- "width": "1px",
560
- }
561
- }
562
- type="radio"
563
- value="3"
564
- />
565
- <span
566
- aria-hidden={true}
567
- className="css-14wybg9"
568
- onMouseDown={[Function]}
569
- onMouseEnter={[Function]}
570
- onMouseLeave={[Function]}
571
- onMouseUp={[Function]}
572
- />
573
- <span
574
- className="chakra-radio__label css-1y8kf23"
575
- onMouseDown={[Function]}
576
- onTouchStart={[Function]}
577
- >
578
- Radio 3
579
- </span>
580
- </label>
581
- </div>
582
- </div>
583
- </fieldset>
584
- `;
585
-
586
- exports[`Radio Button renders the UI snapshot correctly 6`] = `
587
- <fieldset
588
- className="css-1u8qly9"
589
- id="radio-group-noRequiredLabel"
590
- >
591
- <legend>
592
- no optional or required label
593
- </legend>
594
- <div
595
- className="chakra-radio-group css-0"
596
- role="radiogroup"
597
- >
598
- <div
599
- className="chakra-stack css-1wdv1uh"
600
- >
601
- <label
602
- className="chakra-radio css-13p0l12"
603
- >
604
- <input
605
- aria-required={true}
606
- checked={false}
607
- className="chakra-radio__input"
608
- disabled={false}
609
- id="radio-2"
610
- name="noRequiredLabel"
611
- onBlur={[Function]}
612
- onChange={[Function]}
613
- onFocus={[Function]}
614
- onKeyDown={[Function]}
615
- onKeyUp={[Function]}
616
- required={true}
617
- style={
618
- Object {
619
- "border": "0px",
620
- "clip": "rect(0px, 0px, 0px, 0px)",
621
- "height": "1px",
622
- "margin": "-1px",
623
- "overflow": "hidden",
624
- "padding": "0px",
625
- "position": "absolute",
626
- "whiteSpace": "nowrap",
627
- "width": "1px",
628
- }
629
- }
630
- type="radio"
631
- value="2"
632
- />
633
- <span
634
- aria-hidden={true}
635
- className="css-14wybg9"
636
- onMouseDown={[Function]}
637
- onMouseEnter={[Function]}
638
- onMouseLeave={[Function]}
639
- onMouseUp={[Function]}
640
- />
641
- <span
642
- className="chakra-radio__label css-1y8kf23"
643
- onMouseDown={[Function]}
644
- onTouchStart={[Function]}
645
- >
646
- Radio 2
647
- </span>
648
- </label>
649
- <label
650
- className="chakra-radio css-13p0l12"
651
- >
652
- <input
653
- aria-required={true}
654
- checked={false}
655
- className="chakra-radio__input"
656
- disabled={false}
657
- id="radio-3"
658
- name="noRequiredLabel"
659
- onBlur={[Function]}
660
- onChange={[Function]}
661
- onFocus={[Function]}
662
- onKeyDown={[Function]}
663
- onKeyUp={[Function]}
664
- required={true}
665
- style={
666
- Object {
667
- "border": "0px",
668
- "clip": "rect(0px, 0px, 0px, 0px)",
669
- "height": "1px",
670
- "margin": "-1px",
671
- "overflow": "hidden",
672
- "padding": "0px",
673
- "position": "absolute",
674
- "whiteSpace": "nowrap",
675
- "width": "1px",
676
- }
677
- }
678
- type="radio"
679
- value="3"
680
- />
681
- <span
682
- aria-hidden={true}
683
- className="css-14wybg9"
684
- onMouseDown={[Function]}
685
- onMouseEnter={[Function]}
686
- onMouseLeave={[Function]}
687
- onMouseUp={[Function]}
688
- />
689
- <span
690
- className="chakra-radio__label css-1y8kf23"
691
- onMouseDown={[Function]}
692
- onTouchStart={[Function]}
693
- >
694
- Radio 3
695
- </span>
696
- </label>
697
- </div>
698
- </div>
699
- </fieldset>
700
- `;
701
-
702
- exports[`Radio Button renders the UI snapshot correctly 7`] = `
703
- <fieldset
704
- className="css-1u8qly9"
705
- id="radio-group-required"
706
- >
707
- <legend>
708
- required
709
- <span>
710
- (Required)
711
- </span>
712
- </legend>
713
- <div
714
- className="chakra-radio-group css-0"
715
- role="radiogroup"
716
- >
717
- <div
718
- className="chakra-stack css-1wdv1uh"
719
- >
720
- <label
721
- className="chakra-radio css-13p0l12"
722
- >
723
- <input
724
- aria-required={true}
725
- checked={false}
726
- className="chakra-radio__input"
727
- disabled={false}
728
- id="radio-2"
729
- name="required"
730
- onBlur={[Function]}
731
- onChange={[Function]}
732
- onFocus={[Function]}
733
- onKeyDown={[Function]}
734
- onKeyUp={[Function]}
735
- required={true}
736
- style={
737
- Object {
738
- "border": "0px",
739
- "clip": "rect(0px, 0px, 0px, 0px)",
740
- "height": "1px",
741
- "margin": "-1px",
742
- "overflow": "hidden",
743
- "padding": "0px",
744
- "position": "absolute",
745
- "whiteSpace": "nowrap",
746
- "width": "1px",
747
- }
748
- }
749
- type="radio"
750
- value="2"
751
- />
752
- <span
753
- aria-hidden={true}
754
- className="css-14wybg9"
755
- onMouseDown={[Function]}
756
- onMouseEnter={[Function]}
757
- onMouseLeave={[Function]}
758
- onMouseUp={[Function]}
759
- />
760
- <span
761
- className="chakra-radio__label css-1y8kf23"
762
- onMouseDown={[Function]}
763
- onTouchStart={[Function]}
764
- >
765
- Radio 2
766
- </span>
767
- </label>
768
- <label
769
- className="chakra-radio css-13p0l12"
770
- >
771
- <input
772
- aria-required={true}
773
- checked={false}
774
- className="chakra-radio__input"
775
- disabled={false}
776
- id="radio-3"
777
- name="required"
778
- onBlur={[Function]}
779
- onChange={[Function]}
780
- onFocus={[Function]}
781
- onKeyDown={[Function]}
782
- onKeyUp={[Function]}
783
- required={true}
784
- style={
785
- Object {
786
- "border": "0px",
787
- "clip": "rect(0px, 0px, 0px, 0px)",
788
- "height": "1px",
789
- "margin": "-1px",
790
- "overflow": "hidden",
791
- "padding": "0px",
792
- "position": "absolute",
793
- "whiteSpace": "nowrap",
794
- "width": "1px",
795
- }
796
- }
797
- type="radio"
798
- value="3"
799
- />
800
- <span
801
- aria-hidden={true}
802
- className="css-14wybg9"
803
- onMouseDown={[Function]}
804
- onMouseEnter={[Function]}
805
- onMouseLeave={[Function]}
806
- onMouseUp={[Function]}
807
- />
808
- <span
809
- className="chakra-radio__label css-1y8kf23"
810
- onMouseDown={[Function]}
811
- onTouchStart={[Function]}
812
- >
813
- Radio 3
814
- </span>
815
- </label>
816
- </div>
817
- </div>
818
- </fieldset>
819
- `;
820
-
821
- exports[`Radio Button renders the UI snapshot correctly 8`] = `
822
- <fieldset
823
- className="css-1u8qly9"
824
- id="radio-group-invalid"
825
- >
826
- <legend>
827
- invalid
828
- </legend>
829
- <div
830
- className="chakra-radio-group css-0"
831
- role="radiogroup"
832
- >
833
- <div
834
- className="chakra-stack css-1wdv1uh"
835
- >
836
- <label
837
- className="chakra-radio css-13p0l12"
838
- data-invalid=""
839
- >
840
- <input
841
- aria-invalid={true}
842
- checked={false}
843
- className="chakra-radio__input"
844
- disabled={false}
845
- id="radio-2"
846
- name="invalid"
847
- onBlur={[Function]}
848
- onChange={[Function]}
849
- onFocus={[Function]}
850
- onKeyDown={[Function]}
851
- onKeyUp={[Function]}
852
- required={false}
853
- style={
854
- Object {
855
- "border": "0px",
856
- "clip": "rect(0px, 0px, 0px, 0px)",
857
- "height": "1px",
858
- "margin": "-1px",
859
- "overflow": "hidden",
860
- "padding": "0px",
861
- "position": "absolute",
862
- "whiteSpace": "nowrap",
863
- "width": "1px",
864
- }
865
- }
866
- type="radio"
867
- value="2"
868
- />
869
- <span
870
- aria-hidden={true}
871
- className="css-14wybg9"
872
- data-invalid=""
873
- onMouseDown={[Function]}
874
- onMouseEnter={[Function]}
875
- onMouseLeave={[Function]}
876
- onMouseUp={[Function]}
877
- />
878
- <span
879
- className="chakra-radio__label css-1y8kf23"
880
- data-invalid=""
881
- onMouseDown={[Function]}
882
- onTouchStart={[Function]}
883
- >
884
- Radio 2
885
- </span>
886
- </label>
887
- <label
888
- className="chakra-radio css-13p0l12"
889
- data-invalid=""
890
- >
891
- <input
892
- aria-invalid={true}
893
- checked={false}
894
- className="chakra-radio__input"
895
- disabled={false}
896
- id="radio-3"
897
- name="invalid"
898
- onBlur={[Function]}
899
- onChange={[Function]}
900
- onFocus={[Function]}
901
- onKeyDown={[Function]}
902
- onKeyUp={[Function]}
903
- required={false}
904
- style={
905
- Object {
906
- "border": "0px",
907
- "clip": "rect(0px, 0px, 0px, 0px)",
908
- "height": "1px",
909
- "margin": "-1px",
910
- "overflow": "hidden",
911
- "padding": "0px",
912
- "position": "absolute",
913
- "whiteSpace": "nowrap",
914
- "width": "1px",
915
- }
916
- }
917
- type="radio"
918
- value="3"
919
- />
920
- <span
921
- aria-hidden={true}
922
- className="css-14wybg9"
923
- data-invalid=""
924
- onMouseDown={[Function]}
925
- onMouseEnter={[Function]}
926
- onMouseLeave={[Function]}
927
- onMouseUp={[Function]}
928
- />
929
- <span
930
- className="chakra-radio__label css-1y8kf23"
931
- data-invalid=""
932
- onMouseDown={[Function]}
933
- onTouchStart={[Function]}
934
- >
935
- Radio 3
936
- </span>
937
- </label>
938
- </div>
939
- </div>
940
- </fieldset>
941
- `;
942
-
943
- exports[`Radio Button renders the UI snapshot correctly 9`] = `
944
- <fieldset
945
- className="css-1u8qly9"
946
- id="radio-group-disabled"
947
- >
948
- <legend>
949
- disabled
950
- </legend>
951
- <div
952
- className="chakra-radio-group css-0"
953
- role="radiogroup"
954
- >
955
- <div
956
- className="chakra-stack css-1wdv1uh"
957
- >
958
- <label
959
- className="chakra-radio css-13p0l12"
960
- data-disabled=""
961
- >
962
- <input
963
- aria-disabled={true}
964
- checked={false}
965
- className="chakra-radio__input"
966
- disabled={true}
967
- id="radio-2"
968
- name="disabled"
969
- onBlur={[Function]}
970
- onChange={[Function]}
971
- onFocus={[Function]}
972
- onKeyDown={[Function]}
973
- onKeyUp={[Function]}
974
- required={false}
975
- style={
976
- Object {
977
- "border": "0px",
978
- "clip": "rect(0px, 0px, 0px, 0px)",
979
- "height": "1px",
980
- "margin": "-1px",
981
- "overflow": "hidden",
982
- "padding": "0px",
983
- "position": "absolute",
984
- "whiteSpace": "nowrap",
985
- "width": "1px",
986
- }
987
- }
988
- type="radio"
989
- value="2"
990
- />
991
- <span
992
- aria-hidden={true}
993
- className="css-14wybg9"
994
- data-disabled=""
995
- onMouseDown={[Function]}
996
- onMouseEnter={[Function]}
997
- onMouseLeave={[Function]}
998
- onMouseUp={[Function]}
999
- />
1000
- <span
1001
- className="chakra-radio__label css-1y8kf23"
1002
- data-disabled=""
1003
- onMouseDown={[Function]}
1004
- onTouchStart={[Function]}
1005
- >
1006
- Radio 2
1007
- </span>
1008
- </label>
1009
- <label
1010
- className="chakra-radio css-13p0l12"
1011
- data-disabled=""
1012
- >
1013
- <input
1014
- aria-disabled={true}
1015
- checked={false}
1016
- className="chakra-radio__input"
1017
- disabled={true}
1018
- id="radio-3"
1019
- name="disabled"
1020
- onBlur={[Function]}
1021
- onChange={[Function]}
1022
- onFocus={[Function]}
1023
- onKeyDown={[Function]}
1024
- onKeyUp={[Function]}
1025
- required={false}
1026
- style={
1027
- Object {
1028
- "border": "0px",
1029
- "clip": "rect(0px, 0px, 0px, 0px)",
1030
- "height": "1px",
1031
- "margin": "-1px",
1032
- "overflow": "hidden",
1033
- "padding": "0px",
1034
- "position": "absolute",
1035
- "whiteSpace": "nowrap",
1036
- "width": "1px",
1037
- }
1038
- }
1039
- type="radio"
1040
- value="3"
1041
- />
1042
- <span
1043
- aria-hidden={true}
1044
- className="css-14wybg9"
1045
- data-disabled=""
1046
- onMouseDown={[Function]}
1047
- onMouseEnter={[Function]}
1048
- onMouseLeave={[Function]}
1049
- onMouseUp={[Function]}
1050
- />
1051
- <span
1052
- className="chakra-radio__label css-1y8kf23"
1053
- data-disabled=""
1054
- onMouseDown={[Function]}
1055
- onTouchStart={[Function]}
1056
- >
1057
- Radio 3
1058
- </span>
1059
- </label>
1060
- </div>
1061
- </div>
1062
- </fieldset>
1063
- `;
1064
-
1065
- exports[`Radio Button renders the UI snapshot correctly 10`] = `
1066
- <fieldset
1067
- className="css-1u8qly9"
1068
- id="radio-group-jsxLabels"
1069
- >
1070
- <legend>
1071
- RadioGroup example
1072
- </legend>
1073
- <div
1074
- className="chakra-radio-group css-0"
1075
- role="radiogroup"
1076
- >
1077
- <div
1078
- className="chakra-stack css-1wdv1uh"
1079
- >
1080
- <label
1081
- className="chakra-radio css-13p0l12"
1082
- >
1083
- <input
1084
- checked={false}
1085
- className="chakra-radio__input"
1086
- disabled={false}
1087
- id="arts"
1088
- name="a11y-test"
1089
- onBlur={[Function]}
1090
- onChange={[Function]}
1091
- onFocus={[Function]}
1092
- onKeyDown={[Function]}
1093
- onKeyUp={[Function]}
1094
- required={false}
1095
- style={
1096
- Object {
1097
- "border": "0px",
1098
- "clip": "rect(0px, 0px, 0px, 0px)",
1099
- "height": "1px",
1100
- "margin": "-1px",
1101
- "overflow": "hidden",
1102
- "padding": "0px",
1103
- "position": "absolute",
1104
- "whiteSpace": "nowrap",
1105
- "width": "1px",
1106
- }
1107
- }
1108
- type="radio"
1109
- value="arts"
1110
- />
1111
- <span
1112
- aria-hidden={true}
1113
- className="css-14wybg9"
1114
- onMouseDown={[Function]}
1115
- onMouseEnter={[Function]}
1116
- onMouseLeave={[Function]}
1117
- onMouseUp={[Function]}
1118
- />
1119
- <span
1120
- className="chakra-radio__label css-1y8kf23"
1121
- onMouseDown={[Function]}
1122
- onTouchStart={[Function]}
1123
- >
1124
- <div
1125
- className="css-k008qs"
1126
- >
1127
- <span>
1128
- Arts
1129
- </span>
1130
- <div
1131
- className="css-17xejub"
1132
- />
1133
- <span>
1134
- 4
1135
- </span>
1136
- </div>
1137
- </span>
1138
- </label>
1139
- <label
1140
- className="chakra-radio css-13p0l12"
1141
- >
1142
- <input
1143
- checked={false}
1144
- className="chakra-radio__input"
1145
- disabled={false}
1146
- id="English"
1147
- name="a11y-test"
1148
- onBlur={[Function]}
1149
- onChange={[Function]}
1150
- onFocus={[Function]}
1151
- onKeyDown={[Function]}
1152
- onKeyUp={[Function]}
1153
- required={false}
1154
- style={
1155
- Object {
1156
- "border": "0px",
1157
- "clip": "rect(0px, 0px, 0px, 0px)",
1158
- "height": "1px",
1159
- "margin": "-1px",
1160
- "overflow": "hidden",
1161
- "padding": "0px",
1162
- "position": "absolute",
1163
- "whiteSpace": "nowrap",
1164
- "width": "1px",
1165
- }
1166
- }
1167
- type="radio"
1168
- value="English"
1169
- />
1170
- <span
1171
- aria-hidden={true}
1172
- className="css-14wybg9"
1173
- onMouseDown={[Function]}
1174
- onMouseEnter={[Function]}
1175
- onMouseLeave={[Function]}
1176
- onMouseUp={[Function]}
1177
- />
1178
- <span
1179
- className="chakra-radio__label css-1y8kf23"
1180
- onMouseDown={[Function]}
1181
- onTouchStart={[Function]}
1182
- >
1183
- <div
1184
- className="css-k008qs"
1185
- >
1186
- <span>
1187
- English
1188
- </span>
1189
- <div
1190
- className="css-17xejub"
1191
- />
1192
- <span>
1193
- 23
1194
- </span>
1195
- </div>
1196
- </span>
1197
- </label>
1198
- </div>
1199
- </div>
1200
- </fieldset>
1201
- `;
1202
-
1203
- exports[`Radio Button renders the UI snapshot correctly 11`] = `
1204
- <fieldset
1205
- className="css-1y4kn3e"
1206
- id="radio-group-chakra"
1207
- >
1208
- <legend>
1209
- chakra
1210
- </legend>
1211
- <div
1212
- className="chakra-radio-group css-0"
1213
- role="radiogroup"
1214
- >
1215
- <div
1216
- className="chakra-stack css-1wdv1uh"
1217
- >
1218
- <label
1219
- className="chakra-radio css-13p0l12"
1220
- >
1221
- <input
1222
- checked={false}
1223
- className="chakra-radio__input"
1224
- disabled={false}
1225
- id="radio-2"
1226
- name="chakra"
1227
- onBlur={[Function]}
1228
- onChange={[Function]}
1229
- onFocus={[Function]}
1230
- onKeyDown={[Function]}
1231
- onKeyUp={[Function]}
1232
- required={false}
1233
- style={
1234
- Object {
1235
- "border": "0px",
1236
- "clip": "rect(0px, 0px, 0px, 0px)",
1237
- "height": "1px",
1238
- "margin": "-1px",
1239
- "overflow": "hidden",
1240
- "padding": "0px",
1241
- "position": "absolute",
1242
- "whiteSpace": "nowrap",
1243
- "width": "1px",
1244
- }
1245
- }
1246
- type="radio"
1247
- value="2"
1248
- />
1249
- <span
1250
- aria-hidden={true}
1251
- className="css-14wybg9"
1252
- onMouseDown={[Function]}
1253
- onMouseEnter={[Function]}
1254
- onMouseLeave={[Function]}
1255
- onMouseUp={[Function]}
1256
- />
1257
- <span
1258
- className="chakra-radio__label css-1y8kf23"
1259
- onMouseDown={[Function]}
1260
- onTouchStart={[Function]}
1261
- >
1262
- Radio 2
1263
- </span>
1264
- </label>
1265
- <label
1266
- className="chakra-radio css-13p0l12"
1267
- >
1268
- <input
1269
- checked={false}
1270
- className="chakra-radio__input"
1271
- disabled={false}
1272
- id="radio-3"
1273
- name="chakra"
1274
- onBlur={[Function]}
1275
- onChange={[Function]}
1276
- onFocus={[Function]}
1277
- onKeyDown={[Function]}
1278
- onKeyUp={[Function]}
1279
- required={false}
1280
- style={
1281
- Object {
1282
- "border": "0px",
1283
- "clip": "rect(0px, 0px, 0px, 0px)",
1284
- "height": "1px",
1285
- "margin": "-1px",
1286
- "overflow": "hidden",
1287
- "padding": "0px",
1288
- "position": "absolute",
1289
- "whiteSpace": "nowrap",
1290
- "width": "1px",
1291
- }
1292
- }
1293
- type="radio"
1294
- value="3"
1295
- />
1296
- <span
1297
- aria-hidden={true}
1298
- className="css-14wybg9"
1299
- onMouseDown={[Function]}
1300
- onMouseEnter={[Function]}
1301
- onMouseLeave={[Function]}
1302
- onMouseUp={[Function]}
1303
- />
1304
- <span
1305
- className="chakra-radio__label css-1y8kf23"
1306
- onMouseDown={[Function]}
1307
- onTouchStart={[Function]}
1308
- >
1309
- Radio 3
1310
- </span>
1311
- </label>
1312
- </div>
1313
- </div>
1314
- </fieldset>
1315
- `;
1316
-
1317
- exports[`Radio Button renders the UI snapshot correctly 12`] = `
1318
- <fieldset
1319
- className="css-1u8qly9"
1320
- data-testid="props"
1321
- id="radio-group-props"
1322
- >
1323
- <legend>
1324
- props
1325
- </legend>
1326
- <div
1327
- className="chakra-radio-group css-0"
1328
- role="radiogroup"
1329
- >
1330
- <div
1331
- className="chakra-stack css-1wdv1uh"
1332
- >
1333
- <label
1334
- className="chakra-radio css-13p0l12"
1335
- >
1336
- <input
1337
- checked={false}
1338
- className="chakra-radio__input"
1339
- disabled={false}
1340
- id="radio-2"
1341
- name="props"
1342
- onBlur={[Function]}
1343
- onChange={[Function]}
1344
- onFocus={[Function]}
1345
- onKeyDown={[Function]}
1346
- onKeyUp={[Function]}
1347
- required={false}
1348
- style={
1349
- Object {
1350
- "border": "0px",
1351
- "clip": "rect(0px, 0px, 0px, 0px)",
1352
- "height": "1px",
1353
- "margin": "-1px",
1354
- "overflow": "hidden",
1355
- "padding": "0px",
1356
- "position": "absolute",
1357
- "whiteSpace": "nowrap",
1358
- "width": "1px",
1359
- }
1360
- }
1361
- type="radio"
1362
- value="2"
1363
- />
1364
- <span
1365
- aria-hidden={true}
1366
- className="css-14wybg9"
1367
- onMouseDown={[Function]}
1368
- onMouseEnter={[Function]}
1369
- onMouseLeave={[Function]}
1370
- onMouseUp={[Function]}
1371
- />
1372
- <span
1373
- className="chakra-radio__label css-1y8kf23"
1374
- onMouseDown={[Function]}
1375
- onTouchStart={[Function]}
1376
- >
1377
- Radio 2
1378
- </span>
1379
- </label>
1380
- <label
1381
- className="chakra-radio css-13p0l12"
1382
- >
1383
- <input
1384
- checked={false}
1385
- className="chakra-radio__input"
1386
- disabled={false}
1387
- id="radio-3"
1388
- name="props"
1389
- onBlur={[Function]}
1390
- onChange={[Function]}
1391
- onFocus={[Function]}
1392
- onKeyDown={[Function]}
1393
- onKeyUp={[Function]}
1394
- required={false}
1395
- style={
1396
- Object {
1397
- "border": "0px",
1398
- "clip": "rect(0px, 0px, 0px, 0px)",
1399
- "height": "1px",
1400
- "margin": "-1px",
1401
- "overflow": "hidden",
1402
- "padding": "0px",
1403
- "position": "absolute",
1404
- "whiteSpace": "nowrap",
1405
- "width": "1px",
1406
- }
1407
- }
1408
- type="radio"
1409
- value="3"
1410
- />
1411
- <span
1412
- aria-hidden={true}
1413
- className="css-14wybg9"
1414
- onMouseDown={[Function]}
1415
- onMouseEnter={[Function]}
1416
- onMouseLeave={[Function]}
1417
- onMouseUp={[Function]}
1418
- />
1419
- <span
1420
- className="chakra-radio__label css-1y8kf23"
1421
- onMouseDown={[Function]}
1422
- onTouchStart={[Function]}
1423
- >
1424
- Radio 3
1425
- </span>
1426
- </label>
1427
- </div>
1428
- </div>
1429
- </fieldset>
1430
- `;