@neo4j-ndl/react 4.24.1 → 4.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (437) hide show
  1. package/lib/cjs/_common/form-control/FormFieldLabel.js +1 -1
  2. package/lib/cjs/_common/form-control/FormFieldLabel.js.map +1 -1
  3. package/lib/cjs/_common/form-control/FormFieldMessage.js +1 -1
  4. package/lib/cjs/_common/form-control/FormFieldMessage.js.map +1 -1
  5. package/lib/cjs/_common/form-control/form-control-types.js +1 -1
  6. package/lib/cjs/_common/form-control/form-control-types.js.map +1 -1
  7. package/lib/cjs/_common/form-control/form-field-group-context.js +32 -0
  8. package/lib/cjs/_common/form-control/form-field-group-context.js.map +1 -0
  9. package/lib/cjs/_common/form-control/index.js +5 -2
  10. package/lib/cjs/_common/form-control/index.js.map +1 -1
  11. package/lib/cjs/_common/form-control/use-form-field.js +1 -1
  12. package/lib/cjs/_common/form-control/use-form-field.js.map +1 -1
  13. package/lib/cjs/_common/form-control/use-inline-field-label.js +1 -1
  14. package/lib/cjs/_common/form-control/use-inline-field-label.js.map +1 -1
  15. package/lib/cjs/_generated/style-rules/color-utils.js +1 -1
  16. package/lib/cjs/_generated/style-rules/numeric-utils.js +1 -1
  17. package/lib/cjs/accordion/accordion-types.js +1 -1
  18. package/lib/cjs/announcement-banner/AnnouncementBanner.js +1 -1
  19. package/lib/cjs/announcement-banner/AnnouncementBanner.js.map +1 -1
  20. package/lib/cjs/announcement-banner/index.js +1 -1
  21. package/lib/cjs/announcement-banner/index.js.map +1 -1
  22. package/lib/cjs/announcement-banner/stories/announcement-banner-closeable.story.js +1 -1
  23. package/lib/cjs/announcement-banner/stories/announcement-banner-closeable.story.js.map +1 -1
  24. package/lib/cjs/announcement-banner/stories/announcement-banner-custom-icons.story.js +1 -1
  25. package/lib/cjs/announcement-banner/stories/announcement-banner-custom-icons.story.js.map +1 -1
  26. package/lib/cjs/announcement-banner/stories/announcement-banner-default.story.js +1 -1
  27. package/lib/cjs/announcement-banner/stories/announcement-banner-default.story.js.map +1 -1
  28. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js +1 -1
  29. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js.map +1 -1
  30. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-urgent.story.js +1 -1
  31. package/lib/cjs/announcement-banner/stories/announcement-banner-injected-urgent.story.js.map +1 -1
  32. package/lib/cjs/announcement-banner/stories/announcement-banner-present-at-page-render.story.js +1 -1
  33. package/lib/cjs/announcement-banner/stories/announcement-banner-present-at-page-render.story.js.map +1 -1
  34. package/lib/cjs/announcement-banner/stories/announcement-banner-variants.story.js +1 -1
  35. package/lib/cjs/announcement-banner/stories/announcement-banner-variants.story.js.map +1 -1
  36. package/lib/cjs/announcement-banner/stories/announcement-banner-with-actions.story.js +1 -1
  37. package/lib/cjs/announcement-banner/stories/announcement-banner-with-actions.story.js.map +1 -1
  38. package/lib/cjs/announcement-banner/stories/announcement-banner-with-page-content.story.js +1 -1
  39. package/lib/cjs/announcement-banner/stories/announcement-banner-with-page-content.story.js.map +1 -1
  40. package/lib/cjs/announcement-banner/stories/index.js +1 -1
  41. package/lib/cjs/announcement-banner/stories/index.js.map +1 -1
  42. package/lib/cjs/box/Box.js +1 -1
  43. package/lib/cjs/checkbox/Checkbox.js +6 -3
  44. package/lib/cjs/checkbox/Checkbox.js.map +1 -1
  45. package/lib/cjs/checkbox-group/CheckboxGroup.js +52 -0
  46. package/lib/cjs/checkbox-group/CheckboxGroup.js.map +1 -0
  47. package/lib/cjs/checkbox-group/index.js +26 -0
  48. package/lib/cjs/checkbox-group/index.js.map +1 -0
  49. package/lib/cjs/checkbox-group/stories/checkbox-group-default.story.js +30 -0
  50. package/lib/cjs/checkbox-group/stories/checkbox-group-default.story.js.map +1 -0
  51. package/lib/cjs/checkbox-group/stories/checkbox-group-disabled.story.js +30 -0
  52. package/lib/cjs/checkbox-group/stories/checkbox-group-disabled.story.js.map +1 -0
  53. package/lib/cjs/checkbox-group/stories/checkbox-group-error.story.js +30 -0
  54. package/lib/cjs/checkbox-group/stories/checkbox-group-error.story.js.map +1 -0
  55. package/lib/cjs/checkbox-group/stories/checkbox-group-optional.story.js +30 -0
  56. package/lib/cjs/checkbox-group/stories/checkbox-group-optional.story.js.map +1 -0
  57. package/lib/cjs/checkbox-group/stories/checkbox-group-required.story.js +30 -0
  58. package/lib/cjs/checkbox-group/stories/checkbox-group-required.story.js.map +1 -0
  59. package/lib/cjs/checkbox-group/stories/checkbox-group-visually-hidden-label.story.js +30 -0
  60. package/lib/cjs/checkbox-group/stories/checkbox-group-visually-hidden-label.story.js.map +1 -0
  61. package/lib/cjs/checkbox-group/stories/index.js +52 -0
  62. package/lib/cjs/checkbox-group/stories/index.js.map +1 -0
  63. package/lib/cjs/clean-icon-button/CleanIconButton.js +1 -1
  64. package/lib/cjs/data-grid/DataGrid.js +1 -1
  65. package/lib/cjs/data-grid/data-grid-context.js +1 -1
  66. package/lib/cjs/data-grid/data-grid-nav/index.js +1 -1
  67. package/lib/cjs/data-grid/helpers/index.js +1 -1
  68. package/lib/cjs/data-grid/stories/staticData.js +1 -1
  69. package/lib/cjs/dialog/Dialog.js +8 -9
  70. package/lib/cjs/dialog/Dialog.js.map +1 -1
  71. package/lib/cjs/dismissible-tag/DismissibleTag.js +1 -1
  72. package/lib/cjs/fieldset/Fieldset.js +78 -0
  73. package/lib/cjs/fieldset/Fieldset.js.map +1 -0
  74. package/lib/cjs/fieldset/index.js +26 -0
  75. package/lib/cjs/fieldset/index.js.map +1 -0
  76. package/lib/cjs/fieldset/stories/fieldset-default.story.js +30 -0
  77. package/lib/cjs/fieldset/stories/fieldset-default.story.js.map +1 -0
  78. package/lib/cjs/fieldset/stories/fieldset-disabled.story.js +30 -0
  79. package/lib/cjs/fieldset/stories/fieldset-disabled.story.js.map +1 -0
  80. package/lib/cjs/fieldset/stories/fieldset-error.story.js +30 -0
  81. package/lib/cjs/fieldset/stories/fieldset-error.story.js.map +1 -0
  82. package/lib/cjs/fieldset/stories/fieldset-optional.story.js +30 -0
  83. package/lib/cjs/fieldset/stories/fieldset-optional.story.js.map +1 -0
  84. package/lib/cjs/fieldset/stories/fieldset-required.story.js +30 -0
  85. package/lib/cjs/fieldset/stories/fieldset-required.story.js.map +1 -0
  86. package/lib/cjs/fieldset/stories/fieldset-visually-hidden-label.story.js +30 -0
  87. package/lib/cjs/fieldset/stories/fieldset-visually-hidden-label.story.js.map +1 -0
  88. package/lib/cjs/fieldset/stories/index.js +52 -0
  89. package/lib/cjs/fieldset/stories/index.js.map +1 -0
  90. package/lib/cjs/filled-button/FilledButton.js +1 -1
  91. package/lib/cjs/icon-button/IconButton.js +1 -1
  92. package/lib/cjs/icons/generated/custom/FloppyDiskArrowTopRight.js +1 -1
  93. package/lib/cjs/icons/generated/custom/FloppyDiskArrowTopRight.js.map +1 -1
  94. package/lib/cjs/index.js +8 -2
  95. package/lib/cjs/index.js.map +1 -1
  96. package/lib/cjs/kbd/kbd-utils.js +1 -1
  97. package/lib/cjs/logo/Logo.js +1 -1
  98. package/lib/cjs/outlined-button/OutlinedButton.js +1 -1
  99. package/lib/cjs/radio/Radio.js +16 -3
  100. package/lib/cjs/radio/Radio.js.map +1 -1
  101. package/lib/cjs/radio-group/RadioGroup.js +62 -0
  102. package/lib/cjs/radio-group/RadioGroup.js.map +1 -0
  103. package/lib/cjs/radio-group/index.js +26 -0
  104. package/lib/cjs/radio-group/index.js.map +1 -0
  105. package/lib/cjs/radio-group/stories/index.js +60 -0
  106. package/lib/cjs/radio-group/stories/index.js.map +1 -0
  107. package/lib/cjs/radio-group/stories/radio-group-controlled.story.js +32 -0
  108. package/lib/cjs/radio-group/stories/radio-group-controlled.story.js.map +1 -0
  109. package/lib/cjs/radio-group/stories/radio-group-default.story.js +30 -0
  110. package/lib/cjs/radio-group/stories/radio-group-default.story.js.map +1 -0
  111. package/lib/cjs/radio-group/stories/radio-group-disabled.story.js +30 -0
  112. package/lib/cjs/radio-group/stories/radio-group-disabled.story.js.map +1 -0
  113. package/lib/cjs/radio-group/stories/radio-group-error.story.js +30 -0
  114. package/lib/cjs/radio-group/stories/radio-group-error.story.js.map +1 -0
  115. package/lib/cjs/radio-group/stories/radio-group-horizontal.story.js +30 -0
  116. package/lib/cjs/radio-group/stories/radio-group-horizontal.story.js.map +1 -0
  117. package/lib/cjs/radio-group/stories/radio-group-optional.story.js +30 -0
  118. package/lib/cjs/radio-group/stories/radio-group-optional.story.js.map +1 -0
  119. package/lib/cjs/radio-group/stories/radio-group-required.story.js +30 -0
  120. package/lib/cjs/radio-group/stories/radio-group-required.story.js.map +1 -0
  121. package/lib/cjs/radio-group/stories/radio-group-visually-hidden-label.story.js +30 -0
  122. package/lib/cjs/radio-group/stories/radio-group-visually-hidden-label.story.js.map +1 -0
  123. package/lib/cjs/read-only-tag/ReadOnlyTag.js +1 -1
  124. package/lib/cjs/select/types.js +1 -1
  125. package/lib/cjs/spotlight/SpotlightTour.js +1 -1
  126. package/lib/cjs/text-button/TextButton.js +1 -1
  127. package/lib/cjs/tree-view/TreeViewItem.js +1 -1
  128. package/lib/cjs/tree-view/TreeViewTextItem.js +1 -1
  129. package/lib/cjs/tree-view/TreeViewTrail.js +1 -1
  130. package/lib/cjs/tree-view/tree-view-types.js +1 -1
  131. package/lib/cjs/tree-view/tree-view-utils.js +1 -1
  132. package/lib/cjs/typography/Typography.js +1 -1
  133. package/lib/esm/_common/form-control/FormFieldLabel.js +1 -1
  134. package/lib/esm/_common/form-control/FormFieldLabel.js.map +1 -1
  135. package/lib/esm/_common/form-control/FormFieldMessage.js +1 -1
  136. package/lib/esm/_common/form-control/FormFieldMessage.js.map +1 -1
  137. package/lib/esm/_common/form-control/form-control-types.js +1 -1
  138. package/lib/esm/_common/form-control/form-control-types.js.map +1 -1
  139. package/lib/esm/_common/form-control/form-field-group-context.js +28 -0
  140. package/lib/esm/_common/form-control/form-field-group-context.js.map +1 -0
  141. package/lib/esm/_common/form-control/index.js +2 -1
  142. package/lib/esm/_common/form-control/index.js.map +1 -1
  143. package/lib/esm/_common/form-control/use-form-field.js +1 -1
  144. package/lib/esm/_common/form-control/use-form-field.js.map +1 -1
  145. package/lib/esm/_common/form-control/use-inline-field-label.js +1 -1
  146. package/lib/esm/_common/form-control/use-inline-field-label.js.map +1 -1
  147. package/lib/esm/_generated/style-rules/color-utils.js +1 -1
  148. package/lib/esm/_generated/style-rules/numeric-utils.js +1 -1
  149. package/lib/esm/accordion/accordion-types.js +1 -1
  150. package/lib/esm/announcement-banner/AnnouncementBanner.js +1 -1
  151. package/lib/esm/announcement-banner/AnnouncementBanner.js.map +1 -1
  152. package/lib/esm/announcement-banner/index.js +1 -1
  153. package/lib/esm/announcement-banner/index.js.map +1 -1
  154. package/lib/esm/announcement-banner/stories/announcement-banner-closeable.story.js +1 -1
  155. package/lib/esm/announcement-banner/stories/announcement-banner-closeable.story.js.map +1 -1
  156. package/lib/esm/announcement-banner/stories/announcement-banner-custom-icons.story.js +1 -1
  157. package/lib/esm/announcement-banner/stories/announcement-banner-custom-icons.story.js.map +1 -1
  158. package/lib/esm/announcement-banner/stories/announcement-banner-default.story.js +1 -1
  159. package/lib/esm/announcement-banner/stories/announcement-banner-default.story.js.map +1 -1
  160. package/lib/esm/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js +1 -1
  161. package/lib/esm/announcement-banner/stories/announcement-banner-injected-non-urgent.story.js.map +1 -1
  162. package/lib/esm/announcement-banner/stories/announcement-banner-injected-urgent.story.js +1 -1
  163. package/lib/esm/announcement-banner/stories/announcement-banner-injected-urgent.story.js.map +1 -1
  164. package/lib/esm/announcement-banner/stories/announcement-banner-present-at-page-render.story.js +1 -1
  165. package/lib/esm/announcement-banner/stories/announcement-banner-present-at-page-render.story.js.map +1 -1
  166. package/lib/esm/announcement-banner/stories/announcement-banner-variants.story.js +1 -1
  167. package/lib/esm/announcement-banner/stories/announcement-banner-variants.story.js.map +1 -1
  168. package/lib/esm/announcement-banner/stories/announcement-banner-with-actions.story.js +1 -1
  169. package/lib/esm/announcement-banner/stories/announcement-banner-with-actions.story.js.map +1 -1
  170. package/lib/esm/announcement-banner/stories/announcement-banner-with-page-content.story.js +1 -1
  171. package/lib/esm/announcement-banner/stories/announcement-banner-with-page-content.story.js.map +1 -1
  172. package/lib/esm/announcement-banner/stories/index.js +1 -1
  173. package/lib/esm/announcement-banner/stories/index.js.map +1 -1
  174. package/lib/esm/box/Box.js +1 -1
  175. package/lib/esm/checkbox/Checkbox.js +7 -4
  176. package/lib/esm/checkbox/Checkbox.js.map +1 -1
  177. package/lib/esm/checkbox-group/CheckboxGroup.js +49 -0
  178. package/lib/esm/checkbox-group/CheckboxGroup.js.map +1 -0
  179. package/lib/esm/checkbox-group/index.js +22 -0
  180. package/lib/esm/checkbox-group/index.js.map +1 -0
  181. package/lib/esm/checkbox-group/stories/checkbox-group-default.story.js +28 -0
  182. package/lib/esm/checkbox-group/stories/checkbox-group-default.story.js.map +1 -0
  183. package/lib/esm/checkbox-group/stories/checkbox-group-disabled.story.js +28 -0
  184. package/lib/esm/checkbox-group/stories/checkbox-group-disabled.story.js.map +1 -0
  185. package/lib/esm/checkbox-group/stories/checkbox-group-error.story.js +28 -0
  186. package/lib/esm/checkbox-group/stories/checkbox-group-error.story.js.map +1 -0
  187. package/lib/esm/checkbox-group/stories/checkbox-group-optional.story.js +28 -0
  188. package/lib/esm/checkbox-group/stories/checkbox-group-optional.story.js.map +1 -0
  189. package/lib/esm/checkbox-group/stories/checkbox-group-required.story.js +28 -0
  190. package/lib/esm/checkbox-group/stories/checkbox-group-required.story.js.map +1 -0
  191. package/lib/esm/checkbox-group/stories/checkbox-group-visually-hidden-label.story.js +28 -0
  192. package/lib/esm/checkbox-group/stories/checkbox-group-visually-hidden-label.story.js.map +1 -0
  193. package/lib/esm/checkbox-group/stories/index.js +40 -0
  194. package/lib/esm/checkbox-group/stories/index.js.map +1 -0
  195. package/lib/esm/clean-icon-button/CleanIconButton.js +1 -1
  196. package/lib/esm/data-grid/DataGrid.js +1 -1
  197. package/lib/esm/data-grid/data-grid-context.js +1 -1
  198. package/lib/esm/data-grid/data-grid-nav/index.js +1 -1
  199. package/lib/esm/data-grid/helpers/index.js +1 -1
  200. package/lib/esm/data-grid/stories/staticData.js +1 -1
  201. package/lib/esm/dialog/Dialog.js +8 -9
  202. package/lib/esm/dialog/Dialog.js.map +1 -1
  203. package/lib/esm/dismissible-tag/DismissibleTag.js +1 -1
  204. package/lib/esm/fieldset/Fieldset.js +71 -0
  205. package/lib/esm/fieldset/Fieldset.js.map +1 -0
  206. package/lib/esm/fieldset/index.js +22 -0
  207. package/lib/esm/fieldset/index.js.map +1 -0
  208. package/lib/esm/fieldset/stories/fieldset-default.story.js +28 -0
  209. package/lib/esm/fieldset/stories/fieldset-default.story.js.map +1 -0
  210. package/lib/esm/fieldset/stories/fieldset-disabled.story.js +28 -0
  211. package/lib/esm/fieldset/stories/fieldset-disabled.story.js.map +1 -0
  212. package/lib/esm/fieldset/stories/fieldset-error.story.js +28 -0
  213. package/lib/esm/fieldset/stories/fieldset-error.story.js.map +1 -0
  214. package/lib/esm/fieldset/stories/fieldset-optional.story.js +28 -0
  215. package/lib/esm/fieldset/stories/fieldset-optional.story.js.map +1 -0
  216. package/lib/esm/fieldset/stories/fieldset-required.story.js +28 -0
  217. package/lib/esm/fieldset/stories/fieldset-required.story.js.map +1 -0
  218. package/lib/esm/fieldset/stories/fieldset-visually-hidden-label.story.js +28 -0
  219. package/lib/esm/fieldset/stories/fieldset-visually-hidden-label.story.js.map +1 -0
  220. package/lib/esm/fieldset/stories/index.js +40 -0
  221. package/lib/esm/fieldset/stories/index.js.map +1 -0
  222. package/lib/esm/filled-button/FilledButton.js +1 -1
  223. package/lib/esm/icon-button/IconButton.js +1 -1
  224. package/lib/esm/icons/generated/custom/FloppyDiskArrowTopRight.js +1 -1
  225. package/lib/esm/icons/generated/custom/FloppyDiskArrowTopRight.js.map +1 -1
  226. package/lib/esm/index.js +3 -0
  227. package/lib/esm/index.js.map +1 -1
  228. package/lib/esm/kbd/kbd-utils.js +1 -1
  229. package/lib/esm/logo/Logo.js +1 -1
  230. package/lib/esm/outlined-button/OutlinedButton.js +1 -1
  231. package/lib/esm/radio/Radio.js +17 -4
  232. package/lib/esm/radio/Radio.js.map +1 -1
  233. package/lib/esm/radio-group/RadioGroup.js +59 -0
  234. package/lib/esm/radio-group/RadioGroup.js.map +1 -0
  235. package/lib/esm/radio-group/index.js +22 -0
  236. package/lib/esm/radio-group/index.js.map +1 -0
  237. package/lib/esm/radio-group/stories/index.js +46 -0
  238. package/lib/esm/radio-group/stories/index.js.map +1 -0
  239. package/lib/esm/radio-group/stories/radio-group-controlled.story.js +30 -0
  240. package/lib/esm/radio-group/stories/radio-group-controlled.story.js.map +1 -0
  241. package/lib/esm/radio-group/stories/radio-group-default.story.js +28 -0
  242. package/lib/esm/radio-group/stories/radio-group-default.story.js.map +1 -0
  243. package/lib/esm/radio-group/stories/radio-group-disabled.story.js +28 -0
  244. package/lib/esm/radio-group/stories/radio-group-disabled.story.js.map +1 -0
  245. package/lib/esm/radio-group/stories/radio-group-error.story.js +28 -0
  246. package/lib/esm/radio-group/stories/radio-group-error.story.js.map +1 -0
  247. package/lib/esm/radio-group/stories/radio-group-horizontal.story.js +28 -0
  248. package/lib/esm/radio-group/stories/radio-group-horizontal.story.js.map +1 -0
  249. package/lib/esm/radio-group/stories/radio-group-optional.story.js +28 -0
  250. package/lib/esm/radio-group/stories/radio-group-optional.story.js.map +1 -0
  251. package/lib/esm/radio-group/stories/radio-group-required.story.js +28 -0
  252. package/lib/esm/radio-group/stories/radio-group-required.story.js.map +1 -0
  253. package/lib/esm/radio-group/stories/radio-group-visually-hidden-label.story.js +28 -0
  254. package/lib/esm/radio-group/stories/radio-group-visually-hidden-label.story.js.map +1 -0
  255. package/lib/esm/read-only-tag/ReadOnlyTag.js +1 -1
  256. package/lib/esm/select/types.js +1 -1
  257. package/lib/esm/spotlight/SpotlightTour.js +1 -1
  258. package/lib/esm/text-button/TextButton.js +1 -1
  259. package/lib/esm/tree-view/TreeViewItem.js +1 -1
  260. package/lib/esm/tree-view/TreeViewTextItem.js +1 -1
  261. package/lib/esm/tree-view/TreeViewTrail.js +1 -1
  262. package/lib/esm/tree-view/tree-view-types.js +1 -1
  263. package/lib/esm/tree-view/tree-view-utils.js +1 -1
  264. package/lib/esm/typography/Typography.js +1 -1
  265. package/lib/types/_common/ButtonSpinner.d.ts +1 -1
  266. package/lib/types/_common/TruncatedTextWithTooltip.d.ts +1 -1
  267. package/lib/types/_common/form-control/FormFieldLabel.d.ts +1 -1
  268. package/lib/types/_common/form-control/FormFieldMessage.d.ts +1 -1
  269. package/lib/types/_common/form-control/form-control-types.d.ts +1 -1
  270. package/lib/types/_common/form-control/form-field-group-context.d.ts +36 -0
  271. package/lib/types/_common/form-control/form-field-group-context.d.ts.map +1 -0
  272. package/lib/types/_common/form-control/index.d.ts +2 -1
  273. package/lib/types/_common/form-control/index.d.ts.map +1 -1
  274. package/lib/types/_common/form-control/use-form-field.d.ts +1 -1
  275. package/lib/types/_common/form-control/use-inline-field-label.d.ts +1 -1
  276. package/lib/types/_common/utils.d.ts +1 -1
  277. package/lib/types/_generated/style-rules/date-utils.d.ts +1 -1
  278. package/lib/types/_generated/style-rules/range-utils.d.ts +1 -1
  279. package/lib/types/accordion/Accordion.d.ts +1 -1
  280. package/lib/types/accordion/accordion-context.d.ts +1 -1
  281. package/lib/types/ai/response/stories/response-all-components.story.d.ts +1 -1
  282. package/lib/types/ai/response/stories/response-code-examples.story.d.ts +1 -1
  283. package/lib/types/ai/response/stories/response-full-example.story.d.ts +1 -1
  284. package/lib/types/ai/response/stories/response-headings.story.d.ts +1 -1
  285. package/lib/types/ai/response/stories/response-lists.story.d.ts +1 -1
  286. package/lib/types/announcement-banner/AnnouncementBanner.d.ts +1 -1
  287. package/lib/types/announcement-banner/index.d.ts +1 -1
  288. package/lib/types/announcement-banner/stories/announcement-banner-closeable.story.d.ts +1 -1
  289. package/lib/types/announcement-banner/stories/announcement-banner-custom-icons.story.d.ts +1 -1
  290. package/lib/types/announcement-banner/stories/announcement-banner-default.story.d.ts +1 -1
  291. package/lib/types/announcement-banner/stories/announcement-banner-injected-non-urgent.story.d.ts +1 -1
  292. package/lib/types/announcement-banner/stories/announcement-banner-injected-urgent.story.d.ts +1 -1
  293. package/lib/types/announcement-banner/stories/announcement-banner-present-at-page-render.story.d.ts +1 -1
  294. package/lib/types/announcement-banner/stories/announcement-banner-variants.story.d.ts +1 -1
  295. package/lib/types/announcement-banner/stories/announcement-banner-with-actions.story.d.ts +1 -1
  296. package/lib/types/announcement-banner/stories/announcement-banner-with-page-content.story.d.ts +1 -1
  297. package/lib/types/announcement-banner/stories/index.d.ts +1 -1
  298. package/lib/types/avatar/Avatar.d.ts +1 -1
  299. package/lib/types/banner/Banner.d.ts +1 -1
  300. package/lib/types/button/ButtonBase.d.ts +1 -1
  301. package/lib/types/checkbox/Checkbox.d.ts.map +1 -1
  302. package/lib/types/checkbox-group/CheckboxGroup.d.ts +40 -0
  303. package/lib/types/checkbox-group/CheckboxGroup.d.ts.map +1 -0
  304. package/lib/types/checkbox-group/index.d.ts +22 -0
  305. package/lib/types/checkbox-group/index.d.ts.map +1 -0
  306. package/lib/types/checkbox-group/stories/checkbox-group-default.story.d.ts +24 -0
  307. package/lib/types/checkbox-group/stories/checkbox-group-default.story.d.ts.map +1 -0
  308. package/lib/types/checkbox-group/stories/checkbox-group-disabled.story.d.ts +24 -0
  309. package/lib/types/checkbox-group/stories/checkbox-group-disabled.story.d.ts.map +1 -0
  310. package/lib/types/checkbox-group/stories/checkbox-group-error.story.d.ts +24 -0
  311. package/lib/types/checkbox-group/stories/checkbox-group-error.story.d.ts.map +1 -0
  312. package/lib/types/checkbox-group/stories/checkbox-group-optional.story.d.ts +24 -0
  313. package/lib/types/checkbox-group/stories/checkbox-group-optional.story.d.ts.map +1 -0
  314. package/lib/types/checkbox-group/stories/checkbox-group-required.story.d.ts +24 -0
  315. package/lib/types/checkbox-group/stories/checkbox-group-required.story.d.ts.map +1 -0
  316. package/lib/types/checkbox-group/stories/checkbox-group-visually-hidden-label.story.d.ts +24 -0
  317. package/lib/types/checkbox-group/stories/checkbox-group-visually-hidden-label.story.d.ts.map +1 -0
  318. package/lib/types/checkbox-group/stories/index.d.ts +33 -0
  319. package/lib/types/checkbox-group/stories/index.d.ts.map +1 -0
  320. package/lib/types/code-block/CodeBlock.d.ts +1 -1
  321. package/lib/types/combobox/use-combobox-popover.d.ts +1 -1
  322. package/lib/types/data-grid/Components.d.ts +1 -1
  323. package/lib/types/data-grid/data-grid-nav/data-grid-nav.d.ts +1 -1
  324. package/lib/types/date-picker/DatePicker.d.ts +1 -1
  325. package/lib/types/dialog/Dialog.d.ts +1 -1
  326. package/lib/types/dialog/Dialog.d.ts.map +1 -1
  327. package/lib/types/divider/Divider.d.ts +1 -1
  328. package/lib/types/dropdown-button/DropdownButton.d.ts +1 -1
  329. package/lib/types/dropzone/Dropzone.d.ts +1 -1
  330. package/lib/types/dropzone/stories/dropzone-csv-files.story.d.ts +1 -1
  331. package/lib/types/dropzone/stories/dropzone-custom-extensions.story.d.ts +1 -1
  332. package/lib/types/dropzone/stories/dropzone-default.story.d.ts +1 -1
  333. package/lib/types/dropzone/stories/dropzone-disabled.story.d.ts +1 -1
  334. package/lib/types/dropzone/stories/dropzone-full.story.d.ts +1 -1
  335. package/lib/types/dropzone/stories/dropzone-loading-progress.story.d.ts +1 -1
  336. package/lib/types/fieldset/Fieldset.d.ts +59 -0
  337. package/lib/types/fieldset/Fieldset.d.ts.map +1 -0
  338. package/lib/types/fieldset/index.d.ts +22 -0
  339. package/lib/types/fieldset/index.d.ts.map +1 -0
  340. package/lib/types/fieldset/stories/fieldset-default.story.d.ts +24 -0
  341. package/lib/types/fieldset/stories/fieldset-default.story.d.ts.map +1 -0
  342. package/lib/types/fieldset/stories/fieldset-disabled.story.d.ts +24 -0
  343. package/lib/types/fieldset/stories/fieldset-disabled.story.d.ts.map +1 -0
  344. package/lib/types/fieldset/stories/fieldset-error.story.d.ts +24 -0
  345. package/lib/types/fieldset/stories/fieldset-error.story.d.ts.map +1 -0
  346. package/lib/types/fieldset/stories/fieldset-optional.story.d.ts +24 -0
  347. package/lib/types/fieldset/stories/fieldset-optional.story.d.ts.map +1 -0
  348. package/lib/types/fieldset/stories/fieldset-required.story.d.ts +24 -0
  349. package/lib/types/fieldset/stories/fieldset-required.story.d.ts.map +1 -0
  350. package/lib/types/fieldset/stories/fieldset-visually-hidden-label.story.d.ts +24 -0
  351. package/lib/types/fieldset/stories/fieldset-visually-hidden-label.story.d.ts.map +1 -0
  352. package/lib/types/fieldset/stories/index.d.ts +33 -0
  353. package/lib/types/fieldset/stories/index.d.ts.map +1 -0
  354. package/lib/types/graph-label/GraphLabel.d.ts +1 -1
  355. package/lib/types/graph-label/color.d.ts +1 -1
  356. package/lib/types/hooks/index.d.ts +1 -1
  357. package/lib/types/icon-button-array/IconButtonArray.d.ts +1 -1
  358. package/lib/types/icon-button-base/IconButtonBase.d.ts +1 -1
  359. package/lib/types/icons/generated/custom/FloppyDiskArrowTopRight.d.ts +1 -1
  360. package/lib/types/icons/manual/Neo4JAiColor.d.ts +1 -1
  361. package/lib/types/index.d.ts +3 -0
  362. package/lib/types/index.d.ts.map +1 -1
  363. package/lib/types/inline-edit/InlineEdit.d.ts +1 -1
  364. package/lib/types/kbd/Kbd.d.ts +1 -1
  365. package/lib/types/loading-bar/LoadingBar.d.ts +1 -1
  366. package/lib/types/loading-spinner/LoadingSpinner.d.ts +1 -1
  367. package/lib/types/menu/Menu.d.ts +1 -1
  368. package/lib/types/modal/Modal.d.ts +1 -1
  369. package/lib/types/portal/Portal.d.ts +1 -1
  370. package/lib/types/progress-bar/ProgressBar.d.ts +1 -1
  371. package/lib/types/radio/Radio.d.ts +2 -2
  372. package/lib/types/radio/Radio.d.ts.map +1 -1
  373. package/lib/types/radio-group/RadioGroup.d.ts +50 -0
  374. package/lib/types/radio-group/RadioGroup.d.ts.map +1 -0
  375. package/lib/types/radio-group/index.d.ts +22 -0
  376. package/lib/types/radio-group/index.d.ts.map +1 -0
  377. package/lib/types/radio-group/stories/index.d.ts +37 -0
  378. package/lib/types/radio-group/stories/index.d.ts.map +1 -0
  379. package/lib/types/radio-group/stories/radio-group-controlled.story.d.ts +24 -0
  380. package/lib/types/radio-group/stories/radio-group-controlled.story.d.ts.map +1 -0
  381. package/lib/types/radio-group/stories/radio-group-default.story.d.ts +24 -0
  382. package/lib/types/radio-group/stories/radio-group-default.story.d.ts.map +1 -0
  383. package/lib/types/radio-group/stories/radio-group-disabled.story.d.ts +24 -0
  384. package/lib/types/radio-group/stories/radio-group-disabled.story.d.ts.map +1 -0
  385. package/lib/types/radio-group/stories/radio-group-error.story.d.ts +24 -0
  386. package/lib/types/radio-group/stories/radio-group-error.story.d.ts.map +1 -0
  387. package/lib/types/radio-group/stories/radio-group-horizontal.story.d.ts +24 -0
  388. package/lib/types/radio-group/stories/radio-group-horizontal.story.d.ts.map +1 -0
  389. package/lib/types/radio-group/stories/radio-group-optional.story.d.ts +24 -0
  390. package/lib/types/radio-group/stories/radio-group-optional.story.d.ts.map +1 -0
  391. package/lib/types/radio-group/stories/radio-group-required.story.d.ts +24 -0
  392. package/lib/types/radio-group/stories/radio-group-required.story.d.ts.map +1 -0
  393. package/lib/types/radio-group/stories/radio-group-visually-hidden-label.story.d.ts +24 -0
  394. package/lib/types/radio-group/stories/radio-group-visually-hidden-label.story.d.ts.map +1 -0
  395. package/lib/types/segmented-control/SegmentedControl.d.ts +1 -1
  396. package/lib/types/select/Select.d.ts +1 -1
  397. package/lib/types/select-icon-button/SelectIconButton.d.ts +1 -1
  398. package/lib/types/selectable-tag/SelectableTag.d.ts +1 -1
  399. package/lib/types/skeleton/Skeleton.d.ts +1 -1
  400. package/lib/types/slider/Slider.d.ts +1 -1
  401. package/lib/types/slider/stories/slider-custom-step-length.story.d.ts +1 -1
  402. package/lib/types/slider/stories/slider-default.story.d.ts +1 -1
  403. package/lib/types/slider/stories/slider-disabled.story.d.ts +1 -1
  404. package/lib/types/slider/stories/slider-range.story.d.ts +1 -1
  405. package/lib/types/slider/stories/slider-show-steps.story.d.ts +1 -1
  406. package/lib/types/slider/stories/slider-show-values.story.d.ts +1 -1
  407. package/lib/types/slider/stories/slider-single.story.d.ts +1 -1
  408. package/lib/types/spotlight/Spotlight.d.ts +1 -1
  409. package/lib/types/spotlight/SpotlightProvider.d.ts +1 -1
  410. package/lib/types/spotlight/SpotlightTarget.d.ts +1 -1
  411. package/lib/types/status-indicator/StatusIndicator.d.ts +1 -1
  412. package/lib/types/status-label/StatusLabel.d.ts +1 -1
  413. package/lib/types/tabs/Tabs.d.ts +1 -1
  414. package/lib/types/tabs/use-tabs-scroll-overflow.d.ts +1 -1
  415. package/lib/types/tag/Tag.d.ts +1 -1
  416. package/lib/types/tag-base/TagBase.d.ts +1 -1
  417. package/lib/types/text-area/TextArea.d.ts +1 -1
  418. package/lib/types/text-link/TextLink.d.ts +1 -1
  419. package/lib/types/text-overflow/TextOverflow.d.ts +1 -1
  420. package/lib/types/theme/ThemeProvider.d.ts +1 -1
  421. package/lib/types/theme/agnostic.d.ts +1 -1
  422. package/lib/types/time-picker/TimePicker.d.ts +1 -1
  423. package/lib/types/time-picker/time-picker-hooks.d.ts +1 -1
  424. package/lib/types/timezone-picker/TimeZonePicker.d.ts +1 -1
  425. package/lib/types/timezone-picker/timezone-picker-hooks.d.ts +1 -1
  426. package/lib/types/toast/Toast.d.ts +1 -1
  427. package/lib/types/toast/ToastControlled.d.ts +1 -1
  428. package/lib/types/tree-view/TreeItemWrapper.d.ts +1 -1
  429. package/lib/types/tree-view/tree-view-keyboard-helpers.d.ts +1 -1
  430. package/lib/types/typography/stories/typography-anchor.story.d.ts +1 -1
  431. package/lib/types/wizard/Wizard.d.ts +1 -1
  432. package/package.json +17 -2
  433. package/skills/ndl-react/SKILL.md +5 -2
  434. package/skills/ndl-react/components/checkbox-group.md +195 -0
  435. package/skills/ndl-react/components/fieldset.md +235 -0
  436. package/skills/ndl-react/components/radio-group.md +259 -0
  437. package/skills/ndl-react/components/radio.md +1 -1
