@mittwald/flow-react-components 1.2.0-next.4 → 1.2.0-next.41

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 (536) hide show
  1. package/AGENTS.md +47 -0
  2. package/MIGRATION.md +212 -11
  3. package/dist/assets/component-index.json +1 -1
  4. package/dist/assets/doc-properties.json +1 -1
  5. package/dist/css/all-layered.css +1 -1
  6. package/dist/css/all.css +1 -1
  7. package/dist/js/_virtual/_10.locale.mjs +3 -9
  8. package/dist/js/_virtual/_11.locale.mjs +9 -3
  9. package/dist/js/_virtual/_12.locale.mjs +3 -9
  10. package/dist/js/_virtual/_4.locale.mjs +9 -3
  11. package/dist/js/_virtual/_5.locale.mjs +3 -21
  12. package/dist/js/_virtual/_6.locale.mjs +21 -3
  13. package/dist/js/_virtual/_7.locale.mjs +3 -3
  14. package/dist/js/_virtual/_8.locale.mjs +3 -3
  15. package/dist/js/_virtual/_9.locale.mjs +3 -3
  16. package/dist/js/default.mjs +8 -7
  17. package/dist/js/packages/components/src/components/Activity/Activity.mjs +16 -5
  18. package/dist/js/packages/components/src/components/Activity/Activity.mjs.map +1 -1
  19. package/dist/js/packages/components/src/components/Activity/context.mjs +20 -0
  20. package/dist/js/packages/components/src/components/Activity/context.mjs.map +1 -0
  21. package/dist/js/packages/components/src/components/AlertBadge/AlertBadge.mjs +1 -1
  22. package/dist/js/packages/components/src/components/Autocomplete/Autocomplete.mjs +3 -5
  23. package/dist/js/packages/components/src/components/Autocomplete/Autocomplete.mjs.map +1 -1
  24. package/dist/js/packages/components/src/components/Badge/Badge.mjs +21 -2
  25. package/dist/js/packages/components/src/components/Badge/Badge.mjs.map +1 -1
  26. package/dist/js/packages/components/src/components/Badge/Badge.module.mjs +3 -1
  27. package/dist/js/packages/components/src/components/Badge/Badge.module.mjs.map +1 -1
  28. package/dist/js/packages/components/src/components/Badge/components/ContextualHelpButton/ContextualHelpButton.mjs +25 -0
  29. package/dist/js/packages/components/src/components/Badge/components/ContextualHelpButton/ContextualHelpButton.mjs.map +1 -0
  30. package/dist/js/packages/components/src/components/Button/Button.mjs +8 -10
  31. package/dist/js/packages/components/src/components/Button/Button.mjs.map +1 -1
  32. package/dist/js/packages/components/src/components/Button/Button.module.mjs +5 -3
  33. package/dist/js/packages/components/src/components/Button/Button.module.mjs.map +1 -1
  34. package/dist/js/packages/components/src/components/Calendar/components/RangeCalendar/helpers/useCalendarDateRangePresets.mjs +1 -1
  35. package/dist/js/packages/components/src/components/CartesianChart/CartesianChart.mjs +34 -26
  36. package/dist/js/packages/components/src/components/CartesianChart/CartesianChart.mjs.map +1 -1
  37. package/dist/js/packages/components/src/components/CartesianChart/components/Bar/Bar.mjs +40 -0
  38. package/dist/js/packages/components/src/components/CartesianChart/components/Bar/Bar.mjs.map +1 -0
  39. package/dist/js/packages/components/src/components/CartesianChart/components/ChartTooltip/TooltipProgressBar.mjs +1 -1
  40. package/dist/js/packages/components/src/components/CartesianChart/components/XAxis/XAxis.mjs +13 -2
  41. package/dist/js/packages/components/src/components/CartesianChart/components/XAxis/XAxis.mjs.map +1 -1
  42. package/dist/js/packages/components/src/components/CartesianChart/components/YAxis/YAxis.mjs +12 -2
  43. package/dist/js/packages/components/src/components/CartesianChart/components/YAxis/YAxis.mjs.map +1 -1
  44. package/dist/js/packages/components/src/components/CartesianChart/context.mjs +11 -0
  45. package/dist/js/packages/components/src/components/CartesianChart/context.mjs.map +1 -0
  46. package/dist/js/packages/components/src/components/CartesianChart/types.mjs.map +1 -1
  47. package/dist/js/packages/components/src/components/CodeBlock/CodeBlock.mjs +1 -1
  48. package/dist/js/packages/components/src/components/ComboBox/ComboBox.mjs +3 -5
  49. package/dist/js/packages/components/src/components/ComboBox/ComboBox.mjs.map +1 -1
  50. package/dist/js/packages/components/src/components/ContextualHelp/components/ContextualHelpTrigger/ContextualHelpTrigger.mjs +1 -1
  51. package/dist/js/packages/components/src/components/CopyButton/CopyButton.mjs +1 -1
  52. package/dist/js/packages/components/src/components/DateRangePicker/components/DateRangeInput/DateRangeInput.module.mjs.map +1 -1
  53. package/dist/js/packages/components/src/components/FileCard/FileCard.mjs +1 -1
  54. package/dist/js/packages/components/src/components/Label/Label.mjs +1 -1
  55. package/dist/js/packages/components/src/components/LightBox/LightBox.mjs +1 -1
  56. package/dist/js/packages/components/src/components/Link/Link.mjs +1 -2
  57. package/dist/js/packages/components/src/components/Link/Link.mjs.map +1 -1
  58. package/dist/js/packages/components/src/components/Link/Link.module.mjs +2 -2
  59. package/dist/js/packages/components/src/components/Link/Link.module.mjs.map +1 -1
  60. package/dist/js/packages/components/src/components/List/components/Footer/components/ShowNextBatchButton/ShowNextBatchButton.mjs +1 -1
  61. package/dist/js/packages/components/src/components/List/components/Header/components/ActiveFilters/ActiveFilters.mjs +1 -1
  62. package/dist/js/packages/components/src/components/List/components/Header/components/AllFiltersModal/AllFiltersModal.mjs +1 -1
  63. package/dist/js/packages/components/src/components/List/components/Header/components/AllFiltersModal/FilterAccordionDateRange.mjs +1 -1
  64. package/dist/js/packages/components/src/components/List/components/Header/components/AllFiltersModal/FilterAccordionRadioGroup.mjs +1 -1
  65. package/dist/js/packages/components/src/components/List/components/Header/components/FilterContextMenu/DateRangeFilterPopover.mjs +1 -1
  66. package/dist/js/packages/components/src/components/List/components/Header/components/SortingContextMenu/SortingContextMenu.mjs +1 -1
  67. package/dist/js/packages/components/src/components/List/components/Header/components/ViewModeContextMenu/ViewModeContextMenu.mjs +1 -1
  68. package/dist/js/packages/components/src/components/List/components/Items/components/Item/Item.mjs +1 -1
  69. package/dist/js/packages/components/src/components/List/components/Items/components/Item/Item.mjs.map +1 -1
  70. package/dist/js/packages/components/src/components/List/components/Items/components/Item/Item.module.mjs +3 -1
  71. package/dist/js/packages/components/src/components/List/components/Items/components/Item/Item.module.mjs.map +1 -1
  72. package/dist/js/packages/components/src/components/List/components/Items/components/Item/components/AccordionButton.mjs +1 -1
  73. package/dist/js/packages/components/src/components/List/components/Items/components/Item/components/OptionsButton/OptionsButton.mjs +1 -1
  74. package/dist/js/packages/components/src/components/List/components/Items/views/GridListItem/GridListItem.mjs +13 -3
  75. package/dist/js/packages/components/src/components/List/components/Items/views/GridListItem/GridListItem.mjs.map +1 -1
  76. package/dist/js/packages/components/src/components/List/model/item/ItemView.mjs +7 -0
  77. package/dist/js/packages/components/src/components/List/model/item/ItemView.mjs.map +1 -1
  78. package/dist/js/packages/components/src/components/List/views/EmptyView/EmptyView.mjs +1 -1
  79. package/dist/js/packages/components/src/components/Markdown/Markdown.mjs +8 -1
  80. package/dist/js/packages/components/src/components/Markdown/Markdown.mjs.map +1 -1
  81. package/dist/js/packages/components/src/components/Markdown/Markdown.module.mjs.map +1 -1
  82. package/dist/js/packages/components/src/components/Modal/Modal.mjs +1 -1
  83. package/dist/js/packages/components/src/components/Modal/Modal.module.mjs.map +1 -1
  84. package/dist/js/packages/components/src/components/Navigation/Navigation.mjs +9 -0
  85. package/dist/js/packages/components/src/components/Navigation/Navigation.mjs.map +1 -1
  86. package/dist/js/packages/components/src/components/Navigation/Navigation.module.mjs.map +1 -1
  87. package/dist/js/packages/components/src/components/NotificationProvider/NotificationContainer/NotificationContainer.mjs +1 -0
  88. package/dist/js/packages/components/src/components/NotificationProvider/NotificationContainer/NotificationContainer.mjs.map +1 -1
  89. package/dist/js/packages/components/src/components/NotificationProvider/NotificationContainer/NotificationContainer.module.mjs.map +1 -1
  90. package/dist/js/packages/components/src/components/Option/Option.mjs +21 -4
  91. package/dist/js/packages/components/src/components/Option/Option.mjs.map +1 -1
  92. package/dist/js/packages/components/src/components/Option/optionsTunnel.mjs +36 -0
  93. package/dist/js/packages/components/src/components/Option/optionsTunnel.mjs.map +1 -0
  94. package/dist/js/packages/components/src/components/Overlay/components/OverlayContent.mjs +3 -0
  95. package/dist/js/packages/components/src/components/Overlay/components/OverlayContent.mjs.map +1 -1
  96. package/dist/js/packages/components/src/components/PasswordCreationField/components/ValidationResultButton/ValidationResultButton.mjs +1 -1
  97. package/dist/js/packages/components/src/components/PasswordCreationField/components/ValidationResultEntry/ValidationResultEntry.mjs +1 -1
  98. package/dist/js/packages/components/src/components/Popover/components/PopoverContent/PopoverContent.mjs +3 -0
  99. package/dist/js/packages/components/src/components/Popover/components/PopoverContent/PopoverContent.mjs.map +1 -1
  100. package/dist/js/packages/components/src/components/ProgressBar/components/ProgressBarValue.mjs +1 -1
  101. package/dist/js/packages/components/src/components/Select/Select.mjs +2 -4
  102. package/dist/js/packages/components/src/components/Select/Select.mjs.map +1 -1
  103. package/dist/js/packages/components/src/components/TabNavigation/TabNavigation.mjs +1 -1
  104. package/dist/js/packages/components/src/components/Tabs/Tabs.mjs +1 -1
  105. package/dist/js/packages/components/src/components/Tabs/Tabs.mjs.map +1 -1
  106. package/dist/js/packages/components/src/components/Tabs/components/FallbackTab/FallbackTab.mjs +1 -1
  107. package/dist/js/packages/components/src/components/Tabs/components/TabList/TabList.mjs.map +1 -1
  108. package/dist/js/packages/components/src/components/Tooltip/Tooltip.mjs +3 -0
  109. package/dist/js/packages/components/src/components/Tooltip/Tooltip.mjs.map +1 -1
  110. package/dist/js/packages/components/src/lib/componentFactory/flowComponent.mjs +1 -0
  111. package/dist/js/packages/components/src/lib/componentFactory/flowComponent.mjs.map +1 -1
  112. package/dist/js/packages/components/src/lib/react/remote.mjs +43 -3
  113. package/dist/js/packages/components/src/lib/react/remote.mjs.map +1 -1
  114. package/dist/js/packages/components/src/lib/types/props.mjs.map +1 -1
  115. package/dist/js/packages/components/src/views/ContextualHelpTriggerView.mjs +16 -0
  116. package/dist/js/packages/components/src/views/ContextualHelpTriggerView.mjs.map +1 -0
  117. package/dist/js/packages/design-tokens/dist/json-runtime/all-dark.mjs +6 -1
  118. package/dist/js/packages/design-tokens/dist/json-runtime/all-dark.mjs.map +1 -1
  119. package/dist/js/packages/design-tokens/dist/json-runtime/all-light.mjs +6 -1
  120. package/dist/js/packages/design-tokens/dist/json-runtime/all-light.mjs.map +1 -1
  121. package/dist/types/components/Activity/Activity.d.ts.map +1 -1
  122. package/dist/types/components/Activity/context.d.ts +12 -0
  123. package/dist/types/components/Activity/context.d.ts.map +1 -0
  124. package/dist/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  125. package/dist/types/components/Badge/Badge.d.ts.map +1 -1
  126. package/dist/types/components/Badge/components/ContextualHelpButton/ContextualHelpButton.d.ts +14 -0
  127. package/dist/types/components/Badge/components/ContextualHelpButton/ContextualHelpButton.d.ts.map +1 -0
  128. package/dist/types/components/Badge/components/ContextualHelpButton/index.d.ts +3 -0
  129. package/dist/types/components/Badge/components/ContextualHelpButton/index.d.ts.map +1 -0
  130. package/dist/types/components/Button/Button.d.ts.map +1 -1
  131. package/dist/types/components/CartesianChart/CartesianChart.d.ts +12 -1
  132. package/dist/types/components/CartesianChart/CartesianChart.d.ts.map +1 -1
  133. package/dist/types/components/CartesianChart/components/Bar/Bar.d.ts +19 -0
  134. package/dist/types/components/CartesianChart/components/Bar/Bar.d.ts.map +1 -0
  135. package/dist/types/components/CartesianChart/components/Bar/index.d.ts +3 -0
  136. package/dist/types/components/CartesianChart/components/Bar/index.d.ts.map +1 -0
  137. package/dist/types/components/CartesianChart/components/Bar/view.d.ts +8 -0
  138. package/dist/types/components/CartesianChart/components/Bar/view.d.ts.map +1 -0
  139. package/dist/types/components/CartesianChart/components/XAxis/XAxis.d.ts +10 -1
  140. package/dist/types/components/CartesianChart/components/XAxis/XAxis.d.ts.map +1 -1
  141. package/dist/types/components/CartesianChart/components/YAxis/YAxis.d.ts +10 -1
  142. package/dist/types/components/CartesianChart/components/YAxis/YAxis.d.ts.map +1 -1
  143. package/dist/types/components/CartesianChart/context.d.ts +8 -0
  144. package/dist/types/components/CartesianChart/context.d.ts.map +1 -0
  145. package/dist/types/components/CartesianChart/index.d.ts +1 -0
  146. package/dist/types/components/CartesianChart/index.d.ts.map +1 -1
  147. package/dist/types/components/CartesianChart/types.d.ts +6 -0
  148. package/dist/types/components/CartesianChart/types.d.ts.map +1 -1
  149. package/dist/types/components/ComboBox/ComboBox.d.ts.map +1 -1
  150. package/dist/types/components/Link/Link.d.ts.map +1 -1
  151. package/dist/types/components/List/components/Items/components/Item/Item.d.ts.map +1 -1
  152. package/dist/types/components/List/components/Items/views/GridListItem/GridListItem.d.ts.map +1 -1
  153. package/dist/types/components/List/model/item/ItemView.d.ts +5 -0
  154. package/dist/types/components/List/model/item/ItemView.d.ts.map +1 -1
  155. package/dist/types/components/Markdown/Markdown.d.ts.map +1 -1
  156. package/dist/types/components/Modal/components/ModalTrigger/ModalTrigger.d.ts +1 -0
  157. package/dist/types/components/Modal/components/ModalTrigger/ModalTrigger.d.ts.map +1 -1
  158. package/dist/types/components/Navigation/Navigation.d.ts.map +1 -1
  159. package/dist/types/components/Option/Option.d.ts +17 -0
  160. package/dist/types/components/Option/Option.d.ts.map +1 -1
  161. package/dist/types/components/Option/optionsTunnel.d.ts +22 -0
  162. package/dist/types/components/Option/optionsTunnel.d.ts.map +1 -0
  163. package/dist/types/components/Overlay/components/OverlayContent.d.ts.map +1 -1
  164. package/dist/types/components/Popover/components/PopoverContent/PopoverContent.d.ts.map +1 -1
  165. package/dist/types/components/Select/Select.d.ts.map +1 -1
  166. package/dist/types/components/Tabs/Tabs.d.ts.map +1 -1
  167. package/dist/types/components/Tabs/components/TabList/TabList.d.ts +1 -1
  168. package/dist/types/components/Tabs/components/TabList/TabList.d.ts.map +1 -1
  169. package/dist/types/components/Tooltip/Tooltip.d.ts.map +1 -1
  170. package/dist/types/lib/componentFactory/flowComponent.d.ts.map +1 -1
  171. package/dist/types/lib/react/remote.d.ts +31 -0
  172. package/dist/types/lib/react/remote.d.ts.map +1 -1
  173. package/dist/types/lib/theming/hooks/useDesignTokens.d.ts +6 -0
  174. package/dist/types/lib/theming/hooks/useDesignTokens.d.ts.map +1 -1
  175. package/dist/types/lib/types/props.d.ts.map +1 -1
  176. package/dist/types/views/BarView.d.ts +5 -0
  177. package/dist/types/views/BarView.d.ts.map +1 -0
  178. package/package.json +15 -11
  179. package/dist/types/components/AccentBox/stories/Default.stories.d.ts +0 -12
  180. package/dist/types/components/AccentBox/stories/Default.stories.d.ts.map +0 -1
  181. package/dist/types/components/Accordion/stories/Default.stories.d.ts +0 -8
  182. package/dist/types/components/Accordion/stories/Default.stories.d.ts.map +0 -1
  183. package/dist/types/components/Action/Action.browser.test.d.ts +0 -2
  184. package/dist/types/components/Action/Action.browser.test.d.ts.map +0 -1
  185. package/dist/types/components/Action/models/ActionExecutionBatch.browser.test.d.ts +0 -2
  186. package/dist/types/components/Action/models/ActionExecutionBatch.browser.test.d.ts.map +0 -1
  187. package/dist/types/components/Action/stories/Default.stories.d.ts +0 -17
  188. package/dist/types/components/Action/stories/Default.stories.d.ts.map +0 -1
  189. package/dist/types/components/Action/stories/EdgeCases.stories.d.ts +0 -7
  190. package/dist/types/components/Action/stories/EdgeCases.stories.d.ts.map +0 -1
  191. package/dist/types/components/ActionGroup/stories/Default.stories.d.ts +0 -15
  192. package/dist/types/components/ActionGroup/stories/Default.stories.d.ts.map +0 -1
  193. package/dist/types/components/Activity/Activity.browser.test.d.ts +0 -2
  194. package/dist/types/components/Activity/Activity.browser.test.d.ts.map +0 -1
  195. package/dist/types/components/Alert/stories/Default.stories.d.ts +0 -8
  196. package/dist/types/components/Alert/stories/Default.stories.d.ts.map +0 -1
  197. package/dist/types/components/AlertBadge/stories/Default.stories.d.ts +0 -7
  198. package/dist/types/components/AlertBadge/stories/Default.stories.d.ts.map +0 -1
  199. package/dist/types/components/AlertIcon/stories/Default.stories.d.ts +0 -7
  200. package/dist/types/components/AlertIcon/stories/Default.stories.d.ts.map +0 -1
  201. package/dist/types/components/AlertText/stories/Default.stories.d.ts +0 -9
  202. package/dist/types/components/AlertText/stories/Default.stories.d.ts.map +0 -1
  203. package/dist/types/components/Align/Align.browser.test.d.ts +0 -2
  204. package/dist/types/components/Align/Align.browser.test.d.ts.map +0 -1
  205. package/dist/types/components/Autocomplete/stories/Default.stories.d.ts +0 -9
  206. package/dist/types/components/Autocomplete/stories/Default.stories.d.ts.map +0 -1
  207. package/dist/types/components/Avatar/Avatar.browser.test.d.ts +0 -2
  208. package/dist/types/components/Avatar/Avatar.browser.test.d.ts.map +0 -1
  209. package/dist/types/components/Avatar/stories/Default.stories.d.ts +0 -11
  210. package/dist/types/components/Avatar/stories/Default.stories.d.ts.map +0 -1
  211. package/dist/types/components/AvatarStack/stories/Default.stories.d.ts +0 -9
  212. package/dist/types/components/AvatarStack/stories/Default.stories.d.ts.map +0 -1
  213. package/dist/types/components/Badge/stories/Default.stories.d.ts +0 -10
  214. package/dist/types/components/Badge/stories/Default.stories.d.ts.map +0 -1
  215. package/dist/types/components/BigNumber/stories/Default.stories.d.ts +0 -8
  216. package/dist/types/components/BigNumber/stories/Default.stories.d.ts.map +0 -1
  217. package/dist/types/components/Breadcrumb/stories/Default.stories.d.ts +0 -7
  218. package/dist/types/components/Breadcrumb/stories/Default.stories.d.ts.map +0 -1
  219. package/dist/types/components/Button/Button.browser.test.d.ts +0 -2
  220. package/dist/types/components/Button/Button.browser.test.d.ts.map +0 -1
  221. package/dist/types/components/Button/stories/Default.stories.d.ts +0 -10
  222. package/dist/types/components/Button/stories/Default.stories.d.ts.map +0 -1
  223. package/dist/types/components/CartesianChart/stories/Default.stories.d.ts +0 -11
  224. package/dist/types/components/CartesianChart/stories/Default.stories.d.ts.map +0 -1
  225. package/dist/types/components/Chat/stories/Default.stories.d.ts +0 -10
  226. package/dist/types/components/Chat/stories/Default.stories.d.ts.map +0 -1
  227. package/dist/types/components/Checkbox/stories/Default.stories.d.ts +0 -8
  228. package/dist/types/components/Checkbox/stories/Default.stories.d.ts.map +0 -1
  229. package/dist/types/components/CheckboxButton/stories/Default.stories.d.ts +0 -9
  230. package/dist/types/components/CheckboxButton/stories/Default.stories.d.ts.map +0 -1
  231. package/dist/types/components/CheckboxGroup/stories/Default.stories.d.ts +0 -11
  232. package/dist/types/components/CheckboxGroup/stories/Default.stories.d.ts.map +0 -1
  233. package/dist/types/components/CodeBlock/stories/Default.stories.d.ts +0 -9
  234. package/dist/types/components/CodeBlock/stories/Default.stories.d.ts.map +0 -1
  235. package/dist/types/components/CodeEditor/CodeEditor.browser.test.d.ts +0 -2
  236. package/dist/types/components/CodeEditor/CodeEditor.browser.test.d.ts.map +0 -1
  237. package/dist/types/components/CodeEditor/stories/Default.stories.d.ts +0 -10
  238. package/dist/types/components/CodeEditor/stories/Default.stories.d.ts.map +0 -1
  239. package/dist/types/components/Color/stories/Default.stories.d.ts +0 -8
  240. package/dist/types/components/Color/stories/Default.stories.d.ts.map +0 -1
  241. package/dist/types/components/ColumnLayout/lib/getColumns.test.d.ts +0 -2
  242. package/dist/types/components/ColumnLayout/lib/getColumns.test.d.ts.map +0 -1
  243. package/dist/types/components/ColumnLayout/stories/Default.stories.d.ts +0 -9
  244. package/dist/types/components/ColumnLayout/stories/Default.stories.d.ts.map +0 -1
  245. package/dist/types/components/Combine/stories/Default.stories.d.ts +0 -10
  246. package/dist/types/components/Combine/stories/Default.stories.d.ts.map +0 -1
  247. package/dist/types/components/Combine/stories/InputButton.stories.d.ts +0 -12
  248. package/dist/types/components/Combine/stories/InputButton.stories.d.ts.map +0 -1
  249. package/dist/types/components/ComboBox/stories/Default.stories.d.ts +0 -14
  250. package/dist/types/components/ComboBox/stories/Default.stories.d.ts.map +0 -1
  251. package/dist/types/components/ComboBox/stories/FileComboBox.stories.d.ts +0 -7
  252. package/dist/types/components/ComboBox/stories/FileComboBox.stories.d.ts.map +0 -1
  253. package/dist/types/components/ComponentDefaultsProvider/ComponentDefaultsProvider.test.d.ts +0 -2
  254. package/dist/types/components/ComponentDefaultsProvider/ComponentDefaultsProvider.test.d.ts.map +0 -1
  255. package/dist/types/components/ComponentUsageProvider/ComponentUsageProvider.browser.test.d.ts +0 -2
  256. package/dist/types/components/ComponentUsageProvider/ComponentUsageProvider.browser.test.d.ts.map +0 -1
  257. package/dist/types/components/Content/stories/Default.stories.d.ts +0 -7
  258. package/dist/types/components/Content/stories/Default.stories.d.ts.map +0 -1
  259. package/dist/types/components/ContextMenu/ContextMenu.browser.test.d.ts +0 -2
  260. package/dist/types/components/ContextMenu/ContextMenu.browser.test.d.ts.map +0 -1
  261. package/dist/types/components/ContextMenu/stories/Default.stories.d.ts +0 -18
  262. package/dist/types/components/ContextMenu/stories/Default.stories.d.ts.map +0 -1
  263. package/dist/types/components/ContextMenu/stories/EdgeCases.stories.d.ts +0 -8
  264. package/dist/types/components/ContextMenu/stories/EdgeCases.stories.d.ts.map +0 -1
  265. package/dist/types/components/ContextualHelp/ContextualHelp.browser.test.d.ts +0 -2
  266. package/dist/types/components/ContextualHelp/ContextualHelp.browser.test.d.ts.map +0 -1
  267. package/dist/types/components/ContextualHelp/stories/Default.stories.d.ts +0 -7
  268. package/dist/types/components/ContextualHelp/stories/Default.stories.d.ts.map +0 -1
  269. package/dist/types/components/CopyButton/stories/Default.stories.d.ts +0 -7
  270. package/dist/types/components/CopyButton/stories/Default.stories.d.ts.map +0 -1
  271. package/dist/types/components/CounterBadge/stories/Default.stories.d.ts +0 -10
  272. package/dist/types/components/CounterBadge/stories/Default.stories.d.ts.map +0 -1
  273. package/dist/types/components/DatePicker/stories/Default.stories.d.ts +0 -10
  274. package/dist/types/components/DatePicker/stories/Default.stories.d.ts.map +0 -1
  275. package/dist/types/components/DateRangePicker/stories/Default.stories.d.ts +0 -11
  276. package/dist/types/components/DateRangePicker/stories/Default.stories.d.ts.map +0 -1
  277. package/dist/types/components/DeprecationWarningProvider/DeprecationWarningProvider.test.d.ts +0 -2
  278. package/dist/types/components/DeprecationWarningProvider/DeprecationWarningProvider.test.d.ts.map +0 -1
  279. package/dist/types/components/DonutChart/stories/Default.stories.d.ts +0 -10
  280. package/dist/types/components/DonutChart/stories/Default.stories.d.ts.map +0 -1
  281. package/dist/types/components/EmulatedBoldText/stories/Default.stories.d.ts +0 -7
  282. package/dist/types/components/EmulatedBoldText/stories/Default.stories.d.ts.map +0 -1
  283. package/dist/types/components/FileCard/stories/Default.stories.d.ts +0 -15
  284. package/dist/types/components/FileCard/stories/Default.stories.d.ts.map +0 -1
  285. package/dist/types/components/FileCard/stories/EdgeCases.stories.d.ts +0 -8
  286. package/dist/types/components/FileCard/stories/EdgeCases.stories.d.ts.map +0 -1
  287. package/dist/types/components/FileCardList/stories/Default.stories.d.ts +0 -7
  288. package/dist/types/components/FileCardList/stories/Default.stories.d.ts.map +0 -1
  289. package/dist/types/components/FileDropZone/stories/Default.stories.d.ts +0 -10
  290. package/dist/types/components/FileDropZone/stories/Default.stories.d.ts.map +0 -1
  291. package/dist/types/components/FileField/FileField.browser.test.d.ts +0 -2
  292. package/dist/types/components/FileField/FileField.browser.test.d.ts.map +0 -1
  293. package/dist/types/components/FileField/stories/Default.stories.d.ts +0 -11
  294. package/dist/types/components/FileField/stories/Default.stories.d.ts.map +0 -1
  295. package/dist/types/components/Flex/stories/Default.stories.d.ts +0 -7
  296. package/dist/types/components/Flex/stories/Default.stories.d.ts.map +0 -1
  297. package/dist/types/components/Header/stories/Default.stories.d.ts +0 -7
  298. package/dist/types/components/Header/stories/Default.stories.d.ts.map +0 -1
  299. package/dist/types/components/HeaderNavigation/stories/Default.stories.d.ts +0 -7
  300. package/dist/types/components/HeaderNavigation/stories/Default.stories.d.ts.map +0 -1
  301. package/dist/types/components/Heading/stories/Default.stories.d.ts +0 -10
  302. package/dist/types/components/Heading/stories/Default.stories.d.ts.map +0 -1
  303. package/dist/types/components/Icon/stories/Default.stories.d.ts +0 -11
  304. package/dist/types/components/Icon/stories/Default.stories.d.ts.map +0 -1
  305. package/dist/types/components/IllustratedMessage/stories/Default.stories.d.ts +0 -9
  306. package/dist/types/components/IllustratedMessage/stories/Default.stories.d.ts.map +0 -1
  307. package/dist/types/components/Image/stories/Default.stories.d.ts +0 -8
  308. package/dist/types/components/Image/stories/Default.stories.d.ts.map +0 -1
  309. package/dist/types/components/ImageCropper/stories/Default.stories.d.ts +0 -9
  310. package/dist/types/components/ImageCropper/stories/Default.stories.d.ts.map +0 -1
  311. package/dist/types/components/Initials/lib/getColorFromInitials.test.d.ts +0 -2
  312. package/dist/types/components/Initials/lib/getColorFromInitials.test.d.ts.map +0 -1
  313. package/dist/types/components/Initials/lib/getInitialsFromString.test.d.ts +0 -2
  314. package/dist/types/components/Initials/lib/getInitialsFromString.test.d.ts.map +0 -1
  315. package/dist/types/components/Initials/stories/Default.stories.d.ts +0 -9
  316. package/dist/types/components/Initials/stories/Default.stories.d.ts.map +0 -1
  317. package/dist/types/components/InlineCode/stories/Default.stories.d.ts +0 -7
  318. package/dist/types/components/InlineCode/stories/Default.stories.d.ts.map +0 -1
  319. package/dist/types/components/Kbd/stories/Default.stories.d.ts +0 -8
  320. package/dist/types/components/Kbd/stories/Default.stories.d.ts.map +0 -1
  321. package/dist/types/components/Label/stories/Default.stories.d.ts +0 -9
  322. package/dist/types/components/Label/stories/Default.stories.d.ts.map +0 -1
  323. package/dist/types/components/LabeledValue/stories/Default.stories.d.ts +0 -11
  324. package/dist/types/components/LabeledValue/stories/Default.stories.d.ts.map +0 -1
  325. package/dist/types/components/LayoutCard/stories/Default.stories.d.ts +0 -9
  326. package/dist/types/components/LayoutCard/stories/Default.stories.d.ts.map +0 -1
  327. package/dist/types/components/Legend/stories/Default.stories.d.ts +0 -7
  328. package/dist/types/components/Legend/stories/Default.stories.d.ts.map +0 -1
  329. package/dist/types/components/LightBox/stories/Default.stories.d.ts +0 -12
  330. package/dist/types/components/LightBox/stories/Default.stories.d.ts.map +0 -1
  331. package/dist/types/components/Link/Link.browser.test.d.ts +0 -2
  332. package/dist/types/components/Link/Link.browser.test.d.ts.map +0 -1
  333. package/dist/types/components/Link/stories/Default.stories.d.ts +0 -12
  334. package/dist/types/components/Link/stories/Default.stories.d.ts.map +0 -1
  335. package/dist/types/components/List/List.browser.test.d.ts +0 -2
  336. package/dist/types/components/List/List.browser.test.d.ts.map +0 -1
  337. package/dist/types/components/List/stories/Default.stories.d.ts +0 -16
  338. package/dist/types/components/List/stories/Default.stories.d.ts.map +0 -1
  339. package/dist/types/components/List/stories/EdgeCases.stories.d.ts +0 -8
  340. package/dist/types/components/List/stories/EdgeCases.stories.d.ts.map +0 -1
  341. package/dist/types/components/List/stories/ListItem.stories.d.ts +0 -11
  342. package/dist/types/components/List/stories/ListItem.stories.d.ts.map +0 -1
  343. package/dist/types/components/LoadingSpinner/stories/Default.stories.d.ts +0 -7
  344. package/dist/types/components/LoadingSpinner/stories/Default.stories.d.ts.map +0 -1
  345. package/dist/types/components/Markdown/lib/getHeadingLevelWithOffset.test.d.ts +0 -2
  346. package/dist/types/components/Markdown/lib/getHeadingLevelWithOffset.test.d.ts.map +0 -1
  347. package/dist/types/components/Markdown/stories/Default.stories.d.ts +0 -8
  348. package/dist/types/components/Markdown/stories/Default.stories.d.ts.map +0 -1
  349. package/dist/types/components/MarkdownEditor/MarkdownEditor.browser.test.d.ts +0 -2
  350. package/dist/types/components/MarkdownEditor/MarkdownEditor.browser.test.d.ts.map +0 -1
  351. package/dist/types/components/MarkdownEditor/lib/modifyValueByMarkdownSyntax.test.d.ts +0 -2
  352. package/dist/types/components/MarkdownEditor/lib/modifyValueByMarkdownSyntax.test.d.ts.map +0 -1
  353. package/dist/types/components/MarkdownEditor/lib/modifyValueByType.test.d.ts +0 -2
  354. package/dist/types/components/MarkdownEditor/lib/modifyValueByType.test.d.ts.map +0 -1
  355. package/dist/types/components/MarkdownEditor/stories/Default.stories.d.ts +0 -14
  356. package/dist/types/components/MarkdownEditor/stories/Default.stories.d.ts.map +0 -1
  357. package/dist/types/components/Message/stories/Default.stories.d.ts +0 -10
  358. package/dist/types/components/Message/stories/Default.stories.d.ts.map +0 -1
  359. package/dist/types/components/MessageThread/stories/Default.stories.d.ts +0 -7
  360. package/dist/types/components/MessageThread/stories/Default.stories.d.ts.map +0 -1
  361. package/dist/types/components/Modal/Modal.browser.test.d.ts +0 -2
  362. package/dist/types/components/Modal/Modal.browser.test.d.ts.map +0 -1
  363. package/dist/types/components/Modal/stories/Default.stories.d.ts +0 -14
  364. package/dist/types/components/Modal/stories/Default.stories.d.ts.map +0 -1
  365. package/dist/types/components/Modal/stories/EdgeCases.stories.d.ts +0 -7
  366. package/dist/types/components/Modal/stories/EdgeCases.stories.d.ts.map +0 -1
  367. package/dist/types/components/Navigation/stories/Default.stories.d.ts +0 -9
  368. package/dist/types/components/Navigation/stories/Default.stories.d.ts.map +0 -1
  369. package/dist/types/components/Notification/stories/Default.stories.d.ts +0 -8
  370. package/dist/types/components/Notification/stories/Default.stories.d.ts.map +0 -1
  371. package/dist/types/components/NotificationProvider/stories/Default.stories.d.ts +0 -11
  372. package/dist/types/components/NotificationProvider/stories/Default.stories.d.ts.map +0 -1
  373. package/dist/types/components/NumberField/stories/Default.stories.d.ts +0 -12
  374. package/dist/types/components/NumberField/stories/Default.stories.d.ts.map +0 -1
  375. package/dist/types/components/Overlay/Overlay.browser.test.d.ts +0 -2
  376. package/dist/types/components/Overlay/Overlay.browser.test.d.ts.map +0 -1
  377. package/dist/types/components/OverlayTrigger/OverlayTrigger.browser.test.d.ts +0 -2
  378. package/dist/types/components/OverlayTrigger/OverlayTrigger.browser.test.d.ts.map +0 -1
  379. package/dist/types/components/PasswordCreationField/PasswordCreationField.browser.test.d.ts +0 -1
  380. package/dist/types/components/PasswordCreationField/PasswordCreationField.browser.test.d.ts.map +0 -1
  381. package/dist/types/components/PasswordCreationField/stories/Default.stories.d.ts +0 -10
  382. package/dist/types/components/PasswordCreationField/stories/Default.stories.d.ts.map +0 -1
  383. package/dist/types/components/Popover/stories/Default.stories.d.ts +0 -9
  384. package/dist/types/components/Popover/stories/Default.stories.d.ts.map +0 -1
  385. package/dist/types/components/Popover/stories/EdgeCases.stories.d.ts +0 -7
  386. package/dist/types/components/Popover/stories/EdgeCases.stories.d.ts.map +0 -1
  387. package/dist/types/components/ProgressBar/stories/Default.stories.d.ts +0 -12
  388. package/dist/types/components/ProgressBar/stories/Default.stories.d.ts.map +0 -1
  389. package/dist/types/components/RadioGroup/stories/Default.stories.d.ts +0 -13
  390. package/dist/types/components/RadioGroup/stories/Default.stories.d.ts.map +0 -1
  391. package/dist/types/components/Rating/Rating.browser.test.d.ts +0 -2
  392. package/dist/types/components/Rating/Rating.browser.test.d.ts.map +0 -1
  393. package/dist/types/components/Rating/stories/Default.stories.d.ts +0 -12
  394. package/dist/types/components/Rating/stories/Default.stories.d.ts.map +0 -1
  395. package/dist/types/components/SearchField/stories/Default.stories.d.ts +0 -10
  396. package/dist/types/components/SearchField/stories/Default.stories.d.ts.map +0 -1
  397. package/dist/types/components/Section/stories/Default.stories.d.ts +0 -9
  398. package/dist/types/components/Section/stories/Default.stories.d.ts.map +0 -1
  399. package/dist/types/components/Section/stories/EdgeCases.stories.d.ts +0 -12
  400. package/dist/types/components/Section/stories/EdgeCases.stories.d.ts.map +0 -1
  401. package/dist/types/components/SegmentedControl/stories/Default.stories.d.ts +0 -10
  402. package/dist/types/components/SegmentedControl/stories/Default.stories.d.ts.map +0 -1
  403. package/dist/types/components/Select/stories/Default.stories.d.ts +0 -14
  404. package/dist/types/components/Select/stories/Default.stories.d.ts.map +0 -1
  405. package/dist/types/components/Select/stories/EdgeCases.stories.d.ts +0 -8
  406. package/dist/types/components/Select/stories/EdgeCases.stories.d.ts.map +0 -1
  407. package/dist/types/components/Separator/stories/Default.stories.d.ts +0 -7
  408. package/dist/types/components/Separator/stories/Default.stories.d.ts.map +0 -1
  409. package/dist/types/components/SettingsProvider/SettingsProvider.browser.test.d.ts +0 -2
  410. package/dist/types/components/SettingsProvider/SettingsProvider.browser.test.d.ts.map +0 -1
  411. package/dist/types/components/SettingsProvider/models/SettingsStore.test.d.ts +0 -2
  412. package/dist/types/components/SettingsProvider/models/SettingsStore.test.d.ts.map +0 -1
  413. package/dist/types/components/Skeleton/stories/Default.stories.d.ts +0 -9
  414. package/dist/types/components/Skeleton/stories/Default.stories.d.ts.map +0 -1
  415. package/dist/types/components/SkeletonText/stories/Default.stories.d.ts +0 -10
  416. package/dist/types/components/SkeletonText/stories/Default.stories.d.ts.map +0 -1
  417. package/dist/types/components/Slider/stories/Default.stories.d.ts +0 -9
  418. package/dist/types/components/Slider/stories/Default.stories.d.ts.map +0 -1
  419. package/dist/types/components/Switch/stories/Default.stories.d.ts +0 -7
  420. package/dist/types/components/Switch/stories/Default.stories.d.ts.map +0 -1
  421. package/dist/types/components/TabNavigation/TabNavigation.browser.test.d.ts +0 -2
  422. package/dist/types/components/TabNavigation/TabNavigation.browser.test.d.ts.map +0 -1
  423. package/dist/types/components/TabNavigation/lib/getVisibleItemCount.test.d.ts +0 -2
  424. package/dist/types/components/TabNavigation/lib/getVisibleItemCount.test.d.ts.map +0 -1
  425. package/dist/types/components/TabNavigation/stories/Default.stories.d.ts +0 -7
  426. package/dist/types/components/TabNavigation/stories/Default.stories.d.ts.map +0 -1
  427. package/dist/types/components/Table/stories/Default.stories.d.ts +0 -11
  428. package/dist/types/components/Table/stories/Default.stories.d.ts.map +0 -1
  429. package/dist/types/components/Tabs/Tabs.browser.test.d.ts +0 -2
  430. package/dist/types/components/Tabs/Tabs.browser.test.d.ts.map +0 -1
  431. package/dist/types/components/Tabs/stories/Default.stories.d.ts +0 -11
  432. package/dist/types/components/Tabs/stories/Default.stories.d.ts.map +0 -1
  433. package/dist/types/components/Text/stories/Default.stories.d.ts +0 -7
  434. package/dist/types/components/Text/stories/Default.stories.d.ts.map +0 -1
  435. package/dist/types/components/TextArea/TextArea.browser.test.d.ts +0 -2
  436. package/dist/types/components/TextArea/TextArea.browser.test.d.ts.map +0 -1
  437. package/dist/types/components/TextArea/stories/Default.stories.d.ts +0 -13
  438. package/dist/types/components/TextArea/stories/Default.stories.d.ts.map +0 -1
  439. package/dist/types/components/TextField/TextField.browser.test.d.ts +0 -2
  440. package/dist/types/components/TextField/TextField.browser.test.d.ts.map +0 -1
  441. package/dist/types/components/TextField/stories/Default.stories.d.ts +0 -14
  442. package/dist/types/components/TextField/stories/Default.stories.d.ts.map +0 -1
  443. package/dist/types/components/TimeField/stories/Default.stories.d.ts +0 -11
  444. package/dist/types/components/TimeField/stories/Default.stories.d.ts.map +0 -1
  445. package/dist/types/components/Tooltip/stories/Default.stories.d.ts +0 -7
  446. package/dist/types/components/Tooltip/stories/Default.stories.d.ts.map +0 -1
  447. package/dist/types/components/Tooltip/stories/EdgeCases.stories.d.ts +0 -7
  448. package/dist/types/components/Tooltip/stories/EdgeCases.stories.d.ts.map +0 -1
  449. package/dist/types/components/TranslationProvider/stories/Default.stories.d.ts +0 -9
  450. package/dist/types/components/TranslationProvider/stories/Default.stories.d.ts.map +0 -1
  451. package/dist/types/components/Truncate/stories/Default.stories.d.ts +0 -11
  452. package/dist/types/components/Truncate/stories/Default.stories.d.ts.map +0 -1
  453. package/dist/types/integrations/react-hook-form/components/Field/Field.browser.test.d.ts +0 -2
  454. package/dist/types/integrations/react-hook-form/components/Field/Field.browser.test.d.ts.map +0 -1
  455. package/dist/types/integrations/react-hook-form/components/Field/lib/debounceValidate.test.d.ts +0 -2
  456. package/dist/types/integrations/react-hook-form/components/Field/lib/debounceValidate.test.d.ts.map +0 -1
  457. package/dist/types/integrations/react-hook-form/components/Field/stories/Autocomplete.stories.d.ts +0 -10
  458. package/dist/types/integrations/react-hook-form/components/Field/stories/Autocomplete.stories.d.ts.map +0 -1
  459. package/dist/types/integrations/react-hook-form/components/Field/stories/Checkbox.stories.d.ts +0 -9
  460. package/dist/types/integrations/react-hook-form/components/Field/stories/Checkbox.stories.d.ts.map +0 -1
  461. package/dist/types/integrations/react-hook-form/components/Field/stories/CheckboxButton.stories.d.ts +0 -9
  462. package/dist/types/integrations/react-hook-form/components/Field/stories/CheckboxButton.stories.d.ts.map +0 -1
  463. package/dist/types/integrations/react-hook-form/components/Field/stories/CheckboxGroup.stories.d.ts +0 -9
  464. package/dist/types/integrations/react-hook-form/components/Field/stories/CheckboxGroup.stories.d.ts.map +0 -1
  465. package/dist/types/integrations/react-hook-form/components/Field/stories/CodeEditor.stories.d.ts +0 -9
  466. package/dist/types/integrations/react-hook-form/components/Field/stories/CodeEditor.stories.d.ts.map +0 -1
  467. package/dist/types/integrations/react-hook-form/components/Field/stories/ComboBox.stories.d.ts +0 -9
  468. package/dist/types/integrations/react-hook-form/components/Field/stories/ComboBox.stories.d.ts.map +0 -1
  469. package/dist/types/integrations/react-hook-form/components/Field/stories/DatePicker.stories.d.ts +0 -9
  470. package/dist/types/integrations/react-hook-form/components/Field/stories/DatePicker.stories.d.ts.map +0 -1
  471. package/dist/types/integrations/react-hook-form/components/Field/stories/DateRangePicker.stories.d.ts +0 -9
  472. package/dist/types/integrations/react-hook-form/components/Field/stories/DateRangePicker.stories.d.ts.map +0 -1
  473. package/dist/types/integrations/react-hook-form/components/Field/stories/FileField.stories.d.ts +0 -9
  474. package/dist/types/integrations/react-hook-form/components/Field/stories/FileField.stories.d.ts.map +0 -1
  475. package/dist/types/integrations/react-hook-form/components/Field/stories/MarkdownEditor.stories.d.ts +0 -9
  476. package/dist/types/integrations/react-hook-form/components/Field/stories/MarkdownEditor.stories.d.ts.map +0 -1
  477. package/dist/types/integrations/react-hook-form/components/Field/stories/NumberField.stories.d.ts +0 -9
  478. package/dist/types/integrations/react-hook-form/components/Field/stories/NumberField.stories.d.ts.map +0 -1
  479. package/dist/types/integrations/react-hook-form/components/Field/stories/PasswordCreationField.stories.d.ts +0 -10
  480. package/dist/types/integrations/react-hook-form/components/Field/stories/PasswordCreationField.stories.d.ts.map +0 -1
  481. package/dist/types/integrations/react-hook-form/components/Field/stories/RadioGroup.stories.d.ts +0 -9
  482. package/dist/types/integrations/react-hook-form/components/Field/stories/RadioGroup.stories.d.ts.map +0 -1
  483. package/dist/types/integrations/react-hook-form/components/Field/stories/SearchField.stories.d.ts +0 -9
  484. package/dist/types/integrations/react-hook-form/components/Field/stories/SearchField.stories.d.ts.map +0 -1
  485. package/dist/types/integrations/react-hook-form/components/Field/stories/SegmentedControl.stories.d.ts +0 -9
  486. package/dist/types/integrations/react-hook-form/components/Field/stories/SegmentedControl.stories.d.ts.map +0 -1
  487. package/dist/types/integrations/react-hook-form/components/Field/stories/Select.stories.d.ts +0 -9
  488. package/dist/types/integrations/react-hook-form/components/Field/stories/Select.stories.d.ts.map +0 -1
  489. package/dist/types/integrations/react-hook-form/components/Field/stories/Slider.stories.d.ts +0 -9
  490. package/dist/types/integrations/react-hook-form/components/Field/stories/Slider.stories.d.ts.map +0 -1
  491. package/dist/types/integrations/react-hook-form/components/Field/stories/Switch.stories.d.ts +0 -9
  492. package/dist/types/integrations/react-hook-form/components/Field/stories/Switch.stories.d.ts.map +0 -1
  493. package/dist/types/integrations/react-hook-form/components/Field/stories/TextArea.stories.d.ts +0 -9
  494. package/dist/types/integrations/react-hook-form/components/Field/stories/TextArea.stories.d.ts.map +0 -1
  495. package/dist/types/integrations/react-hook-form/components/Field/stories/TextField.stories.d.ts +0 -10
  496. package/dist/types/integrations/react-hook-form/components/Field/stories/TextField.stories.d.ts.map +0 -1
  497. package/dist/types/integrations/react-hook-form/components/Field/stories/TimeField.stories.d.ts +0 -9
  498. package/dist/types/integrations/react-hook-form/components/Field/stories/TimeField.stories.d.ts.map +0 -1
  499. package/dist/types/integrations/react-hook-form/components/Form/Form.browser.test.d.ts +0 -2
  500. package/dist/types/integrations/react-hook-form/components/Form/Form.browser.test.d.ts.map +0 -1
  501. package/dist/types/integrations/react-hook-form/components/Form/stories/Form.stories.d.ts +0 -13
  502. package/dist/types/integrations/react-hook-form/components/Form/stories/Form.stories.d.ts.map +0 -1
  503. package/dist/types/integrations/react-hook-form/components/ResetButton/ResetButton.browser.test.d.ts +0 -2
  504. package/dist/types/integrations/react-hook-form/components/ResetButton/ResetButton.browser.test.d.ts.map +0 -1
  505. package/dist/types/integrations/react-hook-form/components/SubmitButton/SubmitButton.browser.test.d.ts +0 -2
  506. package/dist/types/integrations/react-hook-form/components/SubmitButton/SubmitButton.browser.test.d.ts.map +0 -1
  507. package/dist/types/lib/componentFactory/flowComponent.browser.test.d.ts +0 -2
  508. package/dist/types/lib/componentFactory/flowComponent.browser.test.d.ts.map +0 -1
  509. package/dist/types/lib/controller/overlay/useOverlayController.browser.test.d.ts +0 -2
  510. package/dist/types/lib/controller/overlay/useOverlayController.browser.test.d.ts.map +0 -1
  511. package/dist/types/lib/dom/createFrameResizeObserver.browser.test.d.ts +0 -2
  512. package/dist/types/lib/dom/createFrameResizeObserver.browser.test.d.ts.map +0 -1
  513. package/dist/types/lib/hooks/dom/useKeepBrowserExtensionsInteractive.browser.test.d.ts +0 -2
  514. package/dist/types/lib/hooks/dom/useKeepBrowserExtensionsInteractive.browser.test.d.ts.map +0 -1
  515. package/dist/types/lib/hooks/dom/useVirtualKeyboardVisible.test.d.ts +0 -2
  516. package/dist/types/lib/hooks/dom/useVirtualKeyboardVisible.test.d.ts.map +0 -1
  517. package/dist/types/lib/hooks/useProps.browser.test.d.ts +0 -2
  518. package/dist/types/lib/hooks/useProps.browser.test.d.ts.map +0 -1
  519. package/dist/types/lib/promises/callFunctionsInOrder.test.d.ts +0 -2
  520. package/dist/types/lib/promises/callFunctionsInOrder.test.d.ts.map +0 -1
  521. package/dist/types/lib/propsContext/dynamicProps/resolveDynamicProps.test.d.ts +0 -2
  522. package/dist/types/lib/propsContext/dynamicProps/resolveDynamicProps.test.d.ts.map +0 -1
  523. package/dist/types/lib/propsContext/mergePropsContext.test.d.ts +0 -2
  524. package/dist/types/lib/propsContext/mergePropsContext.test.d.ts.map +0 -1
  525. package/dist/types/lib/react/components/Render/Render.browser.test.d.ts +0 -2
  526. package/dist/types/lib/react/components/Render/Render.browser.test.d.ts.map +0 -1
  527. package/dist/types/lib/react/deepFindOfType.test.d.ts +0 -2
  528. package/dist/types/lib/react/deepFindOfType.test.d.ts.map +0 -1
  529. package/dist/types/styles/styles.browser.test.d.ts +0 -2
  530. package/dist/types/styles/styles.browser.test.d.ts.map +0 -1
  531. package/dist/types/tests/layered/CodeEditor.browser.test.d.ts +0 -2
  532. package/dist/types/tests/layered/CodeEditor.browser.test.d.ts.map +0 -1
  533. package/dist/types/tests/layered/Icon.browser.test.d.ts +0 -2
  534. package/dist/types/tests/layered/Icon.browser.test.d.ts.map +0 -1
  535. package/dist/types/tests/layered/ImageCropper.browser.test.d.ts +0 -2
  536. package/dist/types/tests/layered/ImageCropper.browser.test.d.ts.map +0 -1
