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