@mittwald/flow-react-components 0.2.0-alpha.92 → 0.2.0-alpha.93

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 (233) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/assets/doc-properties.json +10406 -10406
  3. package/dist/js/components/Action/Action.mjs +1 -1
  4. package/dist/js/components/Action/Action.mjs.map +1 -1
  5. package/dist/js/components/Activity/Activity.mjs +1 -1
  6. package/dist/js/components/Activity/Activity.mjs.map +1 -1
  7. package/dist/js/components/AvatarStack/AvatarStack.mjs +1 -1
  8. package/dist/js/components/AvatarStack/AvatarStack.mjs.map +1 -1
  9. package/dist/js/components/ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.mjs +1 -1
  10. package/dist/js/components/FileField/FileField.mjs +1 -1
  11. package/dist/js/components/FileField/FileField.mjs.map +1 -1
  12. package/dist/js/components/Flex/Flex.mjs +1 -1
  13. package/dist/js/components/Flex/Flex.mjs.map +1 -1
  14. package/dist/js/components/MessageSeparator/MessageSeparator.mjs +1 -1
  15. package/dist/js/components/MessageSeparator/MessageSeparator.mjs.map +1 -1
  16. package/dist/js/components/MessageThread/MessageThread.mjs +1 -1
  17. package/dist/js/components/MessageThread/MessageThread.mjs.map +1 -1
  18. package/dist/js/components/Modal/components/ModalTrigger/ModalTrigger.mjs +1 -1
  19. package/dist/js/components/OverlayTrigger/OverlayTrigger.mjs +1 -1
  20. package/dist/js/components/OverlayTrigger/OverlayTrigger.mjs.map +1 -1
  21. package/dist/js/components/Popover/components/PopoverTrigger/PopoverTrigger.mjs +1 -1
  22. package/dist/js/components/SegmentedControl/SegmentedControl.mjs +1 -1
  23. package/dist/js/components/SegmentedControl/SegmentedControl.mjs.map +1 -1
  24. package/dist/js/components/SettingsProvider/SettingsProvider.mjs +1 -1
  25. package/dist/js/components/SettingsProvider/SettingsProvider.mjs.map +1 -1
  26. package/dist/js/components/Wrap/Wrap.mjs +1 -1
  27. package/dist/js/components/Wrap/Wrap.mjs.map +1 -1
  28. package/dist/js/flr-universal.mjs +1 -1
  29. package/dist/js/index.mjs +3 -3
  30. package/dist/js/views/DialogTriggerView.mjs +2 -2
  31. package/dist/js/views/MenuTriggerView.mjs +2 -2
  32. package/dist/js/views/PopoverContentView.mjs +1 -1
  33. package/dist/types/components/Accordion/index.d.ts +1 -2
  34. package/dist/types/components/Accordion/index.d.ts.map +1 -1
  35. package/dist/types/components/Action/Action.d.ts +1 -0
  36. package/dist/types/components/Action/Action.d.ts.map +1 -1
  37. package/dist/types/components/Action/index.d.ts +1 -2
  38. package/dist/types/components/Action/index.d.ts.map +1 -1
  39. package/dist/types/components/ActionGroup/index.d.ts +1 -2
  40. package/dist/types/components/ActionGroup/index.d.ts.map +1 -1
  41. package/dist/types/components/Activity/Activity.d.ts +1 -0
  42. package/dist/types/components/Activity/Activity.d.ts.map +1 -1
  43. package/dist/types/components/Activity/index.d.ts +1 -2
  44. package/dist/types/components/Activity/index.d.ts.map +1 -1
  45. package/dist/types/components/Alert/index.d.ts +1 -2
  46. package/dist/types/components/Alert/index.d.ts.map +1 -1
  47. package/dist/types/components/AlertBadge/index.d.ts +1 -2
  48. package/dist/types/components/AlertBadge/index.d.ts.map +1 -1
  49. package/dist/types/components/AlertIcon/index.d.ts +1 -2
  50. package/dist/types/components/AlertIcon/index.d.ts.map +1 -1
  51. package/dist/types/components/Align/index.d.ts +1 -2
  52. package/dist/types/components/Align/index.d.ts.map +1 -1
  53. package/dist/types/components/Avatar/index.d.ts +1 -2
  54. package/dist/types/components/Avatar/index.d.ts.map +1 -1
  55. package/dist/types/components/AvatarStack/AvatarStack.d.ts +1 -0
  56. package/dist/types/components/AvatarStack/AvatarStack.d.ts.map +1 -1
  57. package/dist/types/components/AvatarStack/index.d.ts +1 -2
  58. package/dist/types/components/AvatarStack/index.d.ts.map +1 -1
  59. package/dist/types/components/Badge/index.d.ts +1 -2
  60. package/dist/types/components/Badge/index.d.ts.map +1 -1
  61. package/dist/types/components/Breadcrumb/index.d.ts +1 -2
  62. package/dist/types/components/Breadcrumb/index.d.ts.map +1 -1
  63. package/dist/types/components/Button/index.d.ts +1 -2
  64. package/dist/types/components/Button/index.d.ts.map +1 -1
  65. package/dist/types/components/Chat/index.d.ts +1 -2
  66. package/dist/types/components/Chat/index.d.ts.map +1 -1
  67. package/dist/types/components/Checkbox/index.d.ts +1 -2
  68. package/dist/types/components/Checkbox/index.d.ts.map +1 -1
  69. package/dist/types/components/CheckboxButton/index.d.ts +1 -2
  70. package/dist/types/components/CheckboxButton/index.d.ts.map +1 -1
  71. package/dist/types/components/CheckboxGroup/index.d.ts +1 -2
  72. package/dist/types/components/CheckboxGroup/index.d.ts.map +1 -1
  73. package/dist/types/components/CodeBlock/index.d.ts +1 -2
  74. package/dist/types/components/CodeBlock/index.d.ts.map +1 -1
  75. package/dist/types/components/ColumnLayout/index.d.ts +1 -2
  76. package/dist/types/components/ColumnLayout/index.d.ts.map +1 -1
  77. package/dist/types/components/ComboBox/index.d.ts +1 -2
  78. package/dist/types/components/ComboBox/index.d.ts.map +1 -1
  79. package/dist/types/components/Content/index.d.ts +1 -2
  80. package/dist/types/components/Content/index.d.ts.map +1 -1
  81. package/dist/types/components/ContextMenu/index.d.ts +1 -2
  82. package/dist/types/components/ContextMenu/index.d.ts.map +1 -1
  83. package/dist/types/components/ContextualHelp/index.d.ts +1 -2
  84. package/dist/types/components/ContextualHelp/index.d.ts.map +1 -1
  85. package/dist/types/components/CopyButton/index.d.ts +1 -2
  86. package/dist/types/components/CopyButton/index.d.ts.map +1 -1
  87. package/dist/types/components/CounterBadge/index.d.ts +1 -2
  88. package/dist/types/components/CounterBadge/index.d.ts.map +1 -1
  89. package/dist/types/components/DatePicker/index.d.ts +1 -2
  90. package/dist/types/components/DatePicker/index.d.ts.map +1 -1
  91. package/dist/types/components/DateRangePicker/index.d.ts +1 -2
  92. package/dist/types/components/DateRangePicker/index.d.ts.map +1 -1
  93. package/dist/types/components/Div/index.d.ts +1 -2
  94. package/dist/types/components/Div/index.d.ts.map +1 -1
  95. package/dist/types/components/EmulatedBoldText/index.d.ts +1 -2
  96. package/dist/types/components/EmulatedBoldText/index.d.ts.map +1 -1
  97. package/dist/types/components/FieldDescription/index.d.ts +1 -2
  98. package/dist/types/components/FieldDescription/index.d.ts.map +1 -1
  99. package/dist/types/components/FieldError/index.d.ts +1 -2
  100. package/dist/types/components/FieldError/index.d.ts.map +1 -1
  101. package/dist/types/components/FileCard/index.d.ts +1 -2
  102. package/dist/types/components/FileCard/index.d.ts.map +1 -1
  103. package/dist/types/components/FileCardList/index.d.ts +1 -2
  104. package/dist/types/components/FileCardList/index.d.ts.map +1 -1
  105. package/dist/types/components/FileDropZone/index.d.ts +1 -2
  106. package/dist/types/components/FileDropZone/index.d.ts.map +1 -1
  107. package/dist/types/components/FileField/FileField.d.ts +1 -0
  108. package/dist/types/components/FileField/FileField.d.ts.map +1 -1
  109. package/dist/types/components/FileField/index.d.ts +1 -2
  110. package/dist/types/components/FileField/index.d.ts.map +1 -1
  111. package/dist/types/components/Flex/Flex.d.ts +1 -0
  112. package/dist/types/components/Flex/Flex.d.ts.map +1 -1
  113. package/dist/types/components/Flex/index.d.ts +1 -2
  114. package/dist/types/components/Flex/index.d.ts.map +1 -1
  115. package/dist/types/components/Fragment/index.d.ts +1 -2
  116. package/dist/types/components/Fragment/index.d.ts.map +1 -1
  117. package/dist/types/components/Header/index.d.ts +1 -2
  118. package/dist/types/components/Header/index.d.ts.map +1 -1
  119. package/dist/types/components/HeaderNavigation/index.d.ts +1 -2
  120. package/dist/types/components/HeaderNavigation/index.d.ts.map +1 -1
  121. package/dist/types/components/Heading/index.d.ts +1 -2
  122. package/dist/types/components/Heading/index.d.ts.map +1 -1
  123. package/dist/types/components/Icon/index.d.ts +1 -2
  124. package/dist/types/components/Icon/index.d.ts.map +1 -1
  125. package/dist/types/components/IllustratedMessage/index.d.ts +1 -2
  126. package/dist/types/components/IllustratedMessage/index.d.ts.map +1 -1
  127. package/dist/types/components/Image/index.d.ts +1 -2
  128. package/dist/types/components/Image/index.d.ts.map +1 -1
  129. package/dist/types/components/Initials/index.d.ts +1 -2
  130. package/dist/types/components/Initials/index.d.ts.map +1 -1
  131. package/dist/types/components/InlineCode/index.d.ts +1 -2
  132. package/dist/types/components/InlineCode/index.d.ts.map +1 -1
  133. package/dist/types/components/Label/index.d.ts +1 -2
  134. package/dist/types/components/Label/index.d.ts.map +1 -1
  135. package/dist/types/components/LabeledValue/index.d.ts +1 -2
  136. package/dist/types/components/LabeledValue/index.d.ts.map +1 -1
  137. package/dist/types/components/LayoutCard/index.d.ts +1 -2
  138. package/dist/types/components/LayoutCard/index.d.ts.map +1 -1
  139. package/dist/types/components/LightBox/index.d.ts +1 -2
  140. package/dist/types/components/LightBox/index.d.ts.map +1 -1
  141. package/dist/types/components/Link/index.d.ts +1 -2
  142. package/dist/types/components/Link/index.d.ts.map +1 -1
  143. package/dist/types/components/LoadingSpinner/index.d.ts +1 -2
  144. package/dist/types/components/LoadingSpinner/index.d.ts.map +1 -1
  145. package/dist/types/components/Markdown/index.d.ts +1 -2
  146. package/dist/types/components/Markdown/index.d.ts.map +1 -1
  147. package/dist/types/components/MenuItem/index.d.ts +1 -2
  148. package/dist/types/components/MenuItem/index.d.ts.map +1 -1
  149. package/dist/types/components/Message/index.d.ts +1 -2
  150. package/dist/types/components/Message/index.d.ts.map +1 -1
  151. package/dist/types/components/MessageSeparator/MessageSeparator.d.ts +1 -0
  152. package/dist/types/components/MessageSeparator/MessageSeparator.d.ts.map +1 -1
  153. package/dist/types/components/MessageSeparator/index.d.ts +1 -2
  154. package/dist/types/components/MessageSeparator/index.d.ts.map +1 -1
  155. package/dist/types/components/MessageThread/MessageThread.d.ts +1 -0
  156. package/dist/types/components/MessageThread/MessageThread.d.ts.map +1 -1
  157. package/dist/types/components/MessageThread/index.d.ts +1 -2
  158. package/dist/types/components/MessageThread/index.d.ts.map +1 -1
  159. package/dist/types/components/Modal/index.d.ts +1 -2
  160. package/dist/types/components/Modal/index.d.ts.map +1 -1
  161. package/dist/types/components/Navigation/index.d.ts +1 -2
  162. package/dist/types/components/Navigation/index.d.ts.map +1 -1
  163. package/dist/types/components/Notification/index.d.ts +1 -2
  164. package/dist/types/components/Notification/index.d.ts.map +1 -1
  165. package/dist/types/components/NotificationProvider/index.d.ts +1 -2
  166. package/dist/types/components/NotificationProvider/index.d.ts.map +1 -1
  167. package/dist/types/components/NumberField/index.d.ts +1 -2
  168. package/dist/types/components/NumberField/index.d.ts.map +1 -1
  169. package/dist/types/components/Option/index.d.ts +1 -2
  170. package/dist/types/components/Option/index.d.ts.map +1 -1
  171. package/dist/types/components/Options/index.d.ts +1 -2
  172. package/dist/types/components/Options/index.d.ts.map +1 -1
  173. package/dist/types/components/OverlayTrigger/OverlayTrigger.d.ts +1 -1
  174. package/dist/types/components/OverlayTrigger/OverlayTrigger.d.ts.map +1 -1
  175. package/dist/types/components/OverlayTrigger/index.d.ts +1 -2
  176. package/dist/types/components/OverlayTrigger/index.d.ts.map +1 -1
  177. package/dist/types/components/ProgressBar/index.d.ts +1 -2
  178. package/dist/types/components/ProgressBar/index.d.ts.map +1 -1
  179. package/dist/types/components/RadioGroup/index.d.ts +1 -2
  180. package/dist/types/components/RadioGroup/index.d.ts.map +1 -1
  181. package/dist/types/components/SearchField/index.d.ts +1 -2
  182. package/dist/types/components/SearchField/index.d.ts.map +1 -1
  183. package/dist/types/components/Section/index.d.ts +1 -2
  184. package/dist/types/components/Section/index.d.ts.map +1 -1
  185. package/dist/types/components/SegmentedControl/SegmentedControl.d.ts +1 -0
  186. package/dist/types/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  187. package/dist/types/components/SegmentedControl/index.d.ts +1 -2
  188. package/dist/types/components/SegmentedControl/index.d.ts.map +1 -1
  189. package/dist/types/components/Select/index.d.ts +1 -2
  190. package/dist/types/components/Select/index.d.ts.map +1 -1
  191. package/dist/types/components/Separator/index.d.ts +1 -2
  192. package/dist/types/components/Separator/index.d.ts.map +1 -1
  193. package/dist/types/components/SettingsProvider/SettingsProvider.d.ts +1 -1
  194. package/dist/types/components/SettingsProvider/SettingsProvider.d.ts.map +1 -1
  195. package/dist/types/components/SettingsProvider/index.d.ts +1 -2
  196. package/dist/types/components/SettingsProvider/index.d.ts.map +1 -1
  197. package/dist/types/components/Skeleton/index.d.ts +1 -2
  198. package/dist/types/components/Skeleton/index.d.ts.map +1 -1
  199. package/dist/types/components/SkeletonText/index.d.ts +1 -2
  200. package/dist/types/components/SkeletonText/index.d.ts.map +1 -1
  201. package/dist/types/components/Slider/index.d.ts +1 -2
  202. package/dist/types/components/Slider/index.d.ts.map +1 -1
  203. package/dist/types/components/Switch/index.d.ts +1 -2
  204. package/dist/types/components/Switch/index.d.ts.map +1 -1
  205. package/dist/types/components/Table/index.d.ts +1 -2
  206. package/dist/types/components/Table/index.d.ts.map +1 -1
  207. package/dist/types/components/Tabs/index.d.ts +1 -2
  208. package/dist/types/components/Tabs/index.d.ts.map +1 -1
  209. package/dist/types/components/Text/index.d.ts +1 -2
  210. package/dist/types/components/Text/index.d.ts.map +1 -1
  211. package/dist/types/components/TextArea/index.d.ts +1 -2
  212. package/dist/types/components/TextArea/index.d.ts.map +1 -1
  213. package/dist/types/components/TextField/index.d.ts +1 -2
  214. package/dist/types/components/TextField/index.d.ts.map +1 -1
  215. package/dist/types/components/TextFieldBase/index.d.ts +1 -2
  216. package/dist/types/components/TextFieldBase/index.d.ts.map +1 -1
  217. package/dist/types/components/TimeField/index.d.ts +1 -2
  218. package/dist/types/components/TimeField/index.d.ts.map +1 -1
  219. package/dist/types/components/Tooltip/index.d.ts +1 -2
  220. package/dist/types/components/Tooltip/index.d.ts.map +1 -1
  221. package/dist/types/components/Wrap/Wrap.d.ts +1 -0
  222. package/dist/types/components/Wrap/Wrap.d.ts.map +1 -1
  223. package/dist/types/components/Wrap/index.d.ts +1 -2
  224. package/dist/types/components/Wrap/index.d.ts.map +1 -1
  225. package/package.json +4 -4
  226. package/dist/js/components/Action/index.mjs +0 -6
  227. package/dist/js/components/Action/index.mjs.map +0 -1
  228. package/dist/js/components/ContextMenu/index.mjs +0 -24
  229. package/dist/js/components/ContextMenu/index.mjs.map +0 -1
  230. package/dist/js/components/Icon/index.mjs +0 -6
  231. package/dist/js/components/Icon/index.mjs.map +0 -1
  232. package/dist/js/components/Wrap/index.mjs +0 -6
  233. package/dist/js/components/Wrap/index.mjs.map +0 -1