@@ -1,4 +1,4 @@
1
- /**
1
+ /*!
2
2
  *
3
3
  * Copyright (c) "Neo4j"
4
4
  * Neo4j Sweden AB [http://neo4j.com]
@@ -1,4 +1,4 @@
1
- /**
1
+ /*!
2
2
  *
3
3
  * Copyright (c) "Neo4j"
4
4
  * Neo4j Sweden AB [http://neo4j.com]
@@ -1,4 +1,4 @@
1
- /**
1
+ /*!
2
2
  *
3
3
  * Copyright (c) "Neo4j"
4
4
  * Neo4j Sweden AB [http://neo4j.com]
@@ -1,4 +1,4 @@
1
- /**
1
+ /*!
2
2
  *
3
3
  * Copyright (c) "Neo4j"
4
4
  * Neo4j Sweden AB [http://neo4j.com]
@@ -1,4 +1,4 @@
1
- /**
1
+ /*!
2
2
  *
3
3
  * Copyright (c) "Neo4j"
4
4
  * Neo4j Sweden AB [http://neo4j.com]
@@ -1,4 +1,4 @@
1
- /**
1
+ /*!
2
2
  *
3
3
  * Copyright (c) "Neo4j"
4
4
  * Neo4j Sweden AB [http://neo4j.com]
@@ -73,9 +73,9 @@ const classnames_1 = __importDefault(require("classnames"));
73
73
  const react_1 = __importStar(require("react"));
74
74
  const clean_icon_button_1 = require("../clean-icon-button");
75
75
  const filled_button_1 = require("../filled-button");
76
- const ExclamationCircleIconOutline_1 = require("../icons/generated/heroIcons/ExclamationCircleIconOutline");
77
- const ExclamationTriangleIconOutline_1 = require("../icons/generated/heroIcons/ExclamationTriangleIconOutline");
78
- const InformationCircleIconOutline_1 = require("../icons/generated/heroIcons/InformationCircleIconOutline");
76
+ const ExclamationCircleIconSolid_1 = require("../icons/generated/heroIcons/ExclamationCircleIconSolid");
77
+ const ExclamationTriangleIconSolid_1 = require("../icons/generated/heroIcons/ExclamationTriangleIconSolid");
78
+ const InformationCircleIconSolid_1 = require("../icons/generated/heroIcons/InformationCircleIconSolid");
79
79
  const XMarkIconOutline_1 = require("../icons/generated/heroIcons/XMarkIconOutline");
80
80
  const modal_1 = require("../modal");
81
81
  const outlined_button_1 = require("../outlined-button");
@@ -90,19 +90,18 @@ const convertCloseReason = (reason) => {
90
90
  }
91
91
  throw new Error(`Unknown reason '${reason}' received from popup`);
92
92
  };
93
- /* Stroke width on regular icons is 1.5px */
94
93
  const typeIcons = {
95
- danger: ((0, jsx_runtime_1.jsx)(ExclamationCircleIconOutline_1.ExclamationCircleIconOutline, { htmlAttributes: {
94
+ danger: ((0, jsx_runtime_1.jsx)(ExclamationCircleIconSolid_1.ExclamationCircleIconSolid, { htmlAttributes: {
96
95
  'aria-hidden': undefined,
97
96
  'aria-label': 'Danger',
98
97
  strokeWidth: 3,
99
98
  } })),
100
- info: ((0, jsx_runtime_1.jsx)(InformationCircleIconOutline_1.InformationCircleIconOutline, { htmlAttributes: {
99
+ info: ((0, jsx_runtime_1.jsx)(InformationCircleIconSolid_1.InformationCircleIconSolid, { htmlAttributes: {
101
100
  'aria-hidden': undefined,
102
101
  'aria-label': 'Information',
103
102
  strokeWidth: 3,
104
103
  } })),
105
- warning: ((0, jsx_runtime_1.jsx)(ExclamationTriangleIconOutline_1.ExclamationTriangleIconOutline, { htmlAttributes: {
104
+ warning: ((0, jsx_runtime_1.jsx)(ExclamationTriangleIconSolid_1.ExclamationTriangleIconSolid, { htmlAttributes: {
106
105
  'aria-hidden': undefined,
107
106
  'aria-label': 'Warning',
108
107
  strokeWidth: 3,
@@ -157,7 +156,7 @@ const DialogComponent = (_a) => {
157
156
  'aria-label': 'Close',
158
157
  // TODO v5: remove data-testid
159
158
  'data-testid': 'ndl-dialog-close',
160
- }, children: (0, jsx_runtime_1.jsx)(XMarkIconOutline_1.XMarkIconOutline, {}) })), (0, jsx_runtime_1.jsxs)("div", { className: "ndl-dialog-content-wrapper", children: [variant && ((0, jsx_runtime_1.jsx)("div", { className: `ndl-dialog-type-icon ndl-${variant}`, "data-testid": "ndl-dialog-type-icon", children: typeIcons[variant] })), (0, jsx_runtime_1.jsx)("div", { className: "n-flex n-flex-col n-flex-1 n-w-full", children: children })] })] }) })));
159
+ }, children: (0, jsx_runtime_1.jsx)(XMarkIconOutline_1.XMarkIconOutline, {}) })), (0, jsx_runtime_1.jsxs)("div", { className: "ndl-dialog-content-wrapper", children: [variant && ((0, jsx_runtime_1.jsx)("div", { className: `ndl-dialog-type-icon ndl-${variant}`, "data-testid": "ndl-dialog-type-icon", children: typeIcons[variant] })), (0, jsx_runtime_1.jsx)("div", { className: "ndl-dialog-body", children: children })] })] }) })));
161
160
  };
