@mittwald/flow-react-components 0.2.0-alpha.804 → 0.2.0-alpha.806

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 (269) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/MIGRATION.md +101 -0
  3. package/dist/assets/doc-properties.json +9557 -9169
  4. package/dist/css/all.css +1 -1
  5. package/dist/js/_virtual/_.locale.json@cbc1b50fe3e51afbdb1b35a65308b79e.mjs +14 -0
  6. package/dist/js/_virtual/_.locale.json@cbc1b50fe3e51afbdb1b35a65308b79e.mjs.map +1 -0
  7. package/dist/js/default.mjs +2 -1
  8. package/dist/js/default.mjs.map +1 -1
  9. package/dist/js/flr-universal.mjs +10 -8
  10. package/dist/js/flr-universal.mjs.map +1 -1
  11. package/dist/js/packages/components/src/components/Accordion/Accordion.mjs +72 -62
  12. package/dist/js/packages/components/src/components/Accordion/Accordion.mjs.map +1 -1
  13. package/dist/js/packages/components/src/components/Action/models/ActionStateContext.mjs +1 -1
  14. package/dist/js/packages/components/src/components/ActionGroup/ActionGroup.mjs +1 -2
  15. package/dist/js/packages/components/src/components/ActionGroup/ActionGroup.mjs.map +1 -1
  16. package/dist/js/packages/components/src/components/Autocomplete/Autocomplete.mjs +13 -4
  17. package/dist/js/packages/components/src/components/Autocomplete/Autocomplete.mjs.map +1 -1
  18. package/dist/js/packages/components/src/components/CartesianChart/CartesianChart.mjs +16 -3
  19. package/dist/js/packages/components/src/components/CartesianChart/CartesianChart.mjs.map +1 -1
  20. package/dist/js/packages/components/src/components/CartesianChart/components/Area/Area.mjs +2 -0
  21. package/dist/js/packages/components/src/components/CartesianChart/components/Area/Area.mjs.map +1 -1
  22. package/dist/js/packages/components/src/components/CartesianChart/components/ChartLegend/ChartLegend.mjs.map +1 -1
  23. package/dist/js/packages/components/src/components/CartesianChart/components/ChartLegend/LegendContent.mjs +3 -1
  24. package/dist/js/packages/components/src/components/CartesianChart/components/ChartLegend/LegendContent.mjs.map +1 -1
  25. package/dist/js/packages/components/src/components/CartesianChart/components/ChartTooltip/ChartTooltip.mjs +6 -6
  26. package/dist/js/packages/components/src/components/CartesianChart/components/ChartTooltip/ChartTooltip.mjs.map +1 -1
  27. package/dist/js/packages/components/src/components/CartesianChart/components/ChartTooltip/TooltipContent.mjs +1 -1
  28. package/dist/js/packages/components/src/components/CartesianChart/components/ChartTooltip/TooltipContent.mjs.map +1 -1
  29. package/dist/js/packages/components/src/components/CartesianChart/components/ChartTooltip/TooltipLegendItem.mjs +5 -5
  30. package/dist/js/packages/components/src/components/CartesianChart/components/ChartTooltip/TooltipLegendItem.mjs.map +1 -1
  31. package/dist/js/packages/components/src/components/CartesianChart/components/ChartTooltip/TooltipProgressBar.mjs +7 -2
  32. package/dist/js/packages/components/src/components/CartesianChart/components/ChartTooltip/TooltipProgressBar.mjs.map +1 -1
  33. package/dist/js/packages/components/src/components/CartesianChart/components/ChartTooltip/types.mjs +16 -0
  34. package/dist/js/packages/components/src/components/CartesianChart/components/ChartTooltip/types.mjs.map +1 -0
  35. package/dist/js/packages/components/src/components/CartesianChart/components/Line/Line.mjs.map +1 -1
  36. package/dist/js/packages/components/src/components/CartesianChart/components/XAxis/XAxis.mjs.map +1 -1
  37. package/dist/js/packages/components/src/components/CartesianChart/components/XAxis/types.mjs +1 -1
  38. package/dist/js/packages/components/src/components/CartesianChart/components/XAxis/types.mjs.map +1 -1
  39. package/dist/js/packages/components/src/components/CartesianChart/components/YAxis/YAxis.mjs.map +1 -1
  40. package/dist/js/packages/components/src/components/CartesianChart/components/YAxis/types.mjs.map +1 -1
  41. package/dist/js/packages/components/src/components/CartesianChart/types.mjs +8 -0
  42. package/dist/js/packages/components/src/components/CartesianChart/types.mjs.map +1 -0
  43. package/dist/js/packages/components/src/components/Chat/Chat.mjs +37 -21
  44. package/dist/js/packages/components/src/components/Chat/Chat.mjs.map +1 -1
  45. package/dist/js/packages/components/src/components/Checkbox/Checkbox.mjs +1 -1
  46. package/dist/js/packages/components/src/components/Checkbox/Checkbox.mjs.map +1 -1
  47. package/dist/js/packages/components/src/components/CheckboxButton/CheckboxButton.mjs +1 -1
  48. package/dist/js/packages/components/src/components/CheckboxButton/CheckboxButton.mjs.map +1 -1
  49. package/dist/js/packages/components/src/components/CheckboxGroup/CheckboxGroup.mjs +24 -12
  50. package/dist/js/packages/components/src/components/CheckboxGroup/CheckboxGroup.mjs.map +1 -1
  51. package/dist/js/packages/components/src/components/CodeBlock/CodeBlock.mjs +70 -16
  52. package/dist/js/packages/components/src/components/CodeBlock/CodeBlock.mjs.map +1 -1
  53. package/dist/js/packages/components/src/components/CodeBlock/CodeBlock.module.scss.mjs +7 -3
  54. package/dist/js/packages/components/src/components/CodeBlock/CodeBlock.module.scss.mjs.map +1 -1
  55. package/dist/js/packages/components/src/components/CodeEditor/CodeEditor.mjs +2 -3
  56. package/dist/js/packages/components/src/components/CodeEditor/CodeEditor.mjs.map +1 -1
  57. package/dist/js/packages/components/src/components/CodeEditor/CodeEditor.module.scss.mjs +3 -1
  58. package/dist/js/packages/components/src/components/CodeEditor/CodeEditor.module.scss.mjs.map +1 -1
  59. package/dist/js/packages/components/src/components/CodeEditor/themes/defaultEditorTheme.mjs +4 -4
  60. package/dist/js/packages/components/src/components/CodeEditor/themes/defaultEditorTheme.mjs.map +1 -1
  61. package/dist/js/packages/components/src/components/ComboBox/ComboBox.mjs +9 -6
  62. package/dist/js/packages/components/src/components/ComboBox/ComboBox.mjs.map +1 -1
  63. package/dist/js/packages/components/src/components/DatePicker/DatePicker.mjs +1 -1
  64. package/dist/js/packages/components/src/components/DatePicker/DatePicker.mjs.map +1 -1
  65. package/dist/js/packages/components/src/components/DatePicker/components/DateInput/DateInput.module.scss.mjs +1 -2
  66. package/dist/js/packages/components/src/components/DatePicker/components/DateInput/DateInput.module.scss.mjs.map +1 -1
  67. package/dist/js/packages/components/src/components/DateRangePicker/DateRangePicker.mjs +1 -1
  68. package/dist/js/packages/components/src/components/DateRangePicker/DateRangePicker.mjs.map +1 -1
  69. package/dist/js/packages/components/src/components/DateRangePicker/components/DateRangeInput/DateRangeInput.module.scss.mjs +1 -2
  70. package/dist/js/packages/components/src/components/DateRangePicker/components/DateRangeInput/DateRangeInput.module.scss.mjs.map +1 -1
  71. package/dist/js/packages/components/src/components/FileCard/FileCard.mjs +13 -7
  72. package/dist/js/packages/components/src/components/FileCard/FileCard.mjs.map +1 -1
  73. package/dist/js/packages/components/src/components/FileDropZone/FileDropZone.mjs +1 -1
  74. package/dist/js/packages/components/src/components/FileDropZone/FileDropZone.mjs.map +1 -1
  75. package/dist/js/packages/components/src/components/FileField/FileField.mjs +1 -1
  76. package/dist/js/packages/components/src/components/FileField/FileField.mjs.map +1 -1
  77. package/dist/js/packages/components/src/components/Heading/Heading.mjs +18 -18
  78. package/dist/js/packages/components/src/components/Heading/Heading.mjs.map +1 -1
  79. package/dist/js/packages/components/src/components/Label/Label.mjs +19 -10
  80. package/dist/js/packages/components/src/components/Label/Label.mjs.map +1 -1
  81. package/dist/js/packages/components/src/components/LightBox/LightBox.mjs +8 -5
  82. package/dist/js/packages/components/src/components/LightBox/LightBox.mjs.map +1 -1
  83. package/dist/js/packages/components/src/components/List/List.mjs +12 -6
  84. package/dist/js/packages/components/src/components/List/List.mjs.map +1 -1
  85. package/dist/js/packages/components/src/components/List/components/Header/Header.mjs +2 -2
  86. package/dist/js/packages/components/src/components/List/components/Header/Header.mjs.map +1 -1
  87. package/dist/js/packages/components/src/components/List/components/Header/components/AllFiltersModal/AllFiltersModal.mjs +3 -5
  88. package/dist/js/packages/components/src/components/List/components/Header/components/AllFiltersModal/AllFiltersModal.mjs.map +1 -1
  89. package/dist/js/packages/components/src/components/List/components/Header/components/AllFiltersModal/SortingAccordion.mjs +5 -8
  90. package/dist/js/packages/components/src/components/List/components/Header/components/AllFiltersModal/SortingAccordion.mjs.map +1 -1
  91. package/dist/js/packages/components/src/components/List/components/Header/components/AllFiltersModal/ViewModeAccordion.mjs +6 -9
  92. package/dist/js/packages/components/src/components/List/components/Header/components/AllFiltersModal/ViewModeAccordion.mjs.map +1 -1
  93. package/dist/js/packages/components/src/components/List/components/Header/components/FilterContextMenu/FilterContextMenus.mjs +9 -12
  94. package/dist/js/packages/components/src/components/List/components/Header/components/FilterContextMenu/FilterContextMenus.mjs.map +1 -1
  95. package/dist/js/packages/components/src/components/List/components/Header/components/SortingContextMenu/SortingMenuItem.mjs +9 -12
  96. package/dist/js/packages/components/src/components/List/components/Header/components/SortingContextMenu/SortingMenuItem.mjs.map +1 -1
  97. package/dist/js/packages/components/src/components/List/components/Header/components/ViewModeContextMenu/ViewModeContextMenu.mjs +6 -7
  98. package/dist/js/packages/components/src/components/List/components/Header/components/ViewModeContextMenu/ViewModeContextMenu.mjs.map +1 -1
  99. package/dist/js/packages/components/src/components/List/components/Header/components/ViewModeContextMenu/ViewModeMenuItem.mjs +6 -9
  100. package/dist/js/packages/components/src/components/List/components/Header/components/ViewModeContextMenu/ViewModeMenuItem.mjs.map +1 -1
  101. package/dist/js/packages/components/src/components/List/components/Header/lib.mjs +9 -12
  102. package/dist/js/packages/components/src/components/List/components/Header/lib.mjs.map +1 -1
  103. package/dist/js/packages/components/src/components/List/components/Items/components/Item/components/AccordionButton.mjs +4 -1
  104. package/dist/js/packages/components/src/components/List/components/Items/components/Item/components/AccordionButton.mjs.map +1 -1
  105. package/dist/js/packages/components/src/components/List/components/Items/components/Item/components/OptionsButton/OptionsButton.mjs +1 -1
  106. package/dist/js/packages/components/src/components/List/components/Items/components/Item/components/OptionsButton/OptionsButton.mjs.map +1 -1
  107. package/dist/js/packages/components/src/components/List/components/Items/components/Item/hooks/useGridItemProps.mjs +9 -12
  108. package/dist/js/packages/components/src/components/List/components/Items/components/Item/hooks/useGridItemProps.mjs.map +1 -1
  109. package/dist/js/packages/components/src/components/List/components/ListItemView/ListItemView.mjs +84 -51
  110. package/dist/js/packages/components/src/components/List/components/ListItemView/ListItemView.mjs.map +1 -1
  111. package/dist/js/packages/components/src/components/List/components/Table/Table.mjs +9 -12
  112. package/dist/js/packages/components/src/components/List/components/Table/Table.mjs.map +1 -1
  113. package/dist/js/packages/components/src/components/MarkdownEditor/MarkdownEditor.mjs +2 -3
  114. package/dist/js/packages/components/src/components/MarkdownEditor/MarkdownEditor.mjs.map +1 -1
  115. package/dist/js/packages/components/src/components/Navigation/Navigation.mjs +8 -5
  116. package/dist/js/packages/components/src/components/Navigation/Navigation.mjs.map +1 -1
  117. package/dist/js/packages/components/src/components/Navigation/components/NavigationGroup/NavigationGroup.mjs +15 -21
  118. package/dist/js/packages/components/src/components/Navigation/components/NavigationGroup/NavigationGroup.mjs.map +1 -1
  119. package/dist/js/packages/components/src/components/NumberField/NumberField.mjs +1 -1
  120. package/dist/js/packages/components/src/components/NumberField/NumberField.mjs.map +1 -1
  121. package/dist/js/packages/components/src/components/PasswordCreationField/PasswordCreationField.mjs +21 -9
  122. package/dist/js/packages/components/src/components/PasswordCreationField/PasswordCreationField.mjs.map +1 -1
  123. package/dist/js/packages/components/src/components/PasswordCreationField/components/TogglePasswordVisibilityButton/TogglePasswordVisibilityButton.mjs +1 -1
  124. package/dist/js/packages/components/src/components/PasswordCreationField/components/TogglePasswordVisibilityButton/TogglePasswordVisibilityButton.mjs.map +1 -1
  125. package/dist/js/packages/components/src/components/RadioGroup/RadioGroup.mjs +16 -10
  126. package/dist/js/packages/components/src/components/RadioGroup/RadioGroup.mjs.map +1 -1
  127. package/dist/js/packages/components/src/components/RadioGroup/components/RadioButton/RadioButton.module.scss.mjs +1 -2
  128. package/dist/js/packages/components/src/components/RadioGroup/components/RadioButton/RadioButton.module.scss.mjs.map +1 -1
  129. package/dist/js/packages/components/src/components/Rating/Rating.mjs +1 -1
  130. package/dist/js/packages/components/src/components/Rating/Rating.mjs.map +1 -1
  131. package/dist/js/packages/components/src/components/SearchField/SearchField.mjs +11 -8
  132. package/dist/js/packages/components/src/components/SearchField/SearchField.mjs.map +1 -1
  133. package/dist/js/packages/components/src/components/Section/components/SectionHeader/SectionHeader.mjs +82 -48
  134. package/dist/js/packages/components/src/components/Section/components/SectionHeader/SectionHeader.mjs.map +1 -1
  135. package/dist/js/packages/components/src/components/SegmentedControl/SegmentedControl.mjs +17 -8
  136. package/dist/js/packages/components/src/components/SegmentedControl/SegmentedControl.mjs.map +1 -1
  137. package/dist/js/packages/components/src/components/Select/Select.mjs +11 -8
  138. package/dist/js/packages/components/src/components/Select/Select.mjs.map +1 -1
  139. package/dist/js/packages/components/src/components/Select/Select.module.scss.mjs +1 -2
  140. package/dist/js/packages/components/src/components/Select/Select.module.scss.mjs.map +1 -1
  141. package/dist/js/packages/components/src/components/Slider/Slider.mjs +9 -6
  142. package/dist/js/packages/components/src/components/Slider/Slider.mjs.map +1 -1
  143. package/dist/js/packages/components/src/components/Switch/Switch.mjs +1 -1
  144. package/dist/js/packages/components/src/components/Switch/Switch.mjs.map +1 -1
  145. package/dist/js/packages/components/src/components/Tabs/Tabs.mjs +4 -4
  146. package/dist/js/packages/components/src/components/Tabs/Tabs.mjs.map +1 -1
  147. package/dist/js/packages/components/src/components/Tabs/components/Tab/Tab.mjs +2 -2
  148. package/dist/js/packages/components/src/components/Tabs/components/Tab/Tab.mjs.map +1 -1
  149. package/dist/js/packages/components/src/components/Tabs/components/TabList/TabList.mjs +4 -4
  150. package/dist/js/packages/components/src/components/Tabs/components/TabList/TabList.mjs.map +1 -1
  151. package/dist/js/packages/components/src/components/Tabs/components/TabTitle/TabTitle.mjs +4 -5
  152. package/dist/js/packages/components/src/components/Tabs/components/TabTitle/TabTitle.mjs.map +1 -1
  153. package/dist/js/packages/components/src/components/TextArea/TextArea.mjs +1 -1
  154. package/dist/js/packages/components/src/components/TextArea/TextArea.mjs.map +1 -1
  155. package/dist/js/packages/components/src/components/TextArea/TextArea.module.scss.mjs +1 -2
  156. package/dist/js/packages/components/src/components/TextArea/TextArea.module.scss.mjs.map +1 -1
  157. package/dist/js/packages/components/src/components/TextField/TextField.mjs +16 -7
  158. package/dist/js/packages/components/src/components/TextField/TextField.mjs.map +1 -1
  159. package/dist/js/packages/components/src/components/TimeField/TimeField.mjs +1 -1
  160. package/dist/js/packages/components/src/components/TimeField/TimeField.mjs.map +1 -1
  161. package/dist/js/packages/components/src/components/TimeField/TimeField.module.scss.mjs +1 -2
  162. package/dist/js/packages/components/src/components/TimeField/TimeField.module.scss.mjs.map +1 -1
  163. package/dist/js/packages/components/src/components/UiComponentTunnel/UiComponentTunnelEntry.mjs +19 -0
  164. package/dist/js/packages/components/src/components/UiComponentTunnel/UiComponentTunnelEntry.mjs.map +1 -0
  165. package/dist/js/packages/components/src/components/UiComponentTunnel/UiComponentTunnelExit.mjs +19 -0
  166. package/dist/js/packages/components/src/components/UiComponentTunnel/UiComponentTunnelExit.mjs.map +1 -0
  167. package/dist/js/packages/components/src/components/UiComponentTunnel/UiComponentTunnelProvider.mjs +13 -0
  168. package/dist/js/packages/components/src/components/UiComponentTunnel/UiComponentTunnelProvider.mjs.map +1 -0
  169. package/dist/js/packages/components/src/components/UiComponentTunnel/lib.mjs +7 -0
  170. package/dist/js/packages/components/src/components/UiComponentTunnel/lib.mjs.map +1 -0
  171. package/dist/js/packages/components/src/components/propTypes/index.mjs +4 -0
  172. package/dist/js/packages/components/src/components/propTypes/index.mjs.map +1 -1
  173. package/dist/js/packages/components/src/lib/componentFactory/flowComponent.mjs +8 -4
  174. package/dist/js/packages/components/src/lib/componentFactory/flowComponent.mjs.map +1 -1
  175. package/dist/js/packages/components/src/lib/hooks/useFieldComponent.mjs +4 -2
  176. package/dist/js/packages/components/src/lib/hooks/useFieldComponent.mjs.map +1 -1
  177. package/dist/js/packages/components/src/lib/hooks/useFieldError.mjs +6 -6
  178. package/dist/js/packages/components/src/lib/hooks/useFieldError.mjs.map +1 -1
  179. package/dist/js/packages/components/src/lib/types/props.mjs.map +1 -1
  180. package/dist/types/components/Accordion/Accordion.d.ts.map +1 -1
  181. package/dist/types/components/ActionGroup/ActionGroup.d.ts.map +1 -1
  182. package/dist/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  183. package/dist/types/components/CartesianChart/CartesianChart.d.ts +6 -8
  184. package/dist/types/components/CartesianChart/CartesianChart.d.ts.map +1 -1
  185. package/dist/types/components/CartesianChart/components/Area/Area.d.ts +9 -4
  186. package/dist/types/components/CartesianChart/components/Area/Area.d.ts.map +1 -1
  187. package/dist/types/components/CartesianChart/components/ChartLegend/ChartLegend.d.ts +1 -1
  188. package/dist/types/components/CartesianChart/components/ChartLegend/ChartLegend.d.ts.map +1 -1
  189. package/dist/types/components/CartesianChart/components/ChartLegend/LegendContent.d.ts.map +1 -1
  190. package/dist/types/components/CartesianChart/components/ChartTooltip/ChartTooltip.d.ts +5 -25
  191. package/dist/types/components/CartesianChart/components/ChartTooltip/ChartTooltip.d.ts.map +1 -1
  192. package/dist/types/components/CartesianChart/components/ChartTooltip/TooltipContent.d.ts +2 -2
  193. package/dist/types/components/CartesianChart/components/ChartTooltip/TooltipContent.d.ts.map +1 -1
  194. package/dist/types/components/CartesianChart/components/ChartTooltip/TooltipProgressBar.d.ts +2 -2
  195. package/dist/types/components/CartesianChart/components/ChartTooltip/TooltipProgressBar.d.ts.map +1 -1
  196. package/dist/types/components/CartesianChart/components/ChartTooltip/index.d.ts +1 -0
  197. package/dist/types/components/CartesianChart/components/ChartTooltip/index.d.ts.map +1 -1
  198. package/dist/types/components/CartesianChart/components/ChartTooltip/types.d.ts +26 -0
  199. package/dist/types/components/CartesianChart/components/ChartTooltip/types.d.ts.map +1 -0
  200. package/dist/types/components/CartesianChart/components/Line/Line.d.ts +3 -3
  201. package/dist/types/components/CartesianChart/components/Line/Line.d.ts.map +1 -1
  202. package/dist/types/components/CartesianChart/components/XAxis/XAxis.d.ts +3 -3
  203. package/dist/types/components/CartesianChart/components/XAxis/XAxis.d.ts.map +1 -1
  204. package/dist/types/components/CartesianChart/components/XAxis/types.d.ts +2 -2
  205. package/dist/types/components/CartesianChart/components/XAxis/types.d.ts.map +1 -1
  206. package/dist/types/components/CartesianChart/components/YAxis/YAxis.d.ts +2 -2
  207. package/dist/types/components/CartesianChart/components/YAxis/YAxis.d.ts.map +1 -1
  208. package/dist/types/components/CartesianChart/components/YAxis/types.d.ts +2 -2
  209. package/dist/types/components/CartesianChart/components/YAxis/types.d.ts.map +1 -1
  210. package/dist/types/components/CartesianChart/stories/Default.stories.d.ts.map +1 -1
  211. package/dist/types/components/CartesianChart/typedCartesianChart.test-types.d.ts +2 -0
  212. package/dist/types/components/CartesianChart/typedCartesianChart.test-types.d.ts.map +1 -0
  213. package/dist/types/components/CartesianChart/types.d.ts +11 -0
  214. package/dist/types/components/CartesianChart/types.d.ts.map +1 -0
  215. package/dist/types/components/Chat/Chat.d.ts.map +1 -1
  216. package/dist/types/components/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
  217. package/dist/types/components/CodeBlock/CodeBlock.d.ts +7 -0
  218. package/dist/types/components/CodeBlock/CodeBlock.d.ts.map +1 -1
  219. package/dist/types/components/CodeBlock/stories/Default.stories.d.ts +1 -2
  220. package/dist/types/components/CodeBlock/stories/Default.stories.d.ts.map +1 -1
  221. package/dist/types/components/CodeEditor/CodeEditor.d.ts +1 -2
  222. package/dist/types/components/CodeEditor/CodeEditor.d.ts.map +1 -1
  223. package/dist/types/components/ComboBox/ComboBox.d.ts.map +1 -1
  224. package/dist/types/components/FileCard/FileCard.d.ts.map +1 -1
  225. package/dist/types/components/Heading/Heading.d.ts +0 -1
  226. package/dist/types/components/Heading/Heading.d.ts.map +1 -1
  227. package/dist/types/components/Heading/index.d.ts +1 -0
  228. package/dist/types/components/Heading/index.d.ts.map +1 -1
  229. package/dist/types/components/Label/Label.d.ts.map +1 -1
  230. package/dist/types/components/LightBox/LightBox.d.ts.map +1 -1
  231. package/dist/types/components/List/List.d.ts.map +1 -1
  232. package/dist/types/components/List/components/Items/components/Item/components/AccordionButton.d.ts.map +1 -1
  233. package/dist/types/components/List/components/ListItemView/ListItemView.d.ts +11 -1
  234. package/dist/types/components/List/components/ListItemView/ListItemView.d.ts.map +1 -1
  235. package/dist/types/components/List/typedList.d.ts +18 -8
  236. package/dist/types/components/List/typedList.d.ts.map +1 -1
  237. package/dist/types/components/MarkdownEditor/MarkdownEditor.d.ts.map +1 -1
  238. package/dist/types/components/Navigation/Navigation.d.ts.map +1 -1
  239. package/dist/types/components/Navigation/components/NavigationGroup/NavigationGroup.d.ts.map +1 -1
  240. package/dist/types/components/Navigation/stories/Default.stories.d.ts.map +1 -1
  241. package/dist/types/components/PasswordCreationField/PasswordCreationField.d.ts.map +1 -1
  242. package/dist/types/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  243. package/dist/types/components/Rating/Rating.d.ts +2 -2
  244. package/dist/types/components/Rating/Rating.d.ts.map +1 -1
  245. package/dist/types/components/SearchField/SearchField.d.ts.map +1 -1
  246. package/dist/types/components/Section/components/SectionHeader/SectionHeader.d.ts.map +1 -1
  247. package/dist/types/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  248. package/dist/types/components/Select/Select.d.ts.map +1 -1
  249. package/dist/types/components/Slider/Slider.d.ts.map +1 -1
  250. package/dist/types/components/Tabs/Tabs.d.ts.map +1 -1
  251. package/dist/types/components/Tabs/components/TabTitle/TabTitle.d.ts.map +1 -1
  252. package/dist/types/components/TextField/TextField.d.ts.map +1 -1
  253. package/dist/types/components/UiComponentTunnel/UiComponentTunnelEntry.d.ts +8 -0
  254. package/dist/types/components/UiComponentTunnel/UiComponentTunnelEntry.d.ts.map +1 -0
  255. package/dist/types/components/UiComponentTunnel/UiComponentTunnelExit.d.ts +8 -0
  256. package/dist/types/components/UiComponentTunnel/UiComponentTunnelExit.d.ts.map +1 -0
  257. package/dist/types/components/UiComponentTunnel/UiComponentTunnelProvider.d.ts +7 -0
  258. package/dist/types/components/UiComponentTunnel/UiComponentTunnelProvider.d.ts.map +1 -0
  259. package/dist/types/components/UiComponentTunnel/lib.d.ts +3 -0
  260. package/dist/types/components/UiComponentTunnel/lib.d.ts.map +1 -0
  261. package/dist/types/components/propTypes/index.d.ts +8 -1
  262. package/dist/types/components/propTypes/index.d.ts.map +1 -1
  263. package/dist/types/lib/componentFactory/flowComponent.d.ts.map +1 -1
  264. package/dist/types/lib/hooks/useFieldComponent.d.ts +2 -1
  265. package/dist/types/lib/hooks/useFieldComponent.d.ts.map +1 -1
  266. package/dist/types/lib/hooks/useFieldError.d.ts +6 -1
  267. package/dist/types/lib/hooks/useFieldError.d.ts.map +1 -1
  268. package/dist/types/lib/types/props.d.ts.map +1 -1
  269. package/package.json +6 -6
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.mjs","sources":["../../../../../../../src/components/RadioGroup/RadioGroup.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport styles from \"./RadioGroup.module.scss\";\nimport * as Aria from \"react-aria-components\";\nimport clsx from \"clsx\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport type { ColumnLayoutProps } from \"@/components/ColumnLayout\";\nimport { ColumnLayout } from \"@/components/ColumnLayout\";\nimport { TunnelExit, TunnelProvider } from \"@mittwald/react-tunnel\";\nimport formFieldStyles from \"../FormField/FormField.module.scss\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport { useObjectRef } from \"@react-aria/utils\";\nimport { useMakeFocusable } from \"@/lib/hooks/dom/useMakeFocusable\";\nimport { useFieldComponent } from \"@/lib/hooks/useFieldComponent\";\n\nexport interface RadioGroupProps\n extends\n PropsWithChildren<Omit<Aria.RadioGroupProps, \"children\">>,\n FlowComponentProps,\n Pick<ColumnLayoutProps, \"s\" | \"m\" | \"l\"> {}\n\n/** @flr-generate all */\nexport const RadioGroup = flowComponent(\"RadioGroup\", (props) => {\n const { children, className, s, m, l, ref, ...rest } = props;\n\n const {\n FieldErrorView,\n FieldErrorCaptureContext,\n fieldProps,\n fieldPropsContext,\n } = useFieldComponent(props);\n\n const rootClassName = clsx(formFieldStyles.formField, className);\n const propsContext: PropsContext = {\n RadioButton: {\n tunnelId: \"radioButtons\",\n },\n Radio: {\n tunnelId: \"radios\",\n },\n ...fieldPropsContext,\n };\n\n const localRadioRef = useObjectRef(ref);\n useMakeFocusable(localRadioRef);\n\n return (\n <Aria.RadioGroup\n {...rest}\n className={clsx(rootClassName, fieldProps.className)}\n ref={localRadioRef}\n >\n <TunnelProvider>\n <FieldErrorCaptureContext>\n <PropsContextProvider props={propsContext}>\n <ColumnLayout s={s} m={m} l={l} className={styles.radioGroup}>\n <TunnelExit id=\"radioButtons\" />\n </ColumnLayout>\n\n <ColumnLayout\n s={s ?? [1]}\n m={m ?? [1]}\n l={l ?? [1]}\n rowGap=\"s\"\n className={styles.radioGroup}\n >\n <TunnelExit id=\"radios\" />\n </ColumnLayout>\n\n {children}\n </PropsContextProvider>\n </FieldErrorCaptureContext>\n <FieldErrorView />\n </TunnelProvider>\n </Aria.RadioGroup>\n );\n});\n\nexport default RadioGroup;\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAuBO,MAAM,UAAA,GAAa,aAAA,CAAc,YAAA,EAAc,CAAC,KAAA,KAAU;AAC/D,EAAA,MAAM,EAAE,UAAU,SAAA,EAAW,CAAA,EAAG,GAAG,CAAA,EAAG,GAAA,EAAK,GAAG,IAAA,EAAK,GAAI,KAAA;AAEvD,EAAA,MAAM;AAAA,IACJ,cAAA;AAAA,IACA,wBAAA;AAAA,IACA,UAAA;AAAA,IACA;AAAA,GACF,GAAI,kBAAkB,KAAK,CAAA;AAE3B,EAAA,MAAM,aAAA,GAAgB,IAAA,CAAK,eAAA,CAAgB,SAAA,EAAW,SAAS,CAAA;AAC/D,EAAA,MAAM,YAAA,GAA6B;AAAA,IACjC,WAAA,EAAa;AAAA,MACX,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,KAAA,EAAO;AAAA,MACL,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,GAAG;AAAA,GACL;AAEA,EAAA,MAAM,aAAA,GAAgB,aAAa,GAAG,CAAA;AACtC,EAAA,gBAAA,CAAiB,aAAa,CAAA;AAE9B,EAAA,uBACE,GAAA;AAAA,IAAC,IAAA,CAAK,UAAA;AAAA,IAAL;AAAA,MACE,GAAG,IAAA;AAAA,MACJ,SAAA,EAAW,IAAA,CAAK,aAAA,EAAe,UAAA,CAAW,SAAS,CAAA;AAAA,MACnD,GAAA,EAAK,aAAA;AAAA,MAEL,+BAAC,cAAA,EAAA,EACC,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,wBAAA,EAAA,EACC,QAAA,kBAAA,IAAA,CAAC,oBAAA,EAAA,EAAqB,KAAA,EAAO,YAAA,EAC3B,QAAA,EAAA;AAAA,0BAAA,GAAA,CAAC,YAAA,EAAA,EAAa,CAAA,EAAM,CAAA,EAAM,CAAA,EAAM,SAAA,EAAW,MAAA,CAAO,UAAA,EAChD,QAAA,kBAAA,GAAA,CAAC,UAAA,EAAA,EAAW,EAAA,EAAG,cAAA,EAAe,CAAA,EAChC,CAAA;AAAA,0BAEA,GAAA;AAAA,YAAC,YAAA;AAAA,YAAA;AAAA,cACC,CAAA,EAAG,CAAA,IAAK,CAAC,CAAC,CAAA;AAAA,cACV,CAAA,EAAG,CAAA,IAAK,CAAC,CAAC,CAAA;AAAA,cACV,CAAA,EAAG,CAAA,IAAK,CAAC,CAAC,CAAA;AAAA,cACV,MAAA,EAAO,GAAA;AAAA,cACP,WAAW,MAAA,CAAO,UAAA;AAAA,cAElB,QAAA,kBAAA,GAAA,CAAC,UAAA,EAAA,EAAW,EAAA,EAAG,QAAA,EAAS;AAAA;AAAA,WAC1B;AAAA,UAEC;AAAA,SAAA,EACH,CAAA,EACF,CAAA;AAAA,4BACC,cAAA,EAAA,EAAe;AAAA,OAAA,EAClB;AAAA;AAAA,GACF;AAEJ,CAAC;;;;"}
1
+ {"version":3,"file":"RadioGroup.mjs","sources":["../../../../../../../src/components/RadioGroup/RadioGroup.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport styles from \"./RadioGroup.module.scss\";\nimport * as Aria from \"react-aria-components\";\nimport clsx from \"clsx\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport type { ColumnLayoutProps } from \"@/components/ColumnLayout\";\nimport { ColumnLayout } from \"@/components/ColumnLayout\";\nimport formFieldStyles from \"../FormField/FormField.module.scss\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport { useObjectRef } from \"@react-aria/utils\";\nimport { useMakeFocusable } from \"@/lib/hooks/dom/useMakeFocusable\";\nimport { useFieldComponent } from \"@/lib/hooks/useFieldComponent\";\nimport { UiComponentTunnelExit } from \"../UiComponentTunnel/UiComponentTunnelExit\";\n\nexport interface RadioGroupProps\n extends\n PropsWithChildren<Omit<Aria.RadioGroupProps, \"children\">>,\n FlowComponentProps,\n Pick<ColumnLayoutProps, \"s\" | \"m\" | \"l\"> {}\n\n/** @flr-generate all */\nexport const RadioGroup = flowComponent(\"RadioGroup\", (props) => {\n const { children, className, s, m, l, ref, ...rest } = props;\n\n const {\n FieldErrorView,\n FieldErrorCaptureContext,\n fieldProps,\n fieldPropsContext,\n } = useFieldComponent(props, \"RadioGroup\");\n\n const rootClassName = clsx(formFieldStyles.formField, className);\n const propsContext: PropsContext = {\n RadioButton: {\n tunnel: {\n id: \"radioButtons\",\n component: \"RadioGroup\",\n },\n },\n Radio: {\n tunnel: {\n id: \"radios\",\n component: \"RadioGroup\",\n },\n },\n ...fieldPropsContext,\n };\n\n const localRadioRef = useObjectRef(ref);\n useMakeFocusable(localRadioRef);\n\n return (\n <Aria.RadioGroup\n {...rest}\n className={clsx(rootClassName, fieldProps.className)}\n ref={localRadioRef}\n >\n <FieldErrorCaptureContext>\n <PropsContextProvider props={propsContext}>\n <ColumnLayout s={s} m={m} l={l} className={styles.radioGroup}>\n <UiComponentTunnelExit id=\"radioButtons\" component=\"RadioGroup\" />\n </ColumnLayout>\n\n <ColumnLayout\n s={s ?? [1]}\n m={m ?? [1]}\n l={l ?? [1]}\n rowGap=\"s\"\n className={styles.radioGroup}\n >\n <UiComponentTunnelExit id=\"radios\" component=\"RadioGroup\" />\n </ColumnLayout>\n\n {children}\n </PropsContextProvider>\n </FieldErrorCaptureContext>\n <FieldErrorView />\n </Aria.RadioGroup>\n );\n});\n\nexport default RadioGroup;\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAuBO,MAAM,UAAA,GAAa,aAAA,CAAc,YAAA,EAAc,CAAC,KAAA,KAAU;AAC/D,EAAA,MAAM,EAAE,UAAU,SAAA,EAAW,CAAA,EAAG,GAAG,CAAA,EAAG,GAAA,EAAK,GAAG,IAAA,EAAK,GAAI,KAAA;AAEvD,EAAA,MAAM;AAAA,IACJ,cAAA;AAAA,IACA,wBAAA;AAAA,IACA,UAAA;AAAA,IACA;AAAA,GACF,GAAI,iBAAA,CAAkB,KAAA,EAAO,YAAY,CAAA;AAEzC,EAAA,MAAM,aAAA,GAAgB,IAAA,CAAK,eAAA,CAAgB,SAAA,EAAW,SAAS,CAAA;AAC/D,EAAA,MAAM,YAAA,GAA6B;AAAA,IACjC,WAAA,EAAa;AAAA,MACX,MAAA,EAAQ;AAAA,QACN,EAAA,EAAI,cAAA;AAAA,QACJ,SAAA,EAAW;AAAA;AACb,KACF;AAAA,IACA,KAAA,EAAO;AAAA,MACL,MAAA,EAAQ;AAAA,QACN,EAAA,EAAI,QAAA;AAAA,QACJ,SAAA,EAAW;AAAA;AACb,KACF;AAAA,IACA,GAAG;AAAA,GACL;AAEA,EAAA,MAAM,aAAA,GAAgB,aAAa,GAAG,CAAA;AACtC,EAAA,gBAAA,CAAiB,aAAa,CAAA;AAE9B,EAAA,uBACE,IAAA;AAAA,IAAC,IAAA,CAAK,UAAA;AAAA,IAAL;AAAA,MACE,GAAG,IAAA;AAAA,MACJ,SAAA,EAAW,IAAA,CAAK,aAAA,EAAe,UAAA,CAAW,SAAS,CAAA;AAAA,MACnD,GAAA,EAAK,aAAA;AAAA,MAEL,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,wBAAA,EAAA,EACC,QAAA,kBAAA,IAAA,CAAC,oBAAA,EAAA,EAAqB,KAAA,EAAO,YAAA,EAC3B,QAAA,EAAA;AAAA,0BAAA,GAAA,CAAC,YAAA,EAAA,EAAa,CAAA,EAAM,CAAA,EAAM,CAAA,EAAM,SAAA,EAAW,MAAA,CAAO,UAAA,EAChD,QAAA,kBAAA,GAAA,CAAC,qBAAA,EAAA,EAAsB,EAAA,EAAG,cAAA,EAAe,SAAA,EAAU,cAAa,CAAA,EAClE,CAAA;AAAA,0BAEA,GAAA;AAAA,YAAC,YAAA;AAAA,YAAA;AAAA,cACC,CAAA,EAAG,CAAA,IAAK,CAAC,CAAC,CAAA;AAAA,cACV,CAAA,EAAG,CAAA,IAAK,CAAC,CAAC,CAAA;AAAA,cACV,CAAA,EAAG,CAAA,IAAK,CAAC,CAAC,CAAA;AAAA,cACV,MAAA,EAAO,GAAA;AAAA,cACP,WAAW,MAAA,CAAO,UAAA;AAAA,cAElB,QAAA,kBAAA,GAAA,CAAC,qBAAA,EAAA,EAAsB,EAAA,EAAG,QAAA,EAAS,WAAU,YAAA,EAAa;AAAA;AAAA,WAC5D;AAAA,UAEC;AAAA,SAAA,EACH,CAAA,EACF,CAAA;AAAA,4BACC,cAAA,EAAA,EAAe;AAAA;AAAA;AAAA,GAClB;AAEJ,CAAC;;;;"}
@@ -6,8 +6,7 @@ const radioButton = "flow--radio-group--radio-button";
6
6
  const styles = {
7
7
  label: label,
8
8
  content: content,
9
- radioButton: radioButton
10
- };
9
+ radioButton: radioButton};
11
10
 