@@ -71,5 +71,5 @@ const Action = flowComponent("Action", (props) => {
71
71
  return /* @__PURE__ */ jsx(ActionContextProvider, { value: actionModel, children: /* @__PURE__ */ jsx(PropsContextProvider, { props: propsContext, mergeInParentContext: true, children }) });
72
72
  });
73
73
 
74
- export { Action };
74
+ export { Action, Action as default };
75
75
  //# sourceMappingURL=Action.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Action.mjs","sources":["../../../../src/components/Action/Action.tsx"],"sourcesContent":["import React from \"react\";\nimport { ActionModel as ActionModel } from \"@/components/Action/models/ActionModel\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { dynamic, PropsContextProvider } from \"@/lib/propsContext\";\nimport { ActionContextProvider } from \"@/components/Action/context\";\nimport { useActionStateContext } from \"@/components/Action/models/ActionStateContext\";\nimport { useConfirmationModalButtonSlot } from \"@/components/Action/hooks/useConfirmationModalButtonSlot\";\nimport { useActionButtonState } from \"@/components/Action/hooks/useActionButtonState\";\nimport type { ComponentPropsContext } from \"@/lib/propsContext/types\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\n\nconst actionButtonContext: ComponentPropsContext<\"Button\"> = {\n onPress: dynamic((props) => {\n const action = ActionModel.use();\n const confirmAction = ActionModel.useConfirmationAction();\n const isConfirmationButton =\n useConfirmationModalButtonSlot(props) === \"primary\";\n const isAbortButton = useConfirmationModalButtonSlot(props) === \"abort\";\n if (isAbortButton) {\n return action.confirmationModalController.close;\n }\n return isConfirmationButton ? confirmAction.execute : action.execute;\n }),\n\n isPending: dynamic((props) => useActionButtonState(props) === \"isPending\"),\n\n isSucceeded: dynamic(\n (props) => useActionButtonState(props) === \"isSucceeded\",\n ),\n\n isFailed: dynamic((props) => useActionButtonState(props) === \"isFailed\"),\n\n \"aria-disabled\": dynamic((props) => {\n const state = useActionButtonState(props);\n const someActionInContextIsBusy = useActionStateContext().useIsBusy();\n return state === \"isExecuting\" || someActionInContextIsBusy;\n }),\n};\n\nexport const Action = flowComponent(\"Action\", (props) => {\n const { children, actionModel: actionModelFromProps, ...actionProps } = props;\n const newActionModel = ActionModel.useNew(actionProps);\n const actionModel = actionModelFromProps ?? newActionModel;\n\n const propsContext: PropsContext = {\n Button: actionButtonContext,\n\n Link: {\n onPress: dynamic(() => ActionModel.use().execute),\n },\n\n MenuItem: {\n onAction: dynamic(() => ActionModel.use().execute),\n },\n\n Modal: {\n slot: dynamic((props) => {\n const { slot } = props;\n const action = ActionModel.use();\n action.needsConfirmation = slot === \"actionConfirm\";\n return slot;\n }),\n isDismissable: dynamic((props) => {\n const action = ActionModel.use();\n const actionState = action.state.useValue();\n return actionState === \"isExecuting\" || actionState === \"isPending\"\n ? false\n : props.isDismissable;\n }),\n controller: dynamic(() => {\n const action = ActionModel.use();\n return action.needsConfirmation\n ? action.confirmationModalController\n : action.getOverlayController(\"Modal\");\n }),\n ActionGroup: {\n Button: actionButtonContext,\n },\n },\n };\n\n return (\n <ActionContextProvider value={actionModel}>\n <PropsContextProvider props={propsContext} mergeInParentContext>\n {children}\n </PropsContextProvider>\n </ActionContextProvider>\n );\n});\n"],"names":["props"],"mappings":"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"}
1
+ {"version":3,"file":"Action.mjs","sources":["../../../../src/components/Action/Action.tsx"],"sourcesContent":["import React from \"react\";\nimport { ActionModel as ActionModel } from \"@/components/Action/models/ActionModel\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { dynamic, PropsContextProvider } from \"@/lib/propsContext\";\nimport { ActionContextProvider } from \"@/components/Action/context\";\nimport { useActionStateContext } from \"@/components/Action/models/ActionStateContext\";\nimport { useConfirmationModalButtonSlot } from \"@/components/Action/hooks/useConfirmationModalButtonSlot\";\nimport { useActionButtonState } from \"@/components/Action/hooks/useActionButtonState\";\nimport type { ComponentPropsContext } from \"@/lib/propsContext/types\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\n\nconst actionButtonContext: ComponentPropsContext<\"Button\"> = {\n onPress: dynamic((props) => {\n const action = ActionModel.use();\n const confirmAction = ActionModel.useConfirmationAction();\n const isConfirmationButton =\n useConfirmationModalButtonSlot(props) === \"primary\";\n const isAbortButton = useConfirmationModalButtonSlot(props) === \"abort\";\n if (isAbortButton) {\n return action.confirmationModalController.close;\n }\n return isConfirmationButton ? confirmAction.execute : action.execute;\n }),\n\n isPending: dynamic((props) => useActionButtonState(props) === \"isPending\"),\n\n isSucceeded: dynamic(\n (props) => useActionButtonState(props) === \"isSucceeded\",\n ),\n\n isFailed: dynamic((props) => useActionButtonState(props) === \"isFailed\"),\n\n \"aria-disabled\": dynamic((props) => {\n const state = useActionButtonState(props);\n const someActionInContextIsBusy = useActionStateContext().useIsBusy();\n return state === \"isExecuting\" || someActionInContextIsBusy;\n }),\n};\n\nexport const Action = flowComponent(\"Action\", (props) => {\n const { children, actionModel: actionModelFromProps, ...actionProps } = props;\n const newActionModel = ActionModel.useNew(actionProps);\n const actionModel = actionModelFromProps ?? newActionModel;\n\n const propsContext: PropsContext = {\n Button: actionButtonContext,\n\n Link: {\n onPress: dynamic(() => ActionModel.use().execute),\n },\n\n MenuItem: {\n onAction: dynamic(() => ActionModel.use().execute),\n },\n\n Modal: {\n slot: dynamic((props) => {\n const { slot } = props;\n const action = ActionModel.use();\n action.needsConfirmation = slot === \"actionConfirm\";\n return slot;\n }),\n isDismissable: dynamic((props) => {\n const action = ActionModel.use();\n const actionState = action.state.useValue();\n return actionState === \"isExecuting\" || actionState === \"isPending\"\n ? false\n : props.isDismissable;\n }),\n controller: dynamic(() => {\n const action = ActionModel.use();\n return action.needsConfirmation\n ? action.confirmationModalController\n : action.getOverlayController(\"Modal\");\n }),\n ActionGroup: {\n Button: actionButtonContext,\n },\n },\n };\n\n return (\n <ActionContextProvider value={actionModel}>\n <PropsContextProvider props={propsContext} mergeInParentContext>\n {children}\n </PropsContextProvider>\n </ActionContextProvider>\n );\n});\n\nexport default Action;\n"],"names":["props"],"mappings":"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"}
@@ -38,5 +38,5 @@ const Activity = (props) => {
38
38
  ] });
39
39
  };
40
40
 
