@mittwald/flow-react-components 0.2.0-alpha.91 → 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.
- package/CHANGELOG.md +8 -0
- package/dist/assets/doc-properties.json +11072 -11072
- package/dist/js/components/Action/Action.mjs +1 -1
- package/dist/js/components/Action/Action.mjs.map +1 -1
- package/dist/js/components/Activity/Activity.mjs +1 -1
- package/dist/js/components/Activity/Activity.mjs.map +1 -1
- package/dist/js/components/AvatarStack/AvatarStack.mjs +1 -1
- package/dist/js/components/AvatarStack/AvatarStack.mjs.map +1 -1
- package/dist/js/components/ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.mjs +1 -1
- package/dist/js/components/FileField/FileField.mjs +1 -1
- package/dist/js/components/FileField/FileField.mjs.map +1 -1
- package/dist/js/components/Flex/Flex.mjs +1 -1
- package/dist/js/components/Flex/Flex.mjs.map +1 -1
- package/dist/js/components/MessageSeparator/MessageSeparator.mjs +1 -1
- package/dist/js/components/MessageSeparator/MessageSeparator.mjs.map +1 -1
- package/dist/js/components/MessageThread/MessageThread.mjs +1 -1
- package/dist/js/components/MessageThread/MessageThread.mjs.map +1 -1
- package/dist/js/components/Modal/components/ModalTrigger/ModalTrigger.mjs +1 -1
- package/dist/js/components/OverlayTrigger/OverlayTrigger.mjs +1 -1
- package/dist/js/components/OverlayTrigger/OverlayTrigger.mjs.map +1 -1
- package/dist/js/components/Popover/components/PopoverTrigger/PopoverTrigger.mjs +1 -1
- package/dist/js/components/SegmentedControl/SegmentedControl.mjs +1 -1
- package/dist/js/components/SegmentedControl/SegmentedControl.mjs.map +1 -1
- package/dist/js/components/SettingsProvider/SettingsProvider.mjs +1 -1
- package/dist/js/components/SettingsProvider/SettingsProvider.mjs.map +1 -1
- package/dist/js/components/Wrap/Wrap.mjs +1 -1
- package/dist/js/components/Wrap/Wrap.mjs.map +1 -1
- package/dist/js/flr-universal.mjs +1 -1
- package/dist/js/index.mjs +3 -3
- package/dist/js/views/DialogTriggerView.mjs +2 -2
- package/dist/js/views/MenuTriggerView.mjs +2 -2
- package/dist/js/views/PopoverContentView.mjs +1 -1
- package/dist/types/components/Accordion/index.d.ts +1 -2
- package/dist/types/components/Accordion/index.d.ts.map +1 -1
- package/dist/types/components/Action/Action.d.ts +1 -0
- package/dist/types/components/Action/Action.d.ts.map +1 -1
- package/dist/types/components/Action/index.d.ts +1 -2
- package/dist/types/components/Action/index.d.ts.map +1 -1
- package/dist/types/components/ActionGroup/index.d.ts +1 -2
- package/dist/types/components/ActionGroup/index.d.ts.map +1 -1
- package/dist/types/components/Activity/Activity.d.ts +1 -0
- package/dist/types/components/Activity/Activity.d.ts.map +1 -1
- package/dist/types/components/Activity/index.d.ts +1 -2
- package/dist/types/components/Activity/index.d.ts.map +1 -1
- package/dist/types/components/Alert/index.d.ts +1 -2
- package/dist/types/components/Alert/index.d.ts.map +1 -1
- package/dist/types/components/AlertBadge/index.d.ts +1 -2
- package/dist/types/components/AlertBadge/index.d.ts.map +1 -1
- package/dist/types/components/AlertIcon/index.d.ts +1 -2
- package/dist/types/components/AlertIcon/index.d.ts.map +1 -1
- package/dist/types/components/Align/index.d.ts +1 -2
- package/dist/types/components/Align/index.d.ts.map +1 -1
- package/dist/types/components/Avatar/index.d.ts +1 -2
- package/dist/types/components/Avatar/index.d.ts.map +1 -1
- package/dist/types/components/AvatarStack/AvatarStack.d.ts +1 -0
- package/dist/types/components/AvatarStack/AvatarStack.d.ts.map +1 -1
- package/dist/types/components/AvatarStack/index.d.ts +1 -2
- package/dist/types/components/AvatarStack/index.d.ts.map +1 -1
- package/dist/types/components/Badge/index.d.ts +1 -2
- package/dist/types/components/Badge/index.d.ts.map +1 -1
- package/dist/types/components/Breadcrumb/index.d.ts +1 -2
- package/dist/types/components/Breadcrumb/index.d.ts.map +1 -1
- package/dist/types/components/Button/index.d.ts +1 -2
- package/dist/types/components/Button/index.d.ts.map +1 -1
- package/dist/types/components/Chat/index.d.ts +1 -2
- package/dist/types/components/Chat/index.d.ts.map +1 -1
- package/dist/types/components/Checkbox/index.d.ts +1 -2
- package/dist/types/components/Checkbox/index.d.ts.map +1 -1
- package/dist/types/components/CheckboxButton/index.d.ts +1 -2
- package/dist/types/components/CheckboxButton/index.d.ts.map +1 -1
- package/dist/types/components/CheckboxGroup/index.d.ts +1 -2
- package/dist/types/components/CheckboxGroup/index.d.ts.map +1 -1
- package/dist/types/components/CodeBlock/index.d.ts +1 -2
- package/dist/types/components/CodeBlock/index.d.ts.map +1 -1
- package/dist/types/components/ColumnLayout/index.d.ts +1 -2
- package/dist/types/components/ColumnLayout/index.d.ts.map +1 -1
- package/dist/types/components/ComboBox/index.d.ts +1 -2
- package/dist/types/components/ComboBox/index.d.ts.map +1 -1
- package/dist/types/components/Content/index.d.ts +1 -2
- package/dist/types/components/Content/index.d.ts.map +1 -1
- package/dist/types/components/ContextMenu/index.d.ts +1 -2
- package/dist/types/components/ContextMenu/index.d.ts.map +1 -1
- package/dist/types/components/ContextualHelp/index.d.ts +1 -2
- package/dist/types/components/ContextualHelp/index.d.ts.map +1 -1
- package/dist/types/components/CopyButton/index.d.ts +1 -2
- package/dist/types/components/CopyButton/index.d.ts.map +1 -1
- package/dist/types/components/CounterBadge/index.d.ts +1 -2
- package/dist/types/components/CounterBadge/index.d.ts.map +1 -1
- package/dist/types/components/DatePicker/index.d.ts +1 -2
- package/dist/types/components/DatePicker/index.d.ts.map +1 -1
- package/dist/types/components/DateRangePicker/index.d.ts +1 -2
- package/dist/types/components/DateRangePicker/index.d.ts.map +1 -1
- package/dist/types/components/Div/index.d.ts +1 -2
- package/dist/types/components/Div/index.d.ts.map +1 -1
- package/dist/types/components/EmulatedBoldText/index.d.ts +1 -2
- package/dist/types/components/EmulatedBoldText/index.d.ts.map +1 -1
- package/dist/types/components/FieldDescription/index.d.ts +1 -2
- package/dist/types/components/FieldDescription/index.d.ts.map +1 -1
- package/dist/types/components/FieldError/index.d.ts +1 -2
- package/dist/types/components/FieldError/index.d.ts.map +1 -1
- package/dist/types/components/FileCard/index.d.ts +1 -2
- package/dist/types/components/FileCard/index.d.ts.map +1 -1
- package/dist/types/components/FileCardList/index.d.ts +1 -2
- package/dist/types/components/FileCardList/index.d.ts.map +1 -1
- package/dist/types/components/FileDropZone/index.d.ts +1 -2
- package/dist/types/components/FileDropZone/index.d.ts.map +1 -1
- package/dist/types/components/FileField/FileField.d.ts +1 -0
- package/dist/types/components/FileField/FileField.d.ts.map +1 -1
- package/dist/types/components/FileField/index.d.ts +1 -2
- package/dist/types/components/FileField/index.d.ts.map +1 -1
- package/dist/types/components/Flex/Flex.d.ts +1 -0
- package/dist/types/components/Flex/Flex.d.ts.map +1 -1
- package/dist/types/components/Flex/index.d.ts +1 -2
- package/dist/types/components/Flex/index.d.ts.map +1 -1
- package/dist/types/components/Fragment/index.d.ts +1 -2
- package/dist/types/components/Fragment/index.d.ts.map +1 -1
- package/dist/types/components/Header/index.d.ts +1 -2
- package/dist/types/components/Header/index.d.ts.map +1 -1
- package/dist/types/components/HeaderNavigation/index.d.ts +1 -2
- package/dist/types/components/HeaderNavigation/index.d.ts.map +1 -1
- package/dist/types/components/Heading/index.d.ts +1 -2
- package/dist/types/components/Heading/index.d.ts.map +1 -1
- package/dist/types/components/Icon/index.d.ts +1 -2
- package/dist/types/components/Icon/index.d.ts.map +1 -1
- package/dist/types/components/IllustratedMessage/index.d.ts +1 -2
- package/dist/types/components/IllustratedMessage/index.d.ts.map +1 -1
- package/dist/types/components/Image/index.d.ts +1 -2
- package/dist/types/components/Image/index.d.ts.map +1 -1
- package/dist/types/components/Initials/index.d.ts +1 -2
- package/dist/types/components/Initials/index.d.ts.map +1 -1
- package/dist/types/components/InlineCode/index.d.ts +1 -2
- package/dist/types/components/InlineCode/index.d.ts.map +1 -1
- package/dist/types/components/Label/index.d.ts +1 -2
- package/dist/types/components/Label/index.d.ts.map +1 -1
- package/dist/types/components/LabeledValue/index.d.ts +1 -2
- package/dist/types/components/LabeledValue/index.d.ts.map +1 -1
- package/dist/types/components/LayoutCard/index.d.ts +1 -2
- package/dist/types/components/LayoutCard/index.d.ts.map +1 -1
- package/dist/types/components/LightBox/index.d.ts +1 -2
- package/dist/types/components/LightBox/index.d.ts.map +1 -1
- package/dist/types/components/Link/index.d.ts +1 -2
- package/dist/types/components/Link/index.d.ts.map +1 -1
- package/dist/types/components/LoadingSpinner/index.d.ts +1 -2
- package/dist/types/components/LoadingSpinner/index.d.ts.map +1 -1
- package/dist/types/components/Markdown/index.d.ts +1 -2
- package/dist/types/components/Markdown/index.d.ts.map +1 -1
- package/dist/types/components/MenuItem/index.d.ts +1 -2
- package/dist/types/components/MenuItem/index.d.ts.map +1 -1
- package/dist/types/components/Message/index.d.ts +1 -2
- package/dist/types/components/Message/index.d.ts.map +1 -1
- package/dist/types/components/MessageSeparator/MessageSeparator.d.ts +1 -0
- package/dist/types/components/MessageSeparator/MessageSeparator.d.ts.map +1 -1
- package/dist/types/components/MessageSeparator/index.d.ts +1 -2
- package/dist/types/components/MessageSeparator/index.d.ts.map +1 -1
- package/dist/types/components/MessageThread/MessageThread.d.ts +1 -0
- package/dist/types/components/MessageThread/MessageThread.d.ts.map +1 -1
- package/dist/types/components/MessageThread/index.d.ts +1 -2
- package/dist/types/components/MessageThread/index.d.ts.map +1 -1
- package/dist/types/components/Modal/index.d.ts +1 -2
- package/dist/types/components/Modal/index.d.ts.map +1 -1
- package/dist/types/components/Navigation/index.d.ts +1 -2
- package/dist/types/components/Navigation/index.d.ts.map +1 -1
- package/dist/types/components/Notification/index.d.ts +1 -2
- package/dist/types/components/Notification/index.d.ts.map +1 -1
- package/dist/types/components/NotificationProvider/index.d.ts +1 -2
- package/dist/types/components/NotificationProvider/index.d.ts.map +1 -1
- package/dist/types/components/NumberField/index.d.ts +1 -2
- package/dist/types/components/NumberField/index.d.ts.map +1 -1
- package/dist/types/components/Option/index.d.ts +1 -2
- package/dist/types/components/Option/index.d.ts.map +1 -1
- package/dist/types/components/Options/index.d.ts +1 -2
- package/dist/types/components/Options/index.d.ts.map +1 -1
- package/dist/types/components/OverlayTrigger/OverlayTrigger.d.ts +1 -1
- package/dist/types/components/OverlayTrigger/OverlayTrigger.d.ts.map +1 -1
- package/dist/types/components/OverlayTrigger/index.d.ts +1 -2
- package/dist/types/components/OverlayTrigger/index.d.ts.map +1 -1
- package/dist/types/components/ProgressBar/index.d.ts +1 -2
- package/dist/types/components/ProgressBar/index.d.ts.map +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +1 -2
- package/dist/types/components/RadioGroup/index.d.ts.map +1 -1
- package/dist/types/components/SearchField/index.d.ts +1 -2
- package/dist/types/components/SearchField/index.d.ts.map +1 -1
- package/dist/types/components/Section/index.d.ts +1 -2
- package/dist/types/components/Section/index.d.ts.map +1 -1
- package/dist/types/components/SegmentedControl/SegmentedControl.d.ts +1 -0
- package/dist/types/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/types/components/SegmentedControl/index.d.ts +1 -2
- package/dist/types/components/SegmentedControl/index.d.ts.map +1 -1
- package/dist/types/components/Select/index.d.ts +1 -2
- package/dist/types/components/Select/index.d.ts.map +1 -1
- package/dist/types/components/Separator/index.d.ts +1 -2
- package/dist/types/components/Separator/index.d.ts.map +1 -1
- package/dist/types/components/SettingsProvider/SettingsProvider.d.ts +1 -1
- package/dist/types/components/SettingsProvider/SettingsProvider.d.ts.map +1 -1
- package/dist/types/components/SettingsProvider/index.d.ts +1 -2
- package/dist/types/components/SettingsProvider/index.d.ts.map +1 -1
- package/dist/types/components/Skeleton/index.d.ts +1 -2
- package/dist/types/components/Skeleton/index.d.ts.map +1 -1
- package/dist/types/components/SkeletonText/index.d.ts +1 -2
- package/dist/types/components/SkeletonText/index.d.ts.map +1 -1
- package/dist/types/components/Slider/index.d.ts +1 -2
- package/dist/types/components/Slider/index.d.ts.map +1 -1
- package/dist/types/components/Switch/index.d.ts +1 -2
- package/dist/types/components/Switch/index.d.ts.map +1 -1
- package/dist/types/components/Table/index.d.ts +1 -2
- package/dist/types/components/Table/index.d.ts.map +1 -1
- package/dist/types/components/Tabs/index.d.ts +1 -2
- package/dist/types/components/Tabs/index.d.ts.map +1 -1
- package/dist/types/components/Text/index.d.ts +1 -2
- package/dist/types/components/Text/index.d.ts.map +1 -1
- package/dist/types/components/TextArea/index.d.ts +1 -2
- package/dist/types/components/TextArea/index.d.ts.map +1 -1
- package/dist/types/components/TextField/index.d.ts +1 -2
- package/dist/types/components/TextField/index.d.ts.map +1 -1
- package/dist/types/components/TextFieldBase/index.d.ts +1 -2
- package/dist/types/components/TextFieldBase/index.d.ts.map +1 -1
- package/dist/types/components/TimeField/index.d.ts +1 -2
- package/dist/types/components/TimeField/index.d.ts.map +1 -1
- package/dist/types/components/Tooltip/index.d.ts +1 -2
- package/dist/types/components/Tooltip/index.d.ts.map +1 -1
- package/dist/types/components/Wrap/Wrap.d.ts +1 -0
- package/dist/types/components/Wrap/Wrap.d.ts.map +1 -1
- package/dist/types/components/Wrap/index.d.ts +1 -2
- package/dist/types/components/Wrap/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/js/components/Action/index.mjs +0 -6
- package/dist/js/components/Action/index.mjs.map +0 -1
- package/dist/js/components/ContextMenu/index.mjs +0 -24
- package/dist/js/components/ContextMenu/index.mjs.map +0 -1
- package/dist/js/components/Icon/index.mjs +0 -6
- package/dist/js/components/Icon/index.mjs.map +0 -1
- package/dist/js/components/Wrap/index.mjs +0 -6
- 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":";;;;;;;;;;;;;AAWA,MAAM,mBAAuD,GAAA;AAAA,EAC3D,OAAA,EAAS,OAAQ,CAAA,CAAC,KAAU,KAAA;AAC1B,IAAM,MAAA,MAAA,GAAS,YAAY,GAAI,EAAA;AAC/B,IAAM,MAAA,aAAA,GAAgB,YAAY,qBAAsB,EAAA;AACxD,IAAM,MAAA,oBAAA,GACJ,8BAA+B,CAAA,KAAK,CAAM,KAAA,SAAA;AAC5C,IAAM,MAAA,aAAA,GAAgB,8BAA+B,CAAA,KAAK,CAAM,KAAA,OAAA;AAChE,IAAA,IAAI,aAAe,EAAA;AACjB,MAAA,OAAO,OAAO,2BAA4B,CAAA,KAAA;AAAA;AAE5C,IAAO,OAAA,oBAAA,GAAuB,aAAc,CAAA,OAAA,GAAU,MAAO,CAAA,OAAA;AAAA,GAC9D,CAAA;AAAA,EAED,WAAW,OAAQ,CAAA,CAAC,UAAU,oBAAqB,CAAA,KAAK,MAAM,WAAW,CAAA;AAAA,EAEzE,WAAa,EAAA,OAAA;AAAA,IACX,CAAC,KAAA,KAAU,oBAAqB,CAAA,KAAK,CAAM,KAAA;AAAA,GAC7C;AAAA,EAEA,UAAU,OAAQ,CAAA,CAAC,UAAU,oBAAqB,CAAA,KAAK,MAAM,UAAU,CAAA;AAAA,EAEvE,eAAA,EAAiB,OAAQ,CAAA,CAAC,KAAU,KAAA;AAClC,IAAM,MAAA,KAAA,GAAQ,qBAAqB,KAAK,CAAA;AACxC,IAAM,MAAA,yBAAA,GAA4B,qBAAsB,EAAA,CAAE,SAAU,EAAA;AACpE,IAAA,OAAO,UAAU,aAAiB,IAAA,yBAAA;AAAA,GACnC;AACH,CAAA;AAEO,MAAM,MAAS,GAAA,aAAA,CAAc,QAAU,EAAA,CAAC,KAAU,KAAA;AACvD,EAAA,MAAM,EAAE,QAAU,EAAA,WAAA,EAAa,oBAAsB,EAAA,GAAG,aAAgB,GAAA,KAAA;AACxE,EAAM,MAAA,cAAA,GAAiB,WAAY,CAAA,MAAA,CAAO,WAAW,CAAA;AACrD,EAAA,MAAM,cAAc,oBAAwB,IAAA,cAAA;AAE5C,EAAA,MAAM,YAA6B,GAAA;AAAA,IACjC,MAAQ,EAAA,mBAAA;AAAA,IAER,IAAM,EAAA;AAAA,MACJ,SAAS,OAAQ,CAAA,MAAM,WAAY,CAAA,GAAA,GAAM,OAAO;AAAA,KAClD;AAAA,IAEA,QAAU,EAAA;AAAA,MACR,UAAU,OAAQ,CAAA,MAAM,WAAY,CAAA,GAAA,GAAM,OAAO;AAAA,KACnD;AAAA,IAEA,KAAO,EAAA;AAAA,MACL,IAAA,EAAM,OAAQ,CAAA,CAACA,MAAU,KAAA;AACvB,QAAM,MAAA,EAAE,MAASA,GAAAA,MAAAA;AACjB,QAAM,MAAA,MAAA,GAAS,YAAY,GAAI,EAAA;AAC/B,QAAA,MAAA,CAAO,oBAAoB,IAAS,KAAA,eAAA;AACpC,QAAO,OAAA,IAAA;AAAA,OACR,CAAA;AAAA,MACD,aAAA,EAAe,OAAQ,CAAA,CAACA,MAAU,KAAA;AAChC,QAAM,MAAA,MAAA,GAAS,YAAY,GAAI,EAAA;AAC/B,QAAM,MAAA,WAAA,GAAc,MAAO,CAAA,KAAA,CAAM,QAAS,EAAA;AAC1C,QAAA,OAAO,WAAgB,KAAA,aAAA,IAAiB,WAAgB,KAAA,WAAA,GACpD,QACAA,MAAM,CAAA,aAAA;AAAA,OACX,CAAA;AAAA,MACD,UAAA,EAAY,QAAQ,MAAM;AACxB,QAAM,MAAA,MAAA,GAAS,YAAY,GAAI,EAAA;AAC/B,QAAA,OAAO,OAAO,iBACV,GAAA,MAAA,CAAO,2BACP,GAAA,MAAA,CAAO,qBAAqB,OAAO,CAAA;AAAA,OACxC,CAAA;AAAA,MACD,WAAa,EAAA;AAAA,QACX,MAAQ,EAAA;AAAA;AACV;AACF,GACF;AAEA,EACE,uBAAA,GAAA,CAAC,qBAAsB,EAAA,EAAA,KAAA,EAAO,WAC5B,EAAA,QAAA,kBAAA,GAAA,CAAC,oBAAqB,EAAA,EAAA,KAAA,EAAO,YAAc,EAAA,oBAAA,EAAoB,IAC5D,EAAA,QAAA,EACH,CACF,EAAA,CAAA;AAEJ,CAAC;;;;"}
|
|
@@ -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;;;;"}
|
|
@@ -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
|
|
|
@@ -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;;;;"}
|
|
@@ -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;;;;"}
|
|
@@ -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
|
|
|
@@ -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;;;;"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Accordion/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,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 +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 +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;
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ActionGroup/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,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"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Activity/index.ts"],"names":[],"mappings":"AAAA,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Alert/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AlertBadge/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AlertIcon/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Align/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,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"}
|