12
11
  export { content, styles as default, label, radioButton };
13
12
  //# sourceMappingURL=RadioButton.module.scss.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButton.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
1
+ {"version":3,"file":"RadioButton.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -28,7 +28,7 @@ const Rating = flowComponent("Rating", (props) => {
28
28
  FieldErrorCaptureContext,
29
29
  fieldProps,
30
30
  fieldPropsContext
31
- } = useFieldComponent(props);
31
+ } = useFieldComponent(props, "Rating");
32
32
  const rootClassName = clsx(
33
33
  styles.rating,
34
34
  styles[`size-${size}`],
@@ -1 +1 @@
1
- {"version":3,"file":"Rating.mjs","sources":["../../../../../../../src/components/Rating/Rating.tsx"],"sourcesContent":["import React, { type PropsWithChildren } from \"react\";\nimport styles from \"./Rating.module.scss\";\nimport clsx from \"clsx\";\nimport * as Aria from \"react-aria-components\";\nimport { RatingSegment } from \"@/components/Rating/components/RatingSegment\";\nimport {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport { useFieldComponent } from \"@/lib/hooks/useFieldComponent\";\nimport { useObjectRef } from \"@react-aria/utils\";\nimport { useMakeFocusable } from \"@/lib/hooks/dom/useMakeFocusable\";\n\nexport interface RatingProps\n extends\n FlowComponentProps,\n PropsWithChildren,\n Omit<Aria.RadioGroupProps, \"children\" | \"value\" | \"defaultValue\"> {\n /** The value sets the amount of filled stars. @default: 0 */\n value?: number;\n /** The defaultValue sets the amount of default filled stars. @default: 0 */\n defaultValue?: number;\n /** The size of the component. @default: \"m\" */\n size?: \"s\" | \"m\";\n}\n\n/** @flr-generate all */\nexport const Rating = flowComponent(\"Rating\", (props) => {\n const {\n value,\n defaultValue = 0,\n size = \"m\",\n className,\n children,\n ref,\n ...rest\n } = props;\n\n const {\n FieldErrorView,\n FieldErrorCaptureContext,\n fieldProps,\n fieldPropsContext,\n } = useFieldComponent(props);\n\n const rootClassName = clsx(\n styles.rating,\n styles[`size-${size}`],\n fieldProps.className,\n className,\n );\n\n const localRef = useObjectRef(ref);\n useMakeFocusable(localRef);\n\n const stringValue = value?.toString();\n\n return (\n <Aria.RadioGroup\n {...rest}\n className={rootClassName}\n defaultValue={defaultValue.toString()}\n value={stringValue}\n ref={localRef}\n >\n {(renderProps) => {\n const selectedValue = parseInt(renderProps.state.selectedValue ?? \"0\");\n\n return (\n <>\n <FieldErrorCaptureContext>\n <PropsContextProvider props={fieldPropsContext}>\n {children}\n <div className={styles.ratingSegments}>\n {Array(5)\n .fill(\"\")\n .map((_, index) => (\n <RatingSegment\n key={index}\n index={index}\n selectedValue={selectedValue}\n size={size}\n />\n ))}\n </div>\n </PropsContextProvider>\n </FieldErrorCaptureContext>\n <FieldErrorView />\n </>\n );\n }}\n </Aria.RadioGroup>\n );\n});\n\nexport default Rating;\n"],"names":[],"mappings":";;;;;;;;;;;;;AA4BO,MAAM,MAAA,GAAS,aAAA,CAAc,QAAA,EAAU,CAAC,KAAA,KAAU;AACvD,EAAA,MAAM;AAAA,IACJ,KAAA;AAAA,IACA,YAAA,GAAe,CAAA;AAAA,IACf,IAAA,GAAO,GAAA;AAAA,IACP,SAAA;AAAA,IACA,QAAA;AAAA,IACA,GAAA;AAAA,IACA,GAAG;AAAA,GACL,GAAI,KAAA;AAEJ,EAAA,MAAM;AAAA,IACJ,cAAA;AAAA,IACA,wBAAA;AAAA,IACA,UAAA;AAAA,IACA;AAAA,GACF,GAAI,kBAAkB,KAAK,CAAA;AAE3B,EAAA,MAAM,aAAA,GAAgB,IAAA;AAAA,IACpB,MAAA,CAAO,MAAA;AAAA,IACP,MAAA,CAAO,CAAA,KAAA,EAAQ,IAAI,CAAA,CAAE,CAAA;AAAA,IACrB,UAAA,CAAW,SAAA;AAAA,IACX;AAAA,GACF;AAEA,EAAA,MAAM,QAAA,GAAW,aAAa,GAAG,CAAA;AACjC,EAAA,gBAAA,CAAiB,QAAQ,CAAA;AAEzB,EAAA,MAAM,WAAA,GAAc,OAAO,QAAA,EAAS;AAEpC,EAAA,uBACE,GAAA;AAAA,IAAC,IAAA,CAAK,UAAA;AAAA,IAAL;AAAA,MACE,GAAG,IAAA;AAAA,MACJ,SAAA,EAAW,aAAA;AAAA,MACX,YAAA,EAAc,aAAa,QAAA,EAAS;AAAA,MACpC,KAAA,EAAO,WAAA;AAAA,MACP,GAAA,EAAK,QAAA;AAAA,MAEJ,WAAC,WAAA,KAAgB;AAChB,QAAA,MAAM,aAAA,GAAgB,QAAA,CAAS,WAAA,CAAY,KAAA,CAAM,iBAAiB,GAAG,CAAA;AAErE,QAAA,uBACE,IAAA,CAAA,QAAA,EAAA,EACE,QAAA,EAAA;AAAA,0BAAA,GAAA,CAAC,wBAAA,EAAA,EACC,QAAA,kBAAA,IAAA,CAAC,oBAAA,EAAA,EAAqB,KAAA,EAAO,iBAAA,EAC1B,QAAA,EAAA;AAAA,YAAA,QAAA;AAAA,4BACD,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,MAAA,CAAO,gBACpB,QAAA,EAAA,KAAA,CAAM,CAAC,CAAA,CACL,IAAA,CAAK,EAAE,CAAA,CACP,GAAA,CAAI,CAAC,GAAG,KAAA,qBACP,GAAA;AAAA,cAAC,aAAA;AAAA,cAAA;AAAA,gBAEC,KAAA;AAAA,gBACA,aAAA;AAAA,gBACA;AAAA,eAAA;AAAA,cAHK;AAAA,aAKR,CAAA,EACL;AAAA,WAAA,EACF,CAAA,EACF,CAAA;AAAA,8BACC,cAAA,EAAA,EAAe;AAAA,SAAA,EAClB,CAAA;AAAA,MAEJ;AAAA;AAAA,GACF;AAEJ,CAAC;;;;"}
1
+ {"version":3,"file":"Rating.mjs","sources":["../../../../../../../src/components/Rating/Rating.tsx"],"sourcesContent":["import { type PropsWithChildren } from \"react\";\nimport styles from \"./Rating.module.scss\";\nimport clsx from \"clsx\";\nimport * as Aria from \"react-aria-components\";\nimport { RatingSegment } from \"@/components/Rating/components/RatingSegment\";\nimport {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport { useFieldComponent } from \"@/lib/hooks/useFieldComponent\";\nimport { useObjectRef } from \"@react-aria/utils\";\nimport { useMakeFocusable } from \"@/lib/hooks/dom/useMakeFocusable\";\n\nexport interface RatingProps\n extends\n FlowComponentProps,\n PropsWithChildren,\n Omit<Aria.RadioGroupProps, \"children\" | \"value\" | \"defaultValue\"> {\n /** The value sets the amount of filled stars. @default: 0 */\n value?: number;\n /** The defaultValue sets the amount of default filled stars. @default: 0 */\n defaultValue?: number;\n /** The size of the component. @default: \"m\" */\n size?: \"s\" | \"m\";\n}\n\n/** @flr-generate all */\nexport const Rating = flowComponent(\"Rating\", (props) => {\n const {\n value,\n defaultValue = 0,\n size = \"m\",\n className,\n children,\n ref,\n ...rest\n } = props;\n\n const {\n FieldErrorView,\n FieldErrorCaptureContext,\n fieldProps,\n fieldPropsContext,\n } = useFieldComponent(props, \"Rating\");\n\n const rootClassName = clsx(\n styles.rating,\n styles[`size-${size}`],\n fieldProps.className,\n className,\n );\n\n const localRef = useObjectRef(ref);\n useMakeFocusable(localRef);\n\n const stringValue = value?.toString();\n\n return (\n <Aria.RadioGroup\n {...rest}\n className={rootClassName}\n defaultValue={defaultValue.toString()}\n value={stringValue}\n ref={localRef}\n >\n {(renderProps) => {\n const selectedValue = parseInt(renderProps.state.selectedValue ?? \"0\");\n\n return (\n <>\n <FieldErrorCaptureContext>\n <PropsContextProvider props={fieldPropsContext}>\n {children}\n <div className={styles.ratingSegments}>\n {Array(5)\n .fill(\"\")\n .map((_, index) => (\n <RatingSegment\n key={index}\n index={index}\n selectedValue={selectedValue}\n size={size}\n />\n ))}\n </div>\n </PropsContextProvider>\n </FieldErrorCaptureContext>\n <FieldErrorView />\n </>\n );\n }}\n </Aria.RadioGroup>\n );\n});\n\nexport default Rating;\n"],"names":[],"mappings":";;;;;;;;;;;;;AA4BO,MAAM,MAAA,GAAS,aAAA,CAAc,QAAA,EAAU,CAAC,KAAA,KAAU;AACvD,EAAA,MAAM;AAAA,IACJ,KAAA;AAAA,IACA,YAAA,GAAe,CAAA;AAAA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ACL,IAAA,CAAK,EAAE,CAAA,CACP,GAAA,CAAI,CAAC,GAAG,KAAA,qBACP,GAAA;AAAA,cAAC,aAAA;AAAA,cAAA;AAAA,gBAEC,KAAA;AAAA,gBACA,aAAA;AAAA,gBACA;AAAA,eAAA;AAAA,cAHK;AAAA,aAKR,CAAA,EACL;AAAA,WAAA,EACF,CAAA,EACF,CAAA;AAAA,8BACC,cAAA,EAAA,EAAe;AAAA,SAAA,EAClB,CAAA;AAAA,MAEJ;AAAA;AAAA,GACF;AAEJ,CAAC;;;;"}
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
4
  import * as Aria from 'react-aria-components';
5
5
  import formFieldStyles from '../FormField/FormField.module.scss.mjs';
6
6
  import styles from './SearchField.module.scss.mjs';
@@ -20,7 +20,7 @@ import locales from '../../../../../_virtual/_.locale.json@e940efc6da10fdf09417e
20
20
  import { useLocalizedStringFormatter } from '../TranslationProvider/useLocalizedStringFormatter.mjs';
21
21
  import { useFieldComponent } from '../../lib/hooks/useFieldComponent.mjs';
22
22
  import { useControlledHostValueProps } from '../../lib/remote/useControlledHostValueProps.mjs';
23
- import { TunnelProvider, TunnelExit } from '@mittwald/react-tunnel';
23
+ import { UiComponentTunnelExit } from '../UiComponentTunnel/UiComponentTunnelExit.mjs';
24
24
 
25
25
  const SearchField = flowComponent("SearchField", (props) => {
26
26
  const { children, className, ref, ...rest } = useControlledHostValueProps(props);
@@ -29,7 +29,7 @@ const SearchField = flowComponent("SearchField", (props) => {
29
29
  FieldErrorCaptureContext,
30
30
  fieldProps,
31
31
  fieldPropsContext
32
- } = useFieldComponent(props);
32
+ } = useFieldComponent(props, "SearchField");
33
33
  const rootClassName = clsx(
34
34
  formFieldStyles.formField,
35
35
  styles.searchField,
@@ -40,19 +40,22 @@ const SearchField = flowComponent("SearchField", (props) => {
40
40
  const propsContext = {
41
41
  Kbd: {
42
42
  isDisabled: props.isDisabled,
43
- tunnelId: "kbd",
43
+ tunnel: {
44
+ id: "kbd",
45
+ component: "SearchField"
46
+ },
44
47
  className: styles.kbd
45
48
  },
46
49
  ...fieldPropsContext
47
50
  };
48
- return /* @__PURE__ */ jsx(
51
+ return /* @__PURE__ */ jsxs(
49
52
  Aria.SearchField,
50
53
  {
51
54
  ...rest,
52
55
  ...fieldProps,
53
56
  "aria-label": searchText,
54
57
  className: clsx(rootClassName, fieldProps.className),
55
- children: /* @__PURE__ */ jsxs(TunnelProvider, { children: [
58
+ children: [
56
59
  /* @__PURE__ */ jsxs(PropsContextProvider, { props: propsContext, children: [
57
60
  /* @__PURE__ */ jsx(FieldErrorCaptureContext, { children }),
58
61
  /* @__PURE__ */ jsxs("div", { className: styles.inputContainer, children: [
@@ -65,7 +68,7 @@ const SearchField = flowComponent("SearchField", (props) => {
65
68
  ref
66
69
  }
67
70
  ),
68
- /* @__PURE__ */ jsx(TunnelExit, { id: "kbd" }),
71
+ /* @__PURE__ */ jsx(UiComponentTunnelExit, { id: "kbd", component: "SearchField" }),
69
72
  /* @__PURE__ */ jsx(
70
73
  Button,
71
74
  {
@@ -78,7 +81,7 @@ const SearchField = flowComponent("SearchField", (props) => {
78
81
  ] })
79
82
  ] }),
80
83
  /* @__PURE__ */ jsx(FieldErrorView, {})
81
- ] })
84
+ ]
82
85
  }
83
86
  );
84
87
  });
@@ -1 +1 @@
1
- {"version":3,"file":"SearchField.mjs","sources":["../../../../../../../src/components/SearchField/SearchField.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport formFieldStyles from \"../FormField/FormField.module.scss\";\nimport styles from \"./SearchField.module.scss\";\nimport clsx from \"clsx\";\nimport { type PropsContext, PropsContextProvider } from \"@/lib/propsContext\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport { Button } from \"@/components/Button\";\nimport { IconClose, IconSearch } from \"@/components/Icon/components/icons\";\nimport locales from \"./locales/*.locale.json\";\nimport { useLocalizedStringFormatter } from \"@/components/TranslationProvider/useLocalizedStringFormatter\";\nimport { useFieldComponent } from \"@/lib/hooks/useFieldComponent\";\nimport { useControlledHostValueProps } from \"@/lib/remote/useControlledHostValueProps\";\nimport { TunnelExit, TunnelProvider } from \"@mittwald/react-tunnel\";\n\nexport interface SearchFieldProps\n extends\n PropsWithChildren<Omit<Aria.SearchFieldProps, \"children\">>,\n FlowComponentProps<HTMLInputElement> {}\n\n/** @flr-generate all */\nexport const SearchField = flowComponent(\"SearchField\", (props) => {\n const { children, className, ref, ...rest } =\n useControlledHostValueProps(props);\n\n const {\n FieldErrorView,\n FieldErrorCaptureContext,\n fieldProps,\n fieldPropsContext,\n } = useFieldComponent(props);\n\n const rootClassName = clsx(\n formFieldStyles.formField,\n styles.searchField,\n className,\n );\n\n const stringFormatter = useLocalizedStringFormatter(locales, \"SearchField\");\n const searchText = stringFormatter.format(`search`);\n\n const propsContext: PropsContext = {\n Kbd: {\n isDisabled: props.isDisabled,\n tunnelId: \"kbd\",\n className: styles.kbd,\n },\n ...fieldPropsContext,\n };\n\n return (\n <Aria.SearchField\n {...rest}\n {...fieldProps}\n aria-label={searchText}\n className={clsx(rootClassName, fieldProps.className)}\n >\n <TunnelProvider>\n <PropsContextProvider props={propsContext}>\n <FieldErrorCaptureContext>{children}</FieldErrorCaptureContext>\n\n <div className={styles.inputContainer}>\n <IconSearch className={styles.searchIcon} />\n <Aria.Input\n placeholder={searchText}\n className={styles.input}\n ref={ref}\n />\n <TunnelExit id=\"kbd\" />\n <Button\n className={styles.clearButton}\n variant=\"plain\"\n color=\"secondary\"\n >\n <IconClose />\n </Button>\n </div>\n </PropsContextProvider>\n <FieldErrorView />\n </TunnelProvider>\n </Aria.SearchField>\n );\n});\n\nexport default SearchField;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsBO,MAAM,WAAA,GAAc,a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UAAA,EAAA,EAAW,SAAA,EAAW,MAAA,CAAO,UAAA,EAAY,CAAA;AAAA,4BAC1C,GAAA;AAAA,cAAC,IAAA,CAAK,KAAA;AAAA,cAAL;AAAA,gBACC,WAAA,EAAa,UAAA;AAAA,gBACb,WAAW,MAAA,CAAO,KAAA;AAAA,gBAClB;AAAA;AAAA,aACF;AAAA,4BACA,GAAA,CAAC,UAAA,EAAA,EAAW,EAAA,EAAG,KAAA,EAAM,CAAA;AAAA,4BACrB,GAAA;AAAA,cAAC,MAAA;AAAA,cAAA;AAAA,gBACC,WAAW,MAAA,CAAO,WAAA;AAAA,gBAClB,OAAA,EAAQ,OAAA;AAAA,gBACR,KAAA,EAAM,WAAA;AAAA,gBAEN,8BAAC,SAAA,EAAA,EAAU;AAAA;AAAA;AACb,WAAA,EACF;AAAA,SAAA,EACF,CAAA;AAAA,4BACC,cAAA,EAAA,EAAe;AAAA,OAAA,EAClB;AAAA;AAAA,GACF;AAEJ,CAAC;;;;"}
1
+ {"version":3,"file":"SearchField.mjs","sources":["../../../../../../../src/components/SearchField/SearchField.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport formFieldStyles from \"../FormField/FormField.module.scss\";\nimport styles from \"./SearchField.module.scss\";\nimport clsx from \"clsx\";\nimport { type PropsContext, PropsContextProvider } from \"@/lib/propsContext\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport { Button } from \"@/components/Button\";\nimport { IconClose, IconSearch } from \"@/components/Icon/components/icons\";\nimport locales from \"./locales/*.locale.json\";\nimport { useLocalizedStringFormatter } from \"@/components/TranslationProvider/useLocalizedStringFormatter\";\nimport { useFieldComponent } from \"@/lib/hooks/useFieldComponent\";\nimport { useControlledHostValueProps } from \"@/lib/remote/useControlledHostValueProps\";\nimport { UiComponentTunnelExit } from \"../UiComponentTunnel/UiComponentTunnelExit\";\n\nexport interface SearchFieldProps\n extends\n PropsWithChildren<Omit<Aria.SearchFieldProps, \"children\">>,\n FlowComponentProps<HTMLInputElement> {}\n\n/** @flr-generate all */\nexport const SearchField = flowComponent(\"SearchField\", (props) => {\n const { children, className, ref, ...rest } =\n useControlledHostValueProps(props);\n\n const {\n FieldErrorView,\n FieldErrorCaptureContext,\n fieldProps,\n fieldPropsContext,\n } = useFieldComponent(props, \"SearchField\");\n\n const rootClassName = clsx(\n formFieldStyles.formField,\n styles.searchField,\n className,\n );\n\n const stringFormatter = useLocalizedStringFormatter(locales, \"SearchField\");\n const searchText = stringFormatter.format(`search`);\n\n const propsContext: PropsContext = {\n Kbd: {\n isDisabled: props.isDisabled,\n tunnel: {\n id: \"kbd\",\n component: \"SearchField\",\n },\n className: styles.kbd,\n },\n ...fieldPropsContext,\n };\n\n return (\n <Aria.SearchField\n {...rest}\n {...fieldProps}\n aria-label={searchText}\n className={clsx(rootClassName, fieldProps.className)}\n >\n <PropsContextProvider props={propsContext}>\n <FieldErrorCaptureContext>{children}</FieldErrorCaptureContext>\n\n <div className={styles.inputContainer}>\n <IconSearch className={styles.searchIcon} />\n <Aria.Input\n placeholder={searchText}\n className={styles.input}\n ref={ref}\n />\n <UiComponentTunnelExit id=\"kbd\" component=\"SearchField\" />\n <Button\n className={styles.clearButton}\n variant=\"plain\"\n color=\"secondary\"\n >\n <IconClose />\n </Button>\n </div>\n </PropsContextProvider>\n <FieldErrorView />\n </Aria.SearchField>\n );\n});\n\nexport default SearchField;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsBO,MAAM,WAAA,GAAc,aAAA,CAAc,aAAA,EAAe,CAAC,KAAA,KAAU;AACjE,EAAA,MAAM,EAAE,UAAU,SAAA,EAAW,GAAA,EAAK,GAAG,IAAA,EAAK,GACxC,4BAA4B,KAAK,CAAA;AAEnC,EAAA,MAAM;AAAA,IACJ,cAAA;AAAA,IACA,wBAAA;AAAA,IACA,UAAA;AAAA,IACA;AAAA,GACF,GAA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AAA;AAAA,gBAClB;AAAA;AAAA,aACF;AAAA,4BACA,GAAA,CAAC,qBAAA,EAAA,EAAsB,EAAA,EAAG,KAAA,EAAM,WAAU,aAAA,EAAc,CAAA;AAAA,4BACxD,GAAA;AAAA,cAAC,MAAA;AAAA,cAAA;AAAA,gBACC,WAAW,MAAA,CAAO,WAAA;AAAA,gBAClB,OAAA,EAAQ,OAAA;AAAA,gBACR,KAAA,EAAM,WAAA;AAAA,gBAEN,8BAAC,SAAA,EAAA,EAAU;AAAA;AAAA;AACb,WAAA,EACF;AAAA,SAAA,EACF,CAAA;AAAA,4BACC,cAAA,EAAA,EAAe;AAAA;AAAA;AAAA,GAClB;AAEJ,CAAC;;;;"}
@@ -5,57 +5,91 @@ import styles from './SectionHeader.module.scss.mjs';
5
5
  import clsx from 'clsx';
6
6
  import '../../../../lib/propsContext/propsContext.mjs';
7
7
  import { PropsContextProvider } from '../../../../lib/propsContext/components/PropsContextProvider.mjs';
8
- import { TunnelProvider, TunnelExit } from '@mittwald/react-tunnel';
8
+ import { flowComponent } from '../../../../lib/componentFactory/flowComponent.mjs';
9
+ import { UiComponentTunnelExit } from '../../../UiComponentTunnel/UiComponentTunnelExit.mjs';
9
10
 
10
- const SectionHeader = (props) => {
11
- const { children, className, ref } = props;
12
- const rootClassName = clsx(styles.sectionHeader, className);
13
- const propsContext = {
14
- Switch: {
15
- labelPosition: "leading",
16
- tunnelId: "actions"
17
- },
18
- Button: {
19
- size: "s",
20
- tunnelId: "actions"
21
- },
22
- FileField: { tunnelId: "actions", Button: { size: "s" } },
23
- ContextMenuTrigger: {
24
- tunnelId: "actions",
11
+ const SectionHeader = flowComponent(
12
+ "SectionHeader",
13
+ (props) => {
14
+ const { children, className, ref } = props;
15
+ const rootClassName = clsx(styles.sectionHeader, className);
16
+ const propsContext = {
17
+ Switch: {
18
+ labelPosition: "leading",
19
+ tunnel: {
20
+ id: "actions",
21
+ component: "SectionHeader"
22
+ }
23
+ },
25
24
  Button: {
26
- tunnelId: null
25
+ size: "s",
26
+ tunnel: {
27
+ id: "actions",
28
+ component: "SectionHeader"
29
+ }
30
+ },
31
+ FileField: {
32
+ tunnel: {
33
+ id: "actions",
34
+ component: "SectionHeader"
35
+ },
36
+ Button: { size: "s" }
37
+ },
38
+ ContextMenuTrigger: {
39
+ tunnel: {
40
+ id: "actions",
41
+ component: "SectionHeader"
42
+ },
43
+ Button: {
44
+ tunnel: null
45
+ }
46
+ },
47
+ PopoverTrigger: {
48
+ tunnel: {
49
+ id: "actions",
50
+ component: "SectionHeader"
51
+ },
52
+ Button: {
53
+ tunnel: null
54
+ }
55
+ },
56
+ ContextualHelpTrigger: {
57
+ tunnel: {
58
+ id: "actions",
59
+ component: "SectionHeader"
60
+ },
61
+ Button: {
62
+ tunnel: null
63
+ }
64
+ },
65
+ Action: {
66
+ tunnel: {
67
+ id: "actions",
68
+ component: "SectionHeader"
69
+ },
70
+ Button: {
71
+ tunnel: null
72
+ }
73
+ },
74
+ Heading: {
75
+ level: 2
76
+ },
77
+ Link: {
78
+ tunnel: {
79
+ id: "actions",
80
+ component: "SectionHeader"
81
+ }
27
82
  }
28
- },
29
- PopoverTrigger: {
30
- tunnelId: "actions",
31
- Button: {
32
- tunnelId: null
33
- }
34
- },
35
- ContextualHelpTrigger: {
36
- tunnelId: "actions",
37
- Button: {
38
- tunnelId: null
39
- }
40
- },
41
- Action: {
42
- tunnelId: "actions",
43
- Button: {
44
- tunnelId: null
45
- }
46
- },
47
- Heading: {
48
- level: 2
49
- },
50
- Link: {
51
- tunnelId: "actions"
52
- }
53
- };
54
- return /* @__PURE__ */ jsx("header", { ref, className: rootClassName, children: /* @__PURE__ */ jsx(PropsContextProvider, { props: propsContext, children: /* @__PURE__ */ jsxs(TunnelProvider, { children: [
55
- children,
56
- /* @__PURE__ */ jsx("div", { className: styles.actions, children: /* @__PURE__ */ jsx(TunnelExit, { id: "actions" }) })
57
- ] }) }) });
58
- };
83
+ };
84
+ return /* @__PURE__ */ jsx("header", { ref, className: rootClassName, children: /* @__PURE__ */ jsxs(PropsContextProvider, { props: propsContext, children: [
85
+ children,
86
+ /* @__PURE__ */ jsx("div", { className: styles.actions, children: /* @__PURE__ */ jsx(UiComponentTunnelExit, { id: "actions", component: "SectionHeader" }) })
87
+ ] }) });
88
+ },
89
+ {
90
+ type: "layout"
91
+ }
92
+ );
59
93
 
60
94
  export { SectionHeader, SectionHeader as default };
61
95
  //# sourceMappingURL=SectionHeader.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"SectionHeader.mjs","sources":["../../../../../../../../../src/components/Section/components/SectionHeader/SectionHeader.tsx"],"sourcesContent":["import type { FC, PropsWithChildren, RefAttributes } from \"react\";\nimport styles from \"./SectionHeader.module.scss\";\nimport clsx from \"clsx\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport { TunnelExit, TunnelProvider } from \"@mittwald/react-tunnel\";\n\nexport type SectionHeaderProps = PropsWithChildren &\n PropsWithClassName &\n RefAttributes<HTMLHeadingElement>;\n\nexport const SectionHeader: FC<SectionHeaderProps> = (props) => {\n const { children, className, ref } = props;\n\n const rootClassName = clsx(styles.sectionHeader, className);\n\n const propsContext: PropsContext = {\n Switch: {\n labelPosition: \"leading\",\n tunnelId: \"actions\",\n },\n Button: {\n size: \"s\",\n tunnelId: \"actions\",\n },\n FileField: { tunnelId: \"actions\", Button: { size: \"s\" } },\n ContextMenuTrigger: {\n tunnelId: \"actions\",\n Button: {\n tunnelId: null,\n },\n },\n PopoverTrigger: {\n tunnelId: \"actions\",\n Button: {\n tunnelId: null,\n },\n },\n ContextualHelpTrigger: {\n tunnelId: \"actions\",\n Button: {\n tunnelId: null,\n },\n },\n Action: {\n tunnelId: \"actions\",\n Button: {\n tunnelId: null,\n },\n },\n Heading: {\n level: 2,\n },\n Link: {\n tunnelId: \"actions\",\n },\n };\n\n return (\n <header ref={ref} className={rootClassName}>\n <PropsContextProvider props={propsContext}>\n <TunnelProvider>\n {children}\n <div className={styles.actions}>\n <TunnelExit id=\"actions\" />\n </div>\n </TunnelProvider>\n </PropsContextProvider>\n </header>\n );\n};\n\nexport default SectionHeader;\n"],"names":[],"mappings":";;;;;;;AAYO,MAAM,aAAA,GAAwC,CAAC,KAAA,KAAU;AAC9D,EAAA,MAAM,EAAE,QAAA,EAAU,SAAA,EAAW,GAAA,EAAI,GAAI,KAAA;AAErC,EAAA,MAAM,aAAA,GAAgB,IAAA,CAAK,MAAA,CAAO,aAAA,EAAe,SAAS,CAAA;AAE1D,EAAA,MAAM,YAAA,GAA6B;AAAA,IACjC,MAAA,EAAQ;AAAA,MACN,aAAA,EAAe,SAAA;AAAA,MACf,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,MAAA,EAAQ;AAAA,MACN,IAAA,EAAM,GAAA;AAAA,MACN,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,SAAA,EAAW,EAAE,QAAA,EAAU,SAAA,EAAW,QAAQ,EAAE,IAAA,EAAM,KAAI,EAAE;AAAA,IACxD,kBAAA,EAAoB;AAAA,MAClB,QAAA,EAAU,SAAA;AAAA,MACV,MAAA,EAAQ;AAAA,QACN,QAAA,EAAU;AAAA;AACZ,KACF;AAAA,IACA,cAAA,EAAgB;AAAA,MACd,QAAA,EAAU,SAAA;AAAA,MACV,MAAA,EAAQ;AAAA,QACN,QAAA,EAAU;AAAA;AACZ,KACF;AAAA,IACA,qBAAA,EAAuB;AAAA,MACrB,QAAA,EAAU,SAAA;AAAA,MACV,MAAA,EAAQ;AAAA,QACN,QAAA,EAAU;AAAA;AACZ,KACF;AAAA,IACA,MAAA,EAAQ;AAAA,MACN,QAAA,EAAU,SAAA;AAAA,MACV,MAAA,EAAQ;AAAA,QACN,QAAA,EAAU;AAAA;AACZ,KACF;AAAA,IACA,OAAA,EAAS;AAAA,MACP,KAAA,EAAO;AAAA,KACT;AAAA,IACA,IAAA,EAAM;AAAA,MACJ,QAAA,EAAU;AAAA;AACZ,GACF;AAEA,EAAA,uBACE,GAAA,CAAC,QAAA,EAAA,EAAO,GAAA,EAAU,SAAA,EAAW,aAAA,EAC3B,8BAAC,oBAAA,EAAA,EAAqB,KAAA,EAAO,YAAA,EAC3B,QAAA,kBAAA,IAAA,CAAC,cAAA,EAAA,EACE,QAAA,EAAA;AAAA,IAAA,QAAA;AAAA,oBACD,GAAA,CAAC,SAAI,SAAA,EAAW,MAAA,CAAO,SACrB,QAAA,kBAAA,GAAA,CAAC,UAAA,EAAA,EAAW,EAAA,EAAG,SAAA,EAAU,CAAA,EAC3B;AAAA,GAAA,EACF,GACF,CAAA,EACF,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"SectionHeader.mjs","sources":["../../../../../../../../../src/components/Section/components/SectionHeader/SectionHeader.tsx"],"sourcesContent":["import type { FC, PropsWithChildren, RefAttributes } from \"react\";\nimport styles from \"./SectionHeader.module.scss\";\nimport clsx from \"clsx\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport { UiComponentTunnelExit } from \"@/components/UiComponentTunnel/UiComponentTunnelExit\";\n\nexport type SectionHeaderProps = PropsWithChildren &\n PropsWithClassName &\n RefAttributes<HTMLHeadingElement>;\n\nexport const SectionHeader: FC<SectionHeaderProps> = flowComponent(\n \"SectionHeader\",\n (props) => {\n const { children, className, ref } = props;\n\n const rootClassName = clsx(styles.sectionHeader, className);\n\n const propsContext: PropsContext = {\n Switch: {\n labelPosition: \"leading\",\n tunnel: {\n id: \"actions\",\n component: \"SectionHeader\",\n },\n },\n Button: {\n size: \"s\",\n tunnel: {\n id: \"actions\",\n component: \"SectionHeader\",\n },\n },\n FileField: {\n tunnel: {\n id: \"actions\",\n component: \"SectionHeader\",\n },\n Button: { size: \"s\" },\n },\n ContextMenuTrigger: {\n tunnel: {\n id: \"actions\",\n component: \"SectionHeader\",\n },\n Button: {\n tunnel: null,\n },\n },\n PopoverTrigger: {\n tunnel: {\n id: \"actions\",\n component: \"SectionHeader\",\n },\n Button: {\n tunnel: null,\n },\n },\n ContextualHelpTrigger: {\n tunnel: {\n id: \"actions\",\n component: \"SectionHeader\",\n },\n Button: {\n tunnel: null,\n },\n },\n Action: {\n tunnel: {\n id: \"actions\",\n component: \"SectionHeader\",\n },\n Button: {\n tunnel: null,\n },\n },\n Heading: {\n level: 2,\n },\n Link: {\n tunnel: {\n id: \"actions\",\n component: \"SectionHeader\",\n },\n },\n };\n\n return (\n <header ref={ref} className={rootClassName}>\n <PropsContextProvider props={propsContext}>\n {children}\n <div className={styles.actions}>\n <UiComponentTunnelExit id=\"actions\" component=\"SectionHeader\" />\n </div>\n </PropsContextProvider>\n </header>\n );\n },\n {\n type: \"layout\",\n },\n);\n\nexport default SectionHeader;\n"],"names":[],"mappings":";;;;;;;;AAaO,MAAM,aAAA,GAAwC,aAAA;AAAA,EACnD,eAAA;AAAA,EACA,CAAC,KAAA,KAAU;AACT,IAAA,MAAM,EAAE,QAAA,EAAU,SAAA,EAAW,GAAA,EAAI,GAAI,KAAA;AAErC,IAAA,MAAM,aAAA,GAAgB,IAAA,CAAK,MAAA,CAAO,aAAA,EAAe,SAAS,CAAA;AAE1D,IAAA,MAAM,YAAA,GAA6B;AAAA,MACjC,MAAA,EAAQ;AAAA,QACN,aAAA,EAAe,SAAA;AAAA,QACf,MAAA,EAAQ;AAAA,UACN,EAAA,EAAI,SAAA;AAAA,UACJ,SAAA,EAAW;AAAA;AACb,OACF;AAAA,MACA,MAAA,EAAQ;AAAA,QACN,IAAA,EAAM,GAAA;AAAA,QACN,MAAA,EAAQ;AAAA,UACN,EAAA,EAAI,SAAA;AAAA,UACJ,SAAA,EAAW;AAAA;AACb,OACF;AAAA,MACA,SAAA,EAAW;AAAA,QACT,MAAA,EAAQ;AAAA,UACN,EAAA,EAAI,SAAA;AAAA,UACJ,SAAA,EA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,EAAA,EAAsB,EAAA,EAAG,SAAA,EAAU,SAAA,EAAU,eAAA,EAAgB,CAAA,EAChE;AAAA,KAAA,EACF,CAAA,EACF,CAAA;AAAA,EAEJ,CAAA;AAAA,EACA;AAAA,IACE,IAAA,EAAM;AAAA;AAEV;;;;"}
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
4
  import { flowComponent } from '../../lib/componentFactory/flowComponent.mjs';
5
5
  import 'react';
6
6
  import * as Aria from 'react-aria-components';
@@ -9,11 +9,11 @@ import styles from './SegmentedControl.module.scss.mjs';
9
9
  import { getContainerBreakpointSizeClassName } from '../../lib/getContainerBreakpointSizeClassName.mjs';
10
10
  import '../../lib/propsContext/propsContext.mjs';
11
11
  import { PropsContextProvider } from '../../lib/propsContext/components/PropsContextProvider.mjs';
12
- import { TunnelProvider, TunnelExit } from '@mittwald/react-tunnel';
13
12
  import clsx from 'clsx';
14
13
  import { useObjectRef } from '@react-aria/utils';
15
14
  import { useMakeFocusable } from '../../lib/hooks/dom/useMakeFocusable.mjs';
16
15
  import { useFieldComponent } from '../../lib/hooks/useFieldComponent.mjs';
16
+ import { UiComponentTunnelExit } from '../UiComponentTunnel/UiComponentTunnelExit.mjs';
17
17
 
18
18
  const SegmentedControl = flowComponent("SegmentedControl", (props) => {
19
19
  const {
@@ -28,7 +28,7 @@ const SegmentedControl = flowComponent("SegmentedControl", (props) => {
28
28
  fieldPropsContext,
29
29
  fieldProps,
30
30
  FieldErrorCaptureContext
31
- } = useFieldComponent(props);
31
+ } = useFieldComponent(props, "SegmentedControl");
32
32
  const rootClassName = clsx(
33
33
  formFieldStyles.formField,
34
34
  styles.segmentedControlContainer,
@@ -37,26 +37,35 @@ const SegmentedControl = flowComponent("SegmentedControl", (props) => {
37
37
  );
38
38
  const propsContext = {
39
39
  Segment: {
40
- tunnelId: "segments",
40
+ tunnel: {
41
+ id: "segments",
42
+ component: "SegmentedControl"
43
+ },
41
44
  className: styles.segment
42
45
  },
43
46
  ...fieldPropsContext
44
47
  };
45
48
  const objectRef = useObjectRef(ref);
46
49
  useMakeFocusable(objectRef);
47
- return /* @__PURE__ */ jsx(
50
+ return /* @__PURE__ */ jsxs(
48
51
  Aria.RadioGroup,
49
52
  {
50
53
  ...rest,
51
54
  className: clsx(rootClassName, fieldProps.className),
52
55
  ref: objectRef,
53
- children: /* @__PURE__ */ jsxs(TunnelProvider, { children: [
56
+ children: [
54
57
  /* @__PURE__ */ jsx(FieldErrorCaptureContext, { children: /* @__PURE__ */ jsxs(PropsContextProvider, { dependencies: ["segment"], props: propsContext, children: [
55
- /* @__PURE__ */ jsx("div", { className: styles.segmentedControl, children: /* @__PURE__ */ jsx("div", { className: styles.segments, children: /* @__PURE__ */ jsx(TunnelExit, { id: "segments" }) }) }),
58
+ /* @__PURE__ */ jsx("div", { className: styles.segmentedControl, children: /* @__PURE__ */ jsx("div", { className: styles.segments, children: /* @__PURE__ */ jsx(
59
+ UiComponentTunnelExit,
60
+ {
61
+ id: "segments",
62
+ component: "SegmentedControl"
63
+ }
64
+ ) }) }),
56
65
  children
57
66
  ] }) }),
58
67
  /* @__PURE__ */ jsx(FieldErrorView, {})
59
- ] })
68
+ ]
60
69
  }
61
70
  );
62
71
  });
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedControl.mjs","sources":["../../../../../../../src/components/SegmentedControl/SegmentedControl.tsx"],"sourcesContent":["import {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\nimport type { PropsWithContainerBreakpointSize } from \"@/lib/types/props\";\nimport { type PropsWithChildren } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport formFieldStyles from \"@/components/FormField/FormField.module.scss\";\nimport styles from \"./SegmentedControl.module.scss\";\nimport { getContainerBreakpointSizeClassName } from \"@/lib/getContainerBreakpointSizeClassName\";\nimport { type PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport { TunnelExit, TunnelProvider } from \"@mittwald/react-tunnel\";\nimport clsx from \"clsx\";\nimport { useObjectRef } from \"@react-aria/utils\";\nimport { useMakeFocusable } from \"@/lib/hooks/dom/useMakeFocusable\";\nimport { useFieldComponent } from \"@/lib/hooks/useFieldComponent\";\n\nexport interface SegmentedControlProps\n extends\n PropsWithChildren<Omit<Aria.RadioGroupProps, \"children\" | \"ref\">>,\n FlowComponentProps<HTMLDivElement>,\n PropsWithContainerBreakpointSize {}\n\n/** @flr-generate all */\nexport const SegmentedControl = flowComponent(\"SegmentedControl\", (props) => {\n const {\n children,\n className,\n containerBreakpointSize = \"m\",\n ref,\n ...rest\n } = props;\n\n const {\n FieldErrorView,\n fieldPropsContext,\n fieldProps,\n FieldErrorCaptureContext,\n } = useFieldComponent(props);\n\n const rootClassName = clsx(\n formFieldStyles.formField,\n styles.segmentedControlContainer,\n className,\n styles[getContainerBreakpointSizeClassName(containerBreakpointSize)],\n );\n\n const propsContext: PropsContext = {\n Segment: {\n tunnelId: \"segments\",\n className: styles.segment,\n },\n ...fieldPropsContext,\n };\n\n const objectRef = useObjectRef(ref);\n useMakeFocusable(objectRef);\n\n return (\n <Aria.RadioGroup\n {...rest}\n className={clsx(rootClassName, fieldProps.className)}\n ref={objectRef}\n >\n <TunnelProvider>\n <FieldErrorCaptureContext>\n <PropsContextProvider dependencies={[\"segment\"]} props={propsContext}>\n <div className={styles.segmentedControl}>\n <div className={styles.segments}>\n <TunnelExit id=\"segments\" />\n </div>\n </div>\n {children}\n </PropsContextProvider>\n </FieldErrorCaptureContext>\n <FieldErrorView />\n </TunnelProvider>\n </Aria.RadioGroup>\n );\n});\n\nexport default SegmentedControl;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAyBO,MAAM,gBAAA,GAAmB,aAAA,CAAc,kBAAA,EAAoB,CAAC,KAAA,KAAU;AAC3E,EAAA,MAAM;AAAA,IACJ,QAAA;AAAA,IACA,SAAA;A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ACF,CAAA;AAAA,UACC;AAAA,SAAA,EACH,CAAA,EACF,CAAA;AAAA,4BACC,cAAA,EAAA,EAAe;AAAA,OAAA,EAClB;AAAA;AAAA,GACF;AAEJ,CAAC;;;;"}
1
+ {"version":3,"file":"SegmentedControl.mjs","sources":["../../../../../../../src/components/SegmentedControl/SegmentedControl.tsx"],"sourcesContent":["import {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\nimport type { PropsWithContainerBreakpointSize } from \"@/lib/types/props\";\nimport { type PropsWithChildren } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport formFieldStyles from \"@/components/FormField/FormField.module.scss\";\nimport styles from \"./SegmentedControl.module.scss\";\nimport { getContainerBreakpointSizeClassName } from \"@/lib/getContainerBreakpointSizeClassName\";\nimport { type PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport clsx from \"clsx\";\nimport { useObjectRef } from \"@react-aria/utils\";\nimport { useMakeFocusable } from \"@/lib/hooks/dom/useMakeFocusable\";\nimport { useFieldComponent } from \"@/lib/hooks/useFieldComponent\";\nimport { UiComponentTunnelExit } from \"../UiComponentTunnel/UiComponentTunnelExit\";\n\nexport interface SegmentedControlProps\n extends\n PropsWithChildren<Omit<Aria.RadioGroupProps, \"children\" | \"ref\">>,\n FlowComponentProps<HTMLDivElement>,\n PropsWithContainerBreakpointSize {}\n\n/** @flr-generate all */\nexport const SegmentedControl = flowComponent(\"SegmentedControl\", (props) => {\n const {\n children,\n className,\n containerBreakpointSize = \"m\",\n ref,\n ...rest\n } = props;\n\n const {\n FieldErrorView,\n fieldPropsContext,\n fieldProps,\n FieldErrorCaptureContext,\n } = useFieldComponent(props, \"SegmentedControl\");\n\n const rootClassName = clsx(\n formFieldStyles.formField,\n styles.segmentedControlContainer,\n className,\n styles[getContainerBreakpointSizeClassName(containerBreakpointSize)],\n );\n\n const propsContext: PropsContext = {\n Segment: {\n tunnel: {\n id: \"segments\",\n component: \"SegmentedControl\",\n },\n className: styles.segment,\n },\n ...fieldPropsContext,\n };\n\n const objectRef = useObjectRef(ref);\n useMakeFocusable(objectRef);\n\n return (\n <Aria.RadioGroup\n {...rest}\n className={clsx(rootClassName, fieldProps.className)}\n ref={objectRef}\n >\n <FieldErrorCaptureContext>\n <PropsContextProvider dependencies={[\"segment\"]} props={propsContext}>\n <div className={styles.segmentedControl}>\n <div className={styles.segments}>\n <UiComponentTunnelExit\n id=\"segments\"\n component=\"SegmentedControl\"\n />\n </div>\n </div>\n {children}\n </PropsContextProvider>\n </FieldErrorCaptureContext>\n <FieldErrorView />\n </Aria.RadioGroup>\n );\n});\n\nexport default SegmentedControl;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAyBO,MAAM,gBAAA,GAAmB,aAAA,CAAc,kBAAA,EAAoB,CAAC,KAAA,KAAU;AAC3E,EAAA,MAAM;AAAA,IACJ,QAAA;AAAA,IACA,SAAA;AAAA,IACA,uBAAA,GAA0B,GAAA;AAAA,IAC1B,GAAA;AAAA,IACA,GAAG;AAAA,GACL,GAAI,KAAA;AAEJ,EAAA,MAAM;AAAA,IACJ,cAAA;AAAA,IACA,iBAAA;AAAA,IACA,UAAA;AAAA,IACA;AAAA,GACF,GAAI,iBAAA,CAAkB,KAAA,EAAO,kBAAkB,CAAA;AAE/C,EAAA,MAAM,aAAA,GAAgB,IAAA;AAAA,IACpB,eAAA,CAAgB,SAAA;AAAA,IAChB,MAAA,CAAO,yBAAA;AAAA,IACP,SAAA;AAAA,IACA,MAAA,CAAO,mCAAA,CAAoC,uBAAuB,CAAC;AAAA,GACrE;AAEA,EAAA,MAAM,YAAA,GAA6B;AAAA,IACjC,OAAA,EAAS;AAAA,MACP,MAAA,EAAQ;AAAA,QACN,EAAA,EAAI,UAAA;AAAA,QACJ,SAAA,EAAW;AAAA,OACb;AAAA,MACA,WAAW,MAAA,CAAO;AAAA,KACpB;AAAA,IACA,GAAG;AAAA,GACL;AAEA,EAAA,MAAM,SAAA,GAAY,aAAa,GAAG,CAAA;AAClC,EAAA,gBAAA,CAAiB,SAAS,CAAA;AAE1B,EAAA,uBACE,IAAA;AAAA,IAAC,IAAA,CAAK,UAAA;AAAA,IAAL;AAAA,MACE,GAAG,IAAA;AAAA,MACJ,SAAA,EAAW,IAAA,CAAK,aAAA,EAAe,UAAA,CAAW,SAAS,CAAA;AAAA,MACnD,GAAA,EAAK,SAAA;AAAA,MAEL,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,wBAAA,EAAA,EACC,+BAAC,oBAAA,EAAA,EAAqB,YAAA,EAAc,CAAC,SAAS,CAAA,EAAG,OAAO,YAAA,EACtD,QAAA,EAAA;AAAA,0BAAA,GAAA,CAAC,KAAA,EAAA,EAAI,WAAW,MAAA,CAAO,gBAAA,EACrB,8BAAC,KAAA,EAAA,EAAI,SAAA,EAAW,OAAO,QAAA,EACrB,QAAA,kBAAA,GAAA;AAAA,YAAC,qBAAA;AAAA,YAAA;AAAA,cACC,EAAA,EAAG,UAAA;AAAA,cACH,SAAA,EAAU;AAAA;AAAA,aAEd,CAAA,EACF,CAAA;AAAA,UACC;AAAA,SAAA,EACH,CAAA,EACF,CAAA;AAAA,4BACC,cAAA,EAAA,EAAe;AAAA;AAAA;AAAA,GAClB;AAEJ,CAAC;;;;"}
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import * as Aria from 'react-aria-components';
6
6
  import '../../lib/propsContext/propsContext.mjs';
@@ -15,13 +15,13 @@ import '../../views/IconView.mjs';
15
15
  import { IconChevronDown } from '../Icon/components/icons/IconChevronDown.mjs';
16
16
  import { flowComponent } from '../../lib/componentFactory/flowComponent.mjs';
17
17
  import { Options } from '../Options/Options.mjs';
18
- import { TunnelProvider, TunnelExit } from '@mittwald/react-tunnel';
19
18
  import 'mobx';
20
19
  import 'remeda';
21
20
  import '@react-aria/utils';
22
21
  import 'dot-prop';
23
22
  import { useOverlayController } from '../../lib/controller/overlay/useOverlayController.mjs';
24
23
  import { useFieldComponent } from '../../lib/hooks/useFieldComponent.mjs';
24
+ import { UiComponentTunnelExit } from '../UiComponentTunnel/UiComponentTunnelExit.mjs';
25
25
 
26
26
  const Select = flowComponent("Select", (props) => {
27
27
  const {
@@ -38,7 +38,7 @@ const Select = flowComponent("Select", (props) => {
38
38
  fieldPropsContext,
39
39
  fieldProps,
40
40
  FieldErrorCaptureContext
41
- } = useFieldComponent(props);
41
+ } = useFieldComponent(props, "Select");
42
42
  const rootClassName = clsx(
43
43
  styles.select,
44
44
  formFieldStyles.formField,
@@ -46,7 +46,10 @@ const Select = flowComponent("Select", (props) => {
46
46
  );
47
47
  const propsContext = {
48
48
  Option: {
49
- tunnelId: "options"
49
+ tunnel: {
50
+ id: "options",
51
+ component: "Select"
52
+ }
50
53
  },
51
54
  ...fieldPropsContext
52
55
  };
@@ -54,7 +57,7 @@ const Select = flowComponent("Select", (props) => {
54
57
  reuseControllerFromContext: false
55
58
  });
56
59
  const isOpen = controller.useIsOpen();
57
- return /* @__PURE__ */ jsx(
60
+ return /* @__PURE__ */ jsxs(
58
61
  Aria.Select,
59
62
  {
60
63
  ...rest,
@@ -69,7 +72,7 @@ const Select = flowComponent("Select", (props) => {
69
72
  onOpenChange: (isOpen2) => !isReadOnly && controller.setOpen(isOpen2),
70
73
  isOpen,
71
74
  "data-readonly": isReadOnly,
72
- children: /* @__PURE__ */ jsxs(TunnelProvider, { children: [
75
+ children: [
73
76
  /* @__PURE__ */ jsx(FieldErrorCaptureContext, { children: /* @__PURE__ */ jsxs(PropsContextProvider, { props: propsContext, children: [
74
77
  /* @__PURE__ */ jsxs(
75
78
  Aria.Button,
@@ -84,10 +87,10 @@ const Select = flowComponent("Select", (props) => {
84
87
  }
85
88
  ),
86
89
  children,
87
- /* @__PURE__ */ jsx(Options, { controller, children: /* @__PURE__ */ jsx(TunnelExit, { id: "options" }) })
90
+ /* @__PURE__ */ jsx(Options, { controller, children: /* @__PURE__ */ jsx(UiComponentTunnelExit, { id: "options", component: "Select" }) })
88
91
  ] }) }),
89
92
  /* @__PURE__ */ jsx(FieldErrorView, {})
90
- ] })
93
+ ]
91
94
  }
92
95
  );
93
96
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Select.mjs","sources":["../../../../../../../src/components/Select/Select.tsx"],"sourcesContent":["import { type PropsWithChildren } from \"react\";\nimport type { Key } from \"react-aria-components\";\nimport * as Aria from \"react-aria-components\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport formFieldStyles from \"@/components/FormField/FormField.module.scss\";\nimport styles from \"./Select.module.scss\";\nimport clsx from \"clsx\";\nimport { IconChevronDown } from \"@/components/Icon/components/icons\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport { Options } from \"@/components/Options\";\nimport { TunnelExit, TunnelProvider } from \"@mittwald/react-tunnel\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport { useOverlayController } from \"@/lib/controller\";\nimport { useFieldComponent } from \"@/lib/hooks/useFieldComponent\";\n\nexport interface SelectProps\n extends\n PropsWithChildren<Omit<Aria.SelectProps, \"children\" | \"className\" | \"ref\">>,\n FlowComponentProps<HTMLButtonElement>,\n PropsWithClassName {\n /** Handler that is called when the selected value changes. */\n onChange?: (value: Key | null) => void;\n /** Whether the component is read only. */\n isReadOnly?: boolean;\n}\n\n/** @flr-generate all */\nexport const Select = flowComponent(\"Select\", (props) => {\n const {\n children,\n className,\n onChange,\n onSelectionChange,\n isReadOnly,\n ref,\n ...rest\n } = props;\n\n const {\n FieldErrorView,\n fieldPropsContext,\n fieldProps,\n FieldErrorCaptureContext,\n } = useFieldComponent(props);\n\n const rootClassName = clsx(\n styles.select,\n formFieldStyles.formField,\n className,\n );\n\n const propsContext: PropsContext = {\n Option: {\n tunnelId: \"options\",\n },\n ...fieldPropsContext,\n };\n\n const controller = useOverlayController(\"Select\", {\n reuseControllerFromContext: false,\n });\n const isOpen = controller.useIsOpen();\n\n return (\n <Aria.Select\n {...rest}\n {...fieldProps}\n className={clsx(rootClassName, fieldProps.className)}\n onChange={(value) => {\n if (!isReadOnly) {\n onChange?.(value);\n onSelectionChange?.(value);\n }\n }}\n onOpenChange={(isOpen) => !isReadOnly && controller.setOpen(isOpen)}\n isOpen={isOpen}\n data-readonly={isReadOnly}\n >\n <TunnelProvider>\n <FieldErrorCaptureContext>\n <PropsContextProvider props={propsContext}>\n <Aria.Button\n data-readonly={isReadOnly}\n className={styles.toggle}\n ref={ref}\n >\n <Aria.SelectValue />\n <IconChevronDown />\n </Aria.Button>\n {children}\n <Options controller={controller}>\n <TunnelExit id=\"options\" />\n </Options>\n </PropsContextProvider>\n </FieldErrorCaptureContext>\n <FieldErrorView />\n </TunnelProvider>\n </Aria.Select>\n );\n});\n\nexport default Select;\n"],"names":["isOpen"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA6BO,MAAM,MAAA,GAAS,aAAA,CAAc,QAAA,EAAU,CAAC,KAAA,KAAU;AACvD,EAAA,MAAM;AAAA,IACJ,QAAA;AAAA,IACA,SAAA;AAAA,IACA,QAAA;AAAA,IACA,iBAAA;AAAA,IACA,UAAA;AAAA,IACA,GAAA;AAAA,IACA,GAAG;AAAA,GACL,GAAI,KAAA;AAEJ,EAAA,MAAM;AAAA,IACJ,cAAA;AAAA,IACA,iBAAA;AAAA,IACA,UAAA;AAAA,IACA;AAAA,GACF,GAAI,kBAAkB,KAAK,CAAA;AAE3B,EAAA,MAAM,aAAA,GAAgB,IAAA;AAAA,IACpB,MAAA,CAAO,MAAA;AAAA,IACP,eAAA,CAAgB,SAAA;AAAA,IAChB;AAAA,GACF;AAEA,EAAA,MAAM,YAAA,GAA6B;AAAA,IACjC,MAAA,EAAQ;AAAA,MACN,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,G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A,SAAA,EACF,CAAA,EACF,CAAA;AAAA,4BACC,cAAA,EAAA,EAAe;AAAA,OAAA,EAClB;AAAA;AAAA,GACF;AAEJ,CAAC;;;;"}
1
+ {"version":3,"file":"Select.mjs","sources":["../../../../../../../src/components/Select/Select.tsx"],"sourcesContent":["import { type PropsWithChildren } from \"react\";\nimport type { Key } from \"react-aria-components\";\nimport * as Aria from \"react-aria-components\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport formFieldStyles from \"@/components/FormField/FormField.module.scss\";\nimport styles from \"./Select.module.scss\";\nimport clsx from \"clsx\";\nimport { IconChevronDown } from \"@/components/Icon/components/icons\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport { Options } from \"@/components/Options\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport { useOverlayController } from \"@/lib/controller\";\nimport { useFieldComponent } from \"@/lib/hooks/useFieldComponent\";\nimport { UiComponentTunnelExit } from \"../UiComponentTunnel/UiComponentTunnelExit\";\n\nexport interface SelectProps\n extends\n PropsWithChildren<Omit<Aria.SelectProps, \"children\" | \"className\" | \"ref\">>,\n FlowComponentProps<HTMLButtonElement>,\n PropsWithClassName {\n /** Handler that is called when the selected value changes. */\n onChange?: (value: Key | null) => void;\n /** Whether the component is read only. */\n isReadOnly?: boolean;\n}\n\n/** @flr-generate all */\nexport const Select = flowComponent(\"Select\", (props) => {\n const {\n children,\n className,\n onChange,\n onSelectionChange,\n isReadOnly,\n ref,\n ...rest\n } = props;\n\n const {\n FieldErrorView,\n fieldPropsContext,\n fieldProps,\n FieldErrorCaptureContext,\n } = useFieldComponent(props, \"Select\");\n\n const rootClassName = clsx(\n styles.select,\n formFieldStyles.formField,\n className,\n );\n\n const propsContext: PropsContext = {\n Option: {\n tunnel: {\n id: \"options\",\n component: \"Select\",\n },\n },\n ...fieldPropsContext,\n };\n\n const controller = useOverlayController(\"Select\", {\n reuseControllerFromContext: false,\n });\n const isOpen = controller.useIsOpen();\n\n return (\n <Aria.Select\n {...rest}\n {...fieldProps}\n className={clsx(rootClassName, fieldProps.className)}\n onChange={(value) => {\n if (!isReadOnly) {\n onChange?.(value);\n onSelectionChange?.(value);\n }\n }}\n onOpenChange={(isOpen) => !isReadOnly && controller.setOpen(isOpen)}\n isOpen={isOpen}\n data-readonly={isReadOnly}\n >\n <FieldErrorCaptureContext>\n <PropsContextProvider props={propsContext}>\n <Aria.Button\n data-readonly={isReadOnly}\n className={styles.toggle}\n ref={ref}\n >\n <Aria.SelectValue />\n <IconChevronDown />\n </Aria.Button>\n {children}\n <Options controller={controller}>\n <UiComponentTunnelExit id=\"options\" component=\"Select\" />\n </Options>\n </PropsContextProvider>\n </FieldErrorCaptureContext>\n <FieldErrorView />\n </Aria.Select>\n );\n});\n\nexport default Select;\n"],"names":["isOpen"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA6BO,MAAM,MAAA,GAAS,aAAA,CAAc,QAAA,EAAU,CAAC,KAAA,KAAU;AACvD,EAAA,MAAM;AAAA,IACJ,QAAA;AAAA,IACA,SAAA;AAAA,IACA,QAAA;AAAA,IACA,iBAAA;AAAA,IACA,UAAA;AAAA,IACA,GAAA;AAAA,IACA,GAAG;AAAA,GACL,GAAI,KAAA;AAEJ,EAAA,MAAM;AAAA,IACJ,cAAA;AAAA,IACA,iBAAA;AAAA,IACA,UAAA;AAAA,IACA;AAAA,GACF,GAAI,iBAAA,CAAkB,KAAA,EAAO,QAAQ,CAAA;AAErC,EAAA,MAAM,aAAA,GAAgB,IAAA;AAAA,IACpB,MAAA,CAAO,MAAA;AAAA,IACP,eAAA,CAAgB,SAAA;AAAA,IAChB;AAAA,GACF;AAEA,EAAA,MAAM,YAAA,GAA6B;AAAA,IACjC,MAAA,EAAQ;AAAA,MACN,MAAA,EAAQ;AAAA,QACN,EAAA,EAAI,SAAA;AAAA,QACJ,SAAA,EAAW;AAA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AA,EAAU,QAAA,EAAS,CAAA,EACzD;AAAA,SAAA,EACF,CAAA,EACF,CAAA;AAAA,4BACC,cAAA,EAAA,EAAe;AAAA;AAAA;AAAA,GAClB;AAEJ,CAAC;;;;"}
@@ -4,8 +4,7 @@ const select = "flow--select";
4
4
  const toggle = "flow--select--toggle";
5
5
  const styles = {
6
6
  select: select,
7
- toggle: toggle
8
- };
7
+ toggle: toggle};
9
8
 
10
9
  export { styles as default, select, toggle };
11
10
  //# sourceMappingURL=Select.module.scss.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
1
+ {"version":3,"file":"Select.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -17,9 +17,9 @@ import { IconMinus } from '../Icon/components/icons/IconMinus.mjs';
17
17
  import { IconPlus } from '../Icon/components/icons/IconPlus.mjs';
18
18
  import locales from '../../../../../_virtual/_.locale.json@3ed2dc50f997451bdd85a713c54e1025.mjs';
19
19
  import { useLocalizedStringFormatter } from '../TranslationProvider/useLocalizedStringFormatter.mjs';
20
- import { TunnelProvider, TunnelExit } from '@mittwald/react-tunnel';
21
20
  import { useObjectRef } from '@react-aria/utils';
22
21
  import { useFieldComponent } from '../../lib/hooks/useFieldComponent.mjs';
22
+ import { UiComponentTunnelExit } from '../UiComponentTunnel/UiComponentTunnelExit.mjs';
23
23
 
24
24
  const Slider = flowComponent("Slider", (props) => {
25
25
  const {
@@ -45,14 +45,17 @@ const Slider = flowComponent("Slider", (props) => {
45
45
  FieldErrorCaptureContext,
46
46
  fieldPropsContext,
47
47
  fieldProps
48
- } = useFieldComponent(props);
48
+ } = useFieldComponent(props, "Slider");
49
49
  const stringFormatter = useLocalizedStringFormatter(locales, "Slider");
50
50
  const objectRef = useObjectRef(ref);
51
51
  const propsContext = {
52
52
  ...fieldPropsContext,
53
53
  Label: {
54
54
  unstyled: true,
55
- tunnelId: "label",
55
+ tunnel: {
56
+ id: "label",
57
+ component: "Slider"
58
+ },
56
59
  ...fieldPropsContext.Label,
57
60
  className: styles.label
58
61
  }
@@ -65,12 +68,12 @@ const Slider = flowComponent("Slider", (props) => {
65
68
  isDisabled,
66
69
  defaultValue,
67
70
  step,
68
- children: /* @__PURE__ */ jsx(TunnelProvider, { children: /* @__PURE__ */ jsxs(PropsContextProvider, { props: propsContext, children: [
71
+ children: /* @__PURE__ */ jsxs(PropsContextProvider, { props: propsContext, children: [
69
72
  /* @__PURE__ */ jsx(FieldErrorCaptureContext, { children }),
70
73
  !sliderOnly && /* @__PURE__ */ jsxs("div", { className: styles.text, children: [
71
74
  /* @__PURE__ */ jsx(Aria.SliderOutput, { className: styles.value }),
72
75
  " ",
73
- /* @__PURE__ */ jsx(TunnelExit, { id: "label" })
76
+ /* @__PURE__ */ jsx(UiComponentTunnelExit, { id: "label", component: "Slider" })
74
77
  ] }),
75
78
  /* @__PURE__ */ jsx(Aria.SliderTrack, { className: styles.track, children: ({ state }) => /* @__PURE__ */ jsxs(
76
79
  PropsContextProvider,
@@ -137,7 +140,7 @@ const Slider = flowComponent("Slider", (props) => {
137
140
  }
138
141
  ) }),
139
142
  /* @__PURE__ */ jsx(FieldErrorView, {})
140
- ] }) })
143
+ ] })
141
144
  }
142
145
  ) });
143
146
  });