41
- export { Activity };
41
+ export { Activity, Activity as default };
42
42
  //# sourceMappingURL=Activity.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Activity.mjs","sources":["../../../../src/components/Activity/Activity.tsx"],"sourcesContent":["import type { ComponentType, FC, PropsWithChildren } from \"react\";\nimport React, { lazy, Suspense, useEffect, useState } from \"react\";\nimport { useIsSSR } from \"react-aria\";\n\nexport interface ActivityProps extends PropsWithChildren {\n isActive?: boolean;\n inactiveDelay?: number;\n}\n\nconst nonResolvingPromise = new Promise<{ default: ComponentType<unknown> }>(\n () => {\n // no resolve\n },\n);\n\nconst SuspenseTrigger = lazy(() => nonResolvingPromise);\n\nexport const Activity: FC<ActivityProps> = (props) => {\n const { children, isActive: isActiveFromProps = true, inactiveDelay } = props;\n\n const [isActiveState, setIsActiveState] = useState(isActiveFromProps);\n const isSsr = useIsSSR();\n\n useEffect(() => {\n if (!inactiveDelay) {\n return;\n }\n\n if (isActiveFromProps) {\n setIsActiveState(true);\n } else {\n const timeout = setTimeout(() => {\n setIsActiveState(false);\n }, inactiveDelay);\n\n return () => {\n clearTimeout(timeout);\n };\n }\n }, [isActiveFromProps, inactiveDelay]);\n\n const isActive = inactiveDelay ? isActiveState : isActiveFromProps;\n\n if (isSsr) {\n return isActive ? children : null;\n }\n\n return (\n <Suspense fallback={null}>\n {!isActive && <SuspenseTrigger />}\n {children}\n </Suspense>\n );\n};\n"],"names":[],"mappings":";;;;AASA,MAAM,sBAAsB,IAAI,OAAA;AAAA,EAC9B,MAAM;AAAA;AAGR,CAAA;AAEA,MAAM,eAAA,GAAkB,IAAK,CAAA,MAAM,mBAAmB,CAAA;AAEzC,MAAA,QAAA,GAA8B,CAAC,KAAU,KAAA;AACpD,EAAA,MAAM,EAAE,QAAU,EAAA,QAAA,EAAU,iBAAoB,GAAA,IAAA,EAAM,eAAkB,GAAA,KAAA;AAExE,EAAA,MAAM,CAAC,aAAA,EAAe,gBAAgB,CAAA,GAAI,SAAS,iBAAiB,CAAA;AACpE,EAAA,MAAM,QAAQ,QAAS,EAAA;AAEvB,EAAA,SAAA,CAAU,MAAM;AACd,IAAA,IAAI,CAAC,aAAe,EAAA;AAClB,MAAA;AAAA;AAGF,IAAA,IAAI,iBAAmB,EAAA;AACrB,MAAA,gBAAA,CAAiB,IAAI,CAAA;AAAA,KAChB,MAAA;AACL,MAAM,MAAA,OAAA,GAAU,WAAW,MAAM;AAC/B,QAAA,gBAAA,CAAiB,KAAK,CAAA;AAAA,SACrB,aAAa,CAAA;AAEhB,MAAA,OAAO,MAAM;AACX,QAAA,YAAA,CAAa,OAAO,CAAA;AAAA,OACtB;AAAA;AACF,GACC,EAAA,CAAC,iBAAmB,EAAA,aAAa,CAAC,CAAA;AAErC,EAAM,MAAA,QAAA,GAAW,gBAAgB,aAAgB,GAAA,iBAAA;AAEjD,EAAA,IAAI,KAAO,EAAA;AACT,IAAA,OAAO,WAAW,QAAW,GAAA,IAAA;AAAA;AAG/B,EACE,uBAAA,IAAA,CAAC,QAAS,EAAA,EAAA,QAAA,EAAU,IACjB,EAAA,QAAA,EAAA;AAAA,IAAC,CAAA,QAAA,wBAAa,eAAgB,EAAA,EAAA,CAAA;AAAA,IAC9B;AAAA,GACH,EAAA,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"Activity.mjs","sources":["../../../../src/components/Activity/Activity.tsx"],"sourcesContent":["import type { ComponentType, FC, PropsWithChildren } from \"react\";\nimport React, { lazy, Suspense, useEffect, useState } from \"react\";\nimport { useIsSSR } from \"react-aria\";\n\nexport interface ActivityProps extends PropsWithChildren {\n isActive?: boolean;\n inactiveDelay?: number;\n}\n\nconst nonResolvingPromise = new Promise<{ default: ComponentType<unknown> }>(\n () => {\n // no resolve\n },\n);\n\nconst SuspenseTrigger = lazy(() => nonResolvingPromise);\n\nexport const Activity: FC<ActivityProps> = (props) => {\n const { children, isActive: isActiveFromProps = true, inactiveDelay } = props;\n\n const [isActiveState, setIsActiveState] = useState(isActiveFromProps);\n const isSsr = useIsSSR();\n\n useEffect(() => {\n if (!inactiveDelay) {\n return;\n }\n\n if (isActiveFromProps) {\n setIsActiveState(true);\n } else {\n const timeout = setTimeout(() => {\n setIsActiveState(false);\n }, inactiveDelay);\n\n return () => {\n clearTimeout(timeout);\n };\n }\n }, [isActiveFromProps, inactiveDelay]);\n\n const isActive = inactiveDelay ? isActiveState : isActiveFromProps;\n\n if (isSsr) {\n return isActive ? children : null;\n }\n\n return (\n <Suspense fallback={null}>\n {!isActive && <SuspenseTrigger />}\n {children}\n </Suspense>\n );\n};\nexport default Activity;\n"],"names":[],"mappings":";;;;AASA,MAAM,sBAAsB,IAAI,OAAA;AAAA,EAC9B,MAAM;AAAA;AAGR,CAAA;AAEA,MAAM,eAAA,GAAkB,IAAK,CAAA,MAAM,mBAAmB,CAAA;AAEzC,MAAA,QAAA,GAA8B,CAAC,KAAU,KAAA;AACpD,EAAA,MAAM,EAAE,QAAU,EAAA,QAAA,EAAU,iBAAoB,GAAA,IAAA,EAAM,eAAkB,GAAA,KAAA;AAExE,EAAA,MAAM,CAAC,aAAA,EAAe,gBAAgB,CAAA,GAAI,SAAS,iBAAiB,CAAA;AACpE,EAAA,MAAM,QAAQ,QAAS,EAAA;AAEvB,EAAA,SAAA,CAAU,MAAM;AACd,IAAA,IAAI,CAAC,aAAe,EAAA;AAClB,MAAA;AAAA;AAGF,IAAA,IAAI,iBAAmB,EAAA;AACrB,MAAA,gBAAA,CAAiB,IAAI,CAAA;AAAA,KAChB,MAAA;AACL,MAAM,MAAA,OAAA,GAAU,WAAW,MAAM;AAC/B,QAAA,gBAAA,CAAiB,KAAK,CAAA;AAAA,SACrB,aAAa,CAAA;AAEhB,MAAA,OAAO,MAAM;AACX,QAAA,YAAA,CAAa,OAAO,CAAA;AAAA,OACtB;AAAA;AACF,GACC,EAAA,CAAC,iBAAmB,EAAA,aAAa,CAAC,CAAA;AAErC,EAAM,MAAA,QAAA,GAAW,gBAAgB,aAAgB,GAAA,iBAAA;AAEjD,EAAA,IAAI,KAAO,EAAA;AACT,IAAA,OAAO,WAAW,QAAW,GAAA,IAAA;AAAA;AAG/B,EACE,uBAAA,IAAA,CAAC,QAAS,EAAA,EAAA,QAAA,EAAU,IACjB,EAAA,QAAA,EAAA;AAAA,IAAC,CAAA,QAAA,wBAAa,eAAgB,EAAA,EAAA,CAAA;AAAA,IAC9B;AAAA,GACH,EAAA,CAAA;AAEJ;;;;"}
@@ -41,5 +41,5 @@ const AvatarStack = (props) => {
41
41
  ] }) });
42
42
  };
43
43
 
44
- export { AvatarStack };
44
+ export { AvatarStack, AvatarStack as default };
45
45
  //# sourceMappingURL=AvatarStack.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarStack.mjs","sources":["../../../../src/components/AvatarStack/AvatarStack.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from \"react\";\nimport React, { Children } from \"react\";\nimport clsx from \"clsx\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport styles from \"./AvatarStack.module.scss\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport { Button } from \"@/components/Button\";\nimport { Avatar } from \"@/components/Avatar\";\nimport { Wrap } from \"@/components/Wrap\";\n\nexport interface AvatarStackProps\n extends PropsWithClassName,\n PropsWithChildren {\n /**\n * The total count of items, as avatars should only be displayed for the first\n * view\n */\n totalCount?: number;\n /** The onPress action of the additional items count element */\n onCountPress?: () => void;\n /** The size of the avatars inside the stack. @default \"m\" */\n size?: \"xs\" | \"s\" | \"m\" | \"l\";\n}\n\n/** @flr-generate all */\nexport const AvatarStack: FC<AvatarStackProps> = (props) => {\n const {\n className,\n children,\n totalCount = 0,\n size = \"m\",\n onCountPress,\n } = props;\n\n const avatarCount = Children.count(children);\n\n const additionalItemsCount = totalCount - avatarCount;\n\n const rootClassName = clsx(\n styles.avatarStack,\n styles[`size-${size}`],\n className,\n );\n\n const propsContext: PropsContext = {\n Avatar: { className: styles.avatar, size },\n Button: {\n className: styles.avatar,\n },\n };\n\n return (\n <PropsContextProvider props={propsContext} mergeInParentContext>\n <div className={rootClassName}>\n {children}\n {additionalItemsCount > 0 && (\n <Wrap if={onCountPress}>\n <Button onPress={onCountPress}>\n <Avatar size={size}>+{additionalItemsCount}</Avatar>\n </Button>\n </Wrap>\n )}\n </div>\n </PropsContextProvider>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;AA0Ba,MAAA,WAAA,GAAoC,CAAC,KAAU,KAAA;AAC1D,EAAM,MAAA;AAAA,IACJ,SAAA;AAAA,IACA,QAAA;AAAA,IACA,UAAa,GAAA,CAAA;AAAA,IACb,IAAO,GAAA,GAAA;AAAA,IACP;AAAA,GACE,GAAA,KAAA;AAEJ,EAAM,MAAA,WAAA,GAAc,QAAS,CAAA,KAAA,CAAM,QAAQ,CAAA;AAE3C,EAAA,MAAM,uBAAuB,UAAa,GAAA,WAAA;AAE1C,EAAA,MAAM,aAAgB,GAAA,IAAA;AAAA,IACpB,MAAO,CAAA,WAAA;AAAA,IACP,MAAA,CAAO,CAAQ,KAAA,EAAA,IAAI,CAAE,CAAA,CAAA;AAAA,IACrB;AAAA,GACF;AAEA,EAAA,MAAM,YAA6B,GAAA;AAAA,IACjC,MAAQ,EAAA,EAAE,SAAW,EAAA,MAAA,CAAO,QAAQ,IAAK,EAAA;AAAA,IACzC,MAAQ,EAAA;AAAA,MACN,WAAW,MAAO,CAAA;AAAA;AACpB,GACF;AAEA,EACE,uBAAA,GAAA,CAAC,wBAAqB,KAAO,EAAA,YAAA,EAAc,sBAAoB,IAC7D,EAAA,QAAA,kBAAA,IAAA,CAAC,KAAI,EAAA,EAAA,SAAA,EAAW,aACb,EAAA,QAAA,EAAA;AAAA,IAAA,QAAA;AAAA,IACA,oBAAuB,GAAA,CAAA,oBACrB,GAAA,CAAA,IAAA,EAAA,EAAK,EAAI,EAAA,YAAA,EACR,QAAC,kBAAA,GAAA,CAAA,MAAA,EAAA,EAAO,OAAS,EAAA,YAAA,EACf,QAAC,kBAAA,IAAA,CAAA,MAAA,EAAA,EAAO,IAAY,EAAA,QAAA,EAAA;AAAA,MAAA,GAAA;AAAA,MAAE;AAAA,KAAA,EAAqB,GAC7C,CACF,EAAA;AAAA,GAAA,EAEJ,CACF,EAAA,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"AvatarStack.mjs","sources":["../../../../src/components/AvatarStack/AvatarStack.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from \"react\";\nimport React, { Children } from \"react\";\nimport clsx from \"clsx\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport styles from \"./AvatarStack.module.scss\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport { Button } from \"@/components/Button\";\nimport { Avatar } from \"@/components/Avatar\";\nimport { Wrap } from \"@/components/Wrap\";\n\nexport interface AvatarStackProps\n extends PropsWithClassName,\n PropsWithChildren {\n /**\n * The total count of items, as avatars should only be displayed for the first\n * view\n */\n totalCount?: number;\n /** The onPress action of the additional items count element */\n onCountPress?: () => void;\n /** The size of the avatars inside the stack. @default \"m\" */\n size?: \"xs\" | \"s\" | \"m\" | \"l\";\n}\n\n/** @flr-generate all */\nexport const AvatarStack: FC<AvatarStackProps> = (props) => {\n const {\n className,\n children,\n totalCount = 0,\n size = \"m\",\n onCountPress,\n } = props;\n\n const avatarCount = Children.count(children);\n\n const additionalItemsCount = totalCount - avatarCount;\n\n const rootClassName = clsx(\n styles.avatarStack,\n styles[`size-${size}`],\n className,\n );\n\n const propsContext: PropsContext = {\n Avatar: { className: styles.avatar, size },\n Button: {\n className: styles.avatar,\n },\n };\n\n return (\n <PropsContextProvider props={propsContext} mergeInParentContext>\n <div className={rootClassName}>\n {children}\n {additionalItemsCount > 0 && (\n <Wrap if={onCountPress}>\n <Button onPress={onCountPress}>\n <Avatar size={size}>+{additionalItemsCount}</Avatar>\n </Button>\n </Wrap>\n )}\n </div>\n </PropsContextProvider>\n );\n};\n\nexport default AvatarStack;\n"],"names":[],"mappings":";;;;;;;;;;;AA0Ba,MAAA,WAAA,GAAoC,CAAC,KAAU,KAAA;AAC1D,EAAM,MAAA;AAAA,IACJ,SAAA;AAAA,IACA,QAAA;AAAA,IACA,UAAa,GAAA,CAAA;AAAA,IACb,IAAO,GAAA,GAAA;AAAA,IACP;AAAA,GACE,GAAA,KAAA;AAEJ,EAAM,MAAA,WAAA,GAAc,QAAS,CAAA,KAAA,CAAM,QAAQ,CAAA;AAE3C,EAAA,MAAM,uBAAuB,UAAa,GAAA,WAAA;AAE1C,EAAA,MAAM,aAAgB,GAAA,IAAA;AAAA,IACpB,MAAO,CAAA,WAAA;AAAA,IACP,MAAA,CAAO,CAAQ,KAAA,EAAA,IAAI,CAAE,CAAA,CAAA;AAAA,IACrB;AAAA,GACF;AAEA,EAAA,MAAM,YAA6B,GAAA;AAAA,IACjC,MAAQ,EAAA,EAAE,SAAW,EAAA,MAAA,CAAO,QAAQ,IAAK,EAAA;AAAA,IACzC,MAAQ,EAAA;AAAA,MACN,WAAW,MAAO,CAAA;AAAA;AACpB,GACF;AAEA,EACE,uBAAA,GAAA,CAAC,wBAAqB,KAAO,EAAA,YAAA,EAAc,sBAAoB,IAC7D,EAAA,QAAA,kBAAA,IAAA,CAAC,KAAI,EAAA,EAAA,SAAA,EAAW,aACb,EAAA,QAAA,EAAA;AAAA,IAAA,QAAA;AAAA,IACA,oBAAuB,GAAA,CAAA,oBACrB,GAAA,CAAA,IAAA,EAAA,EAAK,EAAI,EAAA,YAAA,EACR,QAAC,kBAAA,GAAA,CAAA,MAAA,EAAA,EAAO,OAAS,EAAA,YAAA,EACf,QAAC,kBAAA,IAAA,CAAA,MAAA,EAAA,EAAO,IAAY,EAAA,QAAA,EAAA;AAAA,MAAA,GAAA;AAAA,MAAE;AAAA,KAAA,EAAqB,GAC7C,CACF,EAAA;AAAA,GAAA,EAEJ,CACF,EAAA,CAAA;AAEJ;;;;"}
@@ -2,8 +2,8 @@
2
2
  /* */
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import 'react';
5
- import { OverlayTrigger } from '../../../OverlayTrigger/OverlayTrigger.mjs';
6
5
  import 'react-aria-components';
6
+ import { OverlayTrigger } from '../../../OverlayTrigger/OverlayTrigger.mjs';
7
7
  import { flowComponent } from '../../../../lib/componentFactory/flowComponent.mjs';
8
8
  import MenuTriggerView from '../../../../views/MenuTriggerView.mjs';
9
9
 
@@ -71,5 +71,5 @@ const FileField = flowComponent(
71
71
  }
72
72
  );
73
73
 