@@ -3,8 +3,8 @@
3
3
  import { PropsContextProvider } from "../../lib/propsContext/components/PropsContextProvider.mjs";
4
4
  import { flowComponent } from "../../lib/componentFactory/flowComponent.mjs";
5
5
  import { Wrap } from "../Wrap/Wrap.mjs";
6
- import { Text } from "../Text/Text.mjs";
7
6
  import { UiComponentTunnelExit } from "../UiComponentTunnel/UiComponentTunnelExit.mjs";
7
+ import { Text } from "../Text/Text.mjs";
8
8
  import { Avatar } from "./components/Avatar/Avatar.mjs";
9
9
  import FileCard_module_default from "./FileCard.module.mjs";
10
10
  import { FileSizeText } from "./components/FileSizeText/FileSizeText.mjs";
@@ -5,7 +5,7 @@ import { flowComponent } from "../../lib/componentFactory/flowComponent.mjs";
5
5
  import { useLocalizedStringFormatter } from "../TranslationProvider/useLocalizedStringFormatter.mjs";
6
6
  import { UiComponentTunnelExit } from "../UiComponentTunnel/UiComponentTunnelExit.mjs";
7
7
  import Label_module_default from "./Label.module.mjs";
8
- import __locale_default from "../../../../../_virtual/_7.locale.mjs";
8
+ import __locale_default from "../../../../../_virtual/_8.locale.mjs";
9
9
  import clsx from "clsx";
