@mittwald/flow-react-components 0.2.0-alpha.568 → 0.2.0-alpha.569

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 (125) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/assets/doc-properties.json +304 -284
  3. package/dist/css/all.css +1 -1
  4. package/dist/js/components/src/components/AccentBox/AccentBox.mjs +22 -21
  5. package/dist/js/components/src/components/AccentBox/AccentBox.mjs.map +1 -1
  6. package/dist/js/components/src/components/ActionGroup/ActionGroup.mjs +37 -31
  7. package/dist/js/components/src/components/ActionGroup/ActionGroup.mjs.map +1 -1
  8. package/dist/js/components/src/components/Align/Align.mjs +22 -16
  9. package/dist/js/components/src/components/Align/Align.mjs.map +1 -1
  10. package/dist/js/components/src/components/Autocomplete/Autocomplete.mjs +0 -1
  11. package/dist/js/components/src/components/Autocomplete/Autocomplete.mjs.map +1 -1
  12. package/dist/js/components/src/components/BrowserOnly/BrowserOnly.mjs +7 -0
  13. package/dist/js/components/src/components/BrowserOnly/BrowserOnly.mjs.map +1 -1
  14. package/dist/js/components/src/components/CartesianChart/CartesianChart.mjs +5 -3
  15. package/dist/js/components/src/components/CartesianChart/CartesianChart.mjs.map +1 -1
  16. package/dist/js/components/src/components/CheckboxGroup/CheckboxGroup.mjs +1 -1
  17. package/dist/js/components/src/components/CheckboxGroup/CheckboxGroup.mjs.map +1 -1
  18. package/dist/js/components/src/components/ColumnLayout/ColumnLayout.mjs +64 -58
  19. package/dist/js/components/src/components/ColumnLayout/ColumnLayout.mjs.map +1 -1
  20. package/dist/js/components/src/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.mjs +2 -1
  21. package/dist/js/components/src/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.mjs.map +1 -1
  22. package/dist/js/components/src/components/Header/Header.mjs +20 -15
  23. package/dist/js/components/src/components/Header/Header.mjs.map +1 -1
  24. package/dist/js/components/src/components/IllustratedMessage/IllustratedMessage.mjs +1 -1
  25. package/dist/js/components/src/components/IllustratedMessage/IllustratedMessage.mjs.map +1 -1
  26. package/dist/js/components/src/components/LayoutCard/LayoutCard.mjs +16 -12
  27. package/dist/js/components/src/components/LayoutCard/LayoutCard.mjs.map +1 -1
  28. package/dist/js/components/src/components/List/components/Header/components/ActiveFilters/ActiveFilters.mjs +4 -2
  29. package/dist/js/components/src/components/List/components/Header/components/ActiveFilters/ActiveFilters.mjs.map +1 -1
  30. package/dist/js/components/src/components/List/components/Header/components/SearchField/SearchField.mjs +6 -0
  31. package/dist/js/components/src/components/List/components/Header/components/SearchField/SearchField.mjs.map +1 -1
  32. package/dist/js/components/src/components/List/hooks/useAriaAnnounceSearchState.mjs +4 -2
  33. package/dist/js/components/src/components/List/hooks/useAriaAnnounceSearchState.mjs.map +1 -1
  34. package/dist/js/components/src/components/Modal/Modal.mjs +70 -76
  35. package/dist/js/components/src/components/Modal/Modal.mjs.map +1 -1
  36. package/dist/js/components/src/components/Modal/components/OffCanvasSuspenseFallback/OffCanvasSuspenseFallback.mjs +4 -2
  37. package/dist/js/components/src/components/Modal/components/OffCanvasSuspenseFallback/OffCanvasSuspenseFallback.mjs.map +1 -1
  38. package/dist/js/components/src/components/Navigation/components/NavigationGroup/NavigationGroup.mjs +1 -4
  39. package/dist/js/components/src/components/Navigation/components/NavigationGroup/NavigationGroup.mjs.map +1 -1
  40. package/dist/js/components/src/components/Overlay/Overlay.mjs +2 -105
  41. package/dist/js/components/src/components/Overlay/Overlay.mjs.map +1 -1
  42. package/dist/js/components/src/components/Overlay/components/OverlaySuspenseFallback.mjs +4 -2
  43. package/dist/js/components/src/components/Overlay/components/OverlaySuspenseFallback.mjs.map +1 -1
  44. package/dist/js/components/src/components/PasswordCreationField/PasswordCreationField.mjs +2 -1
  45. package/dist/js/components/src/components/PasswordCreationField/PasswordCreationField.mjs.map +1 -1
  46. package/dist/js/components/src/components/Popover/Popover.mjs +2 -105
  47. package/dist/js/components/src/components/Popover/Popover.mjs.map +1 -1
  48. package/dist/js/components/src/components/RadioGroup/RadioGroup.mjs +1 -1
  49. package/dist/js/components/src/components/RadioGroup/RadioGroup.mjs.map +1 -1
  50. package/dist/js/components/src/components/Section/Section.mjs +41 -35
  51. package/dist/js/components/src/components/Section/Section.mjs.map +1 -1
  52. package/dist/js/components/src/components/Tooltip/Tooltip.mjs +5 -2
  53. package/dist/js/components/src/components/Tooltip/Tooltip.mjs.map +1 -1
  54. package/dist/js/components/src/lib/componentFactory/flowComponent.mjs +7 -23
  55. package/dist/js/components/src/lib/componentFactory/flowComponent.mjs.map +1 -1
  56. package/dist/js/components/src/lib/hooks/useFieldError.mjs +0 -2
  57. package/dist/js/components/src/lib/hooks/useFieldError.mjs.map +1 -1
  58. package/dist/js/components/src/lib/hooks/useProps.mjs +1 -2
  59. package/dist/js/components/src/lib/hooks/useProps.mjs.map +1 -1
  60. package/dist/js/components/src/lib/propsContext/components/ClearPropsContext.mjs +4 -10
  61. package/dist/js/components/src/lib/propsContext/components/ClearPropsContext.mjs.map +1 -1
  62. package/dist/js/components/src/lib/propsContext/components/ComponentPropsContextProvider.mjs +2 -2
  63. package/dist/js/components/src/lib/propsContext/components/ComponentPropsContextProvider.mjs.map +1 -1
  64. package/dist/js/components/src/lib/propsContext/components/PropsContextProvider.mjs +7 -22
  65. package/dist/js/components/src/lib/propsContext/components/PropsContextProvider.mjs.map +1 -1
  66. package/dist/js/components/src/lib/propsContext/mergePropsContext.mjs +22 -30
  67. package/dist/js/components/src/lib/propsContext/mergePropsContext.mjs.map +1 -1
  68. package/dist/js/components/src/lib/propsContext/nestedPropsContext/lib.mjs +27 -7
  69. package/dist/js/components/src/lib/propsContext/nestedPropsContext/lib.mjs.map +1 -1
  70. package/dist/js/components/src/lib/react/getPropsMerger.mjs +7 -2
  71. package/dist/js/components/src/lib/react/getPropsMerger.mjs.map +1 -1
  72. package/dist/js/flr-universal.mjs +1 -2
  73. package/dist/js/flr-universal.mjs.map +1 -1
  74. package/dist/types/components/AccentBox/AccentBox.d.ts.map +1 -1
  75. package/dist/types/components/AccentBox/stories/Default.stories.d.ts +1 -0
  76. package/dist/types/components/AccentBox/stories/Default.stories.d.ts.map +1 -1
  77. package/dist/types/components/ActionGroup/ActionGroup.d.ts.map +1 -1
  78. package/dist/types/components/Align/Align.d.ts.map +1 -1
  79. package/dist/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  80. package/dist/types/components/ColumnLayout/ColumnLayout.d.ts.map +1 -1
  81. package/dist/types/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.d.ts.map +1 -1
  82. package/dist/types/components/Header/Header.d.ts +2 -2
  83. package/dist/types/components/Header/Header.d.ts.map +1 -1
  84. package/dist/types/components/LayoutCard/LayoutCard.d.ts.map +1 -1
  85. package/dist/types/components/Message/stories/Default.stories.d.ts.map +1 -1
  86. package/dist/types/components/Modal/Modal.d.ts.map +1 -1
  87. package/dist/types/components/Navigation/components/NavigationGroup/NavigationGroup.d.ts.map +1 -1
  88. package/dist/types/components/Overlay/Overlay.d.ts.map +1 -1
  89. package/dist/types/components/PasswordCreationField/PasswordCreationField.d.ts.map +1 -1
  90. package/dist/types/components/Popover/Popover.d.ts.map +1 -1
  91. package/dist/types/components/Section/Section.d.ts.map +1 -1
  92. package/dist/types/lib/componentFactory/flowComponent.d.ts +1 -1
  93. package/dist/types/lib/componentFactory/flowComponent.d.ts.map +1 -1
  94. package/dist/types/lib/hooks/useFieldError.d.ts.map +1 -1
  95. package/dist/types/lib/hooks/useProps.d.ts.map +1 -1
  96. package/dist/types/lib/propsContext/components/ClearPropsContext.d.ts +1 -5
  97. package/dist/types/lib/propsContext/components/ClearPropsContext.d.ts.map +1 -1
  98. package/dist/types/lib/propsContext/components/ComponentPropsContextProvider.d.ts +0 -2
  99. package/dist/types/lib/propsContext/components/ComponentPropsContextProvider.d.ts.map +1 -1
  100. package/dist/types/lib/propsContext/components/PropsContextProvider.d.ts +0 -3
  101. package/dist/types/lib/propsContext/components/PropsContextProvider.d.ts.map +1 -1
  102. package/dist/types/lib/propsContext/mergePropsContext.d.ts +1 -1
  103. package/dist/types/lib/propsContext/mergePropsContext.d.ts.map +1 -1
  104. package/dist/types/lib/propsContext/nestedPropsContext/lib.d.ts +3 -84
  105. package/dist/types/lib/propsContext/nestedPropsContext/lib.d.ts.map +1 -1
  106. package/dist/types/lib/propsContext/types.d.ts +1 -2
  107. package/dist/types/lib/propsContext/types.d.ts.map +1 -1
  108. package/dist/types/lib/react/getPropsMerger.d.ts.map +1 -1
  109. package/package.json +4 -4
  110. package/dist/js/components/src/lib/propsContext/inherit/PropsContextLevelProvider.mjs +0 -20
  111. package/dist/js/components/src/lib/propsContext/inherit/PropsContextLevelProvider.mjs.map +0 -1
  112. package/dist/js/components/src/lib/propsContext/inherit/lib.mjs +0 -39
  113. package/dist/js/components/src/lib/propsContext/inherit/lib.mjs.map +0 -1
  114. package/dist/js/components/src/lib/propsContext/inherit/propsContextLevel.mjs +0 -13
  115. package/dist/js/components/src/lib/propsContext/inherit/propsContextLevel.mjs.map +0 -1
  116. package/dist/js/components/src/lib/propsContext/inherit/types.mjs +0 -6
  117. package/dist/js/components/src/lib/propsContext/inherit/types.mjs.map +0 -1
  118. package/dist/types/lib/propsContext/inherit/PropsContextLevelProvider.d.ts +0 -8
  119. package/dist/types/lib/propsContext/inherit/PropsContextLevelProvider.d.ts.map +0 -1
  120. package/dist/types/lib/propsContext/inherit/lib.d.ts +0 -8
  121. package/dist/types/lib/propsContext/inherit/lib.d.ts.map +0 -1
  122. package/dist/types/lib/propsContext/inherit/propsContextLevel.d.ts +0 -4
  123. package/dist/types/lib/propsContext/inherit/propsContextLevel.d.ts.map +0 -1
  124. package/dist/types/lib/propsContext/inherit/types.d.ts +0 -6
  125. package/dist/types/lib/propsContext/inherit/types.d.ts.map +0 -1
@@ -1,18 +1,17 @@
1
1
  "use client"
2
2
  /* */
3
3
  import { jsx } from 'react/jsx-runtime';
4
- import { memo, useMemo, cloneElement } from 'react';
4
+ import { memo, cloneElement } from 'react';
5
5
  import { TunnelEntry } from '@mittwald/react-tunnel';
6
6
  import { SlotContextProvider } from '../slotContext/SlotContextProvider.mjs';
7
7
  import { useProps } from '../hooks/useProps.mjs';
8
8
  import { useComponentPropsContext } from '../propsContext/propsContext.mjs';