74
- export { FileField };
74
+ export { FileField, FileField as default };
75
75
  //# sourceMappingURL=FileField.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileField.mjs","sources":["../../../../src/components/FileField/FileField.tsx"],"sourcesContent":["import formFieldStyles from \"@/components/FormField/FormField.module.scss\";\nimport { useFormValidation } from \"@react-aria/form\";\nimport { useFormValidationState } from \"@react-stately/form\";\nimport type { PropsWithChildren } from \"react\";\nimport React, { useMemo, useRef } from \"react\";\nimport type * as Aria from \"react-aria-components\";\nimport { FieldErrorContext, InputContext } from \"react-aria-components\";\nimport type { FileInputOnChangeHandler } from \"@/components/FileField/components/FileInput\";\nimport { FileInput } from \"@/components/FileField/components/FileInput\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\n\nexport interface FileFieldProps\n extends PropsWithChildren,\n FlowComponentProps,\n Pick<Aria.InputProps, \"accept\" | \"multiple\" | \"name\">,\n Pick<\n Aria.TextFieldProps,\n \"isRequired\" | \"isInvalid\" | \"validationBehavior\" | \"isDisabled\"\n > {\n /** Handler that is called when the file input changes. */\n onChange?: FileInputOnChangeHandler;\n}\n\n/**\n * @flr-generate all\n * @flr-clear-props-context\n */\nexport const FileField = flowComponent<\"FileField\", HTMLInputElement>(\n \"FileField\",\n (props) => {\n const {\n children,\n ref,\n isRequired,\n isInvalid,\n isDisabled,\n validationBehavior,\n onChange,\n ...restInputProps\n } = props;\n const inputRef = useRef<HTMLInputElement>(null);\n\n const formValidationState = useFormValidationState({\n value: undefined,\n validationBehavior,\n isInvalid,\n });\n\n useFormValidation({ validationBehavior }, formValidationState, inputRef);\n\n const inputProps = useMemo(\n () => ({\n ...restInputProps,\n ref: inputRef,\n \"aria-invalid\": formValidationState.displayValidation.isInvalid,\n value: undefined,\n }),\n [formValidationState, isRequired, ...Object.values(restInputProps)],\n );\n\n const propsContext: PropsContext = {\n Label: {\n className: formFieldStyles.label,\n optional: !props.isRequired,\n },\n FieldDescription: {\n className: formFieldStyles.fieldDescription,\n },\n FieldError: {\n className: formFieldStyles.customFieldError,\n },\n };\n\n return (\n <InputContext.Provider value={inputProps}>\n <FieldErrorContext.Provider\n value={formValidationState.displayValidation}\n >\n <PropsContextProvider props={propsContext}>\n <div\n data-required={!!isRequired || undefined}\n data-invalid={\n formValidationState.displayValidation.isInvalid || undefined\n }\n className={formFieldStyles.formField}\n >\n <FileInput ref={ref} onChange={onChange} isDisabled={isDisabled}>\n {children}\n </FileInput>\n </div>\n </PropsContextProvider>\n </FieldErrorContext.Provider>\n </InputContext.Provider>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;;;;;;;AA8BO,MAAM,SAAY,GAAA,aAAA;AAAA,EACvB,WAAA;AAAA,EACA,CAAC,KAAU,KAAA;AACT,IAAM,MAAA;AAAA,MACJ,QAAA;AAAA,MACA,GAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAA;AAAA,MACA,kBAAA;AAAA,MACA,QAAA;AAAA,MACA,GAAG;AAAA,KACD,GAAA,KAAA;AACJ,IAAM,MAAA,QAAA,GAAW,OAAyB,IAAI,CAAA;AAE9C,IAAA,MAAM,sBAAsB,sBAAuB,CAAA;AAAA,MACjD,KAAO,EAAA,MAAA;AAAA,MACP,kBAAA;AAAA,MACA;AAAA,KACD,CAAA;AAED,IAAA,iBAAA,CAAkB,EAAE,kBAAA,EAAsB,EAAA,mBAAA,EAAqB,QAAQ,CAAA;AAEvE,IAAA,MAAM,UAAa,GAAA,OAAA;AAAA,MACjB,OAAO;AAAA,QACL,GAAG,cAAA;AAAA,QACH,GAAK,EAAA,QAAA;AAAA,QACL,cAAA,EAAgB,oBAAoB,iBAAkB,CAAA,SAAA;AAAA,QACtD,KAAO,EAAA;AAAA,OACT,CAAA;AAAA,MACA,CAAC,mBAAqB,EAAA,UAAA,EAAY,GAAG,MAAO,CAAA,MAAA,CAAO,cAAc,CAAC;AAAA,KACpE;AAEA,IAAA,MAAM,YAA6B,GAAA;AAAA,MACjC,KAAO,EAAA;AAAA,QACL,WAAW,eAAgB,CAAA,KAAA;AAAA,QAC3B,QAAA,EAAU,CAAC,KAAM,CAAA;AAAA,OACnB;AAAA,MACA,gBAAkB,EAAA;AAAA,QAChB,WAAW,eAAgB,CAAA;AAAA,OAC7B;AAAA,MACA,UAAY,EAAA;AAAA,QACV,WAAW,eAAgB,CAAA;AAAA;AAC7B,KACF;AAEA,IAAA,uBACG,GAAA,CAAA,YAAA,CAAa,QAAb,EAAA,EAAsB,OAAO,UAC5B,EAAA,QAAA,kBAAA,GAAA;AAAA,MAAC,iBAAkB,CAAA,QAAA;AAAA,MAAlB;AAAA,QACC,OAAO,mBAAoB,CAAA,iBAAA;AAAA,QAE3B,QAAA,kBAAA,GAAA,CAAC,oBAAqB,EAAA,EAAA,KAAA,EAAO,YAC3B,EAAA,QAAA,kBAAA,GAAA;AAAA,UAAC,KAAA;AAAA,UAAA;AAAA,YACC,eAAA,EAAe,CAAC,CAAC,UAAc,IAAA,MAAA;AAAA,YAC/B,cAAA,EACE,mBAAoB,CAAA,iBAAA,CAAkB,SAAa,IAAA,MAAA;AAAA,YAErD,WAAW,eAAgB,CAAA,SAAA;AAAA,YAE3B,QAAC,kBAAA,GAAA,CAAA,SAAA,EAAA,EAAU,GAAU,EAAA,QAAA,EAAoB,YACtC,QACH,EAAA;AAAA;AAAA,SAEJ,EAAA;AAAA;AAAA,KAEJ,EAAA,CAAA;AAAA;AAGN;;;;"}
1
+ {"version":3,"file":"FileField.mjs","sources":["../../../../src/components/FileField/FileField.tsx"],"sourcesContent":["import formFieldStyles from \"@/components/FormField/FormField.module.scss\";\nimport { useFormValidation } from \"@react-aria/form\";\nimport { useFormValidationState } from \"@react-stately/form\";\nimport type { PropsWithChildren } from \"react\";\nimport React, { useMemo, useRef } from \"react\";\nimport type * as Aria from \"react-aria-components\";\nimport { FieldErrorContext, InputContext } from \"react-aria-components\";\nimport type { FileInputOnChangeHandler } from \"@/components/FileField/components/FileInput\";\nimport { FileInput } from \"@/components/FileField/components/FileInput\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\n\nexport interface FileFieldProps\n extends PropsWithChildren,\n FlowComponentProps,\n Pick<Aria.InputProps, \"accept\" | \"multiple\" | \"name\">,\n Pick<\n Aria.TextFieldProps,\n \"isRequired\" | \"isInvalid\" | \"validationBehavior\" | \"isDisabled\"\n > {\n /** Handler that is called when the file input changes. */\n onChange?: FileInputOnChangeHandler;\n}\n\n/**\n * @flr-generate all\n * @flr-clear-props-context\n */\nexport const FileField = flowComponent<\"FileField\", HTMLInputElement>(\n \"FileField\",\n (props) => {\n const {\n children,\n ref,\n isRequired,\n isInvalid,\n isDisabled,\n validationBehavior,\n onChange,\n ...restInputProps\n } = props;\n const inputRef = useRef<HTMLInputElement>(null);\n\n const formValidationState = useFormValidationState({\n value: undefined,\n validationBehavior,\n isInvalid,\n });\n\n useFormValidation({ validationBehavior }, formValidationState, inputRef);\n\n const inputProps = useMemo(\n () => ({\n ...restInputProps,\n ref: inputRef,\n \"aria-invalid\": formValidationState.displayValidation.isInvalid,\n value: undefined,\n }),\n [formValidationState, isRequired, ...Object.values(restInputProps)],\n );\n\n const propsContext: PropsContext = {\n Label: {\n className: formFieldStyles.label,\n optional: !props.isRequired,\n },\n FieldDescription: {\n className: formFieldStyles.fieldDescription,\n },\n FieldError: {\n className: formFieldStyles.customFieldError,\n },\n };\n\n return (\n <InputContext.Provider value={inputProps}>\n <FieldErrorContext.Provider\n value={formValidationState.displayValidation}\n >\n <PropsContextProvider props={propsContext}>\n <div\n data-required={!!isRequired || undefined}\n data-invalid={\n formValidationState.displayValidation.isInvalid || undefined\n }\n className={formFieldStyles.formField}\n >\n <FileInput ref={ref} onChange={onChange} isDisabled={isDisabled}>\n {children}\n </FileInput>\n </div>\n </PropsContextProvider>\n </FieldErrorContext.Provider>\n </InputContext.Provider>\n );\n },\n);\nexport default FileField;\n"],"names":[],"mappings":";;;;;;;;;;;;AA8BO,MAAM,SAAY,GAAA,aAAA;AAAA,EACvB,WAAA;AAAA,EACA,CAAC,KAAU,KAAA;AACT,IAAM,MAAA;AAAA,MACJ,QAAA;AAAA,MACA,GAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAA;AAAA,MACA,kBAAA;AAAA,MACA,QAAA;AAAA,MACA,GAAG;AAAA,KACD,GAAA,KAAA;AACJ,IAAM,MAAA,QAAA,GAAW,OAAyB,IAAI,CAAA;AAE9C,IAAA,MAAM,sBAAsB,sBAAuB,CAAA;AAAA,MACjD,KAAO,EAAA,MAAA;AAAA,MACP,kBAAA;AAAA,MACA;AAAA,KACD,CAAA;AAED,IAAA,iBAAA,CAAkB,EAAE,kBAAA,EAAsB,EAAA,mBAAA,EAAqB,QAAQ,CAAA;AAEvE,IAAA,MAAM,UAAa,GAAA,OAAA;AAAA,MACjB,OAAO;AAAA,QACL,GAAG,cAAA;AAAA,QACH,GAAK,EAAA,QAAA;AAAA,QACL,cAAA,EAAgB,oBAAoB,iBAAkB,CAAA,SAAA;AAAA,QACtD,KAAO,EAAA;AAAA,OACT,CAAA;AAAA,MACA,CAAC,mBAAqB,EAAA,UAAA,EAAY,GAAG,MAAO,CAAA,MAAA,CAAO,cAAc,CAAC;AAAA,KACpE;AAEA,IAAA,MAAM,YAA6B,GAAA;AAAA,MACjC,KAAO,EAAA;AAAA,QACL,WAAW,eAAgB,CAAA,KAAA;AAAA,QAC3B,QAAA,EAAU,CAAC,KAAM,CAAA;AAAA,OACnB;AAAA,MACA,gBAAkB,EAAA;AAAA,QAChB,WAAW,eAAgB,CAAA;AAAA,OAC7B;AAAA,MACA,UAAY,EAAA;AAAA,QACV,WAAW,eAAgB,CAAA;AAAA;AAC7B,KACF;AAEA,IAAA,uBACG,GAAA,CAAA,YAAA,CAAa,QAAb,EAAA,EAAsB,OAAO,UAC5B,EAAA,QAAA,kBAAA,GAAA;AAAA,MAAC,iBAAkB,CAAA,QAAA;AAAA,MAAlB;AAAA,QACC,OAAO,mBAAoB,CAAA,iBAAA;AAAA,QAE3B,QAAA,kBAAA,GAAA,CAAC,oBAAqB,EAAA,EAAA,KAAA,EAAO,YAC3B,EAAA,QAAA,kBAAA,GAAA;AAAA,UAAC,KAAA;AAAA,UAAA;AAAA,YACC,eAAA,EAAe,CAAC,CAAC,UAAc,IAAA,MAAA;AAAA,YAC/B,cAAA,EACE,mBAAoB,CAAA,iBAAA,CAAkB,SAAa,IAAA,MAAA;AAAA,YAErD,WAAW,eAAgB,CAAA,SAAA;AAAA,YAE3B,QAAC,kBAAA,GAAA,CAAA,SAAA,EAAA,EAAU,GAAU,EAAA,QAAA,EAAoB,YACtC,QACH,EAAA;AAAA;AAAA,SAEJ,EAAA;AAAA;AAAA,KAEJ,EAAA,CAAA;AAAA;AAGN;;;;"}
@@ -36,5 +36,5 @@ const Flex = (props) => {
36
36
  );
37
37
  };
38
38
 