10
10
  import React from "react";
11
11
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -5,8 +5,8 @@ import { flowComponent } from "../../lib/componentFactory/flowComponent.mjs";
5
5
  import { IconClose } from "../Icon/components/icons/IconClose.mjs";
6
6
  import { UiComponentTunnelExit } from "../UiComponentTunnel/UiComponentTunnelExit.mjs";
7
7
  import { useOverlayController } from "../../lib/controller/overlay/useOverlayController.mjs";
8
- import DivView from "../../views/DivView.mjs";
9
8
  import ButtonView from "../../views/ButtonView.mjs";
9
+ import DivView from "../../views/DivView.mjs";
10
10
  import __locale_default from "../../../../../_virtual/_20.locale.mjs";
11
11
  import { Overlay } from "../Overlay/Overlay.mjs";
12
12
  import LightBox_module_default from "./LightBox.module.mjs";
@@ -4,7 +4,6 @@ import { PropsContextProvider } from "../../lib/propsContext/components/PropsCon
4
4
  import { flowComponent } from "../../lib/componentFactory/flowComponent.mjs";
5
5
  import dynamic from "../../lib/propsContext/dynamicProps/dynamic.mjs";
6
6
  import { isAlphaColor } from "../../lib/types/props.mjs";
7
- import { Text } from "../Text/Text.mjs";
8
7
  import { UiComponentTunnelExit } from "../UiComponentTunnel/UiComponentTunnelExit.mjs";
9
8
  import Link_module_default from "./Link.module.mjs";
10
9
  import { linkContext } from "./context.mjs";