162
161
  const Actions = (_a) => {
163
162
  var { as, children, className, style, htmlAttributes, ref } = _a, restProps = __rest(_a, ["as", "children", "className", "style", "htmlAttributes", "ref"]);
@@ -195,7 +194,7 @@ const Header = (_a) => {
195
194
  setHeaderId === null || setHeaderId === void 0 ? void 0 : setHeaderId(htmlAttributes === null || htmlAttributes === void 0 ? void 0 : htmlAttributes.id);
196
195
  }
197
196
  }, [htmlAttributes === null || htmlAttributes === void 0 ? void 0 : htmlAttributes.id, setHeaderId]);
198
- return ((0, jsx_runtime_1.jsx)(typography_1.Typography, Object.assign({ as: Component, className: classes, ref: ref, style: style, variant: "title-2" }, restProps, { htmlAttributes: Object.assign(Object.assign({}, htmlAttributes), { id: headerId }), children: children })));
197
+ return ((0, jsx_runtime_1.jsx)(typography_1.Typography, Object.assign({ as: Component, className: classes, ref: ref, style: style, variant: "title-3" }, restProps, { htmlAttributes: Object.assign(Object.assign({}, htmlAttributes), { id: headerId }), children: children })));
199
198
  };
200
199
  const Subtitle = (_a) => {
201
200
  var { as, children, className, style, htmlAttributes, ref } = _a, restProps = __rest(_a, ["as", "children", "className", "style", "htmlAttributes", "ref"]);
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../src/dialog/Dialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;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AEjD,OAAO,CACL,uBAAC,SAAS,kBACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,IACJ,SAAS,EACT,cAAc,cAEjB,QAAQ,IACC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,KAAK,GAAG,CAAC,EAQwB,EAAE,EAAE;QAR5B,EACb,GAAG,EACH,GAAG,EACH,SAAS,EACT,KAAK,EACL,cAAc,EACd,GAAG,OAEkC,EADlC,SAAS,cAPC,6DAQd,CADa;IAEZ,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC;IAE1D,OAAO,CACL,8CACE,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,IACJ,SAAS,EACT,cAAc,EAClB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE;IAC5C,OAAO;IACP,OAAO;IACP,WAAW;IACX,MAAM;IACN,KAAK;IACL,QAAQ;CACT,CAAC,CAAC;AAEM,wBAAM","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport classNames from 'classnames';\nimport React, { useEffect, useId, useState } from 'react';\n\nimport {\n type CommonProps,\n type PolymorphicCommonProps,\n} from '../_common/types';\nimport { type ButtonBase } from '../button';\nimport { CleanIconButton } from '../clean-icon-button';\nimport { FilledButton } from '../filled-button';\nimport { ExclamationCircleIconOutline } from '../icons/generated/heroIcons/ExclamationCircleIconOutline';\nimport { ExclamationTriangleIconOutline } from '../icons/generated/heroIcons/ExclamationTriangleIconOutline';\nimport { InformationCircleIconOutline } from '../icons/generated/heroIcons/InformationCircleIconOutline';\nimport { XMarkIconOutline } from '../icons/generated/heroIcons/XMarkIconOutline';\nimport { Modal, ModalCloseReason } from '../modal';\nimport { OutlinedButton } from '../outlined-button';\nimport { TextButton } from '../text-button';\nimport { Typography } from '../typography';\nimport { DialogContext, useDialogContext } from './dialog-context';\nimport {\n type DialogActionsProps,\n DialogCloseReason,\n type DialogContentProps,\n type DialogDescriptionProps,\n type DialogHeaderProps,\n type DialogImageProps,\n type DialogProps,\n type DialogSubtitleProps,\n} from './dialog-types';\n\nconst convertCloseReason = (reason: ModalCloseReason): DialogCloseReason => {\n const dialogReason = reason as unknown as DialogCloseReason;\n if (Object.values(DialogCloseReason).includes(dialogReason)) {\n return dialogReason;\n }\n\n throw new Error(`Unknown reason '${reason}' received from popup`);\n};\n/* Stroke width on regular icons is 1.5px */\nconst typeIcons: Record<\n NonNullable<React.ComponentProps<typeof Dialog>['variant']>,\n React.ReactNode\n> = {\n danger: (\n <ExclamationCircleIconOutline\n htmlAttributes={{\n 'aria-hidden': undefined,\n 'aria-label': 'Danger',\n strokeWidth: 3,\n }}\n />\n ),\n info: (\n <InformationCircleIconOutline\n htmlAttributes={{\n 'aria-hidden': undefined,\n 'aria-label': 'Information',\n strokeWidth: 3,\n }}\n />\n ),\n warning: (\n <ExclamationTriangleIconOutline\n htmlAttributes={{\n 'aria-hidden': undefined,\n 'aria-label': 'Warning',\n strokeWidth: 3,\n }}\n />\n ),\n};\n\nconst DialogComponent = ({\n isOpen,\n onClose,\n children,\n variant,\n size,\n container,\n rootProps,\n hasDisabledCloseButton = false,\n htmlAttributes,\n className,\n style,\n ref,\n ...restProps\n}: CommonProps<'div', DialogProps>) => {\n const generatedDescriptionId = useId();\n const generatedHeaderId = useId();\n const [descriptionId, setDescriptionId] = useState<string | undefined>(\n generatedDescriptionId,\n );\n const [headerId, setHeaderId] = useState<string | undefined>(\n generatedHeaderId,\n );\n\n const handleCloseClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n event.preventDefault();\n onClose?.(event, DialogCloseReason.CLOSE_BUTTON_CLICK);\n };\n\n const handleClose = (\n event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>,\n reason?: ModalCloseReason,\n ) => {\n // Dialog should not be closed when backdrop is clicked\n if (reason === ModalCloseReason.BACKDROP_CLICK) {\n return;\n }\n\n onClose?.(\n event,\n reason !== undefined ? convertCloseReason(reason) : undefined,\n );\n };\n\n const hasHeaderChild = React.useMemo(() => {\n const childrenArray = React.Children.toArray(children);\n return childrenArray.some(\n (child) => React.isValidElement(child) && child.type === Header,\n );\n }, [children]);\n\n const hasDescriptionChild = React.useMemo(() => {\n const childrenArray = React.Children.toArray(children);\n return childrenArray.some(\n (child) => React.isValidElement(child) && child.type === Description,\n );\n }, [children]);\n\n const ariaLabelledBy =\n htmlAttributes?.['aria-labelledby'] ??\n (hasHeaderChild ? headerId : undefined);\n\n const ariaDescribedBy =\n htmlAttributes?.['aria-describedby'] ??\n (hasDescriptionChild ? descriptionId : undefined);\n\n const dialogRole =\n variant === 'warning' || variant === 'danger' ? 'alertdialog' : 'dialog';\n\n if (!isOpen) {\n return null;\n }\n\n if (htmlAttributes?.['aria-label'] === undefined && !ariaLabelledBy) {\n console.warn(\n 'The Dialog is missing aria-label and Header. Please add one of them for accessibility.',\n );\n }\n\n const classes = classNames('ndl-dialog', className, {\n 'ndl-with-close-button': !hasDisabledCloseButton,\n 'ndl-with-icon': !!variant,\n });\n\n return (\n <Modal\n isOpen={isOpen}\n onClose={handleClose}\n container={container}\n rootProps={rootProps}\n size={size}\n htmlAttributes={{\n ...htmlAttributes,\n 'aria-describedby': ariaDescribedBy,\n 'aria-labelledby': ariaLabelledBy,\n role: dialogRole,\n }}\n className={classes}\n style={style}\n ref={ref}\n {...restProps}\n >\n <DialogContext.Provider\n value={{\n descriptionId,\n headerId,\n setDescriptionId,\n setHeaderId,\n variant,\n }}\n >\n {!hasDisabledCloseButton && (\n <CleanIconButton\n size=\"medium\"\n className=\"ndl-dialog-close\"\n onClick={handleCloseClick}\n description={null}\n htmlAttributes={{\n 'aria-label': 'Close',\n // TODO v5: remove data-testid\n 'data-testid': 'ndl-dialog-close',\n }}\n >\n <XMarkIconOutline />\n </CleanIconButton>\n )}\n <div className=\"ndl-dialog-content-wrapper\">\n {variant && (\n <div\n className={`ndl-dialog-type-icon ndl-${variant}`}\n // TODO v5: remove data-testid\n data-testid=\"ndl-dialog-type-icon\"\n >\n {typeIcons[variant]}\n </div>\n )}\n <div className=\"n-flex n-flex-col n-flex-1 n-w-full\">{children}</div>\n </div>\n </DialogContext.Provider>\n </Modal>\n );\n};\n\nconst Actions = <T extends React.ElementType = 'div'>({\n as,\n children,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, DialogActionsProps>) => {\n const { variant } = useDialogContext();\n const classes = classNames('ndl-dialog-actions', className);\n const Component: React.ElementType = as ?? 'div';\n\n let childrenToRender = children;\n\n // For danger dialogs, we want to convert primary buttons to danger buttons by default\n if (variant === 'danger') {\n childrenToRender = React.Children.map(children, (element) => {\n if (!React.isValidElement(element)) {\n return;\n }\n if (\n element.type === OutlinedButton ||\n element.type === FilledButton ||\n element.type === TextButton\n ) {\n const buttonElement = element as React.ReactElement<\n React.ComponentProps<typeof ButtonBase>\n >;\n\n if (\n buttonElement.props.variant === 'primary' ||\n buttonElement.props.variant === undefined\n ) {\n return React.cloneElement(buttonElement, {\n ...buttonElement.props,\n variant: 'danger',\n });\n }\n }\n return element;\n });\n }\n\n return (\n <Component\n className={classes}\n style={style}\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n >\n {childrenToRender}\n </Component>\n );\n};\n\nconst Header = <T extends React.ElementType = 'span'>({\n as,\n children,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, DialogHeaderProps>) => {\n const { headerId, setHeaderId } = useDialogContext();\n const classes = classNames('ndl-dialog-header', className);\n const Component: React.ElementType = as ?? 'span';\n\n useEffect(() => {\n if (Boolean(htmlAttributes?.id) === true) {\n setHeaderId?.(htmlAttributes?.id);\n }\n }, [htmlAttributes?.id, setHeaderId]);\n\n return (\n <Typography\n as={Component}\n className={classes}\n ref={ref}\n style={style}\n variant=\"title-2\"\n {...restProps}\n htmlAttributes={{ ...htmlAttributes, id: headerId }}\n >\n {children}\n </Typography>\n );\n};\n\nconst Subtitle = <T extends React.ElementType = 'div'>({\n as,\n children,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, DialogSubtitleProps>) => {\n const classes = classNames('ndl-dialog-subtitle', className);\n const Component: React.ElementType = as ?? 'div';\n\n return (\n <Component\n className={classes}\n style={style}\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n >\n {children}\n </Component>\n );\n};\n\nconst Description = <T extends React.ElementType = 'div'>({\n as,\n children,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, DialogDescriptionProps>) => {\n const { descriptionId, setDescriptionId } = useDialogContext();\n const classes = classNames('ndl-dialog-description', className);\n const Component: React.ElementType = as ?? 'div';\n\n useEffect(() => {\n if (Boolean(htmlAttributes?.id) === true) {\n setDescriptionId?.(htmlAttributes?.id);\n }\n }, [htmlAttributes?.id, setDescriptionId]);\n\n return (\n <Component\n className={classes}\n style={style}\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n id={descriptionId}\n >\n {children}\n </Component>\n );\n};\n\nconst Content = <T extends React.ElementType = 'div'>({\n as,\n children,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, DialogContentProps>) => {\n const classes = classNames('ndl-dialog-content', className);\n const Component: React.ElementType = as ?? 'div';\n\n return (\n <Component\n className={classes}\n style={style}\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n >\n {children}\n </Component>\n );\n};\n\nconst Image = ({\n src,\n alt,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: CommonProps<'img', DialogImageProps>) => {\n const classes = classNames('ndl-dialog-image', className);\n\n return (\n <img\n src={src}\n alt={alt}\n className={classes}\n style={style}\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n />\n );\n};\n\nconst Dialog = Object.assign(DialogComponent, {\n Actions,\n Content,\n Description,\n Header,\n Image,\n Subtitle,\n});\n\nexport { Dialog };\n"]}
1
+ {"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../src/dialog/Dialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,4DAAoC;AACpC,+CAA0D;AAO1D,4DAAuD;AACvD,oDAAgD;AAChD,wGAAqG;AACrG,4GAAyG;AACzG,wGAAqG;AACrG,oFAAiF;AACjF,oCAAmD;AACnD,wDAAoD;AACpD,gDAA4C;AAC5C,8CAA2C;AAC3C,qDAAmE;AACnE,iDASwB;AAExB,MAAM,kBAAkB,GAAG,CAAC,MAAwB,EAAqB,EAAE;IACzE,MAAM,YAAY,GAAG,MAAsC,CAAC;IAC5D,IAAI,MAAM,CAAC,MAAM,CAAC,gCAAiB,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;QAC5D,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,mBAAmB,MAAM,uBAAuB,CAAC,CAAC;AACpE,CAAC,CAAC;AACF,MAAM,SAAS,GAGX;IACF,MAAM,EAAE,CACN,uBAAC,uDAA0B,IACzB,cAAc,EAAE;YACd,aAAa,EAAE,SAAS;YACxB,YAAY,EAAE,QAAQ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AAO;IACP,OAAO;IACP,WAAW;IACX,MAAM;IACN,KAAK;IACL,QAAQ;CACT,CAAC,CAAC;AAEM,wBAAM","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport classNames from 'classnames';\nimport React, { useEffect, useId, useState } from 'react';\n\nimport {\n type CommonProps,\n type PolymorphicCommonProps,\n} from '../_common/types';\nimport { type ButtonBase } from '../button';\nimport { CleanIconButton } from '../clean-icon-button';\nimport { FilledButton } from '../filled-button';\nimport { ExclamationCircleIconSolid } from '../icons/generated/heroIcons/ExclamationCircleIconSolid';\nimport { ExclamationTriangleIconSolid } from '../icons/generated/heroIcons/ExclamationTriangleIconSolid';\nimport { InformationCircleIconSolid } from '../icons/generated/heroIcons/InformationCircleIconSolid';\nimport { XMarkIconOutline } from '../icons/generated/heroIcons/XMarkIconOutline';\nimport { Modal, ModalCloseReason } from '../modal';\nimport { OutlinedButton } from '../outlined-button';\nimport { TextButton } from '../text-button';\nimport { Typography } from '../typography';\nimport { DialogContext, useDialogContext } from './dialog-context';\nimport {\n type DialogActionsProps,\n DialogCloseReason,\n type DialogContentProps,\n type DialogDescriptionProps,\n type DialogHeaderProps,\n type DialogImageProps,\n type DialogProps,\n type DialogSubtitleProps,\n} from './dialog-types';\n\nconst convertCloseReason = (reason: ModalCloseReason): DialogCloseReason => {\n const dialogReason = reason as unknown as DialogCloseReason;\n if (Object.values(DialogCloseReason).includes(dialogReason)) {\n return dialogReason;\n }\n\n throw new Error(`Unknown reason '${reason}' received from popup`);\n};\nconst typeIcons: Record<\n NonNullable<React.ComponentProps<typeof Dialog>['variant']>,\n React.ReactNode\n> = {\n danger: (\n <ExclamationCircleIconSolid\n htmlAttributes={{\n 'aria-hidden': undefined,\n 'aria-label': 'Danger',\n strokeWidth: 3,\n }}\n />\n ),\n info: (\n <InformationCircleIconSolid\n htmlAttributes={{\n 'aria-hidden': undefined,\n 'aria-label': 'Information',\n strokeWidth: 3,\n }}\n />\n ),\n warning: (\n <ExclamationTriangleIconSolid\n htmlAttributes={{\n 'aria-hidden': undefined,\n 'aria-label': 'Warning',\n strokeWidth: 3,\n }}\n />\n ),\n};\n\nconst DialogComponent = ({\n isOpen,\n onClose,\n children,\n variant,\n size,\n container,\n rootProps,\n hasDisabledCloseButton = false,\n htmlAttributes,\n className,\n style,\n ref,\n ...restProps\n}: CommonProps<'div', DialogProps>) => {\n const generatedDescriptionId = useId();\n const generatedHeaderId = useId();\n const [descriptionId, setDescriptionId] = useState<string | undefined>(\n generatedDescriptionId,\n );\n const [headerId, setHeaderId] = useState<string | undefined>(\n generatedHeaderId,\n );\n\n const handleCloseClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n event.preventDefault();\n onClose?.(event, DialogCloseReason.CLOSE_BUTTON_CLICK);\n };\n\n const handleClose = (\n event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>,\n reason?: ModalCloseReason,\n ) => {\n // Dialog should not be closed when backdrop is clicked\n if (reason === ModalCloseReason.BACKDROP_CLICK) {\n return;\n }\n\n onClose?.(\n event,\n reason !== undefined ? convertCloseReason(reason) : undefined,\n );\n };\n\n const hasHeaderChild = React.useMemo(() => {\n const childrenArray = React.Children.toArray(children);\n return childrenArray.some(\n (child) => React.isValidElement(child) && child.type === Header,\n );\n }, [children]);\n\n const hasDescriptionChild = React.useMemo(() => {\n const childrenArray = React.Children.toArray(children);\n return childrenArray.some(\n (child) => React.isValidElement(child) && child.type === Description,\n );\n }, [children]);\n\n const ariaLabelledBy =\n htmlAttributes?.['aria-labelledby'] ??\n (hasHeaderChild ? headerId : undefined);\n\n const ariaDescribedBy =\n htmlAttributes?.['aria-describedby'] ??\n (hasDescriptionChild ? descriptionId : undefined);\n\n const dialogRole =\n variant === 'warning' || variant === 'danger' ? 'alertdialog' : 'dialog';\n\n if (!isOpen) {\n return null;\n }\n\n if (htmlAttributes?.['aria-label'] === undefined && !ariaLabelledBy) {\n console.warn(\n 'The Dialog is missing aria-label and Header. Please add one of them for accessibility.',\n );\n }\n\n const classes = classNames('ndl-dialog', className, {\n 'ndl-with-close-button': !hasDisabledCloseButton,\n 'ndl-with-icon': !!variant,\n });\n\n return (\n <Modal\n isOpen={isOpen}\n onClose={handleClose}\n container={container}\n rootProps={rootProps}\n size={size}\n htmlAttributes={{\n ...htmlAttributes,\n 'aria-describedby': ariaDescribedBy,\n 'aria-labelledby': ariaLabelledBy,\n role: dialogRole,\n }}\n className={classes}\n style={style}\n ref={ref}\n {...restProps}\n >\n <DialogContext.Provider\n value={{\n descriptionId,\n headerId,\n setDescriptionId,\n setHeaderId,\n variant,\n }}\n >\n {!hasDisabledCloseButton && (\n <CleanIconButton\n size=\"medium\"\n className=\"ndl-dialog-close\"\n onClick={handleCloseClick}\n description={null}\n htmlAttributes={{\n 'aria-label': 'Close',\n // TODO v5: remove data-testid\n 'data-testid': 'ndl-dialog-close',\n }}\n >\n <XMarkIconOutline />\n </CleanIconButton>\n )}\n <div className=\"ndl-dialog-content-wrapper\">\n {variant && (\n <div\n className={`ndl-dialog-type-icon ndl-${variant}`}\n // TODO v5: remove data-testid\n data-testid=\"ndl-dialog-type-icon\"\n >\n {typeIcons[variant]}\n </div>\n )}\n <div className=\"ndl-dialog-body\">{children}</div>\n </div>\n </DialogContext.Provider>\n </Modal>\n );\n};\n\nconst Actions = <T extends React.ElementType = 'div'>({\n as,\n children,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, DialogActionsProps>) => {\n const { variant } = useDialogContext();\n const classes = classNames('ndl-dialog-actions', className);\n const Component: React.ElementType = as ?? 'div';\n\n let childrenToRender = children;\n\n // For danger dialogs, we want to convert primary buttons to danger buttons by default\n if (variant === 'danger') {\n childrenToRender = React.Children.map(children, (element) => {\n if (!React.isValidElement(element)) {\n return;\n }\n if (\n element.type === OutlinedButton ||\n element.type === FilledButton ||\n element.type === TextButton\n ) {\n const buttonElement = element as React.ReactElement<\n React.ComponentProps<typeof ButtonBase>\n >;\n\n if (\n buttonElement.props.variant === 'primary' ||\n buttonElement.props.variant === undefined\n ) {\n return React.cloneElement(buttonElement, {\n ...buttonElement.props,\n variant: 'danger',\n });\n }\n }\n return element;\n });\n }\n\n return (\n <Component\n className={classes}\n style={style}\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n >\n {childrenToRender}\n </Component>\n );\n};\n\nconst Header = <T extends React.ElementType = 'span'>({\n as,\n children,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, DialogHeaderProps>) => {\n const { headerId, setHeaderId } = useDialogContext();\n const classes = classNames('ndl-dialog-header', className);\n const Component: React.ElementType = as ?? 'span';\n\n useEffect(() => {\n if (Boolean(htmlAttributes?.id) === true) {\n setHeaderId?.(htmlAttributes?.id);\n }\n }, [htmlAttributes?.id, setHeaderId]);\n\n return (\n <Typography\n as={Component}\n className={classes}\n ref={ref}\n style={style}\n variant=\"title-3\"\n {...restProps}\n htmlAttributes={{ ...htmlAttributes, id: headerId }}\n >\n {children}\n </Typography>\n );\n};\n\nconst Subtitle = <T extends React.ElementType = 'div'>({\n as,\n children,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, DialogSubtitleProps>) => {\n const classes = classNames('ndl-dialog-subtitle', className);\n const Component: React.ElementType = as ?? 'div';\n\n return (\n <Component\n className={classes}\n style={style}\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n >\n {children}\n </Component>\n );\n};\n\nconst Description = <T extends React.ElementType = 'div'>({\n as,\n children,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, DialogDescriptionProps>) => {\n const { descriptionId, setDescriptionId } = useDialogContext();\n const classes = classNames('ndl-dialog-description', className);\n const Component: React.ElementType = as ?? 'div';\n\n useEffect(() => {\n if (Boolean(htmlAttributes?.id) === true) {\n setDescriptionId?.(htmlAttributes?.id);\n }\n }, [htmlAttributes?.id, setDescriptionId]);\n\n return (\n <Component\n className={classes}\n style={style}\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n id={descriptionId}\n >\n {children}\n </Component>\n );\n};\n\nconst Content = <T extends React.ElementType = 'div'>({\n as,\n children,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: PolymorphicCommonProps<T, DialogContentProps>) => {\n const classes = classNames('ndl-dialog-content', className);\n const Component: React.ElementType = as ?? 'div';\n\n return (\n <Component\n className={classes}\n style={style}\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n >\n {children}\n </Component>\n );\n};\n\nconst Image = ({\n src,\n alt,\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: CommonProps<'img', DialogImageProps>) => {\n const classes = classNames('ndl-dialog-image', className);\n\n return (\n <img\n src={src}\n alt={alt}\n className={classes}\n style={style}\n ref={ref}\n {...restProps}\n {...htmlAttributes}\n />\n );\n};\n\nconst Dialog = Object.assign(DialogComponent, {\n Actions,\n Content,\n Description,\n Header,\n Image,\n Subtitle,\n});\n\nexport { Dialog };\n"]}
@@ -1,4 +1,4 @@
1
- /**
1
+ /*!
2
2
  *
3
3
  * Copyright (c) "Neo4j"
4
4
  * Neo4j Sweden AB [http://neo4j.com]
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.FieldsetBase = exports.Fieldset = void 0;
18
+ const jsx_runtime_1 = require("react/jsx-runtime");
19
+ /*!
20
+ *
21
+ * Copyright (c) "Neo4j"
22
+ * Neo4j Sweden AB [http://neo4j.com]
23
+ *
24
+ * This file is part of Neo4j.
25
+ *
26
+ * Neo4j is free software: you can redistribute it and/or modify
27
+ * it under the terms of the GNU General Public License as published by
28
+ * the Free Software Foundation, either version 3 of the License, or
29
+ * (at your option) any later version.
30
+ *
31
+ * This program is distributed in the hope that it will be useful,
32
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
33
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34
+ * GNU General Public License for more details.
35
+ *
36
+ * You should have received a copy of the GNU General Public License
37
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
38
+ */
39
+ const classnames_1 = __importDefault(require("classnames"));
40
+ const form_control_1 = require("../_common/form-control");
41
+ const typography_1 = require("../typography");
42
+ const FieldsetBase = (_a) => {
43
+ var { label, children, helpText, errorText, isRequired = false, hasRequiredIndicator = false, hasVisuallyHiddenLabel = false, isDisabled = false, fieldGroup, orientation = 'vertical', className, style, htmlAttributes, ref } = _a, restProps = __rest(_a, ["label", "children", "helpText", "errorText", "isRequired", "hasRequiredIndicator", "hasVisuallyHiddenLabel", "isDisabled", "fieldGroup", "orientation", "className", "style", "htmlAttributes", "ref"]);
44
+ const { field, controlProps } = (0, form_control_1.useFormField)({
45
+ errorText,
46
+ hasRequiredIndicator,
47
+ hasVisuallyHiddenLabel,
48
+ helpText,
49
+ isRequired,
50
+ label,
51
+ });
52
+ const classes = (0, classnames_1.default)('ndl-fieldset', className, {
53
+ 'ndl-disabled': isDisabled,
54
+ 'ndl-has-error': field.hasError,
55
+ });
56
+ const content = ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)('ndl-fieldset-content', {
57
+ 'ndl-horizontal': orientation === 'horizontal',
58
+ }), children: children }));
59
+ const fieldGroupValue = fieldGroup === undefined
60
+ ? undefined
61
+ : Object.assign(Object.assign({}, fieldGroup), { hasError: field.hasError, isDisabled,
62
+ isRequired });
63
+ return ((0, jsx_runtime_1.jsxs)("fieldset", Object.assign({ ref: ref, className: classes, style: style, disabled: isDisabled, "aria-describedby": controlProps['aria-describedby'], "aria-invalid": controlProps['aria-invalid'] }, restProps, htmlAttributes, { children: [(0, jsx_runtime_1.jsx)("legend", { className: (0, classnames_1.default)('ndl-fieldset-legend', {
64
+ 'ndl-visually-hidden': hasVisuallyHiddenLabel,
65
+ }), children: (0, jsx_runtime_1.jsxs)("span", { className: "ndl-form-label-row", children: [(0, jsx_runtime_1.jsx)(typography_1.Typography, { as: "span", variant: "body-medium", className: "ndl-form-label", children: label }), hasRequiredIndicator && ((0, jsx_runtime_1.jsx)(typography_1.Typography, { as: "span", variant: "body-medium", className: "ndl-form-label-indicator", children: isRequired ? 'Required' : 'Optional' }))] }) }), fieldGroupValue === undefined ? (content) : ((0, jsx_runtime_1.jsx)(form_control_1.FormFieldGroupContext.Provider, { value: fieldGroupValue, children: content })), (0, jsx_runtime_1.jsx)(form_control_1.FormFieldMessage, { field: field, size: "medium" })] })));
66
+ };
67
+ exports.FieldsetBase = FieldsetBase;
68
+ /**
69
+ * Groups related form controls under a native fieldset and legend.
70
+ *
71
+ * @remarks
72
+ * Use `RadioGroup` or `CheckboxGroup` when the children are exclusively
73
+ * radios or checkboxes and should inherit shared group attributes.
74
+ */
75
+ const Fieldset = (props) => ((0, jsx_runtime_1.jsx)(FieldsetBase, Object.assign({}, props)));
76
+ exports.Fieldset = Fieldset;
77
+ Fieldset.displayName = 'Fieldset';
78
+ //# sourceMappingURL=Fieldset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Fieldset.js","sourceRoot":"","sources":["../../../src/fieldset/Fieldset.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,4DAAoC;AAGpC,0DAKiC;AAEjC,8CAA2C;AA6B3C,MAAM,YAAY,GAAG,CAAC,EAgBuB,EAAE,EAAE;QAhB3B,EACpB,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,UAAU,GAAG,KAAK,EAClB,oBAAoB,GAAG,KAAK,EAC5B,sBAAsB,GAAG,KAAK,EAC9B,UAAU,GAAG,KAAK,EAClB,UAAU,EACV,WAAW,GAAG,UAAU,EACxB,SAAS,EACT,KAAK,EACL,cAAc,EACd,GAAG,OAEwC,EADxC,SAAS,cAfQ,wMAgBrB,CADa;IAEZ,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,IAAA,2BAAY,EAAC;QAC3C,SAAS;QACT,oBAAoB;QACpB,sBAAsB;QACtB,QAAQ;QACR,UAAU;QACV,KAAK;KACN,CAAC,CAAC;IACH,MAAM,OAAO,GAAG,IAAA,oBAAU,EAAC,cAAc,EAAE,SAAS,EAAE;QACpD,cAAc,EAAE,UAAU;QAC1B,eAAe,EAAE,KAAK,CAAC,QAAQ;KAChC,CAAC,CAAC;IACH,MAAM,OAAO,GAAG,CACd,gCACE,SAAS,EAAE,IAAA,oBAAU,EAAC,sBAAsB,EAAE;YAC5C,gBAAgB,EAAE,WAAW,KAAK,YAAY;SAC/C,CAAC,YAED,QAAQ,GACL,CACP,CAAC;IACF,MAAM,eAAe,GACnB,UAAU,KAAK,SAAS;QACtB,CAAC,CAAC,SAAS;QACX,CAAC,iCACM,UAAU,KACb,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,UAAU;YACV,UAAU,GACX,CAAC;IAER,OAAO,CACL,oDACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,UAAU,sBACF,YAAY,CAAC,kBAAkB,CAAC,kBACpC,YAAY,CAAC,cAAc,CAAC,IACtC,SAAS,EACT,cAAc,eAElB,mCACE,SAAS,EAAE,IAAA,oBAAU,EAAC,qBAAqB,EAAE;oBAC3C,qBAAqB,EAAE,sBAAsB;iBAC9C,CAAC,YAEF,kCAAM,SAAS,EAAC,oBAAoB,aAClC,uBAAC,uBAAU,IACT,EAAE,EAAC,MAAM,EACT,OAAO,EAAC,aAAa,EACrB,SAAS,EAAC,gBAAgB,YAEzB,KAAK,GACK,EACZ,oBAAoB,IAAI,CACvB,uBAAC,uBAAU,IACT,EAAE,EAAC,MAAM,EACT,OAAO,EAAC,aAAa,EACrB,SAAS,EAAC,0BAA0B,YAEnC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,GAC1B,CACd,IACI,GACA,EACR,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,CAC/B,OAAO,CACR,CAAC,CAAC,CAAC,CACF,uBAAC,oCAAqB,CAAC,QAAQ,IAAC,KAAK,EAAE,eAAe,YACnD,OAAO,GACuB,CAClC,EACD,uBAAC,+BAAgB,IAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAC,QAAQ,GAAG,KACvC,CACZ,CAAC;AACJ,CAAC,CAAC;AAeiB,oCAAY;AAb/B;;;;;;GAMG;AACH,MAAM,QAAQ,GAAG,CAAC,KAA6C,EAAE,EAAE,CAAC,CAClE,uBAAC,YAAY,oBAAK,KAAK,EAAI,CAC5B,CAAC;AAIO,4BAAQ;AAFjB,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport classNames from 'classnames';\nimport type React from 'react';\n\nimport {\n FormFieldGroupContext,\n type FormFieldGroupContextValue,\n FormFieldMessage,\n useFormField,\n} from '../_common/form-control';\nimport { type CommonProps } from '../_common/types';\nimport { Typography } from '../typography';\n\ntype FieldsetProps = {\n /** The accessible label displayed in the fieldset legend */\n label: React.ReactNode;\n /** The controls grouped by the fieldset */\n children: React.ReactNode;\n /** Assistive text displayed below the grouped controls */\n helpText?: React.ReactNode;\n /** Error message displayed below the grouped controls. When provided, it replaces `helpText` */\n errorText?: React.ReactNode;\n /** Whether the grouped field is required */\n isRequired?: boolean;\n /** Whether Required or Optional is shown at the end of the legend row */\n hasRequiredIndicator?: boolean;\n /** Whether the legend is clipped out of the layout, leaving it to screen readers only */\n hasVisuallyHiddenLabel?: boolean;\n /** Whether all native form controls in the fieldset are disabled */\n isDisabled?: boolean;\n};\n\ntype FieldsetBaseProps = FieldsetProps & {\n fieldGroup?: Pick<\n FormFieldGroupContextValue,\n 'name' | 'controlType' | 'value' | 'onChange'\n >;\n orientation?: 'horizontal' | 'vertical';\n};\n\nconst FieldsetBase = ({\n label,\n children,\n helpText,\n errorText,\n isRequired = false,\n hasRequiredIndicator = false,\n hasVisuallyHiddenLabel = false,\n isDisabled = false,\n fieldGroup,\n orientation = 'vertical',\n className,\n style,\n htmlAttributes,\n ref,\n ...restProps\n}: CommonProps<'fieldset', FieldsetBaseProps>) => {\n const { field, controlProps } = useFormField({\n errorText,\n hasRequiredIndicator,\n hasVisuallyHiddenLabel,\n helpText,\n isRequired,\n label,\n });\n const classes = classNames('ndl-fieldset', className, {\n 'ndl-disabled': isDisabled,\n 'ndl-has-error': field.hasError,\n });\n const content = (\n <div\n className={classNames('ndl-fieldset-content', {\n 'ndl-horizontal': orientation === 'horizontal',\n })}\n >\n {children}\n </div>\n );\n const fieldGroupValue =\n fieldGroup === undefined\n ? undefined\n : {\n ...fieldGroup,\n hasError: field.hasError,\n isDisabled,\n isRequired,\n };\n\n return (\n <fieldset\n ref={ref}\n className={classes}\n style={style}\n disabled={isDisabled}\n aria-describedby={controlProps['aria-describedby']}\n aria-invalid={controlProps['aria-invalid']}\n {...restProps}\n {...htmlAttributes}\n >\n <legend\n className={classNames('ndl-fieldset-legend', {\n 'ndl-visually-hidden': hasVisuallyHiddenLabel,\n })}\n >\n <span className=\"ndl-form-label-row\">\n <Typography\n as=\"span\"\n variant=\"body-medium\"\n className=\"ndl-form-label\"\n >\n {label}\n </Typography>\n {hasRequiredIndicator && (\n <Typography\n as=\"span\"\n variant=\"body-medium\"\n className=\"ndl-form-label-indicator\"\n >\n {isRequired ? 'Required' : 'Optional'}\n </Typography>\n )}\n </span>\n </legend>\n {fieldGroupValue === undefined ? (\n content\n ) : (\n <FormFieldGroupContext.Provider value={fieldGroupValue}>\n {content}\n </FormFieldGroupContext.Provider>\n )}\n <FormFieldMessage field={field} size=\"medium\" />\n </fieldset>\n );\n};\n\n/**\n * Groups related form controls under a native fieldset and legend.\n *\n * @remarks\n * Use `RadioGroup` or `CheckboxGroup` when the children are exclusively\n * radios or checkboxes and should inherit shared group attributes.\n */\nconst Fieldset = (props: CommonProps<'fieldset', FieldsetProps>) => (\n <FieldsetBase {...props} />\n);\n\nFieldset.displayName = 'Fieldset';\n\nexport { Fieldset, FieldsetBase, type FieldsetProps };\n"]}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /*!
3
+ *
4
+ * Copyright (c) "Neo4j"
5
+ * Neo4j Sweden AB [http://neo4j.com]
6
+ *
7
+ * This file is part of Neo4j.
8
+ *
9
+ * Neo4j is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ exports.Fieldset = void 0;
24
+ var Fieldset_1 = require("./Fieldset");
25
+ Object.defineProperty(exports, "Fieldset", { enumerable: true, get: function () { return Fieldset_1.Fieldset; } });
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/fieldset/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAEH,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { Fieldset } from './Fieldset';\n"]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /*!
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = () => {
27
+ return ((0, jsx_runtime_1.jsxs)(react_1.Fieldset, { label: "Team settings", helpText: "These settings apply to the whole team.", children: [(0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Team name", placeholder: "Graph Platform" }), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Contact email", placeholder: "team@example.com", htmlAttributes: { type: 'email' } }), (0, jsx_runtime_1.jsx)(react_1.TextArea, { label: "Team description", placeholder: "Describe what your team works on" }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Allow other members to invite people" })] }));
28
+ };
29
+ exports.default = Component;
30
+ //# sourceMappingURL=fieldset-default.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldset-default.story.js","sourceRoot":"","sources":["../../../../src/fieldset/stories/fieldset-default.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA2E;AAE3E,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,gBAAQ,IACP,KAAK,EAAC,eAAe,EACrB,QAAQ,EAAC,yCAAyC,aAElD,uBAAC,iBAAS,IAAC,KAAK,EAAC,WAAW,EAAC,WAAW,EAAC,gBAAgB,GAAG,EAC5D,uBAAC,iBAAS,IACR,KAAK,EAAC,eAAe,EACrB,WAAW,EAAC,kBAAkB,EAC9B,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GACjC,EACF,uBAAC,gBAAQ,IACP,KAAK,EAAC,kBAAkB,EACxB,WAAW,EAAC,kCAAkC,GAC9C,EACF,uBAAC,gBAAQ,IAAC,KAAK,EAAC,sCAAsC,GAAG,IAChD,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Checkbox, Fieldset, TextArea, TextInput } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <Fieldset\n label=\"Team settings\"\n helpText=\"These settings apply to the whole team.\"\n >\n <TextInput label=\"Team name\" placeholder=\"Graph Platform\" />\n <TextInput\n label=\"Contact email\"\n placeholder=\"team@example.com\"\n htmlAttributes={{ type: 'email' }}\n />\n <TextArea\n label=\"Team description\"\n placeholder=\"Describe what your team works on\"\n />\n <Checkbox label=\"Allow other members to invite people\" />\n </Fieldset>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /*!
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = () => {
27
+ return ((0, jsx_runtime_1.jsxs)(react_1.Fieldset, { label: "Team settings", isDisabled: true, children: [(0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Team name", placeholder: "Graph Platform" }), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Contact email", placeholder: "team@example.com", htmlAttributes: { type: 'email' } }), (0, jsx_runtime_1.jsx)(react_1.TextArea, { label: "Team description", placeholder: "Describe what your team works on" }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Allow other members to invite people" }), (0, jsx_runtime_1.jsx)(react_1.Radio, { label: "Use team defaults" }), (0, jsx_runtime_1.jsx)(react_1.Switch, { label: "Enable team notifications" }), (0, jsx_runtime_1.jsx)(react_1.TimePicker, { label: "Daily reminder time" }), (0, jsx_runtime_1.jsx)(react_1.TimeZonePicker, { label: "Team time zone", value: "Europe/Stockholm" })] }));
28
+ };
29
+ exports.default = Component;
30
+ //# sourceMappingURL=fieldset-disabled.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldset-disabled.story.js","sourceRoot":"","sources":["../../../../src/fieldset/stories/fieldset-disabled.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAS0B;AAE1B,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,gBAAQ,IAAC,KAAK,EAAC,eAAe,EAAC,UAAU,mBACxC,uBAAC,iBAAS,IAAC,KAAK,EAAC,WAAW,EAAC,WAAW,EAAC,gBAAgB,GAAG,EAC5D,uBAAC,iBAAS,IACR,KAAK,EAAC,eAAe,EACrB,WAAW,EAAC,kBAAkB,EAC9B,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GACjC,EACF,uBAAC,gBAAQ,IACP,KAAK,EAAC,kBAAkB,EACxB,WAAW,EAAC,kCAAkC,GAC9C,EACF,uBAAC,gBAAQ,IAAC,KAAK,EAAC,sCAAsC,GAAG,EACzD,uBAAC,aAAK,IAAC,KAAK,EAAC,mBAAmB,GAAG,EACnC,uBAAC,cAAM,IAAC,KAAK,EAAC,2BAA2B,GAAG,EAC5C,uBAAC,kBAAU,IAAC,KAAK,EAAC,qBAAqB,GAAG,EAC1C,uBAAC,sBAAc,IAAC,KAAK,EAAC,gBAAgB,EAAC,KAAK,EAAC,kBAAkB,GAAG,IACzD,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport {\n Checkbox,\n Fieldset,\n Radio,\n Switch,\n TextArea,\n TextInput,\n TimePicker,\n TimeZonePicker,\n} from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <Fieldset label=\"Team settings\" isDisabled>\n <TextInput label=\"Team name\" placeholder=\"Graph Platform\" />\n <TextInput\n label=\"Contact email\"\n placeholder=\"team@example.com\"\n htmlAttributes={{ type: 'email' }}\n />\n <TextArea\n label=\"Team description\"\n placeholder=\"Describe what your team works on\"\n />\n <Checkbox label=\"Allow other members to invite people\" />\n <Radio label=\"Use team defaults\" />\n <Switch label=\"Enable team notifications\" />\n <TimePicker label=\"Daily reminder time\" />\n <TimeZonePicker label=\"Team time zone\" value=\"Europe/Stockholm\" />\n </Fieldset>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /*!
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = () => {
27
+ return ((0, jsx_runtime_1.jsxs)(react_1.Fieldset, { label: "Team settings", errorText: "Review the team settings before continuing.", children: [(0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Team name", placeholder: "Graph Platform" }), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Contact email", placeholder: "team@example.com", htmlAttributes: { type: 'email' } }), (0, jsx_runtime_1.jsx)(react_1.TextArea, { label: "Team description", placeholder: "Describe what your team works on" }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Allow other members to invite people" })] }));
28
+ };
29
+ exports.default = Component;
30
+ //# sourceMappingURL=fieldset-error.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldset-error.story.js","sourceRoot":"","sources":["../../../../src/fieldset/stories/fieldset-error.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA2E;AAE3E,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,gBAAQ,IACP,KAAK,EAAC,eAAe,EACrB,SAAS,EAAC,6CAA6C,aAEvD,uBAAC,iBAAS,IAAC,KAAK,EAAC,WAAW,EAAC,WAAW,EAAC,gBAAgB,GAAG,EAC5D,uBAAC,iBAAS,IACR,KAAK,EAAC,eAAe,EACrB,WAAW,EAAC,kBAAkB,EAC9B,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GACjC,EACF,uBAAC,gBAAQ,IACP,KAAK,EAAC,kBAAkB,EACxB,WAAW,EAAC,kCAAkC,GAC9C,EACF,uBAAC,gBAAQ,IAAC,KAAK,EAAC,sCAAsC,GAAG,IAChD,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Checkbox, Fieldset, TextArea, TextInput } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <Fieldset\n label=\"Team settings\"\n errorText=\"Review the team settings before continuing.\"\n >\n <TextInput label=\"Team name\" placeholder=\"Graph Platform\" />\n <TextInput\n label=\"Contact email\"\n placeholder=\"team@example.com\"\n htmlAttributes={{ type: 'email' }}\n />\n <TextArea\n label=\"Team description\"\n placeholder=\"Describe what your team works on\"\n />\n <Checkbox label=\"Allow other members to invite people\" />\n </Fieldset>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /*!
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = () => {
27
+ return ((0, jsx_runtime_1.jsxs)(react_1.Fieldset, { label: "Team settings", hasRequiredIndicator: true, children: [(0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Team name", placeholder: "Graph Platform" }), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Contact email", placeholder: "team@example.com", htmlAttributes: { type: 'email' } }), (0, jsx_runtime_1.jsx)(react_1.TextArea, { label: "Team description", placeholder: "Describe what your team works on" }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Allow other members to invite people" })] }));
28
+ };
29
+ exports.default = Component;
30
+ //# sourceMappingURL=fieldset-optional.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldset-optional.story.js","sourceRoot":"","sources":["../../../../src/fieldset/stories/fieldset-optional.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA2E;AAE3E,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,gBAAQ,IAAC,KAAK,EAAC,eAAe,EAAC,oBAAoB,mBAClD,uBAAC,iBAAS,IAAC,KAAK,EAAC,WAAW,EAAC,WAAW,EAAC,gBAAgB,GAAG,EAC5D,uBAAC,iBAAS,IACR,KAAK,EAAC,eAAe,EACrB,WAAW,EAAC,kBAAkB,EAC9B,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GACjC,EACF,uBAAC,gBAAQ,IACP,KAAK,EAAC,kBAAkB,EACxB,WAAW,EAAC,kCAAkC,GAC9C,EACF,uBAAC,gBAAQ,IAAC,KAAK,EAAC,sCAAsC,GAAG,IAChD,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Checkbox, Fieldset, TextArea, TextInput } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <Fieldset label=\"Team settings\" hasRequiredIndicator>\n <TextInput label=\"Team name\" placeholder=\"Graph Platform\" />\n <TextInput\n label=\"Contact email\"\n placeholder=\"team@example.com\"\n htmlAttributes={{ type: 'email' }}\n />\n <TextArea\n label=\"Team description\"\n placeholder=\"Describe what your team works on\"\n />\n <Checkbox label=\"Allow other members to invite people\" />\n </Fieldset>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /*!
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = () => {
27
+ return ((0, jsx_runtime_1.jsxs)(react_1.Fieldset, { label: "Team settings", hasRequiredIndicator: true, isRequired: true, children: [(0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Team name", placeholder: "Graph Platform" }), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Contact email", placeholder: "team@example.com", htmlAttributes: { type: 'email' } }), (0, jsx_runtime_1.jsx)(react_1.TextArea, { label: "Team description", placeholder: "Describe what your team works on" }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Allow other members to invite people" })] }));
28
+ };
29
+ exports.default = Component;
30
+ //# sourceMappingURL=fieldset-required.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldset-required.story.js","sourceRoot":"","sources":["../../../../src/fieldset/stories/fieldset-required.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA2E;AAE3E,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,gBAAQ,IAAC,KAAK,EAAC,eAAe,EAAC,oBAAoB,QAAC,UAAU,mBAC7D,uBAAC,iBAAS,IAAC,KAAK,EAAC,WAAW,EAAC,WAAW,EAAC,gBAAgB,GAAG,EAC5D,uBAAC,iBAAS,IACR,KAAK,EAAC,eAAe,EACrB,WAAW,EAAC,kBAAkB,EAC9B,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GACjC,EACF,uBAAC,gBAAQ,IACP,KAAK,EAAC,kBAAkB,EACxB,WAAW,EAAC,kCAAkC,GAC9C,EACF,uBAAC,gBAAQ,IAAC,KAAK,EAAC,sCAAsC,GAAG,IAChD,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Checkbox, Fieldset, TextArea, TextInput } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <Fieldset label=\"Team settings\" hasRequiredIndicator isRequired>\n <TextInput label=\"Team name\" placeholder=\"Graph Platform\" />\n <TextInput\n label=\"Contact email\"\n placeholder=\"team@example.com\"\n htmlAttributes={{ type: 'email' }}\n />\n <TextArea\n label=\"Team description\"\n placeholder=\"Describe what your team works on\"\n />\n <Checkbox label=\"Allow other members to invite people\" />\n </Fieldset>\n );\n};\n\nexport default Component;\n"]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ /*!
5
+ *
6
+ * Copyright (c) "Neo4j"
7
+ * Neo4j Sweden AB [http://neo4j.com]
8
+ *
9
+ * This file is part of Neo4j.
10
+ *
11
+ * Neo4j is free software: you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation, either version 3 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */
24
+ require("@neo4j-ndl/base/lib/neo4j-ds-styles.css");
25
+ const react_1 = require("@neo4j-ndl/react");
26
+ const Component = () => {
27
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(react_1.Fieldset, { label: "Team settings", hasVisuallyHiddenLabel: true, children: [(0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Team name", placeholder: "Graph Platform" }), (0, jsx_runtime_1.jsx)(react_1.TextInput, { label: "Contact email", placeholder: "team@example.com", htmlAttributes: { type: 'email' } }), (0, jsx_runtime_1.jsx)(react_1.TextArea, { label: "Team description", placeholder: "Describe what your team works on" }), (0, jsx_runtime_1.jsx)(react_1.Checkbox, { label: "Allow other members to invite people" })] }) }));
28
+ };
29
+ exports.default = Component;
30
+ //# sourceMappingURL=fieldset-visually-hidden-label.story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldset-visually-hidden-label.story.js","sourceRoot":"","sources":["../../../../src/fieldset/stories/fieldset-visually-hidden-label.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAA2E;AAE3E,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,2DACE,wBAAC,gBAAQ,IAAC,KAAK,EAAC,eAAe,EAAC,sBAAsB,mBACpD,uBAAC,iBAAS,IAAC,KAAK,EAAC,WAAW,EAAC,WAAW,EAAC,gBAAgB,GAAG,EAC5D,uBAAC,iBAAS,IACR,KAAK,EAAC,eAAe,EACrB,WAAW,EAAC,kBAAkB,EAC9B,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GACjC,EACF,uBAAC,gBAAQ,IACP,KAAK,EAAC,kBAAkB,EACxB,WAAW,EAAC,kCAAkC,GAC9C,EACF,uBAAC,gBAAQ,IAAC,KAAK,EAAC,sCAAsC,GAAG,IAChD,GACV,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/*!\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Checkbox, Fieldset, TextArea, TextInput } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <>\n <Fieldset label=\"Team settings\" hasVisuallyHiddenLabel>\n <TextInput label=\"Team name\" placeholder=\"Graph Platform\" />\n <TextInput\n label=\"Contact email\"\n placeholder=\"team@example.com\"\n htmlAttributes={{ type: 'email' }}\n />\n <TextArea\n label=\"Team description\"\n placeholder=\"Describe what your team works on\"\n />\n <Checkbox label=\"Allow other members to invite people\" />\n </Fieldset>\n </>\n );\n};\n\nexport default Component;\n"]}