39
- export { Flex };
39
+ export { Flex, Flex as default };
40
40
  //# sourceMappingURL=Flex.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Flex.mjs","sources":["../../../../src/components/Flex/Flex.tsx"],"sourcesContent":["import type { CSSProperties, FC, PropsWithChildren } from \"react\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport clsx from \"clsx\";\nimport styles from \"./Flex.module.scss\";\n\nexport interface FlexProps extends PropsWithChildren, PropsWithClassName {\n /** The flexDirection value of the element. @default \"row\" */\n direction?: CSSProperties[\"flexDirection\"];\n /** The alignItems value of the element. @default \"start\" */\n align?: \"start\" | \"end\" | \"center\";\n /** The justifyContent value of the element. @default \"start\" */\n justify?: \"start\" | \"end\" | \"center\";\n /** The gap size of the element. */\n gap?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** The columnGap size of the element. */\n columnGap?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** The rowGap size of the element. */\n rowGap?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** Whether the element should grow. */\n grow?: boolean;\n /** The flexWrap value of the element. @default \"nowrap\" */\n wrap?: CSSProperties[\"flexWrap\"];\n}\n\n/** @flr-generate all */\nexport const Flex: FC<FlexProps> = (props) => {\n const {\n children,\n className,\n direction = \"row\",\n align = \"start\",\n justify = \"start\",\n gap,\n columnGap,\n rowGap,\n grow,\n wrap = \"nowrap\",\n } = props;\n\n const rootClassName = clsx(styles.flex, className);\n\n return (\n <div\n className={rootClassName}\n style={{\n flexDirection: direction,\n alignItems: align,\n justifyContent: justify,\n\n columnGap: columnGap\n ? `var(--size-px--${columnGap})`\n : gap\n ? `var(--size-px--${gap})`\n : undefined,\n rowGap: rowGap\n ? `var(--size-px--${rowGap})`\n : gap\n ? `var(--size-px--${gap})`\n : undefined,\n flexGrow: grow ? 1 : undefined,\n flexWrap: wrap,\n }}\n >\n {children}\n </div>\n );\n};\n"],"names":[],"mappings":";;;;AAyBa,MAAA,IAAA,GAAsB,CAAC,KAAU,KAAA;AAC5C,EAAM,MAAA;AAAA,IACJ,QAAA;AAAA,IACA,SAAA;AAAA,IACA,SAAY,GAAA,KAAA;AAAA,IACZ,KAAQ,GAAA,OAAA;AAAA,IACR,OAAU,GAAA,OAAA;AAAA,IACV,GAAA;AAAA,IACA,SAAA;AAAA,IACA,MAAA;AAAA,IACA,IAAA;AAAA,IACA,IAAO,GAAA;AAAA,GACL,GAAA,KAAA;AAEJ,EAAA,MAAM,aAAgB,GAAA,IAAA,CAAK,MAAO,CAAA,IAAA,EAAM,SAAS,CAAA;AAEjD,EACE,uBAAA,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAW,EAAA,aAAA;AAAA,MACX,KAAO,EAAA;AAAA,QACL,aAAe,EAAA,SAAA;AAAA,QACf,UAAY,EAAA,KAAA;AAAA,QACZ,cAAgB,EAAA,OAAA;AAAA,QAEhB,SAAA,EAAW,YACP,CAAkB,eAAA,EAAA,SAAS,MAC3B,GACE,GAAA,CAAA,eAAA,EAAkB,GAAG,CACrB,CAAA,CAAA,GAAA,MAAA;AAAA,QACN,MAAA,EAAQ,SACJ,CAAkB,eAAA,EAAA,MAAM,MACxB,GACE,GAAA,CAAA,eAAA,EAAkB,GAAG,CACrB,CAAA,CAAA,GAAA,MAAA;AAAA,QACN,QAAA,EAAU,OAAO,CAAI,GAAA,MAAA;AAAA,QACrB,QAAU,EAAA;AAAA,OACZ;AAAA,MAEC;AAAA;AAAA,GACH;AAEJ;;;;"}
1
+ {"version":3,"file":"Flex.mjs","sources":["../../../../src/components/Flex/Flex.tsx"],"sourcesContent":["import type { CSSProperties, FC, PropsWithChildren } from \"react\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport clsx from \"clsx\";\nimport styles from \"./Flex.module.scss\";\n\nexport interface FlexProps extends PropsWithChildren, PropsWithClassName {\n /** The flexDirection value of the element. @default \"row\" */\n direction?: CSSProperties[\"flexDirection\"];\n /** The alignItems value of the element. @default \"start\" */\n align?: \"start\" | \"end\" | \"center\";\n /** The justifyContent value of the element. @default \"start\" */\n justify?: \"start\" | \"end\" | \"center\";\n /** The gap size of the element. */\n gap?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** The columnGap size of the element. */\n columnGap?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** The rowGap size of the element. */\n rowGap?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** Whether the element should grow. */\n grow?: boolean;\n /** The flexWrap value of the element. @default \"nowrap\" */\n wrap?: CSSProperties[\"flexWrap\"];\n}\n\n/** @flr-generate all */\nexport const Flex: FC<FlexProps> = (props) => {\n const {\n children,\n className,\n direction = \"row\",\n align = \"start\",\n justify = \"start\",\n gap,\n columnGap,\n rowGap,\n grow,\n wrap = \"nowrap\",\n } = props;\n\n const rootClassName = clsx(styles.flex, className);\n\n return (\n <div\n className={rootClassName}\n style={{\n flexDirection: direction,\n alignItems: align,\n justifyContent: justify,\n\n columnGap: columnGap\n ? `var(--size-px--${columnGap})`\n : gap\n ? `var(--size-px--${gap})`\n : undefined,\n rowGap: rowGap\n ? `var(--size-px--${rowGap})`\n : gap\n ? `var(--size-px--${gap})`\n : undefined,\n flexGrow: grow ? 1 : undefined,\n flexWrap: wrap,\n }}\n >\n {children}\n </div>\n );\n};\nexport default Flex;\n"],"names":[],"mappings":";;;;AAyBa,MAAA,IAAA,GAAsB,CAAC,KAAU,KAAA;AAC5C,EAAM,MAAA;AAAA,IACJ,QAAA;AAAA,IACA,SAAA;AAAA,IACA,SAAY,GAAA,KAAA;AAAA,IACZ,KAAQ,GAAA,OAAA;AAAA,IACR,OAAU,GAAA,OAAA;AAAA,IACV,GAAA;AAAA,IACA,SAAA;AAAA,IACA,MAAA;AAAA,IACA,IAAA;AAAA,IACA,IAAO,GAAA;AAAA,GACL,GAAA,KAAA;AAEJ,EAAA,MAAM,aAAgB,GAAA,IAAA,CAAK,MAAO,CAAA,IAAA,EAAM,SAAS,CAAA;AAEjD,EACE,uBAAA,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAW,EAAA,aAAA;AAAA,MACX,KAAO,EAAA;AAAA,QACL,aAAe,EAAA,SAAA;AAAA,QACf,UAAY,EAAA,KAAA;AAAA,QACZ,cAAgB,EAAA,OAAA;AAAA,QAEhB,SAAA,EAAW,YACP,CAAkB,eAAA,EAAA,SAAS,MAC3B,GACE,GAAA,CAAA,eAAA,EAAkB,GAAG,CACrB,CAAA,CAAA,GAAA,MAAA;AAAA,QACN,MAAA,EAAQ,SACJ,CAAkB,eAAA,EAAA,MAAM,MACxB,GACE,GAAA,CAAA,eAAA,EAAkB,GAAG,CACrB,CAAA,CAAA,GAAA,MAAA;AAAA,QACN,QAAA,EAAU,OAAO,CAAI,GAAA,MAAA;AAAA,QACrB,QAAU,EAAA;AAAA,OACZ;AAAA,MAEC;AAAA;AAAA,GACH;AAEJ;;;;"}
@@ -16,5 +16,5 @@ const MessageSeparator = (props) => {
16
16
  ] });
17
17
  };
18
18
 
19
- export { MessageSeparator };
19
+ export { MessageSeparator, MessageSeparator as default };
20
20
  //# sourceMappingURL=MessageSeparator.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageSeparator.mjs","sources":["../../../../src/components/MessageSeparator/MessageSeparator.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from \"react\";\nimport styles from \"./MessageSeparator.module.scss\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport React from \"react\";\nimport clsx from \"clsx\";\nimport { Separator } from \"@/components/Separator\";\nimport { Content } from \"@/components/Content\";\n\nexport interface MessageSeparatorProps\n extends PropsWithChildren,\n PropsWithClassName {}\n\n/** @flr-generate all */\nexport const MessageSeparator: FC<MessageSeparatorProps> = (props) => {\n const { children, className } = props;\n\n const rootClassName = clsx(styles.messageSeparator, className);\n\n return (\n <span className={rootClassName}>\n <Separator className={styles.separator} />\n <Content className={styles.content}>{children}</Content>\n </span>\n );\n};\n"],"names":[],"mappings":";;;;;;;AAaa,MAAA,gBAAA,GAA8C,CAAC,KAAU,KAAA;AACpE,EAAM,MAAA,EAAE,QAAU,EAAA,SAAA,EAAc,GAAA,KAAA;AAEhC,EAAA,MAAM,aAAgB,GAAA,IAAA,CAAK,MAAO,CAAA,gBAAA,EAAkB,SAAS,CAAA;AAE7D,EACE,uBAAA,IAAA,CAAC,MAAK,EAAA,EAAA,SAAA,EAAW,aACf,EAAA,QAAA,EAAA;AAAA,oBAAC,GAAA,CAAA,SAAA,EAAA,EAAU,SAAW,EAAA,MAAA,CAAO,SAAW,EAAA,CAAA;AAAA,oBACvC,GAAA,CAAA,OAAA,EAAA,EAAQ,SAAW,EAAA,MAAA,CAAO,SAAU,QAAS,EAAA;AAAA,GAChD,EAAA,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"MessageSeparator.mjs","sources":["../../../../src/components/MessageSeparator/MessageSeparator.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from \"react\";\nimport styles from \"./MessageSeparator.module.scss\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport React from \"react\";\nimport clsx from \"clsx\";\nimport { Separator } from \"@/components/Separator\";\nimport { Content } from \"@/components/Content\";\n\nexport interface MessageSeparatorProps\n extends PropsWithChildren,\n PropsWithClassName {}\n\n/** @flr-generate all */\nexport const MessageSeparator: FC<MessageSeparatorProps> = (props) => {\n const { children, className } = props;\n\n const rootClassName = clsx(styles.messageSeparator, className);\n\n return (\n <span className={rootClassName}>\n <Separator className={styles.separator} />\n <Content className={styles.content}>{children}</Content>\n </span>\n );\n};\nexport default MessageSeparator;\n"],"names":[],"mappings":";;;;;;;AAaa,MAAA,gBAAA,GAA8C,CAAC,KAAU,KAAA;AACpE,EAAM,MAAA,EAAE,QAAU,EAAA,SAAA,EAAc,GAAA,KAAA;AAEhC,EAAA,MAAM,aAAgB,GAAA,IAAA,CAAK,MAAO,CAAA,gBAAA,EAAkB,SAAS,CAAA;AAE7D,EACE,uBAAA,IAAA,CAAC,MAAK,EAAA,EAAA,SAAA,EAAW,aACf,EAAA,QAAA,EAAA;AAAA,oBAAC,GAAA,CAAA,SAAA,EAAA,EAAU,SAAW,EAAA,MAAA,CAAO,SAAW,EAAA,CAAA;AAAA,oBACvC,GAAA,CAAA,OAAA,EAAA,EAAQ,SAAW,EAAA,MAAA,CAAO,SAAU,QAAS,EAAA;AAAA,GAChD,EAAA,CAAA;AAEJ;;;;"}
@@ -27,5 +27,5 @@ const MessageThread = flowComponent("MessageThread", (props) => {
27
27
  return /* @__PURE__ */ jsx(PropsContextProvider, { props: propsContext, children: /* @__PURE__ */ jsx("div", { className: rootClassName, children }) });
28
28
  });
29
29
 
30
- export { MessageThread };
30
+ export { MessageThread, MessageThread as default };
31
31
  //# sourceMappingURL=MessageThread.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageThread.mjs","sources":["../../../../src/components/MessageThread/MessageThread.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport React from \"react\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport clsx from \"clsx\";\nimport styles from \"./MessageThread.module.scss\";\nimport {\n dynamic,\n type PropsContext,\n PropsContextProvider,\n} from \"@/lib/propsContext\";\nimport {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\n\nexport type MessageThreadProps = PropsWithChildren &\n PropsWithClassName &\n FlowComponentProps;\n\n/**\n * @flr-generate all\n * @flr-clear-props-context\n */\nexport const MessageThread = flowComponent(\"MessageThread\", (props) => {\n const { children, className } = props;\n\n const rootClassName = clsx(styles.messageThread, className);\n\n const propsContext: PropsContext = {\n Message: {\n className: dynamic((props) => {\n return clsx(\n props.className,\n styles.message,\n styles[props.type ?? \"responder\"],\n );\n }),\n },\n };\n\n return (\n <PropsContextProvider props={propsContext}>\n <div className={rootClassName}>{children}</div>\n </PropsContextProvider>\n );\n});\n"],"names":["props"],"mappings":";;;;;;;;;;AAuBO,MAAM,aAAgB,GAAA,aAAA,CAAc,eAAiB,EAAA,CAAC,KAAU,KAAA;AACrE,EAAM,MAAA,EAAE,QAAU,EAAA,SAAA,EAAc,GAAA,KAAA;AAEhC,EAAA,MAAM,aAAgB,GAAA,IAAA,CAAK,MAAO,CAAA,aAAA,EAAe,SAAS,CAAA;AAE1D,EAAA,MAAM,YAA6B,GAAA;AAAA,IACjC,OAAS,EAAA;AAAA,MACP,SAAA,EAAW,OAAQ,CAAA,CAACA,MAAU,KAAA;AAC5B,QAAO,OAAA,IAAA;AAAA,UACLA,MAAM,CAAA,SAAA;AAAA,UACN,MAAO,CAAA,OAAA;AAAA,UACP,MAAA,CAAOA,MAAM,CAAA,IAAA,IAAQ,WAAW;AAAA,SAClC;AAAA,OACD;AAAA;AACH,GACF;AAEA,EACE,uBAAA,GAAA,CAAC,wBAAqB,KAAO,EAAA,YAAA,EAC3B,8BAAC,KAAI,EAAA,EAAA,SAAA,EAAW,aAAgB,EAAA,QAAA,EAAS,CAC3C,EAAA,CAAA;AAEJ,CAAC;;;;"}