9
- import { increaseNestingLevel } from '../propsContext/nestedPropsContext/lib.mjs';
10
9
  import { ComponentPropsContextProvider } from '../propsContext/components/ComponentPropsContextProvider.mjs';
11
10
  import ComponentPropsContextProviderView from '../../views/ComponentPropsContextProviderView.mjs';
11
+ import { ClearPropsContext } from '../propsContext/components/ClearPropsContext.mjs';
12
12
 
13
13
  function flowComponent(componentName, ImplementationComponentType, options = {}) {
14
14
  const { type = "ui", isRemoteComponent = false } = options;
15
- const propsContextLevelMode = type === "ui" ? "increment" : "keep";
16
15
  const MemoizedImplementationComponentType = memo(ImplementationComponentType);
17
16
  function Component(props) {
18
17
  const { tunnelId, wrapWith, ...propsWithContext } = useProps(
@@ -21,30 +20,15 @@ function flowComponent(componentName, ImplementationComponentType, options = {})
21
20
  );
22
21
  const implementationTypeProps = propsWithContext;
23
22
  const componentProps = useComponentPropsContext(componentName);
24
- const componentPropsToUse = useMemo(
25
- () => increaseNestingLevel(componentProps ?? {}),
26
- [componentProps]
27
- );
28
23
  ImplementationComponentType.displayName = `FlowComponentImpl(${componentName})`;
29
24
  let element = /* @__PURE__ */ jsx(MemoizedImplementationComponentType, { ...implementationTypeProps });
30
25
  if (isRemoteComponent) {
31
- element = /* @__PURE__ */ jsx(
32
- ComponentPropsContextProvider,
33
- {
34
- componentProps: componentPropsToUse,
35
- levelModel: propsContextLevelMode,
36
- children: element
37
- }
38
- );
26
+ element = /* @__PURE__ */ jsx(ComponentPropsContextProvider, { componentProps, children: element });
39
27
  } else {
40
- element = /* @__PURE__ */ jsx(
41
- ComponentPropsContextProviderView,
42
- {
43
- componentProps: componentPropsToUse,
44
- levelModel: propsContextLevelMode,
45
- children: element
46
- }
47
- );
28
+ element = /* @__PURE__ */ jsx(ComponentPropsContextProviderView, { componentProps, children: element });
29
+ }
30
+ if (type === "ui") {
31
+ element = /* @__PURE__ */ jsx(ClearPropsContext, { children: element });
48
32
  }
49
33
  if ("slot" in props && !!props.slot && typeof props.slot === "string") {
50
34
  element = /* @__PURE__ */ jsx(SlotContextProvider, { slot: props.slot, component: componentName, children: element });
@@ -1 +1 @@
1
- {"version":3,"file":"flowComponent.mjs","sources":["../../../../../../src/lib/componentFactory/flowComponent.tsx"],"sourcesContent":["import type {\n FlowComponentName,\n FlowComponentProps as FlowComponentPropsOfName,\n} from \"@/components/propTypes\";\nimport type {\n ComponentProps,\n ComponentType,\n ReactElement,\n ReactNode,\n RefAttributes,\n FunctionComponent,\n} from \"react\";\nimport { cloneElement, memo, useMemo } from \"react\";\nimport type { PropsWithTunnel } from \"@/lib/types/props\";\nimport { TunnelEntry } from \"@mittwald/react-tunnel\";\nimport SlotContextProvider from \"@/lib/slotContext/SlotContextProvider\";\nimport { useProps } from \"@/lib/hooks/useProps\";\nimport { useComponentPropsContext } from \"@/lib/propsContext/propsContext\";\nimport { increaseNestingLevel } from \"@/lib/propsContext/nestedPropsContext/lib\";\nimport { ComponentPropsContextProvider } from \"@/components/ComponentPropsContextProvider\";\nimport type { PropsContextLevelMode } from \"@/lib/propsContext/inherit/types\";\nimport ComponentPropsContextProviderView from \"@/views/ComponentPropsContextProviderView\";\n\ntype RefType<T> = T extends RefAttributes<infer R> ? R : undefined;\n\nexport interface FlowComponentProps<R = HTMLDivElement>\n extends PropsWithTunnel,\n RefAttributes<R> {\n wrapWith?: ReactElement;\n}\n\ntype FlowComponentImplementationProps<C extends FlowComponentName> = Omit<\n FlowComponentPropsOfName<C>,\n keyof FlowComponentProps\n> &\n RefAttributes<RefType<FlowComponentPropsOfName<C>>>;\n\ntype FlowComponentImplementationType<C extends FlowComponentName> =\n ComponentType<FlowComponentImplementationProps<C>>;\n\ntype FlowComponentType<C extends FlowComponentName> = FunctionComponent<\n FlowComponentPropsOfName<C> &\n RefAttributes<RefType<FlowComponentPropsOfName<C>>>\n>;\n\ntype FlowComponentProvisionType = \"provider\" | \"ui\";\n\ninterface Options {\n type?: FlowComponentProvisionType;\n isRemoteComponent?: boolean;\n}\n\nexport function flowComponent<C extends FlowComponentName>(\n componentName: C,\n ImplementationComponentType: FlowComponentImplementationType<C>,\n options: Options = {},\n): FlowComponentType<C> {\n type Props = FlowComponentPropsOfName<C> &\n RefAttributes<RefType<FlowComponentPropsOfName<C>>>;\n\n const { type = \"ui\", isRemoteComponent = false } = options;\n\n const propsContextLevelMode: PropsContextLevelMode =\n type === \"ui\" ? \"increment\" : \"keep\";\n\n const MemoizedImplementationComponentType = memo(ImplementationComponentType);\n\n function Component(props: Props) {\n const { tunnelId, wrapWith, ...propsWithContext } = useProps(\n componentName,\n props as FlowComponentPropsOfName<C>,\n ) as FlowComponentProps<RefType<FlowComponentPropsOfName<C>>>;\n\n const implementationTypeProps = propsWithContext as ComponentProps<\n typeof ImplementationComponentType\n >;\n\n const componentProps = useComponentPropsContext(componentName);\n const componentPropsToUse = useMemo(\n () => increaseNestingLevel(componentProps ?? {}),\n [componentProps],\n );\n\n ImplementationComponentType.displayName = `FlowComponentImpl(${componentName})`;\n\n let element: ReactNode = (\n <MemoizedImplementationComponentType {...implementationTypeProps} />\n );\n\n if (isRemoteComponent) {\n element = (\n <ComponentPropsContextProvider\n componentProps={componentPropsToUse}\n levelModel={propsContextLevelMode}\n >\n {element}\n </ComponentPropsContextProvider>\n );\n } else {\n /**\n * In case of a Flow component that does not have a remote counterpart\n * (like the List component), the ComponentPropsContext must be applied on\n * the host side, so that nesting and inheritance is working correctly.\n */\n element = (\n <ComponentPropsContextProviderView\n componentProps={componentPropsToUse}\n levelModel={propsContextLevelMode}\n >\n {element}\n </ComponentPropsContextProviderView>\n );\n }\n\n if (\"slot\" in props && !!props.slot && typeof props.slot === \"string\") {\n element = (\n <SlotContextProvider slot={props.slot} component={componentName}>\n {element}\n </SlotContextProvider>\n );\n }\n\n if (wrapWith) {\n element = cloneElement(wrapWith, undefined, element);\n }\n\n if (tunnelId) {\n element = <TunnelEntry id={tunnelId}>{element}</TunnelEntry>;\n }\n return element;\n }\n\n Component.displayName = `FlowComponent(${componentName})`;\n return memo(Component);\n}\n"],"names":[],"mappings":";;;;;;;;;;AAoDO,SAAS,aAAA,CACd,aAAA,EACA,2BAAA,EACA,OAAA,GAAmB,EAAC,EACE;AAItB,EAAA,MAAM,EAAE,IAAA,GAAO,IAAA,EAAM,iBAAA,GAAoB,OAAM,GAAI,OAAA;AAEnD,EAAA,MAAM,qBAAA,GACJ,IAAA,KAAS,IAAA,GAAO,WAAA,GAAc,MAAA;AAEhC,EAAA,MAAM,mCAAA,GAAsC,KAAK,2BAA2B,CAAA;AAE5E,EAAA,SAAS,UAAU,KAAA,EAAc;AAC/B,IAAA,MAAM,EAAE,QAAA,EAAU,QAAA,EAAU,GAAG,kBAAiB,GAAI,QAAA;AAAA,MAClD,aAAA;AAAA,MACA;AAAA,KACF;AAEA,IAAA,MAAM,uBAAA,GAA0B,gBAAA;AAIhC,IAAA,MAAM,cAAA,GAAiB,yBAAyB,aAAa,CAAA;AAC7D,IAAA,MAAM,mBAAA,GAAsB,OAAA;AAAA,MAC1B,MAAM,oBAAA,CAAqB,cAAA,IAAkB,EAAE,CAAA;AAAA,MAC/C,CAAC,cAAc;AAAA,KACjB;AAEA,IAAA,2BAAA,CAA4B,WAAA,GAAc,qBAAqB,aAAa,CAAA,CAAA,CAAA;AAE5E,IAAA,IAAI,OAAA,mBACF,GAAA,CAAC,mCAAA,EAAA,EAAqC,GAAG,uBAAA,EAAyB,CAAA;AAGpE,IAAA,IAAI,iBAAA,EAAmB;AACrB,MAAA,OAAA,mBACE,GAAA;AAAA,QAAC,6BAAA;AAAA,QAAA;AAAA,UACC,cAAA,EAAgB,mBAAA;AAAA,UAChB,UAAA,EAAY,qBAAA;AAAA,UAEX,QAAA,EAAA;AAAA;AAAA,OACH;AAAA,IAEJ,CAAA,MAAO;AAML,MAAA,OAAA,mBACE,GAAA;AAAA,QAAC,iCAAA;AAAA,QAAA;AAAA,UACC,cAAA,EAAgB,mBAAA;AAAA,UAChB,UAAA,EAAY,qBAAA;AAAA,UAEX,QAAA,EAAA;AAAA;AAAA,OACH;AAAA,IAEJ;AAEA,IAAA,IAAI,MAAA,IAAU,SAAS,CAAC,CAAC,MAAM,IAAA,IAAQ,OAAO,KAAA,CAAM,IAAA,KAAS,QAAA,EAAU;AACrE,MAAA,OAAA,uBACG,mBAAA,EAAA,EAAoB,IAAA,EAAM,MAAM,IAAA,EAAM,SAAA,EAAW,eAC/C,QAAA,EAAA,OAAA,EACH,CAAA;AAAA,IAEJ;AAEA,IAAA,IAAI,QAAA,EAAU;AACZ,MAAA,OAAA,GAAU,YAAA,CAAa,QAAA,EAAU,MAAA,EAAW,OAAO,CAAA;AAAA,IACrD;AAEA,IAAA,IAAI,QAAA,EAAU;AACZ,MAAA,OAAA,mBAAU,GAAA,CAAC,WAAA,EAAA,EAAY,EAAA,EAAI,QAAA,EAAW,QAAA,EAAA,OAAA,EAAQ,CAAA;AAAA,IAChD;AACA,IAAA,OAAO,OAAA;AAAA,EACT;AAEA,EAAA,SAAA,CAAU,WAAA,GAAc,iBAAiB,aAAa,CAAA,CAAA,CAAA;AACtD,EAAA,OAAO,KAAK,SAAS,CAAA;AACvB;;;;"}
1
+ {"version":3,"file":"flowComponent.mjs","sources":["../../../../../../src/lib/componentFactory/flowComponent.tsx"],"sourcesContent":["import type {\n FlowComponentName,\n FlowComponentProps as FlowComponentPropsOfName,\n} from \"@/components/propTypes\";\nimport type {\n ComponentProps,\n ComponentType,\n ReactElement,\n ReactNode,\n RefAttributes,\n FunctionComponent,\n} from \"react\";\nimport { cloneElement, memo } from \"react\";\nimport type { PropsWithTunnel } from \"@/lib/types/props\";\nimport { TunnelEntry } from \"@mittwald/react-tunnel\";\nimport SlotContextProvider from \"@/lib/slotContext/SlotContextProvider\";\nimport { useProps } from \"@/lib/hooks/useProps\";\nimport { useComponentPropsContext } from \"@/lib/propsContext/propsContext\";\nimport { ComponentPropsContextProvider } from \"@/components/ComponentPropsContextProvider\";\nimport ComponentPropsContextProviderView from \"@/views/ComponentPropsContextProviderView\";\nimport { ClearPropsContext } from \"@/components/ClearPropsContext\";\n\ntype RefType<T> = T extends RefAttributes<infer R> ? R : undefined;\n\nexport interface FlowComponentProps<R = HTMLDivElement>\n extends PropsWithTunnel,\n RefAttributes<R> {\n wrapWith?: ReactElement;\n}\n\ntype FlowComponentImplementationProps<C extends FlowComponentName> = Omit<\n FlowComponentPropsOfName<C>,\n keyof FlowComponentProps\n> &\n RefAttributes<RefType<FlowComponentPropsOfName<C>>>;\n\ntype FlowComponentImplementationType<C extends FlowComponentName> =\n ComponentType<FlowComponentImplementationProps<C>>;\n\ntype FlowComponentType<C extends FlowComponentName> = FunctionComponent<\n FlowComponentPropsOfName<C> &\n RefAttributes<RefType<FlowComponentPropsOfName<C>>>\n>;\n\nexport type FlowComponentProvisionType = \"provider\" | \"ui\" | \"layout\";\n\ninterface Options {\n type?: FlowComponentProvisionType;\n isRemoteComponent?: boolean;\n}\n\nexport function flowComponent<C extends FlowComponentName>(\n componentName: C,\n ImplementationComponentType: FlowComponentImplementationType<C>,\n options: Options = {},\n): FlowComponentType<C> {\n type Props = FlowComponentPropsOfName<C> &\n RefAttributes<RefType<FlowComponentPropsOfName<C>>>;\n\n const { type = \"ui\", isRemoteComponent = false } = options;\n\n const MemoizedImplementationComponentType = memo(ImplementationComponentType);\n\n function Component(props: Props) {\n const { tunnelId, wrapWith, ...propsWithContext } = useProps(\n componentName,\n props as FlowComponentPropsOfName<C>,\n ) as FlowComponentProps<RefType<FlowComponentPropsOfName<C>>>;\n\n const implementationTypeProps = propsWithContext as ComponentProps<\n typeof ImplementationComponentType\n >;\n\n const componentProps = useComponentPropsContext(componentName);\n\n ImplementationComponentType.displayName = `FlowComponentImpl(${componentName})`;\n\n let element: ReactNode = (\n <MemoizedImplementationComponentType {...implementationTypeProps} />\n );\n\n if (isRemoteComponent) {\n element = (\n <ComponentPropsContextProvider componentProps={componentProps}>\n {element}\n </ComponentPropsContextProvider>\n );\n } else {\n /**\n * In case of a Flow component that does not have a remote counterpart\n * (like the List component), the ComponentPropsContext must be applied on\n * the host side, so that nesting and inheritance is working correctly.\n */\n element = (\n <ComponentPropsContextProviderView componentProps={componentProps}>\n {element}\n </ComponentPropsContextProviderView>\n );\n }\n\n if (type === \"ui\") {\n element = <ClearPropsContext>{element}</ClearPropsContext>;\n }\n\n if (\"slot\" in props && !!props.slot && typeof props.slot === \"string\") {\n element = (\n <SlotContextProvider slot={props.slot} component={componentName}>\n {element}\n </SlotContextProvider>\n );\n }\n\n if (wrapWith) {\n element = cloneElement(wrapWith, undefined, element);\n }\n\n if (tunnelId) {\n element = <TunnelEntry id={tunnelId}>{element}</TunnelEntry>;\n }\n return element;\n }\n\n Component.displayName = `FlowComponent(${componentName})`;\n return memo(Component);\n}\n"],"names":[],"mappings":";;;;;;;;;;AAmDO,SAAS,aAAA,CACd,aAAA,EACA,2BAAA,EACA,OAAA,GAAmB,EAAC,EACE;AAItB,EAAA,MAAM,EAAE,IAAA,GAAO,IAAA,EAAM,iBAAA,GAAoB,OAAM,GAAI,OAAA;AAEnD,EAAA,MAAM,mCAAA,GAAsC,KAAK,2BAA2B,CAAA;AAE5E,EAAA,SAAS,UAAU,KAAA,EAAc;AAC/B,IAAA,MAAM,EAAE,QAAA,EAAU,QAAA,EAAU,GAAG,kBAAiB,GAAI,QAAA;AAAA,MAClD,aAAA;AAAA,MACA;AAAA,KACF;AAEA,IAAA,MAAM,uBAAA,GAA0B,gBAAA;AAIhC,IAAA,MAAM,cAAA,GAAiB,yBAAyB,aAAa,CAAA;AAE7D,IAAA,2BAAA,CAA4B,WAAA,GAAc,qBAAqB,aAAa,CAAA,CAAA,CAAA;AAE5E,IAAA,IAAI,OAAA,mBACF,GAAA,CAAC,mCAAA,EAAA,EAAqC,GAAG,uBAAA,EAAyB,CAAA;AAGpE,IAAA,IAAI,iBAAA,EAAmB;AACrB,MAAA,OAAA,mBACE,GAAA,CAAC,6BAAA,EAAA,EAA8B,cAAA,EAC5B,QAAA,EAAA,OAAA,EACH,CAAA;AAAA,IAEJ,CAAA,MAAO;AAML,MAAA,OAAA,mBACE,GAAA,CAAC,iCAAA,EAAA,EAAkC,cAAA,EAChC,QAAA,EAAA,OAAA,EACH,CAAA;AAAA,IAEJ;AAEA,IAAA,IAAI,SAAS,IAAA,EAAM;AACjB,MAAA,OAAA,mBAAU,GAAA,CAAC,qBAAmB,QAAA,EAAA,OAAA,EAAQ,CAAA;AAAA,IACxC;AAEA,IAAA,IAAI,MAAA,IAAU,SAAS,CAAC,CAAC,MAAM,IAAA,IAAQ,OAAO,KAAA,CAAM,IAAA,KAAS,QAAA,EAAU;AACrE,MAAA,OAAA,uBACG,mBAAA,EAAA,EAAoB,IAAA,EAAM,MAAM,IAAA,EAAM,SAAA,EAAW,eAC/C,QAAA,EAAA,OAAA,EACH,CAAA;AAAA,IAEJ;AAEA,IAAA,IAAI,QAAA,EAAU;AACZ,MAAA,OAAA,GAAU,YAAA,CAAa,QAAA,EAAU,MAAA,EAAW,OAAO,CAAA;AAAA,IACrD;AAEA,IAAA,IAAI,QAAA,EAAU;AACZ,MAAA,OAAA,mBAAU,GAAA,CAAC,WAAA,EAAA,EAAY,EAAA,EAAI,QAAA,EAAW,QAAA,EAAA,OAAA,EAAQ,CAAA;AAAA,IAChD;AACA,IAAA,OAAO,OAAA;AAAA,EACT;AAEA,EAAA,SAAA,CAAU,WAAA,GAAc,iBAAiB,aAAa,CAAA,CAAA,CAAA;AACtD,EAAA,OAAO,KAAK,SAAS,CAAA;AACvB;;;;"}
@@ -116,7 +116,6 @@ const useFieldError = (tunnelIdFromProps) => {
116
116
  const tunnelId = currentTunnelId ?? `${id}.fieldError`;
117
117
  const fieldErrorCapturePropsContext = {
118
118
  FieldError: {
119
- ___inherit: "preserve",
120
119
  tunnelId,
121
120
  className: formFieldStyles.fieldError
122
121
  }
@@ -126,7 +125,6 @@ const useFieldError = (tunnelIdFromProps) => {
126
125
  return /* @__PURE__ */ jsx(
127
126
  PropsContextProvider,
128
127
  {
129
- levelMode: "keep",
130
128
  props: fieldErrorCapturePropsContext,
131
129
  dependencies: [tunnelId],
132
130
  children: props.children
@@ -1 +1 @@
1
- {"version":3,"file":"useFieldError.mjs","sources":["../../../../../../src/lib/hooks/useFieldError.tsx"],"sourcesContent":["import React, { type FC, type PropsWithChildren, useId, useMemo } from \"react\";\nimport { type PropsContext, PropsContextProvider } from \"@/lib/propsContext\";\nimport formFieldStyles from \"@/components/FormField/FormField.module.scss\";\nimport { TunnelExit } from \"@mittwald/react-tunnel\";\nimport ClearPropsContext from \"@/lib/propsContext/components/ClearPropsContext\";\nimport { useProps } from \"@/index/default\";\n\nexport const useFieldError = (tunnelIdFromProps?: string) => {\n const id = useId();\n const currentTunnelId = useProps(\"FieldError\", {}).tunnelId;\n const tunnelId = tunnelIdFromProps ?? currentTunnelId ?? `${id}.fieldError`;\n\n const fieldErrorCapturePropsContext: PropsContext = {\n FieldError: {\n ___inherit: \"preserve\",\n tunnelId,\n className: formFieldStyles.fieldError,\n },\n };\n\n const FieldErrorCaptureContext: FC<PropsWithChildren> = useMemo(\n () => (props) => {\n return (\n <PropsContextProvider\n levelMode=\"keep\"\n props={fieldErrorCapturePropsContext}\n dependencies={[tunnelId]}\n >\n {props.children}\n </PropsContextProvider>\n );\n },\n [tunnelId],\n );\n\n const FieldErrorView = () => {\n if (currentTunnelId) {\n return null;\n }\n\n return (\n <TunnelExit id={tunnelId}>\n {(children) => {\n const childrenArray = React.Children.toArray(children);\n return <ClearPropsContext>{childrenArray[0]}</ClearPropsContext>;\n }}\n </TunnelExit>\n );\n };\n\n return {\n FieldErrorCaptureContext,\n FieldErrorView,\n } as const;\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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IACA;AAAA,GACF;AACF;;;;"}
1
+ {"version":3,"file":"useFieldError.mjs","sources":["../../../../../../src/lib/hooks/useFieldError.tsx"],"sourcesContent":["import React, { type FC, type PropsWithChildren, useId, useMemo } from \"react\";\nimport { type PropsContext, PropsContextProvider } from \"@/lib/propsContext\";\nimport formFieldStyles from \"@/components/FormField/FormField.module.scss\";\nimport { TunnelExit } from \"@mittwald/react-tunnel\";\nimport ClearPropsContext from \"@/lib/propsContext/components/ClearPropsContext\";\nimport { useProps } from \"@/index/default\";\n\nexport const useFieldError = (tunnelIdFromProps?: string) => {\n const id = useId();\n const currentTunnelId = useProps(\"FieldError\", {}).tunnelId;\n const tunnelId = tunnelIdFromProps ?? currentTunnelId ?? `${id}.fieldError`;\n\n const fieldErrorCapturePropsContext: PropsContext = {\n FieldError: {\n tunnelId,\n className: formFieldStyles.fieldError,\n },\n };\n\n const FieldErrorCaptureContext: FC<PropsWithChildren> = useMemo(\n () => (props) => {\n return (\n <PropsContextProvider\n props={fieldErrorCapturePropsContext}\n dependencies={[tunnelId]}\n >\n {props.children}\n </PropsContextProvider>\n );\n },\n [tunnelId],\n );\n\n const FieldErrorView = () => {\n if (currentTunnelId) {\n return null;\n }\n\n return (\n <TunnelExit id={tunnelId}>\n {(children) => {\n const childrenArray = React.Children.toArray(children);\n return <ClearPropsContext>{childrenArray[0]}</ClearPropsContext>;\n }}\n </TunnelExit>\n );\n };\n\n return {\n FieldErrorCaptureContext,\n FieldErrorView,\n } as const;\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOO,MAAM,aAAA,GAAgB,CAAC,iBAAA,KAA+B;AAC3D,EAAA,MAAM,KAAK,KAAA,EAAM;AACjB,EAAA,MAAM,eAAA,GAAkB,QAAA,CAAS,YAAA,EAAc,EAAE,CAAA,CAAE,QAAA;AACnD,EAAA,MAAM,QAAA,GAAgC,eAAA,IAAmB,CAAA,EAAG,EAAE,CAAA,WAAA,CAAA;AAE9D,EAAA,MAAM,6BAAA,GAA8C;AAAA,IAClD,UAAA,EAAY;AAAA,MACV,QAAA;AAAA,MACA,WAAW,eAAA,CAAgB;AAAA;AAC7B,GACF;AAEA,EAAA,MAAM,wBAAA,GAAkD,OAAA;AAAA,IACtD,MAAM,CAAC,KAAA,KAAU;AACf,MAAA,uBACE,GAAA;AAAA,QAAC,oBAAA;AAAA,QAAA;AAAA,UACC,KAAA,EAAO,6BAAA;AAAA,UACP,YAAA,EAAc,CAAC,QAAQ,CAAA;AAAA,UAEtB,QAAA,EAAA,KAAA,CAAM;AAAA;AAAA,OACT;AAAA,IAEJ,CAAA;AAAA,IACA,CAAC,QAAQ;AAAA,GACX;AAEA,EAAA,MAAM,iBAAiB,MAAM;AAC3B,IAAA,IAAI,eAAA,EAAiB;AACnB,MAAA,OAAO,IAAA;AAAA,IACT;AAEA,IAAA,uBACE,GAAA,CAAC,UAAA,EAAA,EAAW,EAAA,EAAI,QAAA,EACb,WAAC,QAAA,KAAa;AACb,MAAA,MAAM,aAAA,GAAgB,KAAA,CAAM,QAAA,CAAS,OAAA,CAAQ,QAAQ,CAAA;AACrD,MAAA,uBAAO,GAAA,CAAC,iBAAA,EAAA,EAAmB,QAAA,EAAA,aAAA,CAAc,CAAC,CAAA,EAAE,CAAA;AAAA,IAC9C,CAAA,EACF,CAAA;AAAA,EAEJ,CAAA;AAEA,EAAA,OAAO;AAAA,IACL,wBAAA;AAAA,IACA;AAAA,GACF;AACF;;;;"}
@@ -5,7 +5,6 @@ import { useComponentPropsContext } from '../propsContext/propsContext.mjs';
5
5
  import { omitBy } from 'remeda';
6
6
  import { isDynamicProp } from '../propsContext/dynamicProps/lib.mjs';
7
7
  import { isFlowComponentName } from '../propsContext/isFlowComponentName.mjs';
8
- import { isInheritedPropsContextKey } from '../propsContext/inherit/lib.mjs';
9
8
  import { areChildrenEmpty } from '../react/areChildrenEmpty.mjs';
10
9
  import { isNestingLevelKey } from '../propsContext/nestedPropsContext/lib.mjs';
11
10
  import { getPropsMerger } from '../react/getPropsMerger.mjs';
@@ -28,7 +27,7 @@ const useProps = (component, localProps) => {
28
27
  const withResolvedDynamicProps = componentPropsContext ? resolveDynamicProps(componentPropsContext, localProps) : void 0;
29
28
  const withoutInternalProps = componentPropsContext ? omitBy(
30
29
  componentPropsContext,
31
- (value, key) => isFlowComponentName(key) || isInheritedPropsContextKey(key) || isNestingLevelKey(key) || isDynamicProp(value)
30
+ (value, key) => isFlowComponentName(key) || isNestingLevelKey(key) || isDynamicProp(value)
32
31
  ) : void 0;
33
32
  return merger(
34
33
  withoutInternalProps,
@@ -1 +1 @@
1
- {"version":3,"file":"useProps.mjs","sources":["../../../../../../src/lib/hooks/useProps.ts"],"sourcesContent":["import {\n type FlowComponentName,\n type FlowComponentProps,\n} from \"@/components/propTypes\";\nimport { resolveDynamicProps } from \"@/lib/propsContext/dynamicProps/resolveDynamicProps\";\nimport { useComponentPropsContext } from \"@/lib/propsContext/propsContext\";\nimport { omitBy } from \"remeda\";\nimport isDynamicProp from \"@/lib/propsContext/dynamicProps/lib\";\nimport { isFlowComponentName } from \"@/lib/propsContext/isFlowComponentName\";\nimport { isInheritedPropsContextKey } from \"@/lib/propsContext/inherit/lib\";\nimport { areChildrenEmpty } from \"@/lib/react/areChildrenEmpty\";\nimport { isNestingLevelKey } from \"@/lib/propsContext/nestedPropsContext/lib\";\nimport { getPropsMerger } from \"@/lib/react/getPropsMerger\";\n\nconst withoutChildren = <C extends FlowComponentName>(\n props: FlowComponentProps<C>,\n) => {\n if (\"children\" in props) {\n if (areChildrenEmpty(props.children)) {\n const { children: ignored, ...rest } = props;\n return rest as FlowComponentProps<C>;\n }\n }\n return props;\n};\n\nconst merger = getPropsMerger({\n mergeRefs: true,\n});\n\nexport const useProps = <C extends FlowComponentName>(\n component: C,\n localProps: FlowComponentProps<C>,\n): FlowComponentProps<C> => {\n localProps = withoutChildren(localProps);\n\n const componentPropsContext = useComponentPropsContext(component);\n\n const withResolvedDynamicProps = componentPropsContext\n ? resolveDynamicProps(componentPropsContext, localProps)\n : undefined;\n\n const withoutInternalProps = componentPropsContext\n ? omitBy(\n componentPropsContext,\n (value, key) =>\n isFlowComponentName(key) ||\n isInheritedPropsContextKey(key) ||\n isNestingLevelKey(key) ||\n isDynamicProp(value),\n )\n : undefined;\n\n return merger(\n withoutInternalProps,\n localProps,\n withResolvedDynamicProps,\n ) as FlowComponentProps<C>;\n};\n\nexport default useProps;\n"],"names":[],"mappings":";;;;;;;;;;AAcA,MAAM,eAAA,GAAkB,CACtB,KAAA,KACG;AACH,EAAA,IAAI,cAAc,KAAA,EAAO;AACvB,IAAA,IAAI,gBAAA,CAAiB,KAAA,CAAM,QAAQ,CAAA,EAAG;AACpC,MAAA,MAAM,EAAE,QAAA,EAAU,OAAA,EAAS,GAAG,MAAK,GAAI,KAAA;AACvC,MAAA,OAAO,IAAA;AAAA,IACT;AAAA,EACF;AACA,EAAA,OAAO,KAAA;AACT,CAAA;AAEA,MAAM,SAAS,cAAA,CAAe;AAAA,EAC5B,SAAA,EAAW;AACb,CAAC,CAAA;AAEM,MAAM,QAAA,GAAW,CACtB,SAAA,EACA,UAAA,KAC0B;AAC1B,EAAA,UAAA,GAAa,gBAAgB,UAAU,CAAA;AAEvC,EAAA,MAAM,qBAAA,GAAwB,yBAAyB,SAAS,CAAA;AAEhE,EAAA,MAAM,wBAAA,GAA2B,qBAAA,GAC7B,mBAAA,CAAoB,qBAAA,EAAuB,UAAU,CAAA,GACrD,MAAA;AAEJ,EAAA,MAAM,uBAAuB,qBAAA,GACzB,MAAA;AAAA,IACE,qBAAA;AAAA,IACA,CAAC,KAAA,EAAO,GAAA,KACN,mBAAA,CAAoB,GAAG,CAAA,IACvB,0BAAA,CAA2B,GAAG,CAAA,IAC9B,iBAAA,CAAkB,GAAG,CAAA,IACrB,cAAc,KAAK;AAAA,GACvB,GACA,MAAA;AAEJ,EAAA,OAAO,MAAA;AAAA,IACL,oBAAA;AAAA,IACA,UAAA;AAAA,IACA;AAAA,GACF;AACF;;;;"}
1
+ {"version":3,"file":"useProps.mjs","sources":["../../../../../../src/lib/hooks/useProps.ts"],"sourcesContent":["import {\n type FlowComponentName,\n type FlowComponentProps,\n} from \"@/components/propTypes\";\nimport { resolveDynamicProps } from \"@/lib/propsContext/dynamicProps/resolveDynamicProps\";\nimport { useComponentPropsContext } from \"@/lib/propsContext/propsContext\";\nimport { omitBy } from \"remeda\";\nimport isDynamicProp from \"@/lib/propsContext/dynamicProps/lib\";\nimport { isFlowComponentName } from \"@/lib/propsContext/isFlowComponentName\";\nimport { areChildrenEmpty } from \"@/lib/react/areChildrenEmpty\";\nimport { isNestingLevelKey } from \"@/lib/propsContext/nestedPropsContext/lib\";\nimport { getPropsMerger } from \"@/lib/react/getPropsMerger\";\n\nconst withoutChildren = <C extends FlowComponentName>(\n props: FlowComponentProps<C>,\n) => {\n if (\"children\" in props) {\n if (areChildrenEmpty(props.children)) {\n const { children: ignored, ...rest } = props;\n return rest as FlowComponentProps<C>;\n }\n }\n return props;\n};\n\nconst merger = getPropsMerger({\n mergeRefs: true,\n});\n\nexport const useProps = <C extends FlowComponentName>(\n component: C,\n localProps: FlowComponentProps<C>,\n): FlowComponentProps<C> => {\n localProps = withoutChildren(localProps);\n\n const componentPropsContext = useComponentPropsContext(component);\n\n const withResolvedDynamicProps = componentPropsContext\n ? resolveDynamicProps(componentPropsContext, localProps)\n : undefined;\n\n const withoutInternalProps = componentPropsContext\n ? omitBy(\n componentPropsContext,\n (value, key) =>\n isFlowComponentName(key) ||\n isNestingLevelKey(key) ||\n isDynamicProp(value),\n )\n : undefined;\n\n return merger(\n withoutInternalProps,\n localProps,\n withResolvedDynamicProps,\n ) as FlowComponentProps<C>;\n};\n\nexport default useProps;\n"],"names":[],"mappings":";;;;;;;;;AAaA,MAAM,eAAA,GAAkB,CACtB,KAAA,KACG;AACH,EAAA,IAAI,cAAc,KAAA,EAAO;AACvB,IAAA,IAAI,gBAAA,CAAiB,KAAA,CAAM,QAAQ,CAAA,EAAG;AACpC,MAAA,MAAM,EAAE,QAAA,EAAU,OAAA,EAAS,GAAG,MAAK,GAAI,KAAA;AACvC,MAAA,OAAO,IAAA;AAAA,IACT;AAAA,EACF;AACA,EAAA,OAAO,KAAA;AACT,CAAA;AAEA,MAAM,SAAS,cAAA,CAAe;AAAA,EAC5B,SAAA,EAAW;AACb,CAAC,CAAA;AAEM,MAAM,QAAA,GAAW,CACtB,SAAA,EACA,UAAA,KAC0B;AAC1B,EAAA,UAAA,GAAa,gBAAgB,UAAU,CAAA;AAEvC,EAAA,MAAM,qBAAA,GAAwB,yBAAyB,SAAS,CAAA;AAEhE,EAAA,MAAM,wBAAA,GAA2B,qBAAA,GAC7B,mBAAA,CAAoB,qBAAA,EAAuB,UAAU,CAAA,GACrD,MAAA;AAEJ,EAAA,MAAM,uBAAuB,qBAAA,GACzB,MAAA;AAAA,IACE,qBAAA;AAAA,IACA,CAAC,KAAA,EAAO,GAAA,KACN,mBAAA,CAAoB,GAAG,KACvB,iBAAA,CAAkB,GAAG,CAAA,IACrB,aAAA,CAAc,KAAK;AAAA,GACvB,GACA,MAAA;AAEJ,EAAA,OAAO,MAAA;AAAA,IACL,oBAAA;AAAA,IACA,UAAA;AAAA,IACA;AAAA,GACF;AACF;;;;"}
@@ -1,18 +1,12 @@
1
1
  "use client"
2
2
  /* */
3
3
  import { jsx } from 'react/jsx-runtime';
4
- import { usePropsContext, PropsContextProvider } from '../propsContext.mjs';
5
- import { PropsContextLevelProvider } from '../inherit/PropsContextLevelProvider.mjs';
6
- import { useMemo } from 'react';
4
+ import { PropsContextProvider } from '../propsContext.mjs';
5
+ import 'react';
7
6
 
8
7
  const ClearPropsContext = (props) => {
9
- const { children, keep } = props;
10
- const parentPropsContext = usePropsContext();
11
- const withKeptComponentProps = useMemo(
12
- () => (keep ? parentPropsContext[keep] : void 0) ?? {},
13
- [keep, parentPropsContext]
14
- );
15
- return /* @__PURE__ */ jsx(PropsContextLevelProvider, { mode: "reset", children: /* @__PURE__ */ jsx(PropsContextProvider, { value: withKeptComponentProps, children }) });
8
+ const { children } = props;
9
+ return /* @__PURE__ */ jsx(PropsContextProvider, { value: {}, children });
16
10
  };
17
11
 
18
12
  export { ClearPropsContext, ClearPropsContext as default };
@@ -1 +1 @@
1
- {"version":3,"file":"ClearPropsContext.mjs","sources":["../../../../../../../src/lib/propsContext/components/ClearPropsContext.tsx"],"sourcesContent":["import {\n PropsContextProvider,\n usePropsContext,\n} from \"@/lib/propsContext/propsContext\";\nimport { PropsContextLevelProvider } from \"@/lib/propsContext/inherit/PropsContextLevelProvider\";\nimport { useMemo, type FC, type PropsWithChildren } from \"react\";\nimport type { FlowComponentName } from \"@/components/propTypes\";\nimport type { PropsContext } from \"@/index/internal\";\n\nexport interface ClearPropsContextProps extends PropsWithChildren {\n keep?: FlowComponentName;\n}\n\nexport const ClearPropsContext: FC<ClearPropsContextProps> = (props) => {\n const { children, keep } = props;\n\n const parentPropsContext = usePropsContext();\n\n const withKeptComponentProps: PropsContext = useMemo(\n () => (keep ? parentPropsContext[keep] : undefined) ?? {},\n [keep, parentPropsContext],\n );\n\n return (\n <PropsContextLevelProvider mode=\"reset\">\n <PropsContextProvider value={withKeptComponentProps}>\n {children}\n </PropsContextProvider>\n </PropsContextLevelProvider>\n );\n};\n\nexport default ClearPropsContext;\n"],"names":[],"mappings":";;;;;AAaO,MAAM,iBAAA,GAAgD,CAAC,KAAA,KAAU;AACtE,EAAA,MAAM,EAAE,QAAA,EAAU,IAAA,EAAK,GAAI,KAAA;AAE3B,EAAA,MAAM,qBAAqB,eAAA,EAAgB;AAE3C,EAAA,MAAM,sBAAA,GAAuC,OAAA;AAAA,IAC3C,OAAO,IAAA,GAAO,kBAAA,CAAmB,IAAI,CAAA,GAAI,WAAc,EAAC;AAAA,IACxD,CAAC,MAAM,kBAAkB;AAAA,GAC3B;AAEA,EAAA,uBACE,GAAA,CAAC,6BAA0B,IAAA,EAAK,OAAA,EAC9B,8BAAC,oBAAA,EAAA,EAAqB,KAAA,EAAO,sBAAA,EAC1B,QAAA,EACH,CAAA,EACF,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"ClearPropsContext.mjs","sources":["../../../../../../../src/lib/propsContext/components/ClearPropsContext.tsx"],"sourcesContent":["import { PropsContextProvider } from \"@/lib/propsContext/propsContext\";\nimport { type FC, type PropsWithChildren } from \"react\";\n\nexport const ClearPropsContext: FC<PropsWithChildren> = (props) => {\n const { children } = props;\n return <PropsContextProvider value={{}}>{children}</PropsContextProvider>;\n};\n\nexport default ClearPropsContext;\n"],"names":[],"mappings":";;;;AAGO,MAAM,iBAAA,GAA2C,CAAC,KAAA,KAAU;AACjE,EAAA,MAAM,EAAE,UAAS,GAAI,KAAA;AACrB,EAAA,uBAAO,GAAA,CAAC,oBAAA,EAAA,EAAqB,KAAA,EAAO,IAAK,QAAA,EAAS,CAAA;AACpD;;;;"}
@@ -5,8 +5,8 @@ import { PropsContextProvider } from './PropsContextProvider.mjs';
5
5
  import { memo } from 'react';
6
6
 
7
7
  const ComponentPropsContextProvider = memo((props) => {
8
- const { children, componentProps = {}, levelModel = "increment" } = props;
9
- return /* @__PURE__ */ jsx(PropsContextProvider, { props: componentProps, levelMode: levelModel, children });
8
+ const { children, componentProps = {} } = props;
9
+ return /* @__PURE__ */ jsx(PropsContextProvider, { props: componentProps, children });
10
10
  });
11
11
  ComponentPropsContextProvider.displayName = "ComponentPropsContextProvider";
12
12
 
@@ -1 +1 @@
1
- {"version":3,"file":"ComponentPropsContextProvider.mjs","sources":["../../../../../../../src/lib/propsContext/components/ComponentPropsContextProvider.tsx"],"sourcesContent":["import type { PropsContext } from \"@/lib/propsContext/types\";\nimport { PropsContextProvider } from \"@/lib/propsContext/components/PropsContextProvider\";\nimport { memo, type FC, type PropsWithChildren } from \"react\";\nimport type { PropsContextLevelMode } from \"@/lib/propsContext/inherit/types\";\n\nexport interface ComponentPropsContextProviderProps extends PropsWithChildren {\n componentProps?: PropsContext;\n levelModel?: PropsContextLevelMode;\n}\n\n/**\n * @flr-generate all\n * @flr-ignore-props componentProps\n */\nexport const ComponentPropsContextProvider: FC<ComponentPropsContextProviderProps> =\n memo((props) => {\n const { children, componentProps = {}, levelModel = \"increment\" } = props;\n return (\n <PropsContextProvider props={componentProps} levelMode={levelModel}>\n {children}\n </PropsContextProvider>\n );\n });\n\nComponentPropsContextProvider.displayName = \"ComponentPropsContextProvider\";\n"],"names":[],"mappings":";;;;AAcO,MAAM,6BAAA,GACX,IAAA,CAAK,CAAC,KAAA,KAAU;AACd,EAAA,MAAM,EAAE,QAAA,EAAU,cAAA,GAAiB,EAAC,EAAG,UAAA,GAAa,aAAY,GAAI,KAAA;AACpE,EAAA,2BACG,oBAAA,EAAA,EAAqB,KAAA,EAAO,cAAA,EAAgB,SAAA,EAAW,YACrD,QAAA,EACH,CAAA;AAEJ,CAAC;AAEH,6BAAA,CAA8B,WAAA,GAAc,+BAAA;;;;"}
1
+ {"version":3,"file":"ComponentPropsContextProvider.mjs","sources":["../../../../../../../src/lib/propsContext/components/ComponentPropsContextProvider.tsx"],"sourcesContent":["import type { PropsContext } from \"@/lib/propsContext/types\";\nimport { PropsContextProvider } from \"@/lib/propsContext/components/PropsContextProvider\";\nimport { memo, type FC, type PropsWithChildren } from \"react\";\n\nexport interface ComponentPropsContextProviderProps extends PropsWithChildren {\n componentProps?: PropsContext;\n}\n\n/**\n * @flr-generate all\n * @flr-ignore-props componentProps\n */\nexport const ComponentPropsContextProvider: FC<ComponentPropsContextProviderProps> =\n memo((props) => {\n const { children, componentProps = {} } = props;\n return (\n <PropsContextProvider props={componentProps}>\n {children}\n </PropsContextProvider>\n );\n });\n\nComponentPropsContextProvider.displayName = \"ComponentPropsContextProvider\";\n"],"names":[],"mappings":";;;;AAYO,MAAM,6BAAA,GACX,IAAA,CAAK,CAAC,KAAA,KAAU;AACd,EAAA,MAAM,EAAE,QAAA,EAAU,cAAA,GAAiB,IAAG,GAAI,KAAA;AAC1C,EAAA,uBACE,GAAA,CAAC,oBAAA,EAAA,EAAqB,KAAA,EAAO,cAAA,EAC1B,QAAA,EACH,CAAA;AAEJ,CAAC;AAEH,6BAAA,CAA8B,WAAA,GAAc,+BAAA;;;;"}
@@ -1,36 +1,21 @@
1
1
  "use client"
2
2
  /* */
3
3
  import { jsx } from 'react/jsx-runtime';
4
- import { usePropsContextLevel } from '../inherit/propsContextLevel.mjs';
5
- import { PropsContextLevelProvider } from '../inherit/PropsContextLevelProvider.mjs';
6
4
  import { mergePropsContext } from '../mergePropsContext.mjs';
5
+ import { addNestingLevel } from '../nestedPropsContext/lib.mjs';
7
6
  import { propsContext, usePropsContext } from '../propsContext.mjs';
8
7
  import { memo, useMemo } from 'react';
9
- import { filterPreservedInheritEntries } from '../inherit/lib.mjs';
10
8
 
11
9
  const Provider = memo(propsContext.Provider);
12
10
  Provider.displayName = "PropsContextProviderInner";
13
11
  const PropsContextProvider = memo((props) => {
14
- const {
15
- props: providedProps,
16
- dependencies = [],
17
- levelMode = "reset",
18
- children,
19
- clear = false
20
- } = props;
12
+ const { props: providedProps, dependencies = [], children } = props;
21
13
  const parentPropsContext = usePropsContext();
22
- const readPropsContextLevel = usePropsContextLevel(
23
- levelMode === "keep" ? "decrement" : levelMode
24
- );
25
- const propsWithParentPropsContext = useMemo(
26
- () => mergePropsContext(
27
- clear ? filterPreservedInheritEntries(parentPropsContext) : parentPropsContext,
28
- providedProps,
29
- readPropsContextLevel
30
- ),
31
- [parentPropsContext, clear, readPropsContextLevel, ...dependencies]
32
- );
33
- return /* @__PURE__ */ jsx(PropsContextLevelProvider, { mode: levelMode, children: /* @__PURE__ */ jsx(Provider, { value: propsWithParentPropsContext, children }) });
14
+ const propsWithParentPropsContext = useMemo(() => {
15
+ const propsWithNestingLevel = addNestingLevel(providedProps);
16
+ return mergePropsContext(parentPropsContext, propsWithNestingLevel);
17
+ }, [parentPropsContext, ...dependencies]);
18
+ return /* @__PURE__ */ jsx(Provider, { value: propsWithParentPropsContext, children });
34
19
  });
35
20
  PropsContextProvider.displayName = "PropsContextProvider";
36
21
 
@@ -1 +1 @@
1
- {"version":3,"file":"PropsContextProvider.mjs","sources":["../../../../../../../src/lib/propsContext/components/PropsContextProvider.tsx"],"sourcesContent":["import { usePropsContextLevel } from \"@/lib/propsContext/inherit/propsContextLevel\";\nimport { PropsContextLevelProvider } from \"@/lib/propsContext/inherit/PropsContextLevelProvider\";\nimport type { PropsContextLevelMode } from \"@/lib/propsContext/inherit/types\";\nimport mergePropsContext from \"@/lib/propsContext/mergePropsContext\";\nimport { propsContext, usePropsContext } from \"@/lib/propsContext/propsContext\";\nimport type { PropsContext as PropsContextShape } from \"@/lib/propsContext/types\";\nimport type { DependencyList, FC, PropsWithChildren } from \"react\";\nimport { memo, useMemo } from \"react\";\nimport { filterPreservedInheritEntries } from \"@/lib/propsContext/inherit/lib\";\n\ninterface Props extends PropsWithChildren {\n props: PropsContextShape;\n dependencies?: DependencyList;\n clear?: boolean;\n levelMode?: PropsContextLevelMode;\n}\n\nconst Provider = memo(propsContext.Provider);\nProvider.displayName = \"PropsContextProviderInner\";\n\nexport const PropsContextProvider: FC<Props> = memo((props) => {\n const {\n props: providedProps,\n dependencies = [],\n levelMode = \"reset\",\n children,\n clear = false,\n } = props;\n\n const parentPropsContext = usePropsContext();\n\n const readPropsContextLevel = usePropsContextLevel(\n levelMode === \"keep\" ? \"decrement\" : levelMode,\n );\n\n const propsWithParentPropsContext = useMemo(\n () =>\n mergePropsContext(\n clear\n ? filterPreservedInheritEntries(parentPropsContext)\n : parentPropsContext,\n providedProps,\n readPropsContextLevel,\n ),\n [parentPropsContext, clear, readPropsContextLevel, ...dependencies],\n );\n\n return (\n <PropsContextLevelProvider mode={levelMode}>\n <Provider value={propsWithParentPropsContext}>{children}</Provider>\n </PropsContextLevelProvider>\n );\n});\n\nPropsContextProvider.displayName = \"PropsContextProvider\";\n\nexport default PropsContextProvider;\n"],"names":[],"mappings":";;;;;;;;AAiBA,MAAM,QAAA,GAAW,IAAA,CAAK,YAAA,CAAa,QAAQ,CAAA;AAC3C,QAAA,CAAS,WAAA,GAAc,2BAAA;AAEhB,MAAM,oBAAA,GAAkC,IAAA,CAAK,CAAC,KAAA,KAAU;AAC7D,EAAA,MAAM;AAAA,IACJ,KAAA,EAAO,aAAA;AAAA,IACP,eAAe,EAAC;AAAA,IAChB,SAAA,GAAY,OAAA;AAAA,IACZ,QAAA;AAAA,IACA,KAAA,GAAQ;AAAA,GACV,GAAI,KAAA;AAEJ,EAAA,MAAM,qBAAqB,eAAA,EAAgB;AAE3C,EAAA,MAAM,qBAAA,GAAwB,oBAAA;AAAA,IAC5B,SAAA,KAAc,SAAS,WAAA,GAAc;AAAA,GACvC;AAEA,EAAA,MAAM,2BAAA,GAA8B,OAAA;AAAA,IAClC,MACE,iBAAA;AAAA,MACE,KAAA,GACI,6BAAA,CAA8B,kBAAkB,CAAA,GAChD,kBAAA;AAAA,MACJ,aAAA;AAAA,MACA;AAAA,KACF;AAAA,IACF,CAAC,kBAAA,EAAoB,KAAA,EAAO,qBAAA,EAAuB,GAAG,YAAY;AAAA,GACpE;AAEA,EAAA,uBACE,GAAA,CAAC,6BAA0B,IAAA,EAAM,SAAA,EAC/B,8BAAC,QAAA,EAAA,EAAS,KAAA,EAAO,2BAAA,EAA8B,QAAA,EAAS,CAAA,EAC1D,CAAA;AAEJ,CAAC;AAED,oBAAA,CAAqB,WAAA,GAAc,sBAAA;;;;"}
1
+ {"version":3,"file":"PropsContextProvider.mjs","sources":["../../../../../../../src/lib/propsContext/components/PropsContextProvider.tsx"],"sourcesContent":["import mergePropsContext from \"@/lib/propsContext/mergePropsContext\";\nimport { addNestingLevel } from \"@/lib/propsContext/nestedPropsContext/lib\";\nimport { propsContext, usePropsContext } from \"@/lib/propsContext/propsContext\";\nimport type { PropsContext as PropsContextShape } from \"@/lib/propsContext/types\";\nimport type { DependencyList, FC, PropsWithChildren } from \"react\";\nimport { memo, useMemo } from \"react\";\n\ninterface Props extends PropsWithChildren {\n props: PropsContextShape;\n dependencies?: DependencyList;\n}\n\nconst Provider = memo(propsContext.Provider);\nProvider.displayName = \"PropsContextProviderInner\";\n\nexport const PropsContextProvider: FC<Props> = memo((props) => {\n const { props: providedProps, dependencies = [], children } = props;\n\n const parentPropsContext = usePropsContext();\n\n const propsWithParentPropsContext = useMemo(() => {\n const propsWithNestingLevel = addNestingLevel(providedProps);\n return mergePropsContext(parentPropsContext, propsWithNestingLevel);\n }, [parentPropsContext, ...dependencies]);\n\n return <Provider value={propsWithParentPropsContext}>{children}</Provider>;\n});\n\nPropsContextProvider.displayName = \"PropsContextProvider\";\n\nexport default PropsContextProvider;\n"],"names":[],"mappings":";;;;;;AAYA,MAAM,QAAA,GAAW,IAAA,CAAK,YAAA,CAAa,QAAQ,CAAA;AAC3C,QAAA,CAAS,WAAA,GAAc,2BAAA;AAEhB,MAAM,oBAAA,GAAkC,IAAA,CAAK,CAAC,KAAA,KAAU;AAC7D,EAAA,MAAM,EAAE,KAAA,EAAO,aAAA,EAAe,eAAe,EAAC,EAAG,UAAS,GAAI,KAAA;AAE9D,EAAA,MAAM,qBAAqB,eAAA,EAAgB;AAE3C,EAAA,MAAM,2BAAA,GAA8B,QAAQ,MAAM;AAChD,IAAA,MAAM,qBAAA,GAAwB,gBAAgB,aAAa,CAAA;AAC3D,IAAA,OAAO,iBAAA,CAAkB,oBAAoB,qBAAqB,CAAA;AAAA,EACpE,CAAA,EAAG,CAAC,kBAAA,EAAoB,GAAG,YAAY,CAAC,CAAA;AAExC,EAAA,uBAAO,GAAA,CAAC,QAAA,EAAA,EAAS,KAAA,EAAO,2BAAA,EAA8B,QAAA,EAAS,CAAA;AACjE,CAAC;AAED,oBAAA,CAAqB,WAAA,GAAc,sBAAA;;;;"}
@@ -1,44 +1,36 @@
1
1
  "use client"
2
2
  /* */
3
+ import 'react';
3
4
  import { isFlowComponentName } from './isFlowComponentName.mjs';
4
- import { getMaxRecursionLevel } from './inherit/lib.mjs';
5
- import { getNestingLevel } from './nestedPropsContext/lib.mjs';
6
- import { nestingLevelKey } from './nestedPropsContext/types.mjs';
5
+ import 'react/jsx-runtime';
6
+ import '@mittwald/react-tunnel';
7
+ import '../slotContext/SlotContextProvider.mjs';
8
+ import './propsContext.mjs';
9
+ import 'remeda';
7
10
  import { getPropsMerger } from '../react/getPropsMerger.mjs';
11
+ import './components/ComponentPropsContextProvider.mjs';
12
+ import '../../views/ComponentPropsContextProviderView.mjs';
13
+ import './components/PropsContextProvider.mjs';
14
+ import '../viewComponentContext/viewComponentContext.mjs';
8
15
 
9
16
  const merger = getPropsMerger({
10
17
  mergeClassNames: false,
11
18
  mergeEventHandler: false
12
19
  });
13
- const mergePropsContext = (parentContext = {}, context = {}, currentLevel = 0) => {
20
+ const mergePropsContext = (firstContext = {}, secondContext = {}) => {
14
21
  const mergedComponentNames = Object.keys({
15
- ...parentContext,
16
- ...context
22
+ ...firstContext,
23
+ ...secondContext
17
24
  }).filter(isFlowComponentName);
18
- const parentContextNestingLevel = getNestingLevel(parentContext);
19
- const contextNestingLevel = getNestingLevel(context);
20
- const mergedComponentEntries = mergedComponentNames.map((componentName) => {
21
- const componentContextOfParent = parentContext[componentName];
22
- const componentContext = context[componentName];
23
- if (!componentContextOfParent && !componentContext) {
24
- return;
25
- }
26
- const parentMaxRecursionLevel = getMaxRecursionLevel(
27
- componentContextOfParent
28
- );
29
- if (currentLevel > parentMaxRecursionLevel) {
30
- if (!componentContext) {
31
- return;
32
- }
33
- return [componentName, componentContext];
34
- }
35
- const merged = parentContextNestingLevel > contextNestingLevel ? merger(componentContext, componentContextOfParent) : merger(componentContextOfParent, componentContext);
36
- return [componentName, merged];
37
- }).filter((e) => e !== void 0);
38
- return Object.fromEntries([
39
- ...mergedComponentEntries,
40
- [nestingLevelKey, Math.max(parentContextNestingLevel, contextNestingLevel)]
41
- ]);
25
+ return Object.fromEntries(
26
+ mergedComponentNames.map((componentName) => [
27
+ componentName,
28
+ merger(
29
+ firstContext[componentName],
30
+ secondContext[componentName]
31
+ )
32
+ ])
33
+ );
42
34
  };
43
35
 
44
36
  export { mergePropsContext as default, mergePropsContext };
@@ -1 +1 @@
1
- {"version":3,"file":"mergePropsContext.mjs","sources":["../../../../../../src/lib/propsContext/mergePropsContext.ts"],"sourcesContent":["import { isFlowComponentName } from \"@/lib/propsContext/isFlowComponentName\";\nimport { getMaxRecursionLevel } from \"@/lib/propsContext/inherit/lib\";\nimport { getNestingLevel } from \"@/lib/propsContext/nestedPropsContext/lib\";\nimport { nestingLevelKey } from \"@/lib/propsContext/nestedPropsContext/types\";\nimport {\n type PropsContext,\n type WorkaroundType,\n} from \"@/lib/propsContext/types\";\nimport { getPropsMerger } from \"@/lib/react/getPropsMerger\";\n\nconst merger = getPropsMerger({\n mergeClassNames: false,\n mergeEventHandler: false,\n});\n\nexport const mergePropsContext = (\n parentContext: PropsContext = {},\n context: PropsContext = {},\n currentLevel = 0,\n): PropsContext => {\n const mergedComponentNames = Object.keys({\n ...parentContext,\n ...context,\n }).filter(isFlowComponentName);\n\n const parentContextNestingLevel = getNestingLevel(parentContext);\n const contextNestingLevel = getNestingLevel(context);\n\n const mergedComponentEntries = mergedComponentNames\n .map((componentName) => {\n const componentContextOfParent = parentContext[componentName];\n const componentContext = context[componentName];\n\n if (!componentContextOfParent && !componentContext) {\n return;\n }\n\n const parentMaxRecursionLevel = getMaxRecursionLevel(\n componentContextOfParent,\n );\n\n if (currentLevel > parentMaxRecursionLevel) {\n if (!componentContext) {\n return;\n }\n return [componentName, componentContext];\n }\n\n const merged =\n parentContextNestingLevel > contextNestingLevel\n ? merger<WorkaroundType>(componentContext, componentContextOfParent)\n : merger<WorkaroundType>(componentContextOfParent, componentContext);\n\n return [componentName, merged];\n })\n .filter((e) => e !== undefined);\n\n return Object.fromEntries([\n ...mergedComponentEntries,\n [nestingLevelKey, Math.max(parentContextNestingLevel, contextNestingLevel)],\n ]) as PropsContext;\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AM,MAAS,CAAA;AAEhC,EAAA,OAAO,OAAO,WAAA,CAAY;AAAA,IACxB,GAAG,sBAAA;AAAA,IACH,CAAC,eAAA,EAAiB,IAAA,CAAK,GAAA,CAAI,yBAAA,EAA2B,mBAAmB,CAAC;AAAA,GAC3E,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"mergePropsContext.mjs","sources":["../../../../../../src/lib/propsContext/mergePropsContext.ts"],"sourcesContent":["import { isFlowComponentName } from \"@/index/internal\";\nimport type { PropsContext, WorkaroundType } from \"@/lib/propsContext/types\";\nimport { getPropsMerger } from \"@/lib/react/getPropsMerger\";\n\nconst merger = getPropsMerger({\n mergeClassNames: false,\n mergeEventHandler: false,\n});\n\nexport const mergePropsContext = (\n firstContext: PropsContext = {},\n secondContext: PropsContext = {},\n): PropsContext => {\n const mergedComponentNames = Object.keys({\n ...firstContext,\n ...secondContext,\n }).filter(isFlowComponentName);\n\n return Object.fromEntries(\n mergedComponentNames.map((componentName) => [\n componentName,\n merger<WorkaroundType>(\n firstContext[componentName],\n secondContext[componentName],\n ),\n ]),\n );\n};\n\nexport default mergePropsContext;\n"],"names":[],"mappings":";;;;;;;;;;;;;AAIA,MAAM,SAAS,cAAA,CAAe;AAAA,EAC5B,eAAA,EAAiB,KAAA;AAAA,EACjB,iBAAA,EAAmB;AACrB,CAAC,CAAA;AAEM,MAAM,oBAAoB,CAC/B,YAAA,GAA6B,EAAC,EAC9B,aAAA,GAA8B,EAAC,KACd;AACjB,EAAA,MAAM,oBAAA,GAAuB,OAAO,IAAA,CAAK;AAAA,IACvC,GAAG,YAAA;AAAA,IACH,GAAG;AAAA,GACJ,CAAA,CAAE,MAAA,CAAO,mBAAmB,CAAA;AAE7B,EAAA,OAAO,MAAA,CAAO,WAAA;AAAA,IACZ,oBAAA,CAAqB,GAAA,CAAI,CAAC,aAAA,KAAkB;AAAA,MAC1C,aAAA;AAAA,MACA,MAAA;AAAA,QACE,aAAa,aAAa,CAAA;AAAA,QAC1B,cAAc,aAAa;AAAA;AAC7B,KACD;AAAA,GACH;AACF;;;;"}
@@ -1,9 +1,22 @@
1
1
  "use client"
2
2
  /* */
3
3
  import { nestingLevelKey } from './types.mjs';
4
+ import 'react';
5
+ import { isFlowComponentName } from '../isFlowComponentName.mjs';
6
+ import 'react/jsx-runtime';
7
+ import '@mittwald/react-tunnel';
8
+ import '../../slotContext/SlotContextProvider.mjs';
9
+ import '../propsContext.mjs';
10
+ import 'remeda';
11
+ import '@react-aria/utils';
12
+ import 'dot-prop';
13
+ import '../components/ComponentPropsContextProvider.mjs';
14
+ import '../../../views/ComponentPropsContextProviderView.mjs';
15
+ import '../components/PropsContextProvider.mjs';
16
+ import '../../viewComponentContext/viewComponentContext.mjs';
4
17
 
5
18
  function isNestingProps(propsContext) {
6
- return nestingLevelKey in propsContext && typeof propsContext[nestingLevelKey] === "number";
19
+ return !!propsContext && typeof propsContext === "object" && nestingLevelKey in propsContext && typeof propsContext[nestingLevelKey] === "number";
7
20
  }
8
21
  function isNestingLevelKey(key) {
9
22
  return key === nestingLevelKey;
@@ -11,13 +24,20 @@ function isNestingLevelKey(key) {
11
24
  const getNestingLevel = (props) => {
12
25
  return isNestingProps(props) ? props[nestingLevelKey] ?? 0 : 0;
13
26
  };
14
- const increaseNestingLevel = (propsContext) => {
15
- const currentNestingLevel = getNestingLevel(propsContext);
16
- return {
17
- ...propsContext,
18
- [nestingLevelKey]: currentNestingLevel + 1
27
+ const addNestingLevel = (propsContext, currentLevel = 0) => {
28
+ const withNestingLevel = {
29
+ ...propsContext
19
30
  };
31
+ for (const [key, value] of Object.entries(propsContext)) {
32
+ if (isFlowComponentName(key) && !isNestingProps(value)) {
33
+ withNestingLevel[key] = {
34
+ ...addNestingLevel(value, currentLevel + 1),
35
+ [nestingLevelKey]: currentLevel
36
+ };
37
+ }
38
+ }
39
+ return withNestingLevel;
20
40
  };
21
41
 
22
- export { getNestingLevel, increaseNestingLevel, isNestingLevelKey, isNestingProps };
42
+ export { addNestingLevel, getNestingLevel, isNestingLevelKey, isNestingProps };
23
43
  //# sourceMappingURL=lib.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"lib.mjs","sources":["../../../../../../../src/lib/propsContext/nestedPropsContext/lib.ts"],"sourcesContent":["import type { PropsContext } from \"@/lib/propsContext/types\";\nimport {\n nestingLevelKey,\n type NestingLevelProps,\n} from \"@/lib/propsContext/nestedPropsContext/types\";\n\nexport function isNestingProps(\n propsContext: PropsContext,\n): propsContext is NestingLevelProps {\n return (\n nestingLevelKey in propsContext &&\n typeof propsContext[nestingLevelKey] === \"number\"\n );\n}\n\nexport function isNestingLevelKey(key: string) {\n return key === nestingLevelKey;\n}\n\nexport const getNestingLevel = (props: PropsContext) => {\n return isNestingProps(props) ? (props[nestingLevelKey] ?? 0) : 0;\n};\n\nexport const increaseNestingLevel = (propsContext: PropsContext) => {\n const currentNestingLevel = getNestingLevel(propsContext);\n return {\n ...propsContext,\n [nestingLevelKey]: currentNestingLevel + 1,\n };\n};\n"],"names":[],"mappings":";;AAMO,SAAS,eACd,YAAA,EACmC;AACnC,EAAA,OACE,eAAA,IAAmB,YAAA,IACnB,OAAO,YAAA,CAAa,eAAe,CAAA,KAAM,QAAA;AAE7C;AAEO,SAAS,kBAAkB,GAAA,EAAa;AAC7C,EAAA,OAAO,GAAA,KAAQ,eAAA;AACjB;AAEO,MAAM,eAAA,GAAkB,CAAC,KAAA,KAAwB;AACtD,EAAA,OAAO,eAAe,KAAK,CAAA,GAAK,KAAA,CAAM,eAAe,KAAK,CAAA,GAAK,CAAA;AACjE;AAEO,MAAM,oBAAA,GAAuB,CAAC,YAAA,KAA+B;AAClE,EAAA,MAAM,mBAAA,GAAsB,gBAAgB,YAAY,CAAA;AACxD,EAAA,OAAO;AAAA,IACL,GAAG,YAAA;AAAA,IACH,CAAC,eAAe,GAAG,mBAAA,GAAsB;AAAA,GAC3C;AACF;;;;"}
1
+ {"version":3,"file":"lib.mjs","sources":["../../../../../../../src/lib/propsContext/nestedPropsContext/lib.ts"],"sourcesContent":["import type { PropsContext } from \"@/lib/propsContext/types\";\nimport {\n nestingLevelKey,\n type NestingLevelProps,\n} from \"@/lib/propsContext/nestedPropsContext/types\";\nimport { isFlowComponentName } from \"@/index/internal\";\n\nexport function isNestingProps(\n propsContext: unknown,\n): propsContext is NestingLevelProps {\n return (\n !!propsContext &&\n typeof propsContext === \"object\" &&\n nestingLevelKey in propsContext &&\n typeof propsContext[nestingLevelKey] === \"number\"\n );\n}\n\nexport function isNestingLevelKey(key: string) {\n return key === nestingLevelKey;\n}\n\nexport const getNestingLevel = (props: unknown) => {\n return isNestingProps(props) ? (props[nestingLevelKey] ?? 0) : 0;\n};\n\nexport const addNestingLevel = (\n propsContext: PropsContext,\n currentLevel = 0,\n) => {\n const withNestingLevel: PropsContext = {\n ...propsContext,\n };\n\n for (const [key, value] of Object.entries(propsContext)) {\n if (isFlowComponentName(key) && !isNestingProps(value)) {\n withNestingLevel[key] = {\n ...addNestingLevel(value, currentLevel + 1),\n [nestingLevelKey]: currentLevel,\n };\n }\n }\n\n return withNestingLevel;\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAOO,SAAS,eACd,YAAA,EACmC;AACnC,EAAA,OACE,CAAC,CAAC,YAAA,IACF,OAAO,YAAA,KAAiB,QAAA,IACxB,eAAA,IAAmB,YAAA,IACnB,OAAO,YAAA,CAAa,eAAe,CAAA,KAAM,QAAA;AAE7C;AAEO,SAAS,kBAAkB,GAAA,EAAa;AAC7C,EAAA,OAAO,GAAA,KAAQ,eAAA;AACjB;AAEO,MAAM,eAAA,GAAkB,CAAC,KAAA,KAAmB;AACjD,EAAA,OAAO,eAAe,KAAK,CAAA,GAAK,KAAA,CAAM,eAAe,KAAK,CAAA,GAAK,CAAA;AACjE;AAEO,MAAM,eAAA,GAAkB,CAC7B,YAAA,EACA,YAAA,GAAe,CAAA,KACZ;AACH,EAAA,MAAM,gBAAA,GAAiC;AAAA,IACrC,GAAG;AAAA,GACL;AAEA,EAAA,KAAA,MAAW,CAAC,GAAA,EAAK,KAAK,KAAK,MAAA,CAAO,OAAA,CAAQ,YAAY,CAAA,EAAG;AACvD,IAAA,IAAI,oBAAoB,GAAG,CAAA,IAAK,CAAC,cAAA,CAAe,KAAK,CAAA,EAAG;AACtD,MAAA,gBAAA,CAAiB,GAAG,CAAA,GAAI;AAAA,QACtB,GAAG,eAAA,CAAgB,KAAA,EAAO,YAAA,GAAe,CAAC,CAAA;AAAA,QAC1C,CAAC,eAAe,GAAG;AAAA,OACrB;AAAA,IACF;AAAA,EACF;AAEA,EAAA,OAAO,gBAAA;AACT;;;;"}
@@ -1,8 +1,9 @@
1
1
  "use client"
2
2
  /* */
3
3
  import { mergeProps, mergeRefs } from '@react-aria/utils';
4
- import { isObjectType } from 'remeda';
4
+ import { sortBy, isObjectType } from 'remeda';
5
5
  import { setProperty } from 'dot-prop';
6
+ import { getNestingLevel } from '../propsContext/nestedPropsContext/lib.mjs';
6
7
 
7
8
  const getPropsMerger = (options = {}) => (...propsList) => {
8
9
  const {
@@ -10,7 +11,11 @@ const getPropsMerger = (options = {}) => (...propsList) => {
10
11
  mergeEventHandler = true,
11
12
  mergeRefs: mergeRefs$1 = true
12
13
  } = options;
13
- const mergedProps = mergeProps(...propsList);
14
+ const sortedByLevel = sortBy(
15
+ propsList,
16
+ getNestingLevel
17
+ );
18
+ const mergedProps = mergeProps(...sortedByLevel);
14
19
  if (isObjectType(mergedProps)) {
15
20
  if (!mergeClassNames) {
16
21
  for (const props of propsList) {
@@ -1 +1 @@
1
- {"version":3,"file":"getPropsMerger.mjs","sources":["../../../../../../src/lib/react/getPropsMerger.ts"],"sourcesContent":["import { mergeRefs as mergeRefsFn } from \"@react-aria/utils\";\nimport { mergeProps as ariaMergeProps } from \"@react-aria/utils\";\nimport { isObjectType } from \"remeda\";\nimport { setProperty } from \"dot-prop\";\nimport type { Ref } from \"react\";\n\ninterface MergePropsOptions {\n mergeClassNames?: boolean;\n mergeEventHandler?: boolean;\n mergeRefs?: boolean;\n}\n\nexport const getPropsMerger =\n (options: MergePropsOptions = {}): typeof ariaMergeProps =>\n (...propsList) => {\n const {\n mergeClassNames = true,\n mergeEventHandler = true,\n mergeRefs = true,\n } = options;\n const mergedProps = ariaMergeProps(...propsList);\n\n if (isObjectType(mergedProps)) {\n if (!mergeClassNames) {\n // \"Unmerge\" className\n for (const props of propsList) {\n if (\n isObjectType(props) &&\n \"className\" in mergedProps &&\n \"className\" in props\n ) {\n mergedProps.className = props.className;\n }\n }\n }\n\n if (!mergeEventHandler) {\n // \"Unmerge\" eventHandler\n for (const props of propsList) {\n if (isObjectType(props)) {\n for (const [propName, propValue] of Object.entries(props)) {\n const isEventHandlerProp = /^on[A-Z]/.test(propName);\n if (isEventHandlerProp) {\n setProperty(mergedProps, propName, propValue);\n }\n }\n }\n }\n }\n\n if (mergeRefs) {\n const refProps = Object.keys(mergedProps).filter(\n (p) => p === \"ref\" || p.endsWith(\"Ref\"),\n );\n\n for (const refProp of refProps) {\n const collectedRefObjects = propsList\n .map((p) => (isObjectType(p) && refProp in p ? p[refProp] : null))\n .filter((r): r is Ref<unknown> => r !== null);\n\n setProperty(\n mergedProps,\n refProp,\n mergeRefsFn(...collectedRefObjects),\n );\n }\n }\n }\n\n return mergedProps;\n };\n"],"names":["mergeRefs","ariaMergeProps","mergeRefsFn"],"mappings":";;;;AAYO,MAAM,iBACX,CAAC,OAAA,GAA6B,EAAC,KAC/B,IAAI,SAAA,KAAc;AAChB,EAAA,MAAM;AAAA,IACJ,eAAA,GAAkB,IAAA;AAAA,IAClB,iBAAA,GAAoB,IAAA;AAAA,eACpBA,WAAA,GAAY;AAAA,GACd,GAAI,OAAA;AACJ,EAAA,MAAM,WAAA,GAAcC,UAAA,CAAe,GAAG,SAAS,CAAA;AAE/C,EAAA,IAAI,YAAA,CAAa,WAAW,CAAA,EAAG;AAC7B,IAAA,IAAI,CAAC,eAAA,EAAiB;AAEpB,MAAA,KAAA,MAAW,SAAS,SAAA,EAAW;AAC7B,QAAA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.mjs","sources":["../../../../../../src/lib/react/getPropsMerger.ts"],"sourcesContent":["import { mergeRefs as mergeRefsFn } from \"@react-aria/utils\";\nimport { mergeProps as ariaMergeProps } from \"@react-aria/utils\";\nimport { isObjectType, sortBy } from \"remeda\";\nimport { setProperty } from \"dot-prop\";\nimport type { Ref } from \"react\";\nimport { getNestingLevel } from \"@/lib/propsContext/nestedPropsContext/lib\";\n\ninterface MergePropsOptions {\n mergeClassNames?: boolean;\n mergeEventHandler?: boolean;\n mergeRefs?: boolean;\n}\n\nexport const getPropsMerger =\n (options: MergePropsOptions = {}): typeof ariaMergeProps =>\n (...propsList) => {\n const {\n mergeClassNames = true,\n mergeEventHandler = true,\n mergeRefs = true,\n } = options;\n\n const sortedByLevel = sortBy(\n propsList,\n getNestingLevel,\n ) as typeof propsList;\n\n const mergedProps = ariaMergeProps(...sortedByLevel);\n\n if (isObjectType(mergedProps)) {\n if (!mergeClassNames) {\n // \"Unmerge\" className\n for (const props of propsList) {\n if (\n isObjectType(props) &&\n \"className\" in mergedProps &&\n \"className\" in props\n ) {\n mergedProps.className = props.className;\n }\n }\n }\n\n if (!mergeEventHandler) {\n // \"Unmerge\" eventHandler\n for (const props of propsList) {\n if (isObjectType(props)) {\n for (const [propName, propValue] of Object.entries(props)) {\n const isEventHandlerProp = /^on[A-Z]/.test(propName);\n if (isEventHandlerProp) {\n setProperty(mergedProps, propName, propValue);\n }\n }\n }\n }\n }\n\n if (mergeRefs) {\n const refProps = Object.keys(mergedProps).filter(\n (p) => p === \"ref\" || p.endsWith(\"Ref\"),\n );\n\n for (const refProp of refProps) {\n const collectedRefObjects = propsList\n .map((p) => (isObjectType(p) && refProp in p ? p[refProp] : null))\n .filter((r): r is Ref<unknown> => r !== null);\n\n setProperty(\n mergedProps,\n refProp,\n mergeRefsFn(...collectedRefObjects),\n );\n }\n }\n }\n\n return mergedProps;\n };\n"],"names":["mergeRefs","ariaMergeProps","mergeRefsFn"],"mappings":";;;;;AAaO,MAAM,iBACX,C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,KAAK;AAAA,OACxC;AAEA,MAAA,KAAA,MAAW,WAAW,QAAA,EAAU;AAC9B,QAAA,MAAM,sBAAsB,SAAA,CACzB,GAAA,CAAI,CAAC,CAAA,KAAO,YAAA,CAAa,CAAC,CAAA,IAAK,OAAA,IAAW,IAAI,CAAA,CAAE,OAAO,IAAI,IAAK,CAAA,CAChE,OAAO,CAAC,CAAA,KAAyB,MAAM,IAAI,CAAA;AAE9C,QAAA,WAAA;AAAA,UACE,WAAA;AAAA,UACA,OAAA;AAAA,UACAE,SAAA,CAAY,GAAG,mBAAmB;AAAA,SACpC;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,EAAA,OAAO,WAAA;AACT;;;;"}
@@ -144,7 +144,6 @@ import './components/src/components/Text/Text.mjs';
144
144
  import './components/src/components/Checkbox/Checkbox.mjs';
145
145
  import './components/src/components/CheckboxButton/CheckboxButton.mjs';
146
146
  import './components/src/components/CheckboxGroup/CheckboxGroup.mjs';
147
- import './components/src/lib/propsContext/inherit/PropsContextLevelProvider.mjs';
148
147
  import 'react-syntax-highlighter';
149
148
  import './components/src/components/CopyButton/CopyButton.mjs';
150
149
  import './components/src/components/ColumnLayout/ColumnLayout.mjs';
@@ -201,11 +200,11 @@ export { OverlayController } from './components/src/lib/controller/overlay/Overl
201
200
  export { useOverlayController } from './components/src/lib/controller/overlay/useOverlayController.mjs';
202
201
  import './components/src/lib/controller/overlay/context.mjs';
203
202
  import './components/src/views/OverlayContentView.mjs';
203
+ import './components/src/views/LoadingSpinnerView.mjs';
204
204
  export { useOnChange } from './components/src/lib/hooks/useOnChange.mjs';
205
205
  export { useIsMounted } from './components/src/lib/hooks/useIsMounted.mjs';
206
206
  export { useProps } from './components/src/lib/hooks/useProps.mjs';
207
207
  import './components/src/lib/remote/eventHandlerContext.mjs';
208
- import './components/src/views/LoadingSpinnerView.mjs';
209
208
  import './components/src/components/OverlayTrigger/components/MenuTrigger/MenuTrigger.mjs';
210
209
  import './components/src/components/PasswordCreationField/PasswordCreationField.mjs';
211
210
  export { PopoverTrigger } from './components/src/components/Popover/components/PopoverTrigger/PopoverTrigger.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"flr-universal.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"flr-universal.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"AccentBox.d.ts","sourceRoot":"","sources":["../../../../src/components/AccentBox/AccentBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAC;AAG9C,MAAM,WAAW,cACf,SAAQ,iBAAiB,EACvB,oBAAoB,CAAC,KAAK,GAAG,SAAS,GAAG,SAAS,CAAC,EACnD,kBAAkB,EAClB,kBAAkB;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;CACnD;AAED,wBAAwB;AACxB,eAAO,MAAM,SAAS,mGA6BpB,CAAC;AAEH,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"AccentBox.d.ts","sourceRoot":"","sources":["../../../../src/components/AccentBox/AccentBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAC;AAG9C,MAAM,WAAW,cACf,SAAQ,iBAAiB,EACvB,oBAAoB,CAAC,KAAK,GAAG,SAAS,GAAG,SAAS,CAAC,EACnD,kBAAkB,EAClB,kBAAkB;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;CACnD;AAED,wBAAwB;AACxB,eAAO,MAAM,SAAS,mGA8BrB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -8,4 +8,5 @@ export declare const Gradient: Story;
8
8
  export declare const WithIcon: Story;
9
9
  export declare const Green: Story;
10
10
  export declare const InLayoutCard: Story;
11
+ export declare const WithVariousContent: Story;
11
12
  //# sourceMappingURL=Default.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Default.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/AccentBox/stories/Default.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKvD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAOnD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAahC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,QAAQ,EAAE,KAiBtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAYnB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAc1B,CAAC"}
1
+ {"version":3,"file":"Default.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/AccentBox/stories/Default.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAenD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAahC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,QAAQ,EAAE,KAiBtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAYnB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAc1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KA8BhC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ActionGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/ActionGroup/ActionGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAK/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAK5D,MAAM,WAAW,gBACf,SAAQ,iBAAiB,EACvB,kBAAkB,CAAC,cAAc,CAAC,EAClC,kBAAkB;IACpB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;CACrB;AAED,wBAAwB;AACxB,eAAO,MAAM,WAAW,qGA4CtB,CAAC;AAEH,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"ActionGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/ActionGroup/ActionGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAK/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAK5D,MAAM,WAAW,gBACf,SAAQ,iBAAiB,EACvB,kBAAkB,CAAC,cAAc,CAAC,EAClC,kBAAkB;IACpB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;CACrB;AAED,wBAAwB;AACxB,eAAO,MAAM,WAAW,qGAkDvB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Align.d.ts","sourceRoot":"","sources":["../../../../src/components/Align/Align.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAK/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG/E,MAAM,WAAW,UACf,SAAQ,iBAAiB,EACvB,kBAAkB,EAClB,kBAAkB;CAAG;AAEzB,wBAAwB;AACxB,eAAO,MAAM,KAAK,+FAuBhB,CAAC;AAEH,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Align.d.ts","sourceRoot":"","sources":["../../../../src/components/Align/Align.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAK/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG/E,MAAM,WAAW,UACf,SAAQ,iBAAiB,EACvB,kBAAkB,EAClB,kBAAkB;CAAG;AAEzB,wBAAwB;AACxB,eAAO,MAAM,KAAK,+FA6BjB,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAC;AAkB9C,MAAM,WAAW,iBACf,SAAQ,iBAAiB,EACvB,kBAAkB,EAClB,kBAAkB,CAAC,gBAAgB,CAAC,EACpC,IAAI,CACF,IAAI,CAAC,iBAAiB,EACtB,UAAU,GAAG,eAAe,GAAG,YAAY,GAAG,mBAAmB,GAAG,KAAK,CAC1E;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,wBAAwB;AACxB,eAAO,MAAM,YAAY,wGA+GvB,CAAC;AAEH,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5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CAAC,EAAE,OAAO,CAAC;IACd,+EAA+E;IAC/E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,kFAAkF;IAClF,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAwB;AACxB,eAAO,MAAM,YAAY,uIA4ExB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContextMenuSection.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAO7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,GACrD,kBAAkB,GAClB,IAAI,CACF,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,EACpC,qBAAqB,GAAG,cAAc,CACvC,GAAG;IACF,aAAa,CAAC,EAAE,wBAAwB,CAAC;CAC1C,CAAC;AAEJ,wBAAwB;AACxB,eAAO,MAAM,kBAAkB;;;oBAJX,wBAAwB;kDAsC3C,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"ContextMenuSection.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAO7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,GACrD,kBAAkB,GAClB,IAAI,CACF,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,EACpC,qBAAqB,GAAG,cAAc,CACvC,GAAG;IACF,aAAa,CAAC,EAAE,wBAAwB,CAAC;CAC1C,CAAC;AAEJ,wBAAwB;AACxB,eAAO,MAAM,kBAAkB;;;oBAJX,wBAAwB;kDAuC3C,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,9 +1,9 @@
1
- import { PropsWithChildren, default as React } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import { PropsWithElementType } from '../../lib/types/props';
3
3
  import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
4
4
  export interface HeaderProps extends PropsWithChildren, PropsWithElementType<"div" | "header" | "span">, FlowComponentProps<HTMLDivElement | HTMLHeadElement | HTMLSpanElement> {
5
5
  }
6
6
  /** @flr-generate all */
7
- export declare const Header: React.FunctionComponent<HeaderProps & React.RefAttributes<HTMLDivElement | HTMLSpanElement | HTMLHeadElement>>;
7
+ export declare const Header: import('react').FunctionComponent<HeaderProps & import('react').RefAttributes<HTMLDivElement | HTMLSpanElement | HTMLHeadElement>>;
8
8
  export default Header;
9
9
  //# sourceMappingURL=Header.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/Header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAI/E,MAAM,WAAW,WACf,SAAQ,iBAAiB,EACvB,oBAAoB,CAAC,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC,EAC/C,kBAAkB,CAAC,cAAc,GAAG,eAAe,GAAG,eAAe,CAAC;CAGzE;AAED,wBAAwB;AACxB,eAAO,MAAM,MAAM,gHAyBjB,CAAC;AAEH,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/Header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAI/E,MAAM,WAAW,WACf,SAAQ,iBAAiB,EACvB,oBAAoB,CAAC,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC,EAC/C,kBAAkB,CAAC,cAAc,GAAG,eAAe,GAAG,eAAe,CAAC;CAGzE;AAED,wBAAwB;AACxB,eAAO,MAAM,MAAM,oIA+BlB,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutCard.d.ts","sourceRoot":"","sources":["../../../../src/components/LayoutCard/LayoutCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAK/E,MAAM,WAAW,eACf,SAAQ,iBAAiB,EACvB,oBAAoB,CAAC,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC,EAC1D,kBAAkB;CAAG;AAEzB,wBAAwB;AACxB,eAAO,MAAM,UAAU,oGAqBrB,CAAC;AAEH,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"LayoutCard.d.ts","sourceRoot":"","sources":["../../../../src/components/LayoutCard/LayoutCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAK/E,MAAM,WAAW,eACf,SAAQ,iBAAiB,EACvB,oBAAoB,CAAC,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC,EAC1D,kBAAkB;CAAG;AAEzB,wBAAwB;AACxB,eAAO,MAAM,UAAU,oGAyBtB,CAAC;AAEF,eAAe,UAAU,CAAC"}