@@ -51,7 +50,7 @@ var Link = flowComponent("Link", (props) => {
51
50
  size: props.size,
52
51
  color: props.color === "default" ? void 0 : props.color,
53
52
  isDisabled: props.isDisabled,
54
- children: dynamic((buttonProps) => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Text, { children: buttonProps.children }), /* @__PURE__ */ jsx(LinkIcon, {
53
+ children: dynamic((buttonProps) => /* @__PURE__ */ jsxs(Fragment$1, { children: [buttonProps.children, /* @__PURE__ */ jsx(LinkIcon, {
55
54
  download,
56
55
  target,
57
56
  unstyled
@@ -1 +1 @@
1
- {"version":3,"file":"Link.mjs","names":[],"sources":["../../../../../../../src/components/Link/Link.tsx"],"sourcesContent":["import type {\n ComponentProps,\n ComponentType,\n CSSProperties,\n MouseEvent,\n PropsWithChildren,\n} from \"react\";\nimport { useContext } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport { dynamic, type PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport styles from \"./Link.module.scss\";\nimport clsx from \"clsx\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport {\n type AlphaColor,\n isAlphaColor,\n type PropsWithClassName,\n} from \"@/lib/types/props\";\nimport { linkContext } from \"@/components/Link/context\";\nimport { Text } from \"@/components/Text\";\nimport { LinkIcon } from \"@/components/Link/components/LinkIcon\";\nimport { handleLinkClick, useRouter } from \"@react-aria/utils\";\nimport { UiComponentTunnelExit } from \"@/components/UiComponentTunnel/UiComponentTunnelExit\";\n\nexport interface LinkProps\n extends\n PropsWithChildren<Omit<Aria.LinkProps, \"children\" | \"slot\" | \"className\">>,\n FlowComponentProps<HTMLAnchorElement>,\n PropsWithClassName {\n /** Whether the link should be styled for being displayed inside a text. */\n inline?: boolean;\n /** An alternative link component. */\n linkComponent?: ComponentType<Omit<ComponentProps<\"a\">, \"ref\">>;\n /** The color of the link. @default \"default\" */\n color?: \"default\" | AlphaColor;\n /** Marks the link as the currently active one, e.g. in a navigation. */\n \"aria-current\"?: string;\n /** The name of the slot the link is placed in. */\n slot?: string;\n /** The whiteSpace css value of the element. */\n whiteSpace?: CSSProperties[\"whiteSpace\"];\n /** The size of the element. @default \"m\" */\n size?: \"s\" | \"m\";\n /** @internal */\n unstyled?: boolean;\n}\n\n/** @flr-generate all */\nexport const Link = flowComponent(\"Link\", (props) => {\n const {\n children,\n className,\n inline,\n linkComponent: linkComponentFromProps,\n color = \"default\",\n unstyled = false,\n \"aria-current\": ariaCurrent,\n ref,\n slot: ignoredSlotProp,\n style,\n whiteSpace,\n size = \"m\",\n onClickCapture: onClickCaptureFromProps,\n target,\n download,\n ...rest\n } = props;\n\n const { linkComponent: linkComponentFromContext } = useContext(linkContext);\n const Link = linkComponentFromProps\n ? (linkComponentFromProps as typeof Aria.Link)\n : props.href && linkComponentFromContext\n ? (linkComponentFromContext as typeof Aria.Link)\n : Aria.Link;\n\n const router = useRouter();\n\n /**\n * An interactive child (e.g. a Button) stops click propagation via React\n * Aria's `usePress`, so the anchor's own `onClick` never runs and navigation\n * falls back to a full page load. Handling it in the capture phase (top-down,\n * before the child) keeps navigation client-side. Only needed for React\n * Aria's `<a>`; custom link components handle navigation themselves.\n */\n const handleClickCapture =\n Link === Aria.Link && props.href\n ? (event: MouseEvent<HTMLAnchorElement>) => {\n onClickCaptureFromProps?.(event);\n if (event.target !== event.currentTarget) {\n handleLinkClick(event, router, props.href, props.routerOptions);\n }\n }\n : onClickCaptureFromProps;\n\n const rootClassName = unstyled\n ? className\n : clsx(\n styles.link,\n inline && styles.inline,\n isAlphaColor(color) && styles[color],\n size === \"s\" && styles[\"size-s\"],\n className,\n );\n\n const propsContext: PropsContext = {\n Icon: {\n tunnel: {\n component: \"Link\",\n id: \"icon\",\n },\n className: styles.icon,\n size: \"s\",\n },\n AlertText: {\n className: styles.alertText,\n },\n AccentBox: { className: styles.accentBox },\n LayoutCard: { className: styles.layoutCard },\n Button: {\n elementType: \"span\",\n className: styles.button,\n size: props.size,\n color: props.color === \"default\" ? undefined : props.color,\n isDisabled: props.isDisabled,\n children: dynamic((buttonProps) => (\n <>\n <Text>{buttonProps.children}</Text>\n <LinkIcon download={download} target={target} unstyled={unstyled} />\n </>\n )),\n },\n };\n\n const unsupportedTypingsLinkProps = ariaCurrent\n ? ({\n \"aria-current\": true,\n } as Record<string, unknown>)\n : {};\n\n return (\n <Link\n {...unsupportedTypingsLinkProps}\n {...rest}\n target={target}\n download={download}\n onClickCapture={handleClickCapture}\n className={rootClassName}\n ref={ref}\n style={{ ...style, whiteSpace }}\n >\n <PropsContextProvider props={propsContext}>\n {children}\n <LinkIcon\n withZeroWidthJoiner\n unstyled={unstyled}\n target={target}\n download={download}\n >\n <UiComponentTunnelExit id={\"icon\"} component={\"Link\"} />\n </LinkIcon>\n </PropsContextProvider>\n </Link>\n );\n});\n\nexport default Link;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAkDA,IAAa,OAAO,cAAc,SAAS,UAAU;CACnD,MAAM,EACJ,UACA,WACA,QACA,eAAe,wBACf,QAAQ,WACR,WAAW,OACX,gBAAgB,aAChB,KACA,MAAM,iBACN,OACA,YACA,OAAO,KACP,gBAAgB,yBAChB,QACA,UACA,GAAG,SACD;CAEJ,MAAM,EAAE,eAAe,6BAA6B,WAAW,WAAW;CAC1E,MAAM,OAAO,yBACR,yBACD,MAAM,QAAQ,2BACX,2BACD,KAAK;CAEX,MAAM,SAAS,UAAU;;;;;;;;CASzB,MAAM,qBACJ,SAAS,KAAK,QAAQ,MAAM,QACvB,UAAyC;EACxC,0BAA0B,KAAK;EAC/B,IAAI,MAAM,WAAW,MAAM,eACzB,gBAAgB,OAAO,QAAQ,MAAM,MAAM,MAAM,aAAa;CAElE,IACA;CAEN,MAAM,gBAAgB,WAClB,YACA,KACE,oBAAO,MACP,UAAU,oBAAO,QACjB,aAAa,KAAK,KAAK,oBAAO,QAC9B,SAAS,OAAO,oBAAO,WACvB,SACF;CAEJ,MAAM,eAA6B;EACjC,MAAM;GACJ,QAAQ;IACN,WAAW;IACX,IAAI;GACN;GACA,WAAW,oBAAO;GAClB,MAAM;EACR;EACA,WAAW,EACT,WAAW,oBAAO,UACpB;EACA,WAAW,EAAE,WAAW,oBAAO,UAAU;EACzC,YAAY,EAAE,WAAW,oBAAO,WAAW;EAC3C,QAAQ;GACN,aAAa;GACb,WAAW,oBAAO;GAClB,MAAM,MAAM;GACZ,OAAO,MAAM,UAAU,YAAY,KAAA,IAAY,MAAM;GACrD,YAAY,MAAM;GAClB,UAAU,SAAS,gBACjB,qBAAA,YAAA,EAAA,UAAA,CACE,oBAAC,MAAD,EAAA,UAAO,YAAY,SAAe,CAAA,GAClC,oBAAC,UAAD;IAAoB;IAAkB;IAAkB;GAAW,CAAA,CACnE,EAAA,CAAA,CACH;EACH;CACF;CAQA,OACE,oBAAC,MAAD;EACE,GARgC,cAC/B,EACC,gBAAgB,KAClB,IACA,CAAC;EAKD,GAAI;EACI;EACE;EACV,gBAAgB;EAChB,WAAW;EACN;EACL,OAAO;GAAE,GAAG;GAAO;EAAW;EAE9B,UAAA,qBAAC,sBAAD;GAAsB,OAAO;GAA7B,UAAA,CACG,UACD,oBAAC,UAAD;IACE,qBAAA;IACU;IACF;IACE;IAEV,UAAA,oBAAC,uBAAD;KAAuB,IAAI;KAAQ,WAAW;IAAS,CAAA;GAC/C,CAAA,CACU;;CAClB,CAAA;AAEV,CAAC"}
1
+ {"version":3,"file":"Link.mjs","names":[],"sources":["../../../../../../../src/components/Link/Link.tsx"],"sourcesContent":["import type {\n ComponentProps,\n ComponentType,\n CSSProperties,\n MouseEvent,\n PropsWithChildren,\n} from \"react\";\nimport { useContext } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport { dynamic, type PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport styles from \"./Link.module.scss\";\nimport clsx from \"clsx\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport {\n type AlphaColor,\n isAlphaColor,\n type PropsWithClassName,\n} from \"@/lib/types/props\";\nimport { linkContext } from \"@/components/Link/context\";\nimport { LinkIcon } from \"@/components/Link/components/LinkIcon\";\nimport { handleLinkClick, useRouter } from \"@react-aria/utils\";\nimport { UiComponentTunnelExit } from \"@/components/UiComponentTunnel/UiComponentTunnelExit\";\n\nexport interface LinkProps\n extends\n PropsWithChildren<Omit<Aria.LinkProps, \"children\" | \"slot\" | \"className\">>,\n FlowComponentProps<HTMLAnchorElement>,\n PropsWithClassName {\n /** Whether the link should be styled for being displayed inside a text. */\n inline?: boolean;\n /** An alternative link component. */\n linkComponent?: ComponentType<Omit<ComponentProps<\"a\">, \"ref\">>;\n /** The color of the link. @default \"default\" */\n color?: \"default\" | AlphaColor;\n /** Marks the link as the currently active one, e.g. in a navigation. */\n \"aria-current\"?: string;\n /** The name of the slot the link is placed in. */\n slot?: string;\n /** The whiteSpace css value of the element. */\n whiteSpace?: CSSProperties[\"whiteSpace\"];\n /** The size of the element. @default \"m\" */\n size?: \"s\" | \"m\";\n /** @internal */\n unstyled?: boolean;\n}\n\n/** @flr-generate all */\nexport const Link = flowComponent(\"Link\", (props) => {\n const {\n children,\n className,\n inline,\n linkComponent: linkComponentFromProps,\n color = \"default\",\n unstyled = false,\n \"aria-current\": ariaCurrent,\n ref,\n slot: ignoredSlotProp,\n style,\n whiteSpace,\n size = \"m\",\n onClickCapture: onClickCaptureFromProps,\n target,\n download,\n ...rest\n } = props;\n\n const { linkComponent: linkComponentFromContext } = useContext(linkContext);\n const Link = linkComponentFromProps\n ? (linkComponentFromProps as typeof Aria.Link)\n : props.href && linkComponentFromContext\n ? (linkComponentFromContext as typeof Aria.Link)\n : Aria.Link;\n\n const router = useRouter();\n\n /**\n * An interactive child (e.g. a Button) stops click propagation via React\n * Aria's `usePress`, so the anchor's own `onClick` never runs and navigation\n * falls back to a full page load. Handling it in the capture phase (top-down,\n * before the child) keeps navigation client-side. Only needed for React\n * Aria's `<a>`; custom link components handle navigation themselves.\n */\n const handleClickCapture =\n Link === Aria.Link && props.href\n ? (event: MouseEvent<HTMLAnchorElement>) => {\n onClickCaptureFromProps?.(event);\n if (event.target !== event.currentTarget) {\n handleLinkClick(event, router, props.href, props.routerOptions);\n }\n }\n : onClickCaptureFromProps;\n\n const rootClassName = unstyled\n ? className\n : clsx(\n styles.link,\n inline && styles.inline,\n isAlphaColor(color) && styles[color],\n size === \"s\" && styles[\"size-s\"],\n className,\n );\n\n const propsContext: PropsContext = {\n Icon: {\n tunnel: {\n component: \"Link\",\n id: \"icon\",\n },\n className: styles.icon,\n size: \"s\",\n },\n AlertText: {\n className: styles.alertText,\n },\n AccentBox: { className: styles.accentBox },\n LayoutCard: { className: styles.layoutCard },\n Button: {\n elementType: \"span\",\n className: styles.button,\n size: props.size,\n color: props.color === \"default\" ? undefined : props.color,\n isDisabled: props.isDisabled,\n children: dynamic((buttonProps) => (\n <>\n {buttonProps.children}\n <LinkIcon download={download} target={target} unstyled={unstyled} />\n </>\n )),\n },\n };\n\n const unsupportedTypingsLinkProps = ariaCurrent\n ? ({\n \"aria-current\": true,\n } as Record<string, unknown>)\n : {};\n\n return (\n <Link\n {...unsupportedTypingsLinkProps}\n {...rest}\n target={target}\n download={download}\n onClickCapture={handleClickCapture}\n className={rootClassName}\n ref={ref}\n style={{ ...style, whiteSpace }}\n >\n <PropsContextProvider props={propsContext}>\n {children}\n <LinkIcon\n withZeroWidthJoiner\n unstyled={unstyled}\n target={target}\n download={download}\n >\n <UiComponentTunnelExit id={\"icon\"} component={\"Link\"} />\n </LinkIcon>\n </PropsContextProvider>\n </Link>\n );\n});\n\nexport default Link;\n"],"mappings":";;;;;;;;;;;;;;;;;AAiDA,IAAa,OAAO,cAAc,SAAS,UAAU;CACnD,MAAM,EACJ,UACA,WACA,QACA,eAAe,wBACf,QAAQ,WACR,WAAW,OACX,gBAAgB,aAChB,KACA,MAAM,iBACN,OACA,YACA,OAAO,KACP,gBAAgB,yBAChB,QACA,UACA,GAAG,SACD;CAEJ,MAAM,EAAE,eAAe,6BAA6B,WAAW,WAAW;CAC1E,MAAM,OAAO,yBACR,yBACD,MAAM,QAAQ,2BACX,2BACD,KAAK;CAEX,MAAM,SAAS,UAAU;;;;;;;;CASzB,MAAM,qBACJ,SAAS,KAAK,QAAQ,MAAM,QACvB,UAAyC;EACxC,0BAA0B,KAAK;EAC/B,IAAI,MAAM,WAAW,MAAM,eACzB,gBAAgB,OAAO,QAAQ,MAAM,MAAM,MAAM,aAAa;CAElE,IACA;CAEN,MAAM,gBAAgB,WAClB,YACA,KACE,oBAAO,MACP,UAAU,oBAAO,QACjB,aAAa,KAAK,KAAK,oBAAO,QAC9B,SAAS,OAAO,oBAAO,WACvB,SACF;CAEJ,MAAM,eAA6B;EACjC,MAAM;GACJ,QAAQ;IACN,WAAW;IACX,IAAI;GACN;GACA,WAAW,oBAAO;GAClB,MAAM;EACR;EACA,WAAW,EACT,WAAW,oBAAO,UACpB;EACA,WAAW,EAAE,WAAW,oBAAO,UAAU;EACzC,YAAY,EAAE,WAAW,oBAAO,WAAW;EAC3C,QAAQ;GACN,aAAa;GACb,WAAW,oBAAO;GAClB,MAAM,MAAM;GACZ,OAAO,MAAM,UAAU,YAAY,KAAA,IAAY,MAAM;GACrD,YAAY,MAAM;GAClB,UAAU,SAAS,gBACjB,qBAAA,YAAA,EAAA,UAAA,CACG,YAAY,UACb,oBAAC,UAAD;IAAoB;IAAkB;IAAkB;GAAW,CAAA,CACnE,EAAA,CAAA,CACH;EACH;CACF;CAQA,OACE,oBAAC,MAAD;EACE,GARgC,cAC/B,EACC,gBAAgB,KAClB,IACA,CAAC;EAKD,GAAI;EACI;EACE;EACV,gBAAgB;EAChB,WAAW;EACN;EACL,OAAO;GAAE,GAAG;GAAO;EAAW;EAE9B,UAAA,qBAAC,sBAAD;GAAsB,OAAO;GAA7B,UAAA,CACG,UACD,oBAAC,UAAD;IACE,qBAAA;IACU;IACF;IACE;IAEV,UAAA,oBAAC,uBAAD;KAAuB,IAAI;KAAQ,WAAW;IAAS,CAAA;GAC/C,CAAA,CACU;;CAClB,CAAA;AAEV,CAAC"}
@@ -4,8 +4,8 @@
4
4
  var link = "flow--link";
5
5
  var inline = "flow--link--inline";
6
6
  var icon = "flow--link--icon";
7
- var button = "flow--link--button";
8
7
  var linkIcon = "flow--link--link-icon";
8
+ var button = "flow--link--button";
9
9
  var light = "flow--link--light";
10
10
  var dark = "flow--link--dark";
11
11
  var alertText = "flow--link--alert-text";
@@ -15,9 +15,9 @@ var Link_module_default = {
15
15
  link,
16
16
  inline,
17
17
  icon,
18
+ linkIcon,
18
19
  "size-s": "flow--link--size-s",
19
20
  button,
20
- linkIcon,
21
21
  light,
22
22
  dark,
23
23
  "dark-static": "flow--link--dark-static",
@@ -1 +1 @@
1
- {"version":3,"file":"Link.module.mjs","names":[],"sources":["../../../../../../../src/components/Link/Link.module.scss"],"sourcesContent":["@use \"@/styles/mixins/focus\";\n\n.link {\n display: inline-block;\n font-weight: var(--link--font-weight);\n transition-property: color;\n transition-duration: var(--transition--duration--default);\n color: var(--link--color--default);\n width: fit-content;\n\n &:hover {\n color: var(--link--color--hover);\n }\n\n &[data-pressed] {\n color: var(--link--color--pressed);\n }\n\n @include focus.focus;\n\n &:not([aria-disabled]) {\n cursor: pointer;\n }\n\n &.inline {\n font-weight: normal;\n font-size: var(--font-size-text--m);\n text-decoration: underline;\n }\n\n /* Elements */\n\n .icon {\n margin-inline-start: var(--link--spacing);\n vertical-align: text-bottom;\n height: var(--link--icon-height);\n }\n\n &[aria-disabled] {\n color: var(--link--color--disabled);\n }\n\n /* Size s */\n\n &.size-s {\n font-size: var(--font-size-text--s);\n\n .icon {\n height: var(--link--icon-height-s);\n }\n }\n\n &:has(.button) {\n > .linkIcon {\n display: none;\n }\n }\n\n /* Alpha Colors */\n @mixin color($color) {\n &:where(.#{$color}) {\n color: var(--link--color-#{$color}--default);\n\n &:hover {\n color: var(--link--color-#{$color}--hover);\n }\n\n &[data-pressed] {\n color: var(--link--color-#{$color}--pressed);\n }\n\n &[aria-disabled] {\n color: var(--link--color-#{$color}--disabled);\n }\n }\n }\n\n @include color(light);\n @include color(dark);\n @include color(dark-static);\n @include color(light-static);\n\n /* AlertText Colors */\n @mixin status($status) {\n &:has(.alertText[class*=\"#{$status}\"]) {\n color: var(--alert-text--#{$status}-color);\n }\n }\n\n @include status(\"danger\");\n @include status(\"success\");\n @include status(\"warning\");\n @include status(\"info\");\n @include status(\"unavailable\");\n\n &:has(> .accentBox),\n &:has(> .layoutCard) {\n color: unset;\n font-weight: unset;\n display: block;\n min-width: 0;\n width: auto;\n\n .linkIcon {\n display: none;\n }\n }\n\n &:has(> .accentBox) {\n border-radius: var(--accent-box--corner-radius);\n }\n\n &:has(> .layoutCard) {\n border-radius: var(--layout-card--corner-radius);\n }\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Link.module.mjs","names":[],"sources":["../../../../../../../src/components/Link/Link.module.scss"],"sourcesContent":["@use \"@/styles/mixins/focus\";\n\n.link {\n display: inline-block;\n font-weight: var(--link--font-weight);\n transition-property: color;\n transition-duration: var(--transition--duration--default);\n color: var(--link--color--default);\n width: fit-content;\n\n &:hover {\n color: var(--link--color--hover);\n }\n\n &[data-pressed] {\n color: var(--link--color--pressed);\n }\n\n @include focus.focus;\n\n &:not([aria-disabled]) {\n cursor: pointer;\n }\n\n &.inline {\n font-weight: normal;\n font-size: var(--font-size-text--m);\n text-decoration: underline;\n }\n\n /* Elements */\n\n .icon {\n margin-inline-start: var(--link--spacing);\n vertical-align: text-bottom;\n height: var(--link--icon-height);\n }\n\n .linkIcon {\n -webkit-user-select: none;\n user-select: none;\n }\n\n &[aria-disabled] {\n color: var(--link--color--disabled);\n }\n\n /* Size s */\n\n &.size-s {\n font-size: var(--font-size-text--s);\n\n .icon {\n height: var(--link--icon-height-s);\n }\n }\n\n &:has(.button) {\n > .linkIcon {\n display: none;\n }\n }\n\n /* Alpha Colors */\n @mixin color($color) {\n &:where(.#{$color}) {\n color: var(--link--color-#{$color}--default);\n\n &:hover {\n color: var(--link--color-#{$color}--hover);\n }\n\n &[data-pressed] {\n color: var(--link--color-#{$color}--pressed);\n }\n\n &[aria-disabled] {\n color: var(--link--color-#{$color}--disabled);\n }\n }\n }\n\n @include color(light);\n @include color(dark);\n @include color(dark-static);\n @include color(light-static);\n\n /* AlertText Colors */\n @mixin status($status) {\n &:has(.alertText[class*=\"#{$status}\"]) {\n color: var(--alert-text--#{$status}-color);\n }\n }\n\n @include status(\"danger\");\n @include status(\"success\");\n @include status(\"warning\");\n @include status(\"info\");\n @include status(\"unavailable\");\n\n &:has(> .accentBox),\n &:has(> .layoutCard) {\n color: unset;\n font-weight: unset;\n display: block;\n min-width: 0;\n width: auto;\n\n .linkIcon {\n display: none;\n }\n }\n\n &:has(> .accentBox) {\n border-radius: var(--accent-box--corner-radius);\n }\n\n &:has(> .layoutCard) {\n border-radius: var(--layout-card--corner-radius);\n }\n}\n"],"mappings":""}
@@ -1,8 +1,8 @@
1
1
  "use client"
2
2
  /* */
3
3
  import { useLocalizedStringFormatter } from "../../../../../TranslationProvider/useLocalizedStringFormatter.mjs";
4
- import __locale_default from "../../../../../../../../../_virtual/_16.locale.mjs";
5
4
  import ButtonView from "../../../../../../views/ButtonView.mjs";
5
+ import __locale_default from "../../../../../../../../../_virtual/_16.locale.mjs";
6
6
  import { useList } from "../../../../hooks/useList.mjs";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  //#region src/components/List/components/Footer/components/ShowNextBatchButton/ShowNextBatchButton.tsx
@@ -4,9 +4,9 @@ import { IconClose } from "../../../../../Icon/components/icons/IconClose.mjs";
4
4
  import { IconSave } from "../../../../../Icon/components/icons/IconSave.mjs";
5
5
  import { IconUndo } from "../../../../../Icon/components/icons/IconUndo.mjs";
6
6
  import { useLocalizedStringFormatter } from "../../../../../TranslationProvider/useLocalizedStringFormatter.mjs";
7
+ import ButtonView from "../../../../../../views/ButtonView.mjs";
7
8
  import DivView from "../../../../../../views/DivView.mjs";
8
9
  import __locale_default from "../../../../../../../../../_virtual/_16.locale.mjs";
9
- import ButtonView from "../../../../../../views/ButtonView.mjs";
10
10
  import TextView from "../../../../../../views/TextView.mjs";
11
11
  import { useList } from "../../../../hooks/useList.mjs";
12
12
  import ActiveFilters_module_default from "./ActiveFilters.module.mjs";
@@ -3,9 +3,9 @@
3
3
  import { IconFilter } from "../../../../../Icon/components/icons/IconFilter.mjs";
4
4
  import { useLocalizedStringFormatter } from "../../../../../TranslationProvider/useLocalizedStringFormatter.mjs";
5
5
  import { useOverlayController } from "../../../../../../lib/controller/overlay/useOverlayController.mjs";
6
+ import ButtonView from "../../../../../../views/ButtonView.mjs";
6
7
  import { SkeletonText } from "../../../../../SkeletonText/SkeletonText.mjs";
7
8
  import __locale_default from "../../../../../../../../../_virtual/_16.locale.mjs";
8
- import ButtonView from "../../../../../../views/ButtonView.mjs";
9
9
  import HeadingView from "../../../../../../views/HeadingView.mjs";
10
10
  import TextView from "../../../../../../views/TextView.mjs";
11
11
  import { useList } from "../../../../hooks/useList.mjs";
@@ -1,9 +1,9 @@
1
1
  "use client"
2
2
  /* */
3
3
  import { useLocalizedStringFormatter } from "../../../../../TranslationProvider/useLocalizedStringFormatter.mjs";
4
+ import ButtonView from "../../../../../../views/ButtonView.mjs";
4
5
  import { Flex } from "../../../../../Flex/Flex.mjs";
5
6
  import __locale_default from "../../../../../../../../../_virtual/_16.locale.mjs";
6
- import ButtonView from "../../../../../../views/ButtonView.mjs";
7
7
  import RangeCalendarView from "../../../../../../views/RangeCalendarView.mjs";
8
8
  import "react";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
1
  "use client"
2
2
  /* */
3
3
  import { useLocalizedStringFormatter } from "../../../../../TranslationProvider/useLocalizedStringFormatter.mjs";
4
+ import ButtonView from "../../../../../../views/ButtonView.mjs";
4
5
  import { Flex } from "../../../../../Flex/Flex.mjs";
5
6
  import __locale_default from "../../../../../../../../../_virtual/_16.locale.mjs";
6
- import ButtonView from "../../../../../../views/ButtonView.mjs";
7
7
  import RadioGroupView from "../../../../../../views/RadioGroupView.mjs";
8
8
  import RadioView from "../../../../../../views/RadioView.mjs";
9
9
  import "react";
@@ -4,9 +4,9 @@ import { IconFilter } from "../../../../../Icon/components/icons/IconFilter.mjs"
4
4
  import { useLocalizedStringFormatter } from "../../../../../TranslationProvider/useLocalizedStringFormatter.mjs";
5
5
  import { useOverlayController } from "../../../../../../lib/controller/overlay/useOverlayController.mjs";
6
6
  import { Popover } from "../../../../../Popover/Popover.mjs";
7
+ import ButtonView from "../../../../../../views/ButtonView.mjs";
7
8
  import { PopoverTrigger } from "../../../../../Popover/components/PopoverTrigger/PopoverTrigger.mjs";
8
9
  import __locale_default from "../../../../../../../../../_virtual/_16.locale.mjs";
9
- import ButtonView from "../../../../../../views/ButtonView.mjs";
10
10
  import TextView from "../../../../../../views/TextView.mjs";
11
11
  import Header_module_default from "../../Header.module.mjs";
12
12
  import FilterContextMenus_module_default from "./FilterContextMenus.module.mjs";
@@ -4,8 +4,8 @@ import { IconAscending } from "../../../../../Icon/components/icons/IconAscendin
4
4
  import { IconDescending } from "../../../../../Icon/components/icons/IconDescending.mjs";
5
5
  import { IconSorting } from "../../../../../Icon/components/icons/IconSorting.mjs";
6
6
  import { useLocalizedStringFormatter } from "../../../../../TranslationProvider/useLocalizedStringFormatter.mjs";
7
- import __locale_default from "../../../../../../../../../_virtual/_16.locale.mjs";
8
7
  import ButtonView from "../../../../../../views/ButtonView.mjs";
8
+ import __locale_default from "../../../../../../../../../_virtual/_16.locale.mjs";
9
9
  import ContextMenuTriggerView from "../../../../../../views/ContextMenuTriggerView.mjs";
10
10
  import ContextMenuView from "../../../../../../views/ContextMenuView.mjs";
11
11
  import TextView from "../../../../../../views/TextView.mjs";
@@ -2,8 +2,8 @@
2
2
  /* */
3
3
  import { IconView } from "../../../../../Icon/components/icons/IconView.mjs";
4
4
  import { useLocalizedStringFormatter } from "../../../../../TranslationProvider/useLocalizedStringFormatter.mjs";
5
- import __locale_default from "../../../../../../../../../_virtual/_16.locale.mjs";
6
5
  import ButtonView from "../../../../../../views/ButtonView.mjs";
6
+ import __locale_default from "../../../../../../../../../_virtual/_16.locale.mjs";
7
7
  import ContextMenuTriggerView from "../../../../../../views/ContextMenuTriggerView.mjs";
8
8
  import ContextMenuView from "../../../../../../views/ContextMenuView.mjs";
9
9
  import TextView from "../../../../../../views/TextView.mjs";
@@ -36,7 +36,7 @@ var ItemImpl = (props) => {
36
36
  })
37
37
  });
38
38
  };
39
- var Item = memo(ItemImpl, (prev, next) => prev.id === next.id && prev.data === next.data && prev.triggerRef === next.triggerRef && prev.isTile === next.isTile);
39
+ var Item = memo(ItemImpl, (prev, next) => prev.id === next.id && prev.data === next.data && prev.triggerRef === next.triggerRef && prev.isTile === next.isTile && prev.list.onAction === next.list.onAction && prev.list.accordion === next.list.accordion && !!prev.list.itemView?.rendersSameAs(next.list.itemView));
40
40
  Item.displayName = "Item";
41
41
  var ItemContainer = (props) => {
42
42
  const list = useList();
@@ -1 +1 @@
1
- {"version":3,"file":"Item.mjs","names":[],"sources":["../../../../../../../../../../../src/components/List/components/Items/components/Item/Item.tsx"],"sourcesContent":["import { useGridItemProps } from \"@/components/List/components/Items/components/Item/hooks/useGridItemProps\";\nimport { useList } from \"@/components/List/hooks/useList\";\nimport type ListModel from \"@/components/List/model/List\";\nimport ItemsGridListItemView from \"@/views/ItemsGridListItemView\";\nimport { mergeRefs } from \"@react-aria/utils\";\nimport type { FC, PropsWithChildren, Ref } from \"react\";\nimport { memo, Suspense } from \"react\";\nimport type { Key } from \"react-aria-components\";\nimport styles from \"./Item.module.scss\";\nimport { ItemLoadingView } from \"./components/ItemLoadingView/ItemLoadingView\";\n\ninterface Props extends PropsWithChildren {\n id: Key;\n data: never;\n triggerRef?: Ref<HTMLDivElement>;\n list: ListModel<never>;\n isTile: boolean;\n}\n\nconst ItemImpl = (props: Props) => {\n const { id, data, triggerRef, list, isTile } = props;\n\n const itemView = list.itemView;\n\n const { gridItemProps, children } = useGridItemProps(props, list);\n\n if (!itemView) {\n return null;\n }\n\n const textValue = itemView.textValue ? itemView.textValue(data) : undefined;\n const href = itemView.href ? itemView.href(data) : undefined;\n const hasAction = !!gridItemProps.onAction || !!href;\n\n const existingRef = \"ref\" in gridItemProps ? gridItemProps.ref : undefined;\n const gridItemPropsWithRef = triggerRef\n ? { ...gridItemProps, ref: mergeRefs(existingRef, triggerRef) }\n : gridItemProps;\n\n return (\n <ItemsGridListItemView\n id={id}\n textValue={textValue}\n href={href}\n target={itemView.target}\n hasAction={hasAction}\n isTile={isTile}\n {...gridItemPropsWithRef}\n >\n <Suspense fallback={<ItemLoadingView />}>{children}</Suspense>\n </ItemsGridListItemView>\n );\n};\n\nexport const Item = memo(\n ItemImpl,\n (prev, next) =>\n prev.id === next.id &&\n prev.data === next.data &&\n prev.triggerRef === next.triggerRef &&\n prev.isTile === next.isTile,\n);\nItem.displayName = \"Item\";\n\ninterface ItemContainerProps extends PropsWithChildren {\n id?: Key;\n data?: never;\n}\n\nexport const ItemContainer: FC<ItemContainerProps> = (props) => {\n const list = useList();\n return (\n <ItemsGridListItemView\n textValue=\"-\"\n className={styles.item}\n isTile={list.viewMode.isTiles}\n >\n {props.children}\n </ItemsGridListItemView>\n );\n};\n\nexport default Item;\n"],"mappings":";;;;;;;;;;;AAmBA,IAAM,YAAY,UAAiB;CACjC,MAAM,EAAE,IAAI,MAAM,YAAY,MAAM,WAAW;CAE/C,MAAM,WAAW,KAAK;CAEtB,MAAM,EAAE,eAAe,aAAa,iBAAiB,OAAO,IAAI;CAEhE,IAAI,CAAC,UACH,OAAO;CAGT,MAAM,YAAY,SAAS,YAAY,SAAS,UAAU,IAAI,IAAI,KAAA;CAClE,MAAM,OAAO,SAAS,OAAO,SAAS,KAAK,IAAI,IAAI,KAAA;CACnD,MAAM,YAAY,CAAC,CAAC,cAAc,YAAY,CAAC,CAAC;CAEhD,MAAM,cAAc,SAAS,gBAAgB,cAAc,MAAM,KAAA;CACjE,MAAM,uBAAuB,aACzB;EAAE,GAAG;EAAe,KAAK,UAAU,aAAa,UAAU;CAAE,IAC5D;CAEJ,OACE,oBAAC,uBAAD;EACM;EACO;EACL;EACN,QAAQ,SAAS;EACN;EACH;EACR,GAAI;EAEJ,UAAA,oBAAC,UAAD;GAAU,UAAU,oBAAC,iBAAD,CAAkB,CAAA;GAAI;EAAmB,CAAA;CACxC,CAAA;AAE3B;AAEA,IAAa,OAAO,KAClB,WACC,MAAM,SACL,KAAK,OAAO,KAAK,MACjB,KAAK,SAAS,KAAK,QACnB,KAAK,eAAe,KAAK,cACzB,KAAK,WAAW,KAAK,MACzB;AACA,KAAK,cAAc;AAOnB,IAAa,iBAAyC,UAAU;CAC9D,MAAM,OAAO,QAAQ;CACrB,OACE,oBAAC,uBAAD;EACE,WAAU;EACV,WAAW,oBAAO;EAClB,QAAQ,KAAK,SAAS;EAErB,UAAA,MAAM;CACc,CAAA;AAE3B"}
1
+ {"version":3,"file":"Item.mjs","names":[],"sources":["../../../../../../../../../../../src/components/List/components/Items/components/Item/Item.tsx"],"sourcesContent":["import { useGridItemProps } from \"@/components/List/components/Items/components/Item/hooks/useGridItemProps\";\nimport { useList } from \"@/components/List/hooks/useList\";\nimport type ListModel from \"@/components/List/model/List\";\nimport ItemsGridListItemView from \"@/views/ItemsGridListItemView\";\nimport { mergeRefs } from \"@react-aria/utils\";\nimport type { FC, PropsWithChildren, Ref } from \"react\";\nimport { memo, Suspense } from \"react\";\nimport type { Key } from \"react-aria-components\";\nimport styles from \"./Item.module.scss\";\nimport { ItemLoadingView } from \"./components/ItemLoadingView/ItemLoadingView\";\n\ninterface Props extends PropsWithChildren {\n id: Key;\n data: never;\n triggerRef?: Ref<HTMLDivElement>;\n list: ListModel<never>;\n isTile: boolean;\n}\n\nconst ItemImpl = (props: Props) => {\n const { id, data, triggerRef, list, isTile } = props;\n\n const itemView = list.itemView;\n\n const { gridItemProps, children } = useGridItemProps(props, list);\n\n if (!itemView) {\n return null;\n }\n\n const textValue = itemView.textValue ? itemView.textValue(data) : undefined;\n const href = itemView.href ? itemView.href(data) : undefined;\n const hasAction = !!gridItemProps.onAction || !!href;\n\n const existingRef = \"ref\" in gridItemProps ? gridItemProps.ref : undefined;\n const gridItemPropsWithRef = triggerRef\n ? { ...gridItemProps, ref: mergeRefs(existingRef, triggerRef) }\n : gridItemProps;\n\n return (\n <ItemsGridListItemView\n id={id}\n textValue={textValue}\n href={href}\n target={itemView.target}\n hasAction={hasAction}\n isTile={isTile}\n {...gridItemPropsWithRef}\n >\n <Suspense fallback={<ItemLoadingView />}>{children}</Suspense>\n </ItemsGridListItemView>\n );\n};\n\n// The list model is rebuilt on every render, so it cannot be compared by\n// identity — but everything an item renders from it can. Those closures come\n// from the consumer's own JSX and only change when the consumer re-renders,\n// so loading more still skips the re-render while parent state no longer\n// leaves an item frozen on the values it first saw.\nexport const Item = memo(\n ItemImpl,\n (prev, next) =>\n prev.id === next.id &&\n prev.data === next.data &&\n prev.triggerRef === next.triggerRef &&\n prev.isTile === next.isTile &&\n prev.list.onAction === next.list.onAction &&\n prev.list.accordion === next.list.accordion &&\n !!prev.list.itemView?.rendersSameAs(next.list.itemView),\n);\nItem.displayName = \"Item\";\n\ninterface ItemContainerProps extends PropsWithChildren {\n id?: Key;\n data?: never;\n}\n\nexport const ItemContainer: FC<ItemContainerProps> = (props) => {\n const list = useList();\n return (\n <ItemsGridListItemView\n textValue=\"-\"\n className={styles.item}\n isTile={list.viewMode.isTiles}\n >\n {props.children}\n </ItemsGridListItemView>\n );\n};\n\nexport default Item;\n"],"mappings":";;;;;;;;;;;AAmBA,IAAM,YAAY,UAAiB;CACjC,MAAM,EAAE,IAAI,MAAM,YAAY,MAAM,WAAW;CAE/C,MAAM,WAAW,KAAK;CAEtB,MAAM,EAAE,eAAe,aAAa,iBAAiB,OAAO,IAAI;CAEhE,IAAI,CAAC,UACH,OAAO;CAGT,MAAM,YAAY,SAAS,YAAY,SAAS,UAAU,IAAI,IAAI,KAAA;CAClE,MAAM,OAAO,SAAS,OAAO,SAAS,KAAK,IAAI,IAAI,KAAA;CACnD,MAAM,YAAY,CAAC,CAAC,cAAc,YAAY,CAAC,CAAC;CAEhD,MAAM,cAAc,SAAS,gBAAgB,cAAc,MAAM,KAAA;CACjE,MAAM,uBAAuB,aACzB;EAAE,GAAG;EAAe,KAAK,UAAU,aAAa,UAAU;CAAE,IAC5D;CAEJ,OACE,oBAAC,uBAAD;EACM;EACO;EACL;EACN,QAAQ,SAAS;EACN;EACH;EACR,GAAI;EAEJ,UAAA,oBAAC,UAAD;GAAU,UAAU,oBAAC,iBAAD,CAAkB,CAAA;GAAI;EAAmB,CAAA;CACxC,CAAA;AAE3B;AAOA,IAAa,OAAO,KAClB,WACC,MAAM,SACL,KAAK,OAAO,KAAK,MACjB,KAAK,SAAS,KAAK,QACnB,KAAK,eAAe,KAAK,cACzB,KAAK,WAAW,KAAK,UACrB,KAAK,KAAK,aAAa,KAAK,KAAK,YACjC,KAAK,KAAK,cAAc,KAAK,KAAK,aAClC,CAAC,CAAC,KAAK,KAAK,UAAU,cAAc,KAAK,KAAK,QAAQ,CAC1D;AACA,KAAK,cAAc;AAOnB,IAAa,iBAAyC,UAAU;CAC9D,MAAM,OAAO,QAAQ;CACrB,OACE,oBAAC,uBAAD;EACE,WAAU;EACV,WAAW,oBAAO;EAClB,QAAQ,KAAK,SAAS;EAErB,UAAA,MAAM;CACc,CAAA;AAE3B"}
@@ -4,14 +4,16 @@
4
4
  var item = "flow--list--items--item";
5
5
  var isSelected = "flow--list--items--item--is-selected";
6
6
  var hasAction = "flow--list--items--item--has-action";
7
+ var link = "flow--list--items--item--link";
7
8
  var tile = "flow--list--items--item--tile";
8
9
  var Item_module_default = {
9
10
  item,
10
11
  isSelected,
11
12
  hasAction,
13
+ link,
12
14
  tile
13
15
  };
14
16
  //#endregion
15
- export { Item_module_default as default, hasAction, isSelected, item, tile };
17
+ export { Item_module_default as default, hasAction, isSelected, item, link, tile };
16
18
 
17
19
  //# sourceMappingURL=Item.module.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Item.module.mjs","names":[],"sources":["../../../../../../../../../../../src/components/List/components/Items/components/Item/Item.module.scss"],"sourcesContent":["@use \"@/styles/mixins/focus\";\n\n.item {\n cursor: default;\n background-color: var(--list-item--background-color--default);\n transition-property: background-color;\n transition-duration: var(--transition--duration--default);\n\n @include focus.focus;\n\n &.item {\n outline-offset: calc(var(--size-px--xs) * -1);\n box-shadow: none;\n }\n\n &:where(.isSelected) {\n background-color: var(--list-item--background-color--pressed);\n }\n\n &:not(:last-child) {\n border-bottom: var(--list-item--border-width) var(--list-item--border-style)\n var(--list-item--border-color);\n }\n\n &[data-href] {\n cursor: pointer;\n }\n\n &:where(.hasAction):not(\n &:has(:global(.flow--list--items--item--view--bottom-content):hover)\n ) {\n &:where(:not(.isSelected)) {\n &:hover {\n background-color: var(--list-item--background-color--hover);\n }\n }\n\n &[data-pressed] {\n background-color: var(--list-item--background-color--pressed);\n }\n }\n\n :global(.flow--avatar) {\n transition-property: filter;\n transition-duration: var(--transition--duration--default);\n }\n\n &.tile {\n border: none;\n border-radius: var(--list-item--corner-radius);\n\n &.item {\n outline-offset: var(--size-px--xxs);\n }\n\n &:where(.hasAction) {\n &:not(.isSelected) {\n &:hover {\n :global(.flow--avatar) {\n filter: brightness(var(--image-button--brightness--hover));\n }\n }\n }\n\n &[data-pressed] {\n :global(.flow--avatar) {\n filter: brightness(var(--image-button--brightness--pressed));\n }\n }\n }\n }\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Item.module.mjs","names":[],"sources":["../../../../../../../../../../../src/components/List/components/Items/components/Item/Item.module.scss"],"sourcesContent":["@use \"@/styles/mixins/focus\";\n\n.item {\n position: relative;\n\n /* The link overlay and the interactive content lifted above it (see .link\n below) stack against each other only — never against anything outside the\n item. */\n isolation: isolate;\n cursor: default;\n background-color: var(--list-item--background-color--default);\n transition-property: background-color;\n transition-duration: var(--transition--duration--default);\n\n @include focus.focus;\n\n &.item {\n outline-offset: calc(var(--size-px--xs) * -1);\n box-shadow: none;\n }\n\n &:where(.isSelected) {\n background-color: var(--list-item--background-color--pressed);\n }\n\n &:not(:last-child) {\n border-bottom: var(--list-item--border-width) var(--list-item--border-style)\n var(--list-item--border-color);\n }\n\n &[data-href] {\n cursor: pointer;\n }\n\n &:where(.hasAction):not(\n &:has(:global(.flow--list--items--item--view--bottom-content):hover)\n ) {\n &:where(:not(.isSelected)) {\n &:hover {\n background-color: var(--list-item--background-color--hover);\n }\n }\n\n &[data-pressed] {\n background-color: var(--list-item--background-color--pressed);\n }\n }\n\n :global(.flow--avatar) {\n transition-property: filter;\n transition-duration: var(--transition--duration--default);\n }\n\n /* Elements */\n\n /*\n * Covers the whole item so a right-click anywhere on it hits a real link.\n * Interactive content is lifted back above the overlay, so buttons, context\n * menus and checkboxes keep receiving their own clicks.\n */\n .link {\n position: absolute;\n inset: 0;\n z-index: 1;\n }\n\n &:has(.link) {\n :where(\n a,\n button,\n input,\n label,\n select,\n summary,\n textarea,\n [role=\"button\"],\n [role=\"checkbox\"],\n [role=\"link\"],\n [role=\"switch\"],\n [tabindex]\n ):not(.link) {\n position: relative;\n z-index: 2;\n }\n\n /*\n * The bottom slot carries arbitrary consumer content (and the accordion's\n * expanded content), so it stays fully clickable and selectable.\n */\n :global(.flow--list--list-item-view--bottom-content) {\n position: relative;\n z-index: 2;\n }\n }\n\n &.tile {\n border: none;\n border-radius: var(--list-item--corner-radius);\n\n &.item {\n outline-offset: var(--size-px--xxs);\n }\n\n &:where(.hasAction) {\n &:not(.isSelected) {\n &:hover {\n :global(.flow--avatar) {\n filter: brightness(var(--image-button--brightness--hover));\n }\n }\n }\n\n &[data-pressed] {\n :global(.flow--avatar) {\n filter: brightness(var(--image-button--brightness--pressed));\n }\n }\n }\n }\n}\n"],"mappings":""}
@@ -3,8 +3,8 @@
3
3
  import { IconChevronDown } from "../../../../../../Icon/components/icons/IconChevronDown.mjs";
4
4
  import { IconChevronUp } from "../../../../../../Icon/components/icons/IconChevronUp.mjs";
5
5
  import { useLocalizedStringFormatter } from "../../../../../../TranslationProvider/useLocalizedStringFormatter.mjs";
6
- import __locale_default from "../../../../../../../../../../_virtual/_16.locale.mjs";
7
6
  import ButtonView from "../../../../../../../views/ButtonView.mjs";
7
+ import __locale_default from "../../../../../../../../../../_virtual/_16.locale.mjs";
8
8
  import ListItemView_module_default from "../../../../ListItemView/ListItemView.module.mjs";
9
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
10
  //#region src/components/List/components/Items/components/Item/components/AccordionButton.tsx
@@ -2,8 +2,8 @@
2
2
  /* */
3
3
  import { IconContextMenu } from "../../../../../../../Icon/components/icons/IconContextMenu.mjs";
4
4
  import { useLocalizedStringFormatter } from "../../../../../../../TranslationProvider/useLocalizedStringFormatter.mjs";
5
- import __locale_default from "../../../../../../../../../../../_virtual/_16.locale.mjs";
6
5
  import ButtonView from "../../../../../../../../views/ButtonView.mjs";
6
+ import __locale_default from "../../../../../../../../../../../_virtual/_16.locale.mjs";
7
7
  import ContextMenuTriggerView from "../../../../../../../../views/ContextMenuTriggerView.mjs";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
  //#region src/components/List/components/Items/components/Item/components/OptionsButton/OptionsButton.tsx
@@ -2,15 +2,25 @@
2
2
  /* */
3
3
  import Item_module_default from "../../components/Item/Item.module.mjs";
4
4
  import clsx from "clsx";
5
- import { jsx } from "react/jsx-runtime";
5
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
+ import { useLinkProps } from "@react-aria/utils";
6
7
  import * as Aria from "react-aria-components";
7
8
  //#region src/components/List/components/Items/views/GridListItem/GridListItem.tsx
8
9
  /** @flr-generate all */
9
10
  var GridListItem = (props) => {
10
- const { hasAction, isTile, ...restProps } = props;
11
+ const { hasAction, isTile, children, ...restProps } = props;
12
+ const linkProps = useLinkProps(props);
13
+ const linkOverlay = linkProps.href ? /* @__PURE__ */ jsx("a", {
14
+ ...linkProps,
15
+ "aria-hidden": true,
16
+ className: Item_module_default.link,
17
+ draggable: false,
18
+ tabIndex: -1
19
+ }) : null;
11
20
  return /* @__PURE__ */ jsx(Aria.GridListItem, {
12
21
  ...restProps,
13
- className: (renderProps) => clsx(Item_module_default.item, hasAction && Item_module_default.hasAction, isTile && Item_module_default.tile, renderProps.isSelected && Item_module_default.isSelected)
22
+ className: (renderProps) => clsx(Item_module_default.item, hasAction && Item_module_default.hasAction, isTile && Item_module_default.tile, renderProps.isSelected && Item_module_default.isSelected),
23
+ children: (renderProps) => /* @__PURE__ */ jsxs(Fragment, { children: [typeof children === "function" ? children(renderProps) : children, linkOverlay] })
14
24
  });
15
25
  };
16
26
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"GridListItem.mjs","names":[],"sources":["../../../../../../../../../../../src/components/List/components/Items/views/GridListItem/GridListItem.tsx"],"sourcesContent":["import * as Aria from \"react-aria-components\";\nimport type { FC } from \"react\";\nimport styles from \"@/components/List/components/Items/components/Item/Item.module.scss\";\nimport clsx from \"clsx\";\n\nexport type GridListItemProps = Aria.GridListItemProps<never> & {\n hasAction?: boolean;\n isTile?: boolean;\n};\n\n/** @flr-generate all */\nexport const GridListItem: FC<GridListItemProps> = (props) => {\n const { hasAction, isTile, ...restProps } = props;\n return (\n <Aria.GridListItem\n {...restProps}\n className={(renderProps) =>\n clsx(\n styles.item,\n hasAction && styles.hasAction,\n isTile && styles.tile,\n renderProps.isSelected && styles.isSelected,\n )\n }\n />\n );\n};\n\nexport default GridListItem;\n"],"mappings":";;;;;;;;AAWA,IAAa,gBAAuC,UAAU;CAC5D,MAAM,EAAE,WAAW,QAAQ,GAAG,cAAc;CAC5C,OACE,oBAAC,KAAK,cAAN;EACE,GAAI;EACJ,YAAY,gBACV,KACE,oBAAO,MACP,aAAa,oBAAO,WACpB,UAAU,oBAAO,MACjB,YAAY,cAAc,oBAAO,UACnC;CAEH,CAAA;AAEL"}
1
+ {"version":3,"file":"GridListItem.mjs","names":[],"sources":["../../../../../../../../../../../src/components/List/components/Items/views/GridListItem/GridListItem.tsx"],"sourcesContent":["import * as Aria from \"react-aria-components\";\nimport type { FC } from \"react\";\nimport styles from \"@/components/List/components/Items/components/Item/Item.module.scss\";\nimport clsx from \"clsx\";\nimport { useLinkProps } from \"@react-aria/utils\";\n\nexport type GridListItemProps = Aria.GridListItemProps<never> & {\n hasAction?: boolean;\n isTile?: boolean;\n};\n\n/** @flr-generate all */\nexport const GridListItem: FC<GridListItemProps> = (props) => {\n const { hasAction, isTile, children, ...restProps } = props;\n\n // React Aria turns `href` into data attributes and navigates on press, so\n // the row itself is always a `div`. Overlay a real anchor to give the browser\n // back its own link affordances: context menu, middle-click, modifier-click.\n const linkProps = useLinkProps(props);\n\n const linkOverlay = linkProps.href ? (\n // The row keeps owning activation and the accessible semantics. The anchor\n // must stay untabbable — React Aria treats a tabbable descendant as\n // interactive content and would stop the row's own press — and out of the\n // accessibility tree, so screen readers announce the row unchanged.\n <a\n {...linkProps}\n aria-hidden\n className={styles.link}\n draggable={false}\n tabIndex={-1}\n />\n ) : null;\n\n return (\n <Aria.GridListItem\n {...restProps}\n className={(renderProps) =>\n clsx(\n styles.item,\n hasAction && styles.hasAction,\n isTile && styles.tile,\n renderProps.isSelected && styles.isSelected,\n )\n }\n >\n {(renderProps) => (\n <>\n {typeof children === \"function\" ? children(renderProps) : children}\n {linkOverlay}\n </>\n )}\n </Aria.GridListItem>\n );\n};\n\nexport default GridListItem;\n"],"mappings":";;;;;;;;;AAYA,IAAa,gBAAuC,UAAU;CAC5D,MAAM,EAAE,WAAW,QAAQ,UAAU,GAAG,cAAc;CAKtD,MAAM,YAAY,aAAa,KAAK;CAEpC,MAAM,cAAc,UAAU,OAK5B,oBAAC,KAAD;EACE,GAAI;EACJ,eAAA;EACA,WAAW,oBAAO;EAClB,WAAW;EACX,UAAU;CACX,CAAA,IACC;CAEJ,OACE,oBAAC,KAAK,cAAN;EACE,GAAI;EACJ,YAAY,gBACV,KACE,oBAAO,MACP,aAAa,oBAAO,WACpB,UAAU,oBAAO,MACjB,YAAY,cAAc,oBAAO,UACnC;EAGA,WAAA,gBACA,qBAAA,UAAA,EAAA,UAAA,CACG,OAAO,aAAa,aAAa,SAAS,WAAW,IAAI,UACzD,WACD,EAAA,CAAA;CAEa,CAAA;AAEvB"}
@@ -27,6 +27,13 @@ var ItemView = class ItemView {
27
27
  this.tileMaxWidth = tileMaxWidth;
28
28
  }
29
29
  static fallbackRenderItemFn = (item) => createElement("pre", void 0, JSON.stringify(item));
30
+ /**
31
+ * Whether `other` would render this item identically — i.e. all render
32
+ * functions taken from the consumer's `ListItem` element are still the same.
33
+ */
34
+ rendersSameAs(other) {
35
+ return !!other && this.renderFn === other.renderFn && this.textValue === other.textValue && this.href === other.href && this.target === other.target && this.defaultExpanded === other.defaultExpanded;
36
+ }
30
37
  render(data) {
31
38
  return (this.renderFn ?? ItemView.fallbackRenderItemFn)(data, this.list);
32
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ItemView.mjs","names":[],"sources":["../../../../../../../../../src/components/List/model/item/ItemView.ts"],"sourcesContent":["import type { HTMLAttributeAnchorTarget, ReactElement, ReactNode } from \"react\";\nimport { createElement } from \"react\";\nimport type { RenderItemFn } from \"@/components/List/model/item/types\";\nimport type List from \"@/components/List/model/List\";\n\nexport interface ItemViewShape<T> {\n textValue?: (data: T) => string;\n href?: (data: T) => string;\n target?: HTMLAttributeAnchorTarget;\n defaultExpanded?: (data: T) => boolean;\n renderFn?: RenderItemFn<T>;\n /** @deprecated Use loadingView instead */\n fallback?: ReactElement;\n loadingView?: ReactElement;\n showList?: boolean;\n showTiles?: boolean;\n tileMaxWidth?: number;\n}\n\nexport class ItemView<T> {\n public readonly list: List<T>;\n public readonly textValue?: (data: T) => string;\n public readonly href?: (data: T) => string;\n public readonly target?: HTMLAttributeAnchorTarget;\n public readonly defaultExpanded?: (data: T) => boolean;\n public readonly loadingView?: ReactElement;\n public readonly showTiles?: boolean;\n public readonly showList?: boolean;\n public readonly tileMaxWidth: number;\n private readonly renderFn?: RenderItemFn<T>;\n\n public constructor(list: List<T>, shape: ItemViewShape<T> = {}) {\n const {\n fallback,\n loadingView = fallback,\n textValue,\n href,\n target,\n defaultExpanded,\n renderFn,\n showTiles,\n showList = true,\n tileMaxWidth = 230,\n } = shape;\n this.list = list;\n this.textValue = textValue;\n this.renderFn = renderFn;\n this.href = href;\n this.target = target;\n this.defaultExpanded = defaultExpanded;\n this.loadingView = loadingView;\n this.showTiles = showTiles;\n this.showList = showList;\n this.tileMaxWidth = tileMaxWidth;\n }\n\n private static fallbackRenderItemFn: RenderItemFn<never> = (item) =>\n createElement(\"pre\", undefined, JSON.stringify(item));\n\n public render(data: T): ReactNode {\n const renderFn = (this.renderFn ??\n ItemView.fallbackRenderItemFn) as RenderItemFn<T>;\n return renderFn(data as never, this.list);\n }\n}\n"],"mappings":";;;;AAmBA,IAAa,WAAb,MAAa,SAAY;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA,YAAmB,MAAe,QAA0B,CAAC,GAAG;EAC9D,MAAM,EACJ,UACA,cAAc,UACd,WACA,MACA,QACA,iBACA,UACA,WACA,WAAW,MACX,eAAe,QACb;EACJ,KAAK,OAAO;EACZ,KAAK,YAAY;EACjB,KAAK,WAAW;EAChB,KAAK,OAAO;EACZ,KAAK,SAAS;EACd,KAAK,kBAAkB;EACvB,KAAK,cAAc;EACnB,KAAK,YAAY;EACjB,KAAK,WAAW;EAChB,KAAK,eAAe;CACtB;CAEA,OAAe,wBAA6C,SAC1D,cAAc,OAAO,KAAA,GAAW,KAAK,UAAU,IAAI,CAAC;CAEtD,OAAc,MAAoB;EAGhC,QAFkB,KAAK,YACrB,SAAS,qBAAA,CACK,MAAe,KAAK,IAAI;CAC1C;AACF"}
1
+ {"version":3,"file":"ItemView.mjs","names":[],"sources":["../../../../../../../../../src/components/List/model/item/ItemView.ts"],"sourcesContent":["import type { HTMLAttributeAnchorTarget, ReactElement, ReactNode } from \"react\";\nimport { createElement } from \"react\";\nimport type { RenderItemFn } from \"@/components/List/model/item/types\";\nimport type List from \"@/components/List/model/List\";\n\nexport interface ItemViewShape<T> {\n textValue?: (data: T) => string;\n href?: (data: T) => string;\n target?: HTMLAttributeAnchorTarget;\n defaultExpanded?: (data: T) => boolean;\n renderFn?: RenderItemFn<T>;\n /** @deprecated Use loadingView instead */\n fallback?: ReactElement;\n loadingView?: ReactElement;\n showList?: boolean;\n showTiles?: boolean;\n tileMaxWidth?: number;\n}\n\nexport class ItemView<T> {\n public readonly list: List<T>;\n public readonly textValue?: (data: T) => string;\n public readonly href?: (data: T) => string;\n public readonly target?: HTMLAttributeAnchorTarget;\n public readonly defaultExpanded?: (data: T) => boolean;\n public readonly loadingView?: ReactElement;\n public readonly showTiles?: boolean;\n public readonly showList?: boolean;\n public readonly tileMaxWidth: number;\n private readonly renderFn?: RenderItemFn<T>;\n\n public constructor(list: List<T>, shape: ItemViewShape<T> = {}) {\n const {\n fallback,\n loadingView = fallback,\n textValue,\n href,\n target,\n defaultExpanded,\n renderFn,\n showTiles,\n showList = true,\n tileMaxWidth = 230,\n } = shape;\n this.list = list;\n this.textValue = textValue;\n this.renderFn = renderFn;\n this.href = href;\n this.target = target;\n this.defaultExpanded = defaultExpanded;\n this.loadingView = loadingView;\n this.showTiles = showTiles;\n this.showList = showList;\n this.tileMaxWidth = tileMaxWidth;\n }\n\n private static fallbackRenderItemFn: RenderItemFn<never> = (item) =>\n createElement(\"pre\", undefined, JSON.stringify(item));\n\n /**\n * Whether `other` would render this item identically — i.e. all render\n * functions taken from the consumer's `ListItem` element are still the same.\n */\n public rendersSameAs(other?: ItemView<T>): boolean {\n return (\n !!other &&\n this.renderFn === other.renderFn &&\n this.textValue === other.textValue &&\n this.href === other.href &&\n this.target === other.target &&\n this.defaultExpanded === other.defaultExpanded\n );\n }\n\n public render(data: T): ReactNode {\n const renderFn = (this.renderFn ??\n ItemView.fallbackRenderItemFn) as RenderItemFn<T>;\n return renderFn(data as never, this.list);\n }\n}\n"],"mappings":";;;;AAmBA,IAAa,WAAb,MAAa,SAAY;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA,YAAmB,MAAe,QAA0B,CAAC,GAAG;EAC9D,MAAM,EACJ,UACA,cAAc,UACd,WACA,MACA,QACA,iBACA,UACA,WACA,WAAW,MACX,eAAe,QACb;EACJ,KAAK,OAAO;EACZ,KAAK,YAAY;EACjB,KAAK,WAAW;EAChB,KAAK,OAAO;EACZ,KAAK,SAAS;EACd,KAAK,kBAAkB;EACvB,KAAK,cAAc;EACnB,KAAK,YAAY;EACjB,KAAK,WAAW;EAChB,KAAK,eAAe;CACtB;CAEA,OAAe,wBAA6C,SAC1D,cAAc,OAAO,KAAA,GAAW,KAAK,UAAU,IAAI,CAAC;;;;;CAMtD,cAAqB,OAA8B;EACjD,OACE,CAAC,CAAC,SACF,KAAK,aAAa,MAAM,YACxB,KAAK,cAAc,MAAM,aACzB,KAAK,SAAS,MAAM,QACpB,KAAK,WAAW,MAAM,UACtB,KAAK,oBAAoB,MAAM;CAEnC;CAEA,OAAc,MAAoB;EAGhC,QAFkB,KAAK,YACrB,SAAS,qBAAA,CACK,MAAe,KAAK,IAAI;CAC1C;AACF"}
@@ -1,8 +1,8 @@
1
1
  "use client"
2
2
  /* */
3
3
  import { IconSearch } from "../../../Icon/components/icons/IconSearch.mjs";
4
- import { Text } from "../../../Text/Text.mjs";
5
4
  import { useLocalizedStringFormatter } from "../../../TranslationProvider/useLocalizedStringFormatter.mjs";
5
+ import { Text } from "../../../Text/Text.mjs";
6
6
  import { Heading } from "../../../Heading/Heading.mjs";
7
7
  import __locale_default from "../../../../../../../_virtual/_16.locale.mjs";
8
8
  import { IllustratedMessage } from "../../../IllustratedMessage/IllustratedMessage.mjs";
@@ -20,7 +20,7 @@ import remarkGfm from "remark-gfm";
20
20
  * @flr-ignore-props components
21
21
  */
22
22
  var Markdown = (props) => {
23
- const { children, color = "default", className, headingOffset = 0, components: customComponents, ref, remarkPlugins, urlTransform, ...rest } = props;
23
+ const { children, color = "default", className, headingOffset = 0, components: customComponents, ref, allowElement, allowedElements, disallowedElements, rehypePlugins, remarkPlugins, remarkRehypeOptions, skipHtml, unwrapDisallowed, urlTransform, ...rest } = props;
24
24
  const defaultComponents = {
25
25
  a: (props) => /* @__PURE__ */ jsx(Link, {
26
26
  target: "_blank",
@@ -99,7 +99,14 @@ var Markdown = (props) => {
99
99
  ...rest,
100
100
  ref,
101
101
  children: /* @__PURE__ */ jsx(ReactMarkdown, {
102
+ allowElement,
103
+ allowedElements,
104
+ disallowedElements,
105
+ rehypePlugins,
102
106
  remarkPlugins: remarkPlugins ?? [remarkGfm],
107
+ remarkRehypeOptions,
108
+ skipHtml,
109
+ unwrapDisallowed,
103
110
  urlTransform,
104
111
  components: mergedComponents,
105
112
  children: textContent
@@ -1 +1 @@
1
- {"version":3,"file":"Markdown.mjs","names":[],"sources":["../../../../../../../src/components/Markdown/Markdown.tsx"],"sourcesContent":["import { CodeBlock } from \"@/components/CodeBlock\";\nimport { Heading } from \"@/components/Heading\";\nimport { InlineCode } from \"@/components/InlineCode\";\nimport { Link } from \"@/components/Link\";\nimport { Separator } from \"@/components/Separator\";\nimport { Text } from \"@/components/Text\";\nimport type { CSSProperties, FC, ReactNode, Ref } from \"react\";\nimport { Children, isValidElement } from \"react\";\nimport type { Components, Options } from \"react-markdown\";\nimport ReactMarkdown from \"react-markdown\";\nimport styles from \"./Markdown.module.scss\";\nimport { extractTextFromFirstChild } from \"@/lib/react/remote\";\nimport type { AlphaColor, PropsWithClassName } from \"@/lib/types/props\";\nimport clsx from \"clsx\";\nimport remarkGfm from \"remark-gfm\";\nimport { getHeadingLevelWithOffset } from \"@/components/Markdown/lib/getHeadingLevelWithOffset\";\nimport type { CodeEditorLanguage } from \"@/components/CodeEditor/languages\";\n\nexport interface MarkdownProps\n extends PropsWithClassName, Omit<Options, \"components\"> {\n /** The color schema of the markdown component. @default \"default\" */\n color?: \"default\" | AlphaColor;\n /** Shifts all heading levels by the given offset. @default 0 */\n headingOffset?: number;\n /** Allows overriding markdown element renderers from outside. */\n components?: Components;\n /** @internal */\n style?: CSSProperties;\n /** A ref to the elements root. */\n ref?: Ref<HTMLDivElement>;\n}\n\n/**\n * @flr-generate all\n * @flr-ignore-props components\n */\nexport const Markdown: FC<MarkdownProps> = (props) => {\n const {\n children,\n color = \"default\",\n className,\n headingOffset = 0,\n components: customComponents,\n ref,\n remarkPlugins,\n urlTransform,\n ...rest\n } = props;\n\n const defaultComponents: Components = {\n a: (props) => (\n <Link target=\"_blank\" color={color} href={props.href}>\n {props.children}\n </Link>\n ),\n p: (props) => (\n <Text elementType=\"p\" color={color}>\n {props.children}\n </Text>\n ),\n code: (props) => <InlineCode color={color}>{props.children}</InlineCode>,\n h1: (props) => (\n <Heading\n level={getHeadingLevelWithOffset(1, headingOffset)}\n color={color}\n >\n {props.children}\n </Heading>\n ),\n h2: (props) => (\n <Heading\n level={getHeadingLevelWithOffset(2, headingOffset)}\n color={color}\n >\n {props.children}\n </Heading>\n ),\n h3: (props) => (\n <Heading\n level={getHeadingLevelWithOffset(3, headingOffset)}\n color={color}\n >\n {props.children}\n </Heading>\n ),\n h4: (props) => (\n <Heading\n level={getHeadingLevelWithOffset(4, headingOffset)}\n color={color}\n >\n {props.children}\n </Heading>\n ),\n h5: (props) => (\n <Heading\n level={getHeadingLevelWithOffset(5, headingOffset)}\n color={color}\n >\n {props.children}\n </Heading>\n ),\n h6: (props) => (\n <Heading\n level={getHeadingLevelWithOffset(6, headingOffset)}\n color={color}\n >\n {props.children}\n </Heading>\n ),\n hr: () => <Separator />,\n pre: (props) => {\n const preElementContent = Children.toArray(props.children)[0];\n\n return (\n <CodeBlock\n copyable={false}\n language={\n isValidElement<{ className?: string }>(preElementContent) &&\n preElementContent.props.className\n ? (preElementContent.props.className.replace(\n \"language-\",\n \"\",\n ) as CodeEditorLanguage)\n : undefined\n }\n code={String(\n isValidElement<{ children: string }>(preElementContent)\n ? preElementContent.props.children\n : preElementContent,\n ).trim()}\n />\n );\n },\n ul: (props) => (\n <Text color={color}>\n <ul>{props.children as ReactNode}</ul>\n </Text>\n ),\n ol: (props) => (\n <Text color={color}>\n <ol>{props.children as ReactNode}</ol>\n </Text>\n ),\n blockquote: (props) => (\n <Text color={color}>\n <blockquote>{props.children}</blockquote>\n </Text>\n ),\n };\n\n const textContent = extractTextFromFirstChild(children);\n const mergedComponents: Components = {\n ...defaultComponents,\n ...customComponents,\n };\n\n return (\n <div className={clsx(styles.markdown, className)} {...rest} ref={ref}>\n <ReactMarkdown\n remarkPlugins={remarkPlugins ?? [remarkGfm]}\n urlTransform={urlTransform}\n components={mergedComponents}\n >\n {textContent}\n </ReactMarkdown>\n </div>\n );\n};\n\nexport default Markdown;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoCA,IAAa,YAA+B,UAAU;CACpD,MAAM,EACJ,UACA,QAAQ,WACR,WACA,gBAAgB,GAChB,YAAY,kBACZ,KACA,eACA,cACA,GAAG,SACD;CAEJ,MAAM,oBAAgC;EACpC,IAAI,UACF,oBAAC,MAAD;GAAM,QAAO;GAAgB;GAAO,MAAM,MAAM;GAC7C,UAAA,MAAM;EACH,CAAA;EAER,IAAI,UACF,oBAAC,MAAD;GAAM,aAAY;GAAW;GAC1B,UAAA,MAAM;EACH,CAAA;EAER,OAAO,UAAU,oBAAC,YAAD;GAAmB;GAAQ,UAAA,MAAM;EAAqB,CAAA;EACvE,KAAK,UACH,oBAAC,SAAD;GACE,OAAO,0BAA0B,GAAG,aAAa;GAC1C;GAEN,UAAA,MAAM;EACA,CAAA;EAEX,KAAK,UACH,oBAAC,SAAD;GACE,OAAO,0BAA0B,GAAG,aAAa;GAC1C;GAEN,UAAA,MAAM;EACA,CAAA;EAEX,KAAK,UACH,oBAAC,SAAD;GACE,OAAO,0BAA0B,GAAG,aAAa;GAC1C;GAEN,UAAA,MAAM;EACA,CAAA;EAEX,KAAK,UACH,oBAAC,SAAD;GACE,OAAO,0BAA0B,GAAG,aAAa;GAC1C;GAEN,UAAA,MAAM;EACA,CAAA;EAEX,KAAK,UACH,oBAAC,SAAD;GACE,OAAO,0BAA0B,GAAG,aAAa;GAC1C;GAEN,UAAA,MAAM;EACA,CAAA;EAEX,KAAK,UACH,oBAAC,SAAD;GACE,OAAO,0BAA0B,GAAG,aAAa;GAC1C;GAEN,UAAA,MAAM;EACA,CAAA;EAEX,UAAU,oBAAC,WAAD,CAAY,CAAA;EACtB,MAAM,UAAU;GACd,MAAM,oBAAoB,SAAS,QAAQ,MAAM,QAAQ,CAAC,CAAC;GAE3D,OACE,oBAAC,WAAD;IACE,UAAU;IACV,UACE,eAAuC,iBAAiB,KACxD,kBAAkB,MAAM,YACnB,kBAAkB,MAAM,UAAU,QACjC,aACA,EACF,IACA,KAAA;IAEN,MAAM,OACJ,eAAqC,iBAAiB,IAClD,kBAAkB,MAAM,WACxB,iBACN,CAAC,CAAC,KAAK;GACR,CAAA;EAEL;EACA,KAAK,UACH,oBAAC,MAAD;GAAa;GACX,UAAA,oBAAC,MAAD,EAAA,UAAK,MAAM,SAA0B,CAAA;EACjC,CAAA;EAER,KAAK,UACH,oBAAC,MAAD;GAAa;GACX,UAAA,oBAAC,MAAD,EAAA,UAAK,MAAM,SAA0B,CAAA;EACjC,CAAA;EAER,aAAa,UACX,oBAAC,MAAD;GAAa;GACX,UAAA,oBAAC,cAAD,EAAA,UAAa,MAAM,SAAqB,CAAA;EACpC,CAAA;CAEV;CAEA,MAAM,cAAc,0BAA0B,QAAQ;CACtD,MAAM,mBAA+B;EACnC,GAAG;EACH,GAAG;CACL;CAEA,OACE,oBAAC,OAAD;EAAK,WAAW,KAAK,wBAAO,UAAU,SAAS;EAAG,GAAI;EAAW;EAC/D,UAAA,oBAAC,eAAD;GACE,eAAe,iBAAiB,CAAC,SAAS;GAC5B;GACd,YAAY;GAEX,UAAA;EACY,CAAA;CACZ,CAAA;AAET"}
1
+ {"version":3,"file":"Markdown.mjs","names":[],"sources":["../../../../../../../src/components/Markdown/Markdown.tsx"],"sourcesContent":["import { CodeBlock } from \"@/components/CodeBlock\";\nimport { Heading } from \"@/components/Heading\";\nimport { InlineCode } from \"@/components/InlineCode\";\nimport { Link } from \"@/components/Link\";\nimport { Separator } from \"@/components/Separator\";\nimport { Text } from \"@/components/Text\";\nimport type { CSSProperties, FC, ReactNode, Ref } from \"react\";\nimport { Children, isValidElement } from \"react\";\nimport type { Components, Options } from \"react-markdown\";\nimport ReactMarkdown from \"react-markdown\";\nimport styles from \"./Markdown.module.scss\";\nimport { extractTextFromFirstChild } from \"@/lib/react/remote\";\nimport type { AlphaColor, PropsWithClassName } from \"@/lib/types/props\";\nimport clsx from \"clsx\";\nimport remarkGfm from \"remark-gfm\";\nimport { getHeadingLevelWithOffset } from \"@/components/Markdown/lib/getHeadingLevelWithOffset\";\nimport type { CodeEditorLanguage } from \"@/components/CodeEditor/languages\";\n\nexport interface MarkdownProps\n extends PropsWithClassName, Omit<Options, \"components\"> {\n /** The color schema of the markdown component. @default \"default\" */\n color?: \"default\" | AlphaColor;\n /** Shifts all heading levels by the given offset. @default 0 */\n headingOffset?: number;\n /** Allows overriding markdown element renderers from outside. */\n components?: Components;\n /** @internal */\n style?: CSSProperties;\n /** A ref to the elements root. */\n ref?: Ref<HTMLDivElement>;\n}\n\n/**\n * @flr-generate all\n * @flr-ignore-props components\n */\nexport const Markdown: FC<MarkdownProps> = (props) => {\n const {\n children,\n color = \"default\",\n className,\n headingOffset = 0,\n components: customComponents,\n ref,\n allowElement,\n allowedElements,\n disallowedElements,\n rehypePlugins,\n remarkPlugins,\n remarkRehypeOptions,\n skipHtml,\n unwrapDisallowed,\n urlTransform,\n ...rest\n } = props;\n\n const defaultComponents: Components = {\n a: (props) => (\n <Link target=\"_blank\" color={color} href={props.href}>\n {props.children}\n </Link>\n ),\n p: (props) => (\n <Text elementType=\"p\" color={color}>\n {props.children}\n </Text>\n ),\n code: (props) => <InlineCode color={color}>{props.children}</InlineCode>,\n h1: (props) => (\n <Heading\n level={getHeadingLevelWithOffset(1, headingOffset)}\n color={color}\n >\n {props.children}\n </Heading>\n ),\n h2: (props) => (\n <Heading\n level={getHeadingLevelWithOffset(2, headingOffset)}\n color={color}\n >\n {props.children}\n </Heading>\n ),\n h3: (props) => (\n <Heading\n level={getHeadingLevelWithOffset(3, headingOffset)}\n color={color}\n >\n {props.children}\n </Heading>\n ),\n h4: (props) => (\n <Heading\n level={getHeadingLevelWithOffset(4, headingOffset)}\n color={color}\n >\n {props.children}\n </Heading>\n ),\n h5: (props) => (\n <Heading\n level={getHeadingLevelWithOffset(5, headingOffset)}\n color={color}\n >\n {props.children}\n </Heading>\n ),\n h6: (props) => (\n <Heading\n level={getHeadingLevelWithOffset(6, headingOffset)}\n color={color}\n >\n {props.children}\n </Heading>\n ),\n hr: () => <Separator />,\n pre: (props) => {\n const preElementContent = Children.toArray(props.children)[0];\n\n return (\n <CodeBlock\n copyable={false}\n language={\n isValidElement<{ className?: string }>(preElementContent) &&\n preElementContent.props.className\n ? (preElementContent.props.className.replace(\n \"language-\",\n \"\",\n ) as CodeEditorLanguage)\n : undefined\n }\n code={String(\n isValidElement<{ children: string }>(preElementContent)\n ? preElementContent.props.children\n : preElementContent,\n ).trim()}\n />\n );\n },\n ul: (props) => (\n <Text color={color}>\n <ul>{props.children as ReactNode}</ul>\n </Text>\n ),\n ol: (props) => (\n <Text color={color}>\n <ol>{props.children as ReactNode}</ol>\n </Text>\n ),\n blockquote: (props) => (\n <Text color={color}>\n <blockquote>{props.children}</blockquote>\n </Text>\n ),\n };\n\n const textContent = extractTextFromFirstChild(children);\n const mergedComponents: Components = {\n ...defaultComponents,\n ...customComponents,\n };\n\n return (\n <div className={clsx(styles.markdown, className)} {...rest} ref={ref}>\n <ReactMarkdown\n allowElement={allowElement}\n allowedElements={allowedElements}\n disallowedElements={disallowedElements}\n rehypePlugins={rehypePlugins}\n remarkPlugins={remarkPlugins ?? [remarkGfm]}\n remarkRehypeOptions={remarkRehypeOptions}\n skipHtml={skipHtml}\n unwrapDisallowed={unwrapDisallowed}\n urlTransform={urlTransform}\n components={mergedComponents}\n >\n {textContent}\n </ReactMarkdown>\n </div>\n );\n};\n\nexport default Markdown;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoCA,IAAa,YAA+B,UAAU;CACpD,MAAM,EACJ,UACA,QAAQ,WACR,WACA,gBAAgB,GAChB,YAAY,kBACZ,KACA,cACA,iBACA,oBACA,eACA,eACA,qBACA,UACA,kBACA,cACA,GAAG,SACD;CAEJ,MAAM,oBAAgC;EACpC,IAAI,UACF,oBAAC,MAAD;GAAM,QAAO;GAAgB;GAAO,MAAM,MAAM;GAC7C,UAAA,MAAM;EACH,CAAA;EAER,IAAI,UACF,oBAAC,MAAD;GAAM,aAAY;GAAW;GAC1B,UAAA,MAAM;EACH,CAAA;EAER,OAAO,UAAU,oBAAC,YAAD;GAAmB;GAAQ,UAAA,MAAM;EAAqB,CAAA;EACvE,KAAK,UACH,oBAAC,SAAD;GACE,OAAO,0BAA0B,GAAG,aAAa;GAC1C;GAEN,UAAA,MAAM;EACA,CAAA;EAEX,KAAK,UACH,oBAAC,SAAD;GACE,OAAO,0BAA0B,GAAG,aAAa;GAC1C;GAEN,UAAA,MAAM;EACA,CAAA;EAEX,KAAK,UACH,oBAAC,SAAD;GACE,OAAO,0BAA0B,GAAG,aAAa;GAC1C;GAEN,UAAA,MAAM;EACA,CAAA;EAEX,KAAK,UACH,oBAAC,SAAD;GACE,OAAO,0BAA0B,GAAG,aAAa;GAC1C;GAEN,UAAA,MAAM;EACA,CAAA;EAEX,KAAK,UACH,oBAAC,SAAD;GACE,OAAO,0BAA0B,GAAG,aAAa;GAC1C;GAEN,UAAA,MAAM;EACA,CAAA;EAEX,KAAK,UACH,oBAAC,SAAD;GACE,OAAO,0BAA0B,GAAG,aAAa;GAC1C;GAEN,UAAA,MAAM;EACA,CAAA;EAEX,UAAU,oBAAC,WAAD,CAAY,CAAA;EACtB,MAAM,UAAU;GACd,MAAM,oBAAoB,SAAS,QAAQ,MAAM,QAAQ,CAAC,CAAC;GAE3D,OACE,oBAAC,WAAD;IACE,UAAU;IACV,UACE,eAAuC,iBAAiB,KACxD,kBAAkB,MAAM,YACnB,kBAAkB,MAAM,UAAU,QACjC,aACA,EACF,IACA,KAAA;IAEN,MAAM,OACJ,eAAqC,iBAAiB,IAClD,kBAAkB,MAAM,WACxB,iBACN,CAAC,CAAC,KAAK;GACR,CAAA;EAEL;EACA,KAAK,UACH,oBAAC,MAAD;GAAa;GACX,UAAA,oBAAC,MAAD,EAAA,UAAK,MAAM,SAA0B,CAAA;EACjC,CAAA;EAER,KAAK,UACH,oBAAC,MAAD;GAAa;GACX,UAAA,oBAAC,MAAD,EAAA,UAAK,MAAM,SAA0B,CAAA;EACjC,CAAA;EAER,aAAa,UACX,oBAAC,MAAD;GAAa;GACX,UAAA,oBAAC,cAAD,EAAA,UAAa,MAAM,SAAqB,CAAA;EACpC,CAAA;CAEV;CAEA,MAAM,cAAc,0BAA0B,QAAQ;CACtD,MAAM,mBAA+B;EACnC,GAAG;EACH,GAAG;CACL;CAEA,OACE,oBAAC,OAAD;EAAK,WAAW,KAAK,wBAAO,UAAU,SAAS;EAAG,GAAI;EAAW;EAC/D,UAAA,oBAAC,eAAD;GACgB;GACG;GACG;GACL;GACf,eAAe,iBAAiB,CAAC,SAAS;GACrB;GACX;GACQ;GACJ;GACd,YAAY;GAEX,UAAA;EACY,CAAA;CACZ,CAAA;AAET"}
@@ -1 +1 @@
1
- {"version":3,"file":"Markdown.module.mjs","names":[],"sources":["../../../../../../../src/components/Markdown/Markdown.module.scss"],"sourcesContent":[".markdown {\n display: flex;\n flex-direction: column;\n row-gap: var(--markdown--spacing);\n min-width: 0;\n\n p {\n white-space: break-spaces;\n }\n\n table {\n border-radius: var(--table--corner-radius);\n border-width: var(--table--border-width);\n border-style: var(--table--border-style);\n border-color: var(--table--border-color);\n border-spacing: 0;\n background-color: var(--table--background-color);\n\n thead {\n font-weight: var(--table--header-font-weight);\n }\n\n th,\n td {\n padding-inline: var(--table--padding-x);\n padding-block: var(--table--padding-y);\n text-align: start;\n border-style: var(--table--border-style);\n border-color: var(--table--border-color);\n border-width: 0;\n }\n\n th {\n border-block-end-width: var(--table--header-border-width);\n }\n\n tbody tr {\n &:nth-of-type(odd) td {\n background-color: var(--table--background-color-accent);\n }\n\n &:not(:last-child) td {\n border-block-end-width: var(--table--border-width);\n }\n }\n }\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Markdown.module.mjs","names":[],"sources":["../../../../../../../src/components/Markdown/Markdown.module.scss"],"sourcesContent":[".markdown {\n display: flex;\n flex-direction: column;\n row-gap: var(--markdown--spacing);\n min-width: 0;\n\n p {\n white-space: break-spaces;\n }\n\n table {\n border-radius: var(--table--corner-radius);\n overflow: hidden;\n border-width: var(--table--border-width);\n border-style: var(--table--border-style);\n border-color: var(--table--border-color);\n border-spacing: 0;\n background-color: var(--table--background-color);\n\n thead {\n font-weight: var(--table--header-font-weight);\n }\n\n th,\n td {\n padding-inline: var(--table--padding-x);\n padding-block: var(--table--padding-y);\n text-align: start;\n border-style: var(--table--border-style);\n border-color: var(--table--border-color);\n border-width: 0;\n }\n\n th {\n border-block-end-width: var(--table--header-border-width);\n }\n\n tbody tr {\n &:nth-of-type(odd) td {\n background-color: var(--table--background-color-accent);\n }\n\n &:not(:last-child) td {\n border-block-end-width: var(--table--border-width);\n }\n }\n }\n}\n"],"mappings":""}
@@ -9,8 +9,8 @@ import { Wrap } from "../Wrap/Wrap.mjs";
9
9
  import { useLocalizedStringFormatter } from "../TranslationProvider/useLocalizedStringFormatter.mjs";
10
10
  import { OverlayController } from "../../lib/controller/overlay/OverlayController.mjs";
11
11
  import { Action } from "../Action/Action.mjs";
12
- import DivView from "../../views/DivView.mjs";
13
12
  import ButtonView from "../../views/ButtonView.mjs";
13
+ import DivView from "../../views/DivView.mjs";
14
14
  import { Overlay } from "../Overlay/Overlay.mjs";
15
15
  import Modal_module_default from "./Modal.module.mjs";
16
16
  import { OffCanvasSuspenseFallback } from "./components/OffCanvasSuspenseFallback/OffCanvasSuspenseFallback.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.module.mjs","names":[],"sources":["../../../../../../../src/components/Modal/Modal.module.scss"],"sourcesContent":["@use \"@/styles/mixins/scrollbar\";\n\n/* Caps the dialog width per size token (`size-s` / `size-m` / `size-l`). */\n@mixin size($size) {\n &.size-#{$size} {\n [role=\"dialog\"] {\n width: inherit;\n max-width: var(--modal--size--#{$size});\n }\n }\n}\n\n/* ===========================================================================\n Base — shared by Modal (centered / bottom sheet) and OffCanvas (side panel).\n =========================================================================== */\n.modal,\n.offCanvas {\n /* Fixed full-viewport layer + centering wrapper. Sized to the visual\n viewport so it tracks the on-screen keyboard (Overlay sets the var). */\n > div {\n position: fixed;\n height: var(--visual-viewport-height);\n display: flex;\n flex-direction: column;\n width: 100%;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n\n > div {\n display: flex;\n justify-content: center;\n width: inherit;\n max-height: var(--visual-viewport-height);\n padding: var(--size-px--xl);\n }\n }\n\n /* Close button: hidden when an action group is present, unless forced. */\n &:has(.actionGroup) {\n .closeButton:not(.alwaysVisible) {\n display: none;\n }\n }\n\n .closeButton.alwaysHidden {\n display: none;\n }\n\n /* The dialog card itself — a flex column. */\n [role=\"dialog\"] {\n display: flex;\n flex-direction: column;\n max-height: 100%;\n overflow: hidden;\n outline: none;\n pointer-events: all;\n background-color: var(--modal--background-color);\n border: var(--modal--border-width) var(--modal--border-style)\n var(--modal--border-color);\n\n > form {\n display: contents;\n }\n }\n\n /* Header */\n header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .header {\n display: flex;\n align-items: center;\n gap: var(--heading--icon-to-text-spacing);\n padding-top: var(--modal--header-padding-top);\n padding-inline: var(--modal--padding);\n\n /* Flatten the heading's text and content spans into the header row, so\n badges stay behind the title instead of wrapping onto their own line. */\n > span {\n display: contents;\n }\n\n .headerTitle {\n min-width: 0;\n }\n\n .closeButton {\n order: 1;\n margin-inline-start: auto;\n }\n }\n\n /* Content — the scrollable body */\n .content,\n .columnLayout {\n @include scrollbar.scrollbar;\n\n flex-grow: 1;\n min-height: var(--modal--content-min-height);\n padding: var(--modal--padding);\n overflow: hidden auto;\n background-color: var(--modal--background-color);\n }\n\n .columnLayout .accentBox {\n position: sticky;\n top: 0;\n height: fit-content;\n }\n\n /* Action group — the footer */\n .actionGroup {\n padding: var(--modal--padding);\n background-color: var(--modal--footer-background-color);\n }\n\n /* ActionGroup's \"sorted\" layout sets flex-grow:1 on itself; the modal footer\n must keep its natural height (otherwise it fills the full-height off-canvas\n panel). Scope via the dialog so flex-grow:0 wins the equal-specificity /\n source-order battle — without raising the specificity of the padding above,\n which the mobile rules override. */\n [role=\"dialog\"] .actionGroup {\n flex-grow: 0;\n }\n}\n\n/* ===========================================================================\n Modal — desktop (centered dialog, zoom in/out).\n =========================================================================== */\n@media (width > 768px) {\n .modal {\n @include size(s);\n @include size(m);\n @include size(l);\n\n [role=\"dialog\"] {\n border-radius: var(--modal--corner-radius);\n }\n\n > div > div {\n &[data-entering] {\n animation: modal-zoom var(--transition--duration--slow)\n cubic-bezier(0.1, 0.8, 0.3, 1.2);\n }\n\n &[data-exiting] {\n animation: modal-zoom var(--transition--duration--default)\n cubic-bezier(0.1, 0.8, 0.3, 1.2) reverse;\n }\n }\n }\n}\n\n/* ===========================================================================\n OffCanvas — side panel (all widths), full height, slides in from the side.\n =========================================================================== */\n.offCanvas {\n @include size(s);\n @include size(m);\n @include size(l);\n\n [role=\"dialog\"] {\n height: 100%;\n border-radius: 0;\n }\n\n > div {\n padding-inline-start: var(--size-px--m);\n\n > div {\n justify-content: flex-end;\n width: inherit;\n height: inherit;\n padding: unset;\n\n &[data-entering] {\n animation: modal-slide-in-from-right var(--transition--duration--slow);\n }\n\n &[data-exiting] {\n animation: modal-slide-in-from-right\n var(--transition--duration--default) reverse;\n }\n }\n }\n\n &.left {\n > div {\n padding-inline: 0 var(--size-px--m);\n\n > div {\n justify-content: flex-start;\n padding: unset;\n\n &[data-entering] {\n animation: modal-slide-in-from-left var(--transition--duration--slow);\n }\n\n &[data-exiting] {\n animation: modal-slide-in-from-left\n var(--transition--duration--default) reverse;\n }\n }\n }\n }\n}\n\n/* ===========================================================================\n Modal — mobile (bottom sheet), issue #2423.\n\n One scroll container: the dialog scrolls while the header sticks to the top\n and the footer to the bottom. While the virtual keyboard is open\n (.keyboardVisible) both un-stick so header + content + footer flow normally\n and the content gets the full available space.\n =========================================================================== */\n@media (max-width: 768px) {\n .modal {\n /* Bottom-anchored sheet: rounded top corners + slide-up animation. */\n > div > div {\n margin-top: auto;\n width: 100%;\n padding: unset;\n overflow: hidden;\n border-start-start-radius: var(--modal--corner-radius);\n border-start-end-radius: var(--modal--corner-radius);\n pointer-events: all;\n\n &[data-entering] {\n animation: modal-slide-up var(--transition--duration--slow);\n }\n\n &[data-exiting] {\n animation: modal-slide-up var(--transition--duration--default) reverse;\n }\n }\n\n /* The dialog is the single scroll container. Capped just below the visual\n viewport so a full-height sheet keeps a small gap from the top edge. */\n [role=\"dialog\"] {\n @include scrollbar.scrollbar;\n\n width: inherit;\n max-height: calc(\n var(--visual-viewport-height) - var(--modal--tray-top-spacing)\n );\n overflow: hidden auto;\n }\n\n [role=\"dialog\"] > form {\n width: inherit;\n }\n\n /* flex: 0 0 auto keeps natural heights; without flex-shrink:0 the flex\n column compresses the content box and the (overflow:visible) fields\n spill over the footer. */\n .header,\n .content,\n .columnLayout,\n .actionGroup {\n flex: 0 0 auto;\n }\n\n .content,\n .columnLayout {\n min-height: 0;\n overflow: visible;\n }\n\n /* Docked header + footer (sticky within the single scroll container). */\n .header {\n position: sticky;\n top: 0;\n z-index: 1;\n background-color: var(--modal--background-color);\n }\n\n .actionGroup {\n position: sticky;\n bottom: 0;\n z-index: 1;\n }\n }\n\n /* Keyboard open: un-stick both so everything flows for maximum typing space.\n The dialog fills the available height and the footer uses margin-top:auto,\n so with SHORT content the footer still sits at the bottom (not mid-air) and\n with tall content it scrolls away with everything else. Never hidden. */\n .modal.keyboardVisible {\n [role=\"dialog\"] {\n min-height: calc(\n var(--visual-viewport-height) - var(--modal--tray-top-spacing)\n );\n }\n\n .header,\n .actionGroup {\n position: static;\n }\n\n .actionGroup {\n margin-top: auto;\n }\n }\n\n /* Shared mobile spacing + full-width stacked actions (Modal + OffCanvas). */\n .modal,\n .offCanvas {\n .header {\n padding-inline: var(--modal--padding-mobile);\n }\n\n .content,\n .columnLayout,\n .actionGroup {\n padding: var(--modal--padding-mobile);\n }\n\n .actionGroup {\n flex-direction: column;\n\n button {\n width: 100%;\n }\n }\n }\n}\n\n/* ===========================================================================\n Animations\n =========================================================================== */\n@keyframes modal-zoom {\n /* Start with scale(1) to let ResizeObservers take the correct width on mount. */\n 0% {\n opacity: 0;\n transform: scale(1);\n }\n\n 0.1% {\n opacity: 1;\n transform: scale(0.8);\n }\n\n 100% {\n transform: scale(1);\n }\n}\n\n@keyframes modal-slide-up {\n from {\n translate: 0 30%;\n }\n\n to {\n translate: 0 0;\n }\n}\n\n@keyframes modal-slide-in-from-right {\n from {\n translate: 30% 0;\n }\n\n to {\n translate: 0 0;\n }\n}\n\n@keyframes modal-slide-in-from-left {\n from {\n translate: -30% 0;\n }\n\n to {\n translate: 0 0;\n }\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Modal.module.mjs","names":[],"sources":["../../../../../../../src/components/Modal/Modal.module.scss"],"sourcesContent":["@use \"@/styles/mixins/scrollbar\";\n\n/* Caps the dialog width per size token (`size-s` / `size-m` / `size-l`). */\n@mixin size($size) {\n &.size-#{$size} {\n [role=\"dialog\"] {\n width: inherit;\n max-width: var(--modal--size--#{$size});\n }\n }\n}\n\n/* ===========================================================================\n Base — shared by Modal (centered / bottom sheet) and OffCanvas (side panel).\n =========================================================================== */\n.modal,\n.offCanvas {\n /* Fixed full-viewport layer + centering wrapper. Sized to the visual\n viewport so it tracks the on-screen keyboard (Overlay sets the var). */\n > div {\n position: fixed;\n height: var(--visual-viewport-height);\n display: flex;\n flex-direction: column;\n width: 100%;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n\n > div {\n display: flex;\n justify-content: center;\n width: inherit;\n max-height: var(--visual-viewport-height);\n padding: var(--size-px--xl);\n }\n }\n\n /* Close button: hidden when an action group is present, unless forced. */\n &:has(.actionGroup) {\n .closeButton:not(.alwaysVisible) {\n display: none;\n }\n }\n\n .closeButton.alwaysHidden {\n display: none;\n }\n\n /* The dialog card itself — a flex column. It is also the scroll container on\n mobile, and the sticky header/footer stack against its content only. */\n [role=\"dialog\"] {\n display: flex;\n flex-direction: column;\n isolation: isolate;\n max-height: 100%;\n overflow: hidden;\n outline: none;\n pointer-events: all;\n background-color: var(--modal--background-color);\n border: var(--modal--border-width) var(--modal--border-style)\n var(--modal--border-color);\n\n > form {\n display: contents;\n }\n }\n\n /* Header */\n header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .header {\n display: flex;\n align-items: center;\n gap: var(--heading--icon-to-text-spacing);\n padding-top: var(--modal--header-padding-top);\n padding-inline: var(--modal--padding);\n\n /* Flatten the heading's text and content spans into the header row, so\n badges stay behind the title instead of wrapping onto their own line. */\n > span {\n display: contents;\n }\n\n .headerTitle {\n min-width: 0;\n }\n\n .closeButton {\n order: 1;\n margin-inline-start: auto;\n }\n }\n\n /* Content — the scrollable body */\n .content,\n .columnLayout {\n @include scrollbar.scrollbar;\n\n flex-grow: 1;\n min-height: var(--modal--content-min-height);\n padding: var(--modal--padding);\n overflow: hidden auto;\n background-color: var(--modal--background-color);\n }\n\n .columnLayout .accentBox {\n position: sticky;\n top: 0;\n height: fit-content;\n }\n\n /* Action group — the footer */\n .actionGroup {\n padding: var(--modal--padding);\n background-color: var(--modal--footer-background-color);\n }\n\n /* ActionGroup's \"sorted\" layout sets flex-grow:1 on itself; the modal footer\n must keep its natural height (otherwise it fills the full-height off-canvas\n panel). Scope via the dialog so flex-grow:0 wins the equal-specificity /\n source-order battle — without raising the specificity of the padding above,\n which the mobile rules override. */\n [role=\"dialog\"] .actionGroup {\n flex-grow: 0;\n }\n}\n\n/* ===========================================================================\n Modal — desktop (centered dialog, zoom in/out).\n =========================================================================== */\n@media (width > 768px) {\n .modal {\n @include size(s);\n @include size(m);\n @include size(l);\n\n [role=\"dialog\"] {\n border-radius: var(--modal--corner-radius);\n }\n\n > div > div {\n &[data-entering] {\n animation: modal-zoom var(--transition--duration--slow)\n cubic-bezier(0.1, 0.8, 0.3, 1.2);\n }\n\n &[data-exiting] {\n animation: modal-zoom var(--transition--duration--default)\n cubic-bezier(0.1, 0.8, 0.3, 1.2) reverse;\n }\n }\n }\n}\n\n/* ===========================================================================\n OffCanvas — side panel (all widths), full height, slides in from the side.\n =========================================================================== */\n.offCanvas {\n @include size(s);\n @include size(m);\n @include size(l);\n\n [role=\"dialog\"] {\n height: 100%;\n border-radius: 0;\n }\n\n > div {\n padding-inline-start: var(--size-px--m);\n\n > div {\n justify-content: flex-end;\n width: inherit;\n height: inherit;\n padding: unset;\n\n &[data-entering] {\n animation: modal-slide-in-from-right var(--transition--duration--slow);\n }\n\n &[data-exiting] {\n animation: modal-slide-in-from-right\n var(--transition--duration--default) reverse;\n }\n }\n }\n\n &.left {\n > div {\n padding-inline: 0 var(--size-px--m);\n\n > div {\n justify-content: flex-start;\n padding: unset;\n\n &[data-entering] {\n animation: modal-slide-in-from-left var(--transition--duration--slow);\n }\n\n &[data-exiting] {\n animation: modal-slide-in-from-left\n var(--transition--duration--default) reverse;\n }\n }\n }\n }\n}\n\n/* ===========================================================================\n Modal — mobile (bottom sheet), issue #2423.\n\n One scroll container: the dialog scrolls while the header sticks to the top\n and the footer to the bottom. While the virtual keyboard is open\n (.keyboardVisible) both un-stick so header + content + footer flow normally\n and the content gets the full available space.\n =========================================================================== */\n@media (max-width: 768px) {\n .modal {\n /* Bottom-anchored sheet: rounded top corners + slide-up animation. */\n > div > div {\n margin-top: auto;\n width: 100%;\n padding: unset;\n overflow: hidden;\n border-start-start-radius: var(--modal--corner-radius);\n border-start-end-radius: var(--modal--corner-radius);\n pointer-events: all;\n\n &[data-entering] {\n animation: modal-slide-up var(--transition--duration--slow);\n }\n\n &[data-exiting] {\n animation: modal-slide-up var(--transition--duration--default) reverse;\n }\n }\n\n /* The dialog is the single scroll container. Capped just below the visual\n viewport so a full-height sheet keeps a small gap from the top edge. */\n [role=\"dialog\"] {\n @include scrollbar.scrollbar;\n\n width: inherit;\n max-height: calc(\n var(--visual-viewport-height) - var(--modal--tray-top-spacing)\n );\n overflow: hidden auto;\n }\n\n [role=\"dialog\"] > form {\n width: inherit;\n }\n\n /* flex: 0 0 auto keeps natural heights; without flex-shrink:0 the flex\n column compresses the content box and the (overflow:visible) fields\n spill over the footer. */\n .header,\n .content,\n .columnLayout,\n .actionGroup {\n flex: 0 0 auto;\n }\n\n .content,\n .columnLayout {\n min-height: 0;\n overflow: visible;\n }\n\n /* Docked header + footer (sticky within the single scroll container). */\n .header {\n position: sticky;\n top: 0;\n z-index: 1;\n background-color: var(--modal--background-color);\n }\n\n .actionGroup {\n position: sticky;\n bottom: 0;\n z-index: 1;\n }\n }\n\n /* Keyboard open: un-stick both so everything flows for maximum typing space.\n The dialog fills the available height and the footer uses margin-top:auto,\n so with SHORT content the footer still sits at the bottom (not mid-air) and\n with tall content it scrolls away with everything else. Never hidden. */\n .modal.keyboardVisible {\n [role=\"dialog\"] {\n min-height: calc(\n var(--visual-viewport-height) - var(--modal--tray-top-spacing)\n );\n }\n\n .header,\n .actionGroup {\n position: static;\n }\n\n .actionGroup {\n margin-top: auto;\n }\n }\n\n /* Shared mobile spacing + full-width stacked actions (Modal + OffCanvas). */\n .modal,\n .offCanvas {\n .header {\n padding-inline: var(--modal--padding-mobile);\n }\n\n .content,\n .columnLayout,\n .actionGroup {\n padding: var(--modal--padding-mobile);\n }\n\n .actionGroup {\n flex-direction: column;\n\n button {\n width: 100%;\n }\n }\n }\n}\n\n/* ===========================================================================\n Animations\n =========================================================================== */\n@keyframes modal-zoom {\n /* Start with scale(1) to let ResizeObservers take the correct width on mount. */\n 0% {\n opacity: 0;\n transform: scale(1);\n }\n\n 0.1% {\n opacity: 1;\n transform: scale(0.8);\n }\n\n 100% {\n transform: scale(1);\n }\n}\n\n@keyframes modal-slide-up {\n from {\n translate: 0 30%;\n }\n\n to {\n translate: 0 0;\n }\n}\n\n@keyframes modal-slide-in-from-right {\n from {\n translate: 30% 0;\n }\n\n to {\n translate: 0 0;\n }\n}\n\n@keyframes modal-slide-in-from-left {\n from {\n translate: -30% 0;\n }\n\n to {\n translate: 0 0;\n }\n}\n"],"mappings":""}
@@ -2,11 +2,19 @@
2
2
  /* */
3
3
  import { PropsContextProvider } from "../../lib/propsContext/components/PropsContextProvider.mjs";
4
4
  import { flowComponent } from "../../lib/componentFactory/flowComponent.mjs";
5
+ import dynamic from "../../lib/propsContext/dynamicProps/dynamic.mjs";
6
+ import { containsTextChild } from "../../lib/react/remote.mjs";
5
7
  import Navigation_module_default from "./Navigation.module.mjs";
6
8
  import { LinkListTunnelExit } from "./components/LinkListTunnelExit/LinkListTunnelExit.mjs";
7
9
  import clsx from "clsx";
10
+ import { Children } from "react";
8
11
  import { jsx, jsxs } from "react/jsx-runtime";
9
12
  //#region src/components/Navigation/Navigation.tsx
13
+ /**
14
+ * A bare text node is an anonymous flex item that no rule can reach, so give
15
+ * the label an element the item can truncate.
16
+ */
17
+ var wrapTextInLabel = (children) => Children.map(children, (child) => containsTextChild(child) ? /* @__PURE__ */ jsx("span", { children: child }) : child);
10
18
  /** @flr-generate all */
11
19
  var Navigation = flowComponent("Navigation", (props) => {
12
20
  const { className, children, ref, ...rest } = props;
@@ -15,6 +23,7 @@ var Navigation = flowComponent("Navigation", (props) => {
15
23
  wrapWith: /* @__PURE__ */ jsx("li", {}),
16
24
  className: Navigation_module_default.item,
17
25
  unstyled: true,
26
+ children: dynamic((linkProps) => wrapTextInLabel(linkProps.children)),
18
27
  Icon: {
19
28
  className: Navigation_module_default.icon,
20
29
  size: "m"
@@ -1 +1 @@
1
- {"version":3,"file":"Navigation.mjs","names":[],"sources":["../../../../../../../src/components/Navigation/Navigation.tsx"],"sourcesContent":["import type { ComponentProps, PropsWithChildren } from \"react\";\nimport styles from \"./Navigation.module.scss\";\nimport clsx from \"clsx\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\nimport type { ComponentPropsContext } from \"@/lib/propsContext/types\";\nimport { LinkListTunnelExit } from \"@/components/Navigation/components/LinkListTunnelExit/LinkListTunnelExit\";\n\nexport interface NavigationProps\n extends\n PropsWithChildren<ComponentProps<\"nav\">>,\n PropsWithClassName,\n FlowComponentProps<HTMLElement> {}\n\n/** @flr-generate all */\nexport const Navigation = flowComponent(\"Navigation\", (props) => {\n const { className, children, ref, ...rest } = props;\n\n const rootClassName = clsx(styles.navigation, className);\n\n const linkPropsContext: ComponentPropsContext<\"Link\"> = {\n wrapWith: <li />,\n className: styles.item,\n unstyled: true,\n Icon: {\n className: styles.icon,\n size: \"m\",\n },\n Badge: { className: styles.badge },\n AlertBadge: { className: styles.badge },\n CounterBadge: { className: styles.badge },\n };\n\n return (\n <PropsContextProvider\n props={{\n Link: {\n ...linkPropsContext,\n tunnel: {\n id: \"links\",\n component: \"Navigation\",\n },\n },\n NavigationGroup: {\n Link: linkPropsContext,\n },\n }}\n >\n <nav className={rootClassName} role=\"navigation\" {...rest} ref={ref}>\n <LinkListTunnelExit id=\"links\" component=\"Navigation\" />\n {children}\n </nav>\n </PropsContextProvider>\n );\n});\n\nexport default Navigation;\n"],"mappings":";;;;;;;;;;AAmBA,IAAa,aAAa,cAAc,eAAe,UAAU;CAC/D,MAAM,EAAE,WAAW,UAAU,KAAK,GAAG,SAAS;CAE9C,MAAM,gBAAgB,KAAK,0BAAO,YAAY,SAAS;CAEvD,MAAM,mBAAkD;EACtD,UAAU,oBAAC,MAAD,CAAK,CAAA;EACf,WAAW,0BAAO;EAClB,UAAU;EACV,MAAM;GACJ,WAAW,0BAAO;GAClB,MAAM;EACR;EACA,OAAO,EAAE,WAAW,0BAAO,MAAM;EACjC,YAAY,EAAE,WAAW,0BAAO,MAAM;EACtC,cAAc,EAAE,WAAW,0BAAO,MAAM;CAC1C;CAEA,OACE,oBAAC,sBAAD;EACE,OAAO;GACL,MAAM;IACJ,GAAG;IACH,QAAQ;KACN,IAAI;KACJ,WAAW;IACb;GACF;GACA,iBAAiB,EACf,MAAM,iBACR;EACF;EAEA,UAAA,qBAAC,OAAD;GAAK,WAAW;GAAe,MAAK;GAAa,GAAI;GAAW;GAAhE,UAAA,CACE,oBAAC,oBAAD;IAAoB,IAAG;IAAQ,WAAU;GAAc,CAAA,GACtD,QACE;;CACe,CAAA;AAE1B,CAAC"}
1
+ {"version":3,"file":"Navigation.mjs","names":[],"sources":["../../../../../../../src/components/Navigation/Navigation.tsx"],"sourcesContent":["import type { ComponentProps, PropsWithChildren, ReactNode } from \"react\";\nimport { Children } from \"react\";\nimport styles from \"./Navigation.module.scss\";\nimport clsx from \"clsx\";\nimport { dynamic, PropsContextProvider } from \"@/lib/propsContext\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\nimport type { ComponentPropsContext } from \"@/lib/propsContext/types\";\nimport { LinkListTunnelExit } from \"@/components/Navigation/components/LinkListTunnelExit/LinkListTunnelExit\";\nimport { containsTextChild } from \"@/lib/react/remote\";\n\nexport interface NavigationProps\n extends\n PropsWithChildren<ComponentProps<\"nav\">>,\n PropsWithClassName,\n FlowComponentProps<HTMLElement> {}\n\n/**\n * A bare text node is an anonymous flex item that no rule can reach, so give\n * the label an element the item can truncate.\n */\nconst wrapTextInLabel = (children: ReactNode): ReactNode =>\n Children.map(children, (child) =>\n containsTextChild(child) ? <span>{child}</span> : child,\n );\n\n/** @flr-generate all */\nexport const Navigation = flowComponent(\"Navigation\", (props) => {\n const { className, children, ref, ...rest } = props;\n\n const rootClassName = clsx(styles.navigation, className);\n\n const linkPropsContext: ComponentPropsContext<\"Link\"> = {\n wrapWith: <li />,\n className: styles.item,\n unstyled: true,\n children: dynamic((linkProps) => wrapTextInLabel(linkProps.children)),\n Icon: {\n className: styles.icon,\n size: \"m\",\n },\n Badge: { className: styles.badge },\n AlertBadge: { className: styles.badge },\n CounterBadge: { className: styles.badge },\n };\n\n return (\n <PropsContextProvider\n props={{\n Link: {\n ...linkPropsContext,\n tunnel: {\n id: \"links\",\n component: \"Navigation\",\n },\n },\n NavigationGroup: {\n Link: linkPropsContext,\n },\n }}\n >\n <nav className={rootClassName} role=\"navigation\" {...rest} ref={ref}>\n <LinkListTunnelExit id=\"links\" component=\"Navigation\" />\n {children}\n </nav>\n </PropsContextProvider>\n );\n});\n\nexport default Navigation;\n"],"mappings":";;;;;;;;;;;;;;;;AAwBA,IAAM,mBAAmB,aACvB,SAAS,IAAI,WAAW,UACtB,kBAAkB,KAAK,IAAI,oBAAC,QAAD,EAAA,UAAO,MAAY,CAAA,IAAI,KACpD;;AAGF,IAAa,aAAa,cAAc,eAAe,UAAU;CAC/D,MAAM,EAAE,WAAW,UAAU,KAAK,GAAG,SAAS;CAE9C,MAAM,gBAAgB,KAAK,0BAAO,YAAY,SAAS;CAEvD,MAAM,mBAAkD;EACtD,UAAU,oBAAC,MAAD,CAAK,CAAA;EACf,WAAW,0BAAO;EAClB,UAAU;EACV,UAAU,SAAS,cAAc,gBAAgB,UAAU,QAAQ,CAAC;EACpE,MAAM;GACJ,WAAW,0BAAO;GAClB,MAAM;EACR;EACA,OAAO,EAAE,WAAW,0BAAO,MAAM;EACjC,YAAY,EAAE,WAAW,0BAAO,MAAM;EACtC,cAAc,EAAE,WAAW,0BAAO,MAAM;CAC1C;CAEA,OACE,oBAAC,sBAAD;EACE,OAAO;GACL,MAAM;IACJ,GAAG;IACH,QAAQ;KACN,IAAI;KACJ,WAAW;IACb;GACF;GACA,iBAAiB,EACf,MAAM,iBACR;EACF;EAEA,UAAA,qBAAC,OAAD;GAAK,WAAW;GAAe,MAAK;GAAa,GAAI;GAAW;GAAhE,UAAA,CACE,oBAAC,oBAAD;IAAoB,IAAG;IAAQ,WAAU;GAAc,CAAA,GACtD,QACE;;CACe,CAAA;AAE1B,CAAC"}