1
+ {"version":3,"file":"MessageThread.mjs","sources":["../../../../src/components/MessageThread/MessageThread.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport React from \"react\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport clsx from \"clsx\";\nimport styles from \"./MessageThread.module.scss\";\nimport {\n dynamic,\n type PropsContext,\n PropsContextProvider,\n} from \"@/lib/propsContext\";\nimport {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\n\nexport type MessageThreadProps = PropsWithChildren &\n PropsWithClassName &\n FlowComponentProps;\n\n/**\n * @flr-generate all\n * @flr-clear-props-context\n */\nexport const MessageThread = flowComponent(\"MessageThread\", (props) => {\n const { children, className } = props;\n\n const rootClassName = clsx(styles.messageThread, className);\n\n const propsContext: PropsContext = {\n Message: {\n className: dynamic((props) => {\n return clsx(\n props.className,\n styles.message,\n styles[props.type ?? \"responder\"],\n );\n }),\n },\n };\n\n return (\n <PropsContextProvider props={propsContext}>\n <div className={rootClassName}>{children}</div>\n </PropsContextProvider>\n );\n});\n\nexport default MessageThread;\n"],"names":["props"],"mappings":";;;;;;;;;;AAuBO,MAAM,aAAgB,GAAA,aAAA,CAAc,eAAiB,EAAA,CAAC,KAAU,KAAA;AACrE,EAAM,MAAA,EAAE,QAAU,EAAA,SAAA,EAAc,GAAA,KAAA;AAEhC,EAAA,MAAM,aAAgB,GAAA,IAAA,CAAK,MAAO,CAAA,aAAA,EAAe,SAAS,CAAA;AAE1D,EAAA,MAAM,YAA6B,GAAA;AAAA,IACjC,OAAS,EAAA;AAAA,MACP,SAAA,EAAW,OAAQ,CAAA,CAACA,MAAU,KAAA;AAC5B,QAAO,OAAA,IAAA;AAAA,UACLA,MAAM,CAAA,SAAA;AAAA,UACN,MAAO,CAAA,OAAA;AAAA,UACP,MAAA,CAAOA,MAAM,CAAA,IAAA,IAAQ,WAAW;AAAA,SAClC;AAAA,OACD;AAAA;AACH,GACF;AAEA,EACE,uBAAA,GAAA,CAAC,wBAAqB,KAAO,EAAA,YAAA,EAC3B,8BAAC,KAAI,EAAA,EAAA,SAAA,EAAW,aAAgB,EAAA,QAAA,EAAS,CAC3C,EAAA,CAAA;AAEJ,CAAC;;;;"}
@@ -2,8 +2,8 @@
2
2
  /* */
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import 'react';
5
- import { OverlayTrigger } from '../../../OverlayTrigger/OverlayTrigger.mjs';
6
5
  import 'react-aria-components';
6
+ import { OverlayTrigger } from '../../../OverlayTrigger/OverlayTrigger.mjs';
7
7
  import DialogTriggerView from '../../../../views/DialogTriggerView.mjs';
8
8
 
9
9
  const ModalTrigger = (props) => {
@@ -28,5 +28,5 @@ const OverlayTrigger = (props) => {
28
28
  return /* @__PURE__ */ jsx(OverlayContextProvider, { type: overlayType, controller: overlayController, children: /* @__PURE__ */ jsx(PropsContextProvider, { props: propsContext, mergeInParentContext: true, children: /* @__PURE__ */ jsx(AriaOverlayTrigger, { isOpen, children }) }) });
29
29
  };
30
30
 
31
- export { OverlayTrigger };
31
+ export { OverlayTrigger, OverlayTrigger as default };
32
32
  //# sourceMappingURL=OverlayTrigger.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"OverlayTrigger.mjs","sources":["../../../../src/components/OverlayTrigger/OverlayTrigger.tsx"],"sourcesContent":["import type { ComponentType, FC, PropsWithChildren, ReactNode } from \"react\";\nimport React from \"react\";\nimport { OverlayController } from \"@/lib/controller\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport type { FlowComponentName } from \"@/components/propTypes\";\nimport OverlayContextProvider from \"@/lib/controller/overlay/OverlayContextProvider\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\n\ntype AriaComponentType = ComponentType<{\n isOpen?: boolean;\n children: ReactNode;\n}>;\n\nexport interface OverlayTriggerProps\n extends FlowComponentProps,\n PropsWithChildren {\n /** Whether the overlay should be open initially. */\n isDefaultOpen?: boolean;\n /** A controller to control the state of the overlay. */\n controller?: OverlayController;\n}\n\ninterface Props extends OverlayTriggerProps {\n overlayType: FlowComponentName;\n component: AriaComponentType;\n}\n\nexport const OverlayTrigger: FC<Props> = (props) => {\n const {\n overlayType,\n isDefaultOpen = false,\n component: AriaOverlayTrigger,\n children,\n controller: controllerFromProps,\n } = props;\n\n const newOverlayController = OverlayController.useNew({ isDefaultOpen });\n const overlayController = controllerFromProps ?? newOverlayController;\n const isOpen = overlayController.useIsOpen();\n\n const propsContext: PropsContext = {\n Button: {\n onPress: overlayController.open,\n },\n };\n\n return (\n <OverlayContextProvider type={overlayType} controller={overlayController}>\n <PropsContextProvider props={propsContext} mergeInParentContext>\n <AriaOverlayTrigger isOpen={isOpen}>{children}</AriaOverlayTrigger>\n </PropsContextProvider>\n </OverlayContextProvider>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;AA4Ba,MAAA,cAAA,GAA4B,CAAC,KAAU,KAAA;AAClD,EAAM,MAAA;AAAA,IACJ,WAAA;AAAA,IACA,aAAgB,GAAA,KAAA;AAAA,IAChB,SAAW,EAAA,kBAAA;AAAA,IACX,QAAA;AAAA,IACA,UAAY,EAAA;AAAA,GACV,GAAA,KAAA;AAEJ,EAAA,MAAM,oBAAuB,GAAA,iBAAA,CAAkB,MAAO,CAAA,EAAE,eAAe,CAAA;AACvE,EAAA,MAAM,oBAAoB,mBAAuB,IAAA,oBAAA;AACjD,EAAM,MAAA,MAAA,GAAS,kBAAkB,SAAU,EAAA;AAE3C,EAAA,MAAM,YAA6B,GAAA;AAAA,IACjC,MAAQ,EAAA;AAAA,MACN,SAAS,iBAAkB,CAAA;AAAA;AAC7B,GACF;AAEA,EAAA,2BACG,sBAAuB,EAAA,EAAA,IAAA,EAAM,WAAa,EAAA,UAAA,EAAY,mBACrD,QAAC,kBAAA,GAAA,CAAA,oBAAA,EAAA,EAAqB,KAAO,EAAA,YAAA,EAAc,sBAAoB,IAC7D,EAAA,QAAA,kBAAA,GAAA,CAAC,sBAAmB,MAAiB,EAAA,QAAA,EAAS,GAChD,CACF,EAAA,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"OverlayTrigger.mjs","sources":["../../../../src/components/OverlayTrigger/OverlayTrigger.tsx"],"sourcesContent":["import type { ComponentType, FC, PropsWithChildren, ReactNode } from \"react\";\nimport React from \"react\";\nimport { OverlayController } from \"@/lib/controller\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport type { FlowComponentName } from \"@/components/propTypes\";\nimport OverlayContextProvider from \"@/lib/controller/overlay/OverlayContextProvider\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\n\ntype AriaComponentType = ComponentType<{\n isOpen?: boolean;\n children: ReactNode;\n}>;\n\nexport interface OverlayTriggerProps\n extends FlowComponentProps,\n PropsWithChildren {\n /** Whether the overlay should be open initially. */\n isDefaultOpen?: boolean;\n /** A controller to control the state of the overlay. */\n controller?: OverlayController;\n}\n\ninterface Props extends OverlayTriggerProps {\n overlayType: FlowComponentName;\n component: AriaComponentType;\n}\n\nexport const OverlayTrigger: FC<Props> = (props) => {\n const {\n overlayType,\n isDefaultOpen = false,\n component: AriaOverlayTrigger,\n children,\n controller: controllerFromProps,\n } = props;\n\n const newOverlayController = OverlayController.useNew({ isDefaultOpen });\n const overlayController = controllerFromProps ?? newOverlayController;\n const isOpen = overlayController.useIsOpen();\n\n const propsContext: PropsContext = {\n Button: {\n onPress: overlayController.open,\n },\n };\n\n return (\n <OverlayContextProvider type={overlayType} controller={overlayController}>\n <PropsContextProvider props={propsContext} mergeInParentContext>\n <AriaOverlayTrigger isOpen={isOpen}>{children}</AriaOverlayTrigger>\n </PropsContextProvider>\n </OverlayContextProvider>\n );\n};\n\nexport default OverlayTrigger;\n"],"names":[],"mappings":";;;;;;;;;AA4Ba,MAAA,cAAA,GAA4B,CAAC,KAAU,KAAA;AAClD,EAAM,MAAA;AAAA,IACJ,WAAA;AAAA,IACA,aAAgB,GAAA,KAAA;AAAA,IAChB,SAAW,EAAA,kBAAA;AAAA,IACX,QAAA;AAAA,IACA,UAAY,EAAA;AAAA,GACV,GAAA,KAAA;AAEJ,EAAA,MAAM,oBAAuB,GAAA,iBAAA,CAAkB,MAAO,CAAA,EAAE,eAAe,CAAA;AACvE,EAAA,MAAM,oBAAoB,mBAAuB,IAAA,oBAAA;AACjD,EAAM,MAAA,MAAA,GAAS,kBAAkB,SAAU,EAAA;AAE3C,EAAA,MAAM,YAA6B,GAAA;AAAA,IACjC,MAAQ,EAAA;AAAA,MACN,SAAS,iBAAkB,CAAA;AAAA;AAC7B,GACF;AAEA,EAAA,2BACG,sBAAuB,EAAA,EAAA,IAAA,EAAM,WAAa,EAAA,UAAA,EAAY,mBACrD,QAAC,kBAAA,GAAA,CAAA,oBAAA,EAAA,EAAqB,KAAO,EAAA,YAAA,EAAc,sBAAoB,IAC7D,EAAA,QAAA,kBAAA,GAAA,CAAC,sBAAmB,MAAiB,EAAA,QAAA,EAAS,GAChD,CACF,EAAA,CAAA;AAEJ;;;;"}
@@ -2,8 +2,8 @@
2
2
  /* */
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import 'react';
5
- import { OverlayTrigger } from '../../../OverlayTrigger/OverlayTrigger.mjs';
6
5
  import 'react-aria-components';
6
+ import { OverlayTrigger } from '../../../OverlayTrigger/OverlayTrigger.mjs';
7
7
  import { flowComponent } from '../../../../lib/componentFactory/flowComponent.mjs';
8
8
  import DialogTriggerView from '../../../../views/DialogTriggerView.mjs';
9
9
 
@@ -64,5 +64,5 @@ const SegmentedControl = flowComponent("SegmentedControl", (props) => {
64
64
  ] });
65
65
  });
66
66
 
67
- export { SegmentedControl };
67
+ export { SegmentedControl, SegmentedControl as default };
68
68
  //# sourceMappingURL=SegmentedControl.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedControl.mjs","sources":["../../../../src/components/SegmentedControl/SegmentedControl.tsx"],"sourcesContent":["import {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\nimport type { PropsWithContainerBreakpointSize } from \"@/lib/types/props\";\nimport type { PropsWithChildren } from \"react\";\nimport React from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport formFieldStyles from \"@/components/FormField/FormField.module.scss\";\nimport styles from \"./SegmentedControl.module.scss\";\nimport { getContainerBreakpointSizeClassName } from \"@/lib/getContainerBreakpointSizeClassName\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport { TunnelExit, TunnelProvider } from \"@mittwald/react-tunnel\";\nimport { FieldError } from \"@/components/FieldError\";\nimport clsx from \"clsx\";\n\nexport interface SegmentedControlProps\n extends PropsWithChildren<Omit<Aria.RadioGroupProps, \"children\">>,\n FlowComponentProps,\n PropsWithContainerBreakpointSize {}\n\n/** @flr-generate all */\nexport const SegmentedControl = flowComponent(\"SegmentedControl\", (props) => {\n const {\n children,\n className,\n containerBreakpointSize = \"m\",\n ref,\n ...rest\n } = props;\n\n const rootClassName = clsx(\n formFieldStyles.formField,\n styles.segmentedControlContainer,\n className,\n styles[getContainerBreakpointSizeClassName(containerBreakpointSize)],\n );\n\n const propsContext: PropsContext = {\n Label: {\n className: formFieldStyles.label,\n },\n FieldDescription: {\n className: formFieldStyles.fieldDescription,\n tunnelId: \"fieldDescription\",\n },\n FieldError: {\n className: formFieldStyles.customFieldError,\n tunnelId: \"fieldError\",\n },\n Segment: {\n tunnelId: \"segments\",\n className: styles.segment,\n },\n };\n\n return (\n <Aria.RadioGroup {...rest} className={rootClassName} ref={ref}>\n <TunnelProvider>\n <PropsContextProvider\n dependencies={[\"segment\"]}\n props={propsContext}\n mergeInParentContext\n >\n {children}\n\n <div className={styles.segmentedControl}>\n <div className={styles.segments}>\n <TunnelExit id=\"segments\" />\n </div>\n </div>\n\n <TunnelExit id=\"fieldDescription\" />\n <TunnelExit id=\"fieldError\" />\n </PropsContextProvider>\n </TunnelProvider>\n <FieldError className={formFieldStyles.fieldError} />\n </Aria.RadioGroup>\n );\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAuBO,MAAM,gBAAmB,GAAA,aAAA,CAAc,kBAAoB,EAAA,CAAC,KAAU,KAAA;AAC3E,EAAM,MAAA;AAAA,IACJ,QAAA;AAAA,IACA,SAAA;AAAA,IACA,uBAA0B,GAAA,GAAA;AAAA,IAC1B,GAAA;AAAA,IACA,GAAG;AAAA,GACD,GAAA,KAAA;AAEJ,EAAA,MAAM,aAAgB,GAAA,IAAA;AAAA,IACpB,eAAgB,CAAA,SAAA;AAAA,IAChB,MAAO,CAAA,yBAAA;AAAA,IACP,SAAA;AAAA,IACA,MAAA,CAAO,mCAAoC,CAAA,uBAAuB,CAAC;AAAA,GACrE;AAEA,EAAA,MAAM,YAA6B,GAAA;AAAA,IACjC,KAAO,EAAA;AAAA,MACL,WAAW,eAAgB,CAAA;AAAA,KAC7B;AAAA,IACA,gBAAkB,EAAA;AAAA,MAChB,WAAW,eAAgB,CAAA,gBAAA;AAAA,MAC3B,QAAU,EAAA;AAAA,KACZ;AAAA,IACA,UAAY,EAAA;AAAA,MACV,WAAW,eAAgB,CAAA,gBAAA;AAAA,MAC3B,QAAU,EAAA;AAAA,KACZ;AAAA,IACA,OAAS,EAAA;AAAA,MACP,QAAU,EAAA,UAAA;AAAA,MACV,WAAW,MAAO,CAAA;AAAA;AACpB,GACF;AAEA,EACE,uBAAA,IAAA,CAAC,KAAK,UAAL,EAAA,EAAiB,GAAG,IAAM,EAAA,SAAA,EAAW,eAAe,GACnD,EAAA,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,cACC,EAAA,EAAA,QAAA,kBAAA,IAAA;AAAA,MAAC,oBAAA;AAAA,MAAA;AAAA,QACC,YAAA,EAAc,CAAC,SAAS,CAAA;AAAA,QACxB,KAAO,EAAA,YAAA;AAAA,QACP,oBAAoB,EAAA,IAAA;AAAA,QAEnB,QAAA,EAAA;AAAA,UAAA,QAAA;AAAA,0BAEA,GAAA,CAAA,KAAA,EAAA,EAAI,SAAW,EAAA,MAAA,CAAO,kBACrB,QAAC,kBAAA,GAAA,CAAA,KAAA,EAAA,EAAI,SAAW,EAAA,MAAA,CAAO,UACrB,QAAC,kBAAA,GAAA,CAAA,UAAA,EAAA,EAAW,EAAG,EAAA,UAAA,EAAW,GAC5B,CACF,EAAA,CAAA;AAAA,0BAEA,GAAA,CAAC,UAAW,EAAA,EAAA,EAAA,EAAG,kBAAmB,EAAA,CAAA;AAAA,0BAClC,GAAA,CAAC,UAAW,EAAA,EAAA,EAAA,EAAG,YAAa,EAAA;AAAA;AAAA;AAAA,KAEhC,EAAA,CAAA;AAAA,oBACC,GAAA,CAAA,UAAA,EAAA,EAAW,SAAW,EAAA,eAAA,CAAgB,UAAY,EAAA;AAAA,GACrD,EAAA,CAAA;AAEJ,CAAC;;;;"}
1
+ {"version":3,"file":"SegmentedControl.mjs","sources":["../../../../src/components/SegmentedControl/SegmentedControl.tsx"],"sourcesContent":["import {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\nimport type { PropsWithContainerBreakpointSize } from \"@/lib/types/props\";\nimport type { PropsWithChildren } from \"react\";\nimport React from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport formFieldStyles from \"@/components/FormField/FormField.module.scss\";\nimport styles from \"./SegmentedControl.module.scss\";\nimport { getContainerBreakpointSizeClassName } from \"@/lib/getContainerBreakpointSizeClassName\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport { TunnelExit, TunnelProvider } from \"@mittwald/react-tunnel\";\nimport { FieldError } from \"@/components/FieldError\";\nimport clsx from \"clsx\";\n\nexport interface SegmentedControlProps\n extends PropsWithChildren<Omit<Aria.RadioGroupProps, \"children\">>,\n FlowComponentProps,\n PropsWithContainerBreakpointSize {}\n\n/** @flr-generate all */\nexport const SegmentedControl = flowComponent(\"SegmentedControl\", (props) => {\n const {\n children,\n className,\n containerBreakpointSize = \"m\",\n ref,\n ...rest\n } = props;\n\n const rootClassName = clsx(\n formFieldStyles.formField,\n styles.segmentedControlContainer,\n className,\n styles[getContainerBreakpointSizeClassName(containerBreakpointSize)],\n );\n\n const propsContext: PropsContext = {\n Label: {\n className: formFieldStyles.label,\n },\n FieldDescription: {\n className: formFieldStyles.fieldDescription,\n tunnelId: \"fieldDescription\",\n },\n FieldError: {\n className: formFieldStyles.customFieldError,\n tunnelId: \"fieldError\",\n },\n Segment: {\n tunnelId: \"segments\",\n className: styles.segment,\n },\n };\n\n return (\n <Aria.RadioGroup {...rest} className={rootClassName} ref={ref}>\n <TunnelProvider>\n <PropsContextProvider\n dependencies={[\"segment\"]}\n props={propsContext}\n mergeInParentContext\n >\n {children}\n\n <div className={styles.segmentedControl}>\n <div className={styles.segments}>\n <TunnelExit id=\"segments\" />\n </div>\n </div>\n\n <TunnelExit id=\"fieldDescription\" />\n <TunnelExit id=\"fieldError\" />\n </PropsContextProvider>\n </TunnelProvider>\n <FieldError className={formFieldStyles.fieldError} />\n </Aria.RadioGroup>\n );\n});\n\nexport default SegmentedControl;\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAuBO,MAAM,gBAAmB,GAAA,aAAA,CAAc,kBAAoB,EAAA,CAAC,KAAU,KAAA;AAC3E,EAAM,MAAA;AAAA,IACJ,QAAA;AAAA,IACA,SAAA;AAAA,IACA,uBAA0B,GAAA,GAAA;AAAA,IAC1B,GAAA;AAAA,IACA,GAAG;AAAA,GACD,GAAA,KAAA;AAEJ,EAAA,MAAM,aAAgB,GAAA,IAAA;AAAA,IACpB,eAAgB,CAAA,SAAA;AAAA,IAChB,MAAO,CAAA,yBAAA;AAAA,IACP,SAAA;AAAA,IACA,MAAA,CAAO,mCAAoC,CAAA,uBAAuB,CAAC;AAAA,GACrE;AAEA,EAAA,MAAM,YAA6B,GAAA;AAAA,IACjC,KAAO,EAAA;AAAA,MACL,WAAW,eAAgB,CAAA;AAAA,KAC7B;AAAA,IACA,gBAAkB,EAAA;AAAA,MAChB,WAAW,eAAgB,CAAA,gBAAA;AAAA,MAC3B,QAAU,EAAA;AAAA,KACZ;AAAA,IACA,UAAY,EAAA;AAAA,MACV,WAAW,eAAgB,CAAA,gBAAA;AAAA,MAC3B,QAAU,EAAA;AAAA,KACZ;AAAA,IACA,OAAS,EAAA;AAAA,MACP,QAAU,EAAA,UAAA;AAAA,MACV,WAAW,MAAO,CAAA;AAAA;AACpB,GACF;AAEA,EACE,uBAAA,IAAA,CAAC,KAAK,UAAL,EAAA,EAAiB,GAAG,IAAM,EAAA,SAAA,EAAW,eAAe,GACnD,EAAA,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,cACC,EAAA,EAAA,QAAA,kBAAA,IAAA;AAAA,MAAC,oBAAA;AAAA,MAAA;AAAA,QACC,YAAA,EAAc,CAAC,SAAS,CAAA;AAAA,QACxB,KAAO,EAAA,YAAA;AAAA,QACP,oBAAoB,EAAA,IAAA;AAAA,QAEnB,QAAA,EAAA;AAAA,UAAA,QAAA;AAAA,0BAEA,GAAA,CAAA,KAAA,EAAA,EAAI,SAAW,EAAA,MAAA,CAAO,kBACrB,QAAC,kBAAA,GAAA,CAAA,KAAA,EAAA,EAAI,SAAW,EAAA,MAAA,CAAO,UACrB,QAAC,kBAAA,GAAA,CAAA,UAAA,EAAA,EAAW,EAAG,EAAA,UAAA,EAAW,GAC5B,CACF,EAAA,CAAA;AAAA,0BAEA,GAAA,CAAC,UAAW,EAAA,EAAA,EAAA,EAAG,kBAAmB,EAAA,CAAA;AAAA,0BAClC,GAAA,CAAC,UAAW,EAAA,EAAA,EAAA,EAAG,YAAa,EAAA;AAAA;AAAA;AAAA,KAEhC,EAAA,CAAA;AAAA,oBACC,GAAA,CAAA,UAAA,EAAA,EAAW,SAAW,EAAA,eAAA,CAAgB,UAAY,EAAA;AAAA,GACrD,EAAA,CAAA;AAEJ,CAAC;;;;"}
@@ -32,5 +32,5 @@ const SettingsProvider = (props) => {
32
32
  return /* @__PURE__ */ jsx(context.Provider, { value: settingsStore, children });
33
33
  };
34
34
 
35
- export { SettingsProvider, useSettings };
35
+ export { SettingsProvider, SettingsProvider as default, useSettings };
36
36
  //# sourceMappingURL=SettingsProvider.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsProvider.mjs","sources":["../../../../src/components/SettingsProvider/SettingsProvider.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from \"react\";\nimport React, {\n createContext,\n useContext,\n useEffect,\n useMemo,\n useRef,\n} from \"react\";\nimport type { SupportedSettingsBackend } from \"@/components/SettingsProvider/backends/types\";\nimport { autorun } from \"mobx\";\nimport { getAsyncResource } from \"@mittwald/react-use-promise\";\nimport { SettingsStore } from \"@/components/SettingsProvider/models/SettingsStore\";\nimport { settingsBackendFactory } from \"@/components/SettingsProvider/backends/settingsBackendFactory\";\n\ntype Props = PropsWithChildren &\n SupportedSettingsBackend & {\n id?: string;\n };\n\nconst context = createContext<SettingsStore | undefined>(undefined);\n\nexport const useSettings = () => useContext(context);\n\nexport const SettingsProvider: FC<Props> = (props) => {\n const { children, id, ...storeShape } = props;\n const backend = settingsBackendFactory(storeShape);\n\n const storedSettingsResource = getAsyncResource(() => backend.load(), [], {\n loaderId: id,\n });\n const storedSettings = storedSettingsResource.use();\n const storingPromise = useRef(Promise.resolve());\n\n const settingsStore = useMemo(\n () => SettingsStore.fromJson(storedSettings),\n [id],\n );\n\n const watchAndStoreSettings = () => {\n const json = settingsStore.asJson;\n storingPromise.current = storingPromise.current.then(async () => {\n await backend.store(json);\n storedSettingsResource.refresh();\n });\n };\n\n useEffect(() => autorun(watchAndStoreSettings), [id]);\n\n return <context.Provider value={settingsStore}>{children}</context.Provider>;\n};\n"],"names":[],"mappings":";;;;;;;AAmBA,MAAM,OAAA,GAAU,cAAyC,MAAS,CAAA;AAErD,MAAA,WAAA,GAAc,MAAM,UAAA,CAAW,OAAO;AAEtC,MAAA,gBAAA,GAA8B,CAAC,KAAU,KAAA;AACpD,EAAA,MAAM,EAAE,QAAA,EAAU,EAAI,EAAA,GAAG,YAAe,GAAA,KAAA;AACxC,EAAM,MAAA,OAAA,GAAU,uBAAuB,UAAU,CAAA;AAEjD,EAAA,MAAM,yBAAyB,gBAAiB,CAAA,MAAM,QAAQ,IAAK,EAAA,EAAG,EAAI,EAAA;AAAA,IACxE,QAAU,EAAA;AAAA,GACX,CAAA;AACD,EAAM,MAAA,cAAA,GAAiB,uBAAuB,GAAI,EAAA;AAClD,EAAA,MAAM,cAAiB,GAAA,MAAA,CAAO,OAAQ,CAAA,OAAA,EAAS,CAAA;AAE/C,EAAA,MAAM,aAAgB,GAAA,OAAA;AAAA,IACpB,MAAM,aAAc,CAAA,QAAA,CAAS,cAAc,CAAA;AAAA,IAC3C,CAAC,EAAE;AAAA,GACL;AAEA,EAAA,MAAM,wBAAwB,MAAM;AAClC,IAAA,MAAM,OAAO,aAAc,CAAA,MAAA;AAC3B,IAAA,cAAA,CAAe,OAAU,GAAA,cAAA,CAAe,OAAQ,CAAA,IAAA,CAAK,YAAY;AAC/D,MAAM,MAAA,OAAA,CAAQ,MAAM,IAAI,CAAA;AACxB,MAAA,sBAAA,CAAuB,OAAQ,EAAA;AAAA,KAChC,CAAA;AAAA,GACH;AAEA,EAAA,SAAA,CAAU,MAAM,OAAQ,CAAA,qBAAqB,CAAG,EAAA,CAAC,EAAE,CAAC,CAAA;AAEpD,EAAA,2BAAQ,OAAQ,CAAA,QAAA,EAAR,EAAiB,KAAA,EAAO,eAAgB,QAAS,EAAA,CAAA;AAC3D;;;;"}
1
+ {"version":3,"file":"SettingsProvider.mjs","sources":["../../../../src/components/SettingsProvider/SettingsProvider.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from \"react\";\nimport React, {\n createContext,\n useContext,\n useEffect,\n useMemo,\n useRef,\n} from \"react\";\nimport type { SupportedSettingsBackend } from \"@/components/SettingsProvider/backends/types\";\nimport { autorun } from \"mobx\";\nimport { getAsyncResource } from \"@mittwald/react-use-promise\";\nimport { SettingsStore } from \"@/components/SettingsProvider/models/SettingsStore\";\nimport { settingsBackendFactory } from \"@/components/SettingsProvider/backends/settingsBackendFactory\";\n\ntype Props = PropsWithChildren &\n SupportedSettingsBackend & {\n id?: string;\n };\n\nconst context = createContext<SettingsStore | undefined>(undefined);\n\nexport const useSettings = () => useContext(context);\n\nexport const SettingsProvider: FC<Props> = (props) => {\n const { children, id, ...storeShape } = props;\n const backend = settingsBackendFactory(storeShape);\n\n const storedSettingsResource = getAsyncResource(() => backend.load(), [], {\n loaderId: id,\n });\n const storedSettings = storedSettingsResource.use();\n const storingPromise = useRef(Promise.resolve());\n\n const settingsStore = useMemo(\n () => SettingsStore.fromJson(storedSettings),\n [id],\n );\n\n const watchAndStoreSettings = () => {\n const json = settingsStore.asJson;\n storingPromise.current = storingPromise.current.then(async () => {\n await backend.store(json);\n storedSettingsResource.refresh();\n });\n };\n\n useEffect(() => autorun(watchAndStoreSettings), [id]);\n\n return <context.Provider value={settingsStore}>{children}</context.Provider>;\n};\n\nexport default SettingsProvider;\n"],"names":[],"mappings":";;;;;;;AAmBA,MAAM,OAAA,GAAU,cAAyC,MAAS,CAAA;AAErD,MAAA,WAAA,GAAc,MAAM,UAAA,CAAW,OAAO;AAEtC,MAAA,gBAAA,GAA8B,CAAC,KAAU,KAAA;AACpD,EAAA,MAAM,EAAE,QAAA,EAAU,EAAI,EAAA,GAAG,YAAe,GAAA,KAAA;AACxC,EAAM,MAAA,OAAA,GAAU,uBAAuB,UAAU,CAAA;AAEjD,EAAA,MAAM,yBAAyB,gBAAiB,CAAA,MAAM,QAAQ,IAAK,EAAA,EAAG,EAAI,EAAA;AAAA,IACxE,QAAU,EAAA;AAAA,GACX,CAAA;AACD,EAAM,MAAA,cAAA,GAAiB,uBAAuB,GAAI,EAAA;AAClD,EAAA,MAAM,cAAiB,GAAA,MAAA,CAAO,OAAQ,CAAA,OAAA,EAAS,CAAA;AAE/C,EAAA,MAAM,aAAgB,GAAA,OAAA;AAAA,IACpB,MAAM,aAAc,CAAA,QAAA,CAAS,cAAc,CAAA;AAAA,IAC3C,CAAC,EAAE;AAAA,GACL;AAEA,EAAA,MAAM,wBAAwB,MAAM;AAClC,IAAA,MAAM,OAAO,aAAc,CAAA,MAAA;AAC3B,IAAA,cAAA,CAAe,OAAU,GAAA,cAAA,CAAe,OAAQ,CAAA,IAAA,CAAK,YAAY;AAC/D,MAAM,MAAA,OAAA,CAAQ,MAAM,IAAI,CAAA;AACxB,MAAA,sBAAA,CAAuB,OAAQ,EAAA;AAAA,KAChC,CAAA;AAAA,GACH;AAEA,EAAA,SAAA,CAAU,MAAM,OAAQ,CAAA,qBAAqB,CAAG,EAAA,CAAC,EAAE,CAAC,CAAA;AAEpD,EAAA,2BAAQ,OAAQ,CAAA,QAAA,EAAR,EAAiB,KAAA,EAAO,eAAgB,QAAS,EAAA,CAAA;AAC3D;;;;"}
@@ -8,5 +8,5 @@ const Wrap = (props) => {
8
8
  return children.props.children;
9
9
  };
10
10
 
11
- export { Wrap };
11
+ export { Wrap, Wrap as default };
12
12
  //# sourceMappingURL=Wrap.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Wrap.mjs","sources":["../../../../src/components/Wrap/Wrap.tsx"],"sourcesContent":["import type { FC, PropsWithChildren, ReactElement } from \"react\";\n\nexport const Wrap: FC<{\n if: unknown;\n children: ReactElement<PropsWithChildren>;\n}> = (props) => {\n const { if: _if, children } = props;\n\n if (_if) {\n return children;\n }\n\n return children.props.children;\n};\n"],"names":[],"mappings":"AAEa,MAAA,IAAA,GAGR,CAAC,KAAU,KAAA;AACd,EAAA,MAAM,EAAE,EAAA,EAAI,GAAK,EAAA,QAAA,EAAa,GAAA,KAAA;AAE9B,EAAA,IAAI,GAAK,EAAA;AACP,IAAO,OAAA,QAAA;AAAA;AAGT,EAAA,OAAO,SAAS,KAAM,CAAA,QAAA;AACxB;;;;"}
1
+ {"version":3,"file":"Wrap.mjs","sources":["../../../../src/components/Wrap/Wrap.tsx"],"sourcesContent":["import type { FC, PropsWithChildren, ReactElement } from \"react\";\n\nexport const Wrap: FC<{\n if: unknown;\n children: ReactElement<PropsWithChildren>;\n}> = (props) => {\n const { if: _if, children } = props;\n\n if (_if) {\n return children;\n }\n\n return children.props.children;\n};\n\nexport default Wrap;\n"],"names":[],"mappings":"AAEa,MAAA,IAAA,GAGR,CAAC,KAAU,KAAA;AACd,EAAA,MAAM,EAAE,EAAA,EAAI,GAAK,EAAA,QAAA,EAAa,GAAA,KAAA;AAE9B,EAAA,IAAI,GAAK,EAAA;AACP,IAAO,OAAA,QAAA;AAAA;AAGT,EAAA,OAAO,SAAS,KAAM,CAAA,QAAA;AACxB;;;;"}
@@ -144,8 +144,8 @@ import './components/List/listContext.mjs';
144
144
  export { List } from './components/List/List.mjs';
145
145
  export { typedList } from './components/List/typedList.mjs';
146
146
  import 'react-markdown';
147
- export { Modal } from './components/Modal/Modal.mjs';
148
147
  export { ModalTrigger } from './components/Modal/components/ModalTrigger/ModalTrigger.mjs';
148
+ export { Modal } from './components/Modal/Modal.mjs';
149
149
  import './components/NotificationProvider/NotificationProvider.mjs';
150
150
  import 'mobx';
151
151
  export { PopoverTrigger } from './components/Popover/components/PopoverTrigger/PopoverTrigger.mjs';
package/dist/js/index.mjs CHANGED
@@ -155,8 +155,8 @@ export { InlineCode } from './components/InlineCode/InlineCode.mjs';
155
155
  export { Label } from './components/Label/Label.mjs';
156
156
  export { LabeledValue } from './components/LabeledValue/LabeledValue.mjs';
157
157
  export { LayoutCard } from './components/LayoutCard/LayoutCard.mjs';
158
- export { LightBox } from './components/LightBox/LightBox.mjs';
159
158
  export { LightBoxTrigger } from './components/LightBox/components/LightBoxTrigger/LightBoxTrigger.mjs';
159
+ export { LightBox } from './components/LightBox/LightBox.mjs';
160
160
  export { Link } from './components/Link/Link.mjs';
161
161
  export { SortingFunctions } from './components/List/model/sorting/SortingFunctions.mjs';
162
162
  export { GridList } from './components/List/components/Items/views/GridList/GridList.mjs';
@@ -178,8 +178,8 @@ export { Markdown } from './components/Markdown/Markdown.mjs';
178
178
  export { Message } from './components/Message/Message.mjs';
179
179
  export { MessageSeparator } from './components/MessageSeparator/MessageSeparator.mjs';
180
180
  export { MessageThread } from './components/MessageThread/MessageThread.mjs';
181
- export { Modal } from './components/Modal/Modal.mjs';
182
181
  export { ModalTrigger } from './components/Modal/components/ModalTrigger/ModalTrigger.mjs';
182
+ export { Modal } from './components/Modal/Modal.mjs';
183
183
  export { Navigation } from './components/Navigation/Navigation.mjs';
184
184
  export { NavigationGroup } from './components/Navigation/components/NavigationGroup/NavigationGroup.mjs';
185
185
  export { Notification } from './components/Notification/Notification.mjs';
@@ -189,9 +189,9 @@ export { NumberField } from './components/NumberField/NumberField.mjs';
189
189
  export { Option } from './components/Option/Option.mjs';
190
190
  export { Overlay } from './components/Overlay/Overlay.mjs';
191
191
  export { OverlayContent } from './components/Overlay/components/OverlayContent.mjs';
192
- export { OverlayTrigger } from './components/OverlayTrigger/OverlayTrigger.mjs';
193
192
  export { DialogTrigger } from './components/OverlayTrigger/components/DialogTrigger/DialogTrigger.mjs';
194
193
  export { MenuTrigger } from './components/OverlayTrigger/components/MenuTrigger/MenuTrigger.mjs';
194
+ export { OverlayTrigger } from './components/OverlayTrigger/OverlayTrigger.mjs';
195
195
  export { PopoverTrigger } from './components/Popover/components/PopoverTrigger/PopoverTrigger.mjs';
196
196
  export { PopoverContent } from './components/Popover/components/PopoverContent/PopoverContent.mjs';
197
197
  export { Popover } from './components/Popover/Popover.mjs';
@@ -2,6 +2,8 @@
2
2
  /* */
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import { useContext } from 'react';
5
+ import { DialogTrigger } from '../components/OverlayTrigger/components/DialogTrigger/DialogTrigger.mjs';
6
+ import 'react-aria-components';
5
7
  import 'mobx';
6
8
  import '../lib/controller/overlay/context.mjs';
7
9
  import '../lib/propsContext/propsContext.mjs';
@@ -9,8 +11,6 @@ import { viewComponentContext } from '../lib/viewComponentContext/viewComponentC
9
11
  import '@react-aria/utils';
10
12
  import 'remeda';
11
13
  import 'dot-prop';
12
- import { DialogTrigger } from '../components/OverlayTrigger/components/DialogTrigger/DialogTrigger.mjs';
13
- import 'react-aria-components';
14
14
 
15
15
  const DialogTriggerView = (props) => {
16
16
  const View = useContext(viewComponentContext)["DialogTrigger"] ?? DialogTrigger;
@@ -2,6 +2,8 @@
2
2
  /* */
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import { useContext } from 'react';
5
+ import 'react-aria-components';
6
+ import { MenuTrigger } from '../components/OverlayTrigger/components/MenuTrigger/MenuTrigger.mjs';
5
7
  import 'mobx';
6
8
  import '../lib/controller/overlay/context.mjs';
7
9
  import '../lib/propsContext/propsContext.mjs';
@@ -9,8 +11,6 @@ import { viewComponentContext } from '../lib/viewComponentContext/viewComponentC
9
11
  import '@react-aria/utils';
10
12
  import 'remeda';
11
13
  import 'dot-prop';
12
- import 'react-aria-components';
13
- import { MenuTrigger } from '../components/OverlayTrigger/components/MenuTrigger/MenuTrigger.mjs';
14
14
 
15
15
  const MenuTriggerView = (props) => {
16
16
  const View = useContext(viewComponentContext)["MenuTrigger"] ?? MenuTrigger;
@@ -2,6 +2,7 @@
2
2
  /* */
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import { useContext } from 'react';
5
+ import 'react-aria-components';
5
6
  import 'mobx';
6
7
  import '../lib/controller/overlay/context.mjs';
7
8
  import '../lib/propsContext/propsContext.mjs';
@@ -9,7 +10,6 @@ import { viewComponentContext } from '../lib/viewComponentContext/viewComponentC
9
10
  import '@react-aria/utils';
10
11
  import 'remeda';
11
12
  import 'dot-prop';
12
- import 'react-aria-components';
13
13
  import '@mittwald/react-tunnel';
14
14
  import '../lib/slotContext/slotContext.mjs';
15
15
  import { PopoverContent } from '../components/Popover/components/PopoverContent/PopoverContent.mjs';
@@ -1,5 +1,4 @@
1
- import { Accordion } from './Accordion';
2
1
  export * from './view';
3
2
  export { Accordion, type AccordionProps } from './Accordion';
4
- export default Accordion;
3
+ export { default } from './Accordion';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Accordion/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Accordion/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC"}
@@ -1,3 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  export declare const Action: React.FunctionComponent<import('./types').ActionProps & React.RefAttributes<HTMLDivElement>>;
3
+ export default Action;
3
4
  //# sourceMappingURL=Action.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../../src/components/Action/Action.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAuC1B,eAAO,MAAM,MAAM,8FAiDjB,CAAC"}
1
+ {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../../src/components/Action/Action.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAuC1B,eAAO,MAAM,MAAM,8FAiDjB,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -1,5 +1,4 @@
1
- import { Action } from './Action';
2
1
  export { Action } from './Action';
3
2
  export * from './types';
4
- export default Action;
3
+ export { default } from './Action';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Action/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Action/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
@@ -1,5 +1,4 @@
1
- import { ActionGroup } from './ActionGroup';
2
1
  export * from './view';
3
2
  export { type ActionGroupProps, ActionGroup } from './ActionGroup';
4
- export default ActionGroup;
3
+ export { default } from './ActionGroup';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ActionGroup/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACnE,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ActionGroup/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
@@ -4,4 +4,5 @@ export interface ActivityProps extends PropsWithChildren {
4
4
  inactiveDelay?: number;
5
5
  }
6
6
  export declare const Activity: FC<ActivityProps>;
7
+ export default Activity;
7
8
  //# sourceMappingURL=Activity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Activity.d.ts","sourceRoot":"","sources":["../../../../src/components/Activity/Activity.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIlE,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAUD,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAoCtC,CAAC"}
1
+ {"version":3,"file":"Activity.d.ts","sourceRoot":"","sources":["../../../../src/components/Activity/Activity.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIlE,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAUD,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAoCtC,CAAC;AACF,eAAe,QAAQ,CAAC"}
@@ -1,4 +1,3 @@
1
- import { Activity } from './Activity';
2
1
  export * from './Activity';
3
- export default Activity;
2
+ export { default } from './Activity';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Activity/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,cAAc,gCAAgC,CAAC;AAE/C,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Activity/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC"}
@@ -1,5 +1,4 @@
1
- import { Alert } from './Alert';
2
1
  export * from './view';
3
2
  export { type AlertProps, Alert } from './Alert';
4
- export default Alert;
3
+ export { default } from './Alert';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Alert/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACjD,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Alert/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
@@ -1,5 +1,4 @@
1
- import { AlertBadge } from './AlertBadge';
2
1
  export * from './view';
3
2
  export { type AlertBadgeProps, AlertBadge } from './AlertBadge';
4
- export default AlertBadge;
3
+ export { default } from './AlertBadge';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AlertBadge/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,KAAK,eAAe,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAChE,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AlertBadge/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,KAAK,eAAe,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
@@ -1,5 +1,4 @@
1
- import { AlertIcon } from './AlertIcon';
2
1
  export * from './view';
3
2
  export { type AlertIconProps, AlertIcon } from './AlertIcon';
4
- export default AlertIcon;
3
+ export { default } from './AlertIcon';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AlertIcon/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,KAAK,cAAc,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7D,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AlertIcon/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,KAAK,cAAc,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC"}
@@ -1,5 +1,4 @@
1
- import { Align } from './Align';
2
1
  export * from './view';
3
2
  export { type AlignProps, Align } from './Align';
4
- export default Align;
3
+ export { default } from './Align';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Align/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACjD,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Align/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
@@ -1,5 +1,4 @@
1
- import { Avatar } from './Avatar';
2
1
  export * from './view';
3
2
  export { Avatar, type AvatarProps } from './Avatar';
4
- export default Avatar;
3
+ export { default } from './Avatar';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
@@ -13,4 +13,5 @@ export interface AvatarStackProps extends PropsWithClassName, PropsWithChildren
13
13
  }
14
14
  /** @flr-generate all */
15
15
  export declare const AvatarStack: FC<AvatarStackProps>;
16
+ export default AvatarStack;
16
17
  //# sourceMappingURL=AvatarStack.d.ts.map