@mittwald/flow-react-components 0.1.0-alpha.66 → 0.1.0-alpha.67

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 (102) hide show
  1. package/dist/{Action-DZzRGFBL.js → Action-DEpgmJgz.js} +10 -8
  2. package/dist/Action.js +1 -1
  3. package/dist/Avatar.js +2 -2
  4. package/dist/Breadcrumb.js +3 -3
  5. package/dist/{Button-CdGfSPx-.js → Button-RNHxIFd2.js} +6 -6
  6. package/dist/Button.js +1 -1
  7. package/dist/ButtonGroup.js +2 -2
  8. package/dist/{Checkbox-Bc-Yp2Li.js → Checkbox-DKySO10B.js} +7 -6
  9. package/dist/Checkbox.js +1 -1
  10. package/dist/{CheckboxButton-D5G0rxZz.js → CheckboxButton-CWdX3bM9.js} +3 -3
  11. package/dist/CheckboxButton.js +1 -1
  12. package/dist/CheckboxGroup.js +4 -4
  13. package/dist/Content.js +8 -7
  14. package/dist/ContextMenu-CyJQ17tm.js +36 -0
  15. package/dist/ContextMenu.js +7 -7
  16. package/dist/CopyButton.js +10 -9
  17. package/dist/FieldDescription.js +11 -10
  18. package/dist/FieldError-TYnVmG-o.js +23 -0
  19. package/dist/FieldError.js +1 -1
  20. package/dist/Header.js +1 -1
  21. package/dist/HeaderNavigation.js +1 -1
  22. package/dist/Heading.js +2 -2
  23. package/dist/{Icon-DVRBNZZe.js → Icon-CPAehMux.js} +13 -12
  24. package/dist/Icon.js +1 -1
  25. package/dist/{IconCheck-D9Y94psR.js → IconCheck-C778cVIW.js} +1 -1
  26. package/dist/{IconCheckboxEmpty-BneZ_izo.js → IconCheckboxEmpty-CuRg5vZt.js} +1 -1
  27. package/dist/{IconCheckboxIndeterminate-DZM-0gVy.js → IconCheckboxIndeterminate-Czwxs_TE.js} +1 -1
  28. package/dist/{IconChevronDown-D8WRADYa.js → IconChevronDown-BL8_H9Kf.js} +1 -1
  29. package/dist/{IconChevronRight-D2iaxujY.js → IconChevronRight-BdGTP9WG.js} +1 -1
  30. package/dist/{IconClose-zpsdo5WH.js → IconClose-Cq9t3LQV.js} +1 -1
  31. package/dist/{IconContextMenu-D58YJ4YL.js → IconContextMenu-BDvtrC86.js} +1 -1
  32. package/dist/{IconCopy-Dg12Fbk9.js → IconCopy-C9jfVrgu.js} +1 -1
  33. package/dist/{IconDanger-BKH4QbJ1.js → IconDanger-B7qTdARI.js} +1 -1
  34. package/dist/{IconPlus-WchYGpT1.js → IconPlus-vUgeG2A9.js} +1 -1
  35. package/dist/{IconRadioOn-DNpq9Xk7.js → IconRadioOn-CTDczjLJ.js} +1 -1
  36. package/dist/{IconSucceeded-d5GrQkmO.js → IconSucceeded-C092cisG.js} +1 -1
  37. package/dist/{IconWarning-pPmXp5KC.js → IconWarning-B5oeYHHs.js} +1 -1
  38. package/dist/Icons.js +73 -72
  39. package/dist/IllustratedMessage.js +42 -0
  40. package/dist/Image.js +5 -4
  41. package/dist/Initials.js +7 -6
  42. package/dist/InlineAlert.js +3 -3
  43. package/dist/InlineCode-BV2i5uN0.js +18 -0
  44. package/dist/InlineCode.js +1 -1
  45. package/dist/{Label-BFDBIwAZ.js → Label-B4BxkNHo.js} +4 -3
  46. package/dist/Label.js +1 -1
  47. package/dist/LabeledValue.js +1 -1
  48. package/dist/LayoutCard.js +19 -10
  49. package/dist/{Link-kCrtSVrZ.js → Link-I6WUPEGi.js} +2 -2
  50. package/dist/Link.js +1 -1
  51. package/dist/List.js +21 -20
  52. package/dist/MenuItem-CrRLNYPb.js +38 -0
  53. package/dist/MenuItem.js +7 -0
  54. package/dist/Modal.js +1 -1
  55. package/dist/Navigation.js +1 -1
  56. package/dist/NumberField.js +7 -7
  57. package/dist/ProgressBar.js +1 -1
  58. package/dist/PropsContextProvider-DkNLd3Yj.js +63 -0
  59. package/dist/RadioGroup.js +45 -45
  60. package/dist/Section.js +1 -1
  61. package/dist/Select.js +5 -5
  62. package/dist/StatusBadge.js +9 -8
  63. package/dist/{StatusIcon-gxczp9bZ.js → StatusIcon-BrpddXMN.js} +8 -7
  64. package/dist/StatusIcon.js +1 -1
  65. package/dist/Switch.js +10 -9
  66. package/dist/Tabs.js +23 -22
  67. package/dist/{Text-D7C_T7CE.js → Text-BW9cNWaj.js} +2 -2
  68. package/dist/Text.js +1 -1
  69. package/dist/TextArea.js +8 -7
  70. package/dist/TextField.js +9 -8
  71. package/dist/{TextFieldBase-DuP4Ls0l.js → TextFieldBase-BcCtRAw5.js} +2 -2
  72. package/dist/flowComponent-mJ64-1gs.js +22 -0
  73. package/dist/react-hook-form.js +2 -2
  74. package/dist/styles.css +1 -1
  75. package/dist/types/components/ContextMenu/ContextMenu.d.ts +2 -2
  76. package/dist/types/components/ContextMenu/index.d.ts +1 -1
  77. package/dist/types/components/Icon/components/icons/IconCode.d.ts +5 -0
  78. package/dist/types/components/Icon/components/icons/index.d.ts +1 -0
  79. package/dist/types/components/IllustratedMessage/IllustratedMessage.d.ts +7 -0
  80. package/dist/types/components/IllustratedMessage/index.d.ts +4 -0
  81. package/dist/types/components/IllustratedMessage/stories/Default.stories.d.ts +8 -0
  82. package/dist/types/components/IllustratedMessage/stories/EdgeCases.stories.d.ts +8 -0
  83. package/dist/types/components/MenuItem/MenuItem.d.ts +7 -0
  84. package/dist/types/components/{ContextMenu/components/ContextMenuItem/ContextMenuItemContent.d.ts → MenuItem/MenuItemContent.d.ts} +1 -1
  85. package/dist/types/components/MenuItem/index.d.ts +4 -0
  86. package/dist/types/components/Tabs/Tabs.d.ts +4 -3
  87. package/dist/types/components/Tabs/components/Tab/context.d.ts +1 -1
  88. package/dist/types/components/Tabs/components/TabTitle/TabTitle.d.ts +1 -1
  89. package/dist/types/components/propTypes/index.d.ts +3 -1
  90. package/dist/types/lib/propsContext/PropsContextProvider.d.ts +1 -0
  91. package/dist/types/lib/propsContext/mergePropsContext.d.ts +1 -1
  92. package/dist/types/lib/propsContext/propsContext.d.ts +2 -1
  93. package/dist/types/lib/react/getPropsMerger.d.ts +1 -0
  94. package/dist/{useProps-DoKnPAup.js → useProps-BqLmWTTi.js} +3 -2
  95. package/package.json +11 -3
  96. package/dist/ContextMenuItem-k4nwztKS.js +0 -67
  97. package/dist/FieldError-CBxCl2nS.js +0 -22
  98. package/dist/InlineCode-CI8164C6.js +0 -17
  99. package/dist/PropsContextProvider-BcOGMJkn.js +0 -25
  100. package/dist/flowComponent-CEo3pjEA.js +0 -19
  101. package/dist/types/components/ContextMenu/components/ContextMenuItem/ContextMenuItem.d.ts +0 -7
  102. package/dist/types/components/ContextMenu/components/ContextMenuItem/index.d.ts +0 -4
@@ -1,10 +1,10 @@
1
1
  import { PopoverProps } from '../Popover';
2
2
  import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
3
- import { ContextMenuItemProps } from './components/ContextMenuItem';
3
+ import { MenuItemProps } from 'src/components/MenuItem';
4
4
  import { default as React } from 'react';
5
5
 
6
6
  import * as Aria from "react-aria-components";
7
- export interface ContextMenuProps extends PopoverProps, Pick<Aria.MenuProps<ContextMenuItemProps>, "onAction" | "selectionMode" | "selectedKeys" | "defaultSelectedKeys" | "onSelectionChange">, FlowComponentProps {
7
+ export interface ContextMenuProps extends PopoverProps, Pick<Aria.MenuProps<MenuItemProps>, "onAction" | "selectionMode" | "selectedKeys" | "defaultSelectedKeys" | "onSelectionChange">, FlowComponentProps {
8
8
  }
9
9
  export declare const ContextMenu: React.ForwardRefExoticComponent<ContextMenuProps & React.RefAttributes<never>>;
10
10
  export default ContextMenu;
@@ -1,6 +1,6 @@
1
1
  import { ContextMenu } from './ContextMenu';
2
2
 
3
3
  export { type ContextMenuProps, ContextMenu } from './ContextMenu';
4
- export * from './components/ContextMenuItem';
4
+ export * from '../MenuItem';
5
5
  export { MenuTrigger as ContextMenuTrigger } from 'react-aria-components';
6
6
  export default ContextMenu;
@@ -0,0 +1,5 @@
1
+ import { Icon } from '../..';
2
+ import { ComponentProps, FC } from 'react';
3
+
4
+ export declare const IconCode: FC<Omit<ComponentProps<typeof Icon>, "children">>;
5
+ export default IconCode;
@@ -10,6 +10,7 @@ export { IconChevronLeft } from './IconChevronLeft';
10
10
  export { IconChevronRight } from './IconChevronRight';
11
11
  export { IconChevronUp } from './IconChevronUp';
12
12
  export { IconClose } from './IconClose';
13
+ export { IconCode } from './IconCode';
13
14
  export { IconContextMenu } from './IconContextMenu';
14
15
  export { IconCopy } from './IconCopy';
15
16
  export { IconCronjob } from './IconCronjob';
@@ -0,0 +1,7 @@
1
+ import { ComponentProps, FC, PropsWithChildren } from 'react';
2
+
3
+ export interface IllustratedMessageProps extends PropsWithChildren<ComponentProps<"div">> {
4
+ variant?: "info" | "negative";
5
+ }
6
+ export declare const IllustratedMessage: FC<IllustratedMessageProps>;
7
+ export default IllustratedMessage;
@@ -0,0 +1,4 @@
1
+ import { IllustratedMessage } from './IllustratedMessage';
2
+
3
+ export { type IllustratedMessageProps, IllustratedMessage, } from './IllustratedMessage';
4
+ export default IllustratedMessage;
@@ -0,0 +1,8 @@
1
+ import { default as IllustratedMessage } from '../IllustratedMessage';
2
+ import { Meta, StoryObj } from '@storybook/react';
3
+
4
+ declare const meta: Meta<typeof IllustratedMessage>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof IllustratedMessage>;
7
+ export declare const Default: Story;
8
+ export declare const Negative: Story;
@@ -0,0 +1,8 @@
1
+ import { IllustratedMessage } from '../IllustratedMessage';
2
+ import { Meta, StoryObj } from '@storybook/react';
3
+
4
+ declare const meta: Meta<typeof IllustratedMessage>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof IllustratedMessage>;
7
+ export declare const LongTexts: Story;
8
+ export declare const SmallSpace: Story;
@@ -0,0 +1,7 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+
3
+ import * as Aria from "react-aria-components";
4
+ export interface MenuItemProps extends Omit<Aria.MenuItemProps, "children">, PropsWithChildren {
5
+ }
6
+ export declare const MenuItem: FC<MenuItemProps>;
7
+ export default MenuItem;
@@ -2,5 +2,5 @@ import { FC, PropsWithChildren } from 'react';
2
2
 
3
3
  import type * as Aria from "react-aria-components";
4
4
  type Props = Aria.MenuItemRenderProps & PropsWithChildren;
5
- export declare const ContextMenuItemContent: FC<Props>;
5
+ export declare const MenuItemContent: FC<Props>;
6
6
  export {};
@@ -0,0 +1,4 @@
1
+ import { MenuItem } from './MenuItem';
2
+
3
+ export { MenuItem, type MenuItemProps } from './MenuItem';
4
+ export default MenuItem;
@@ -1,7 +1,8 @@
1
- import { FC, PropsWithChildren } from 'react';
1
+ import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
2
+ import { PropsWithChildren, default as React } from 'react';
2
3
 
3
4
  import * as Aria from "react-aria-components";
4
- export interface TabsProps extends Omit<Aria.TabsProps, "children">, PropsWithChildren {
5
+ export interface TabsProps extends Omit<Aria.TabsProps, "children">, PropsWithChildren, FlowComponentProps {
5
6
  }
6
- export declare const Tabs: FC<TabsProps>;
7
+ export declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<never>>;
7
8
  export default Tabs;
@@ -2,6 +2,6 @@
2
2
  interface TabContext {
3
3
  id?: string;
4
4
  }
5
- export declare const useTabTabContext: () => TabContext;
5
+ export declare const useTabContext: () => TabContext;
6
6
  export declare const TabContextProvider: import('react').Provider<TabContext>;
7
7
  export {};
@@ -1,7 +1,7 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
2
 
3
3
  import * as Aria from "react-aria-components";
4
- export interface TabTitleProps extends Omit<Aria.TabProps, "children" | "id">, PropsWithChildren {
4
+ export interface TabTitleProps extends Omit<Aria.TabProps, "children" | "id" | "isDisabled">, PropsWithChildren {
5
5
  }
6
6
  export declare const TabTitle: FC<TabTitleProps>;
7
7
  export default TabTitle;
@@ -1,3 +1,4 @@
1
+ import { TabsProps } from '../Tabs';
1
2
  import { CheckboxButtonProps } from '../CheckboxButton';
2
3
  import { CheckboxProps } from '../Checkbox';
3
4
  import { CheckboxGroupProps } from '../CheckboxGroup';
@@ -35,8 +36,8 @@ export interface FlowComponentPropsTypes {
35
36
  Button: ButtonProps;
36
37
  ButtonGroup: ButtonGroupProps;
37
38
  Checkbox: CheckboxProps;
38
- CheckboxGroup: CheckboxGroupProps;
39
39
  CheckboxButton: CheckboxButtonProps;
40
+ CheckboxGroup: CheckboxGroupProps;
40
41
  Content: ContentProps;
41
42
  ContextMenu: ContextMenuProps;
42
43
  CopyButton: CopyButtonProps;
@@ -59,6 +60,7 @@ export interface FlowComponentPropsTypes {
59
60
  Select: SelectProps;
60
61
  StatusBadge: StatusBadgeProps;
61
62
  Switch: SwitchProps;
63
+ Tabs: TabsProps;
62
64
  Text: TextProps;
63
65
  TextArea: TextAreaProps;
64
66
  TextField: TextFieldProps;
@@ -4,6 +4,7 @@ import { DependencyList, FC, PropsWithChildren } from 'react';
4
4
  interface Props extends PropsWithChildren {
5
5
  props: PropsContextShape;
6
6
  dependencies?: DependencyList;
7
+ mergeInParentContext?: boolean;
7
8
  }
8
9
  export declare const PropsContextProvider: FC<Props>;
9
10
  export default PropsContextProvider;
@@ -1,4 +1,4 @@
1
1
  import { PropsContext } from './types';
2
2
 
3
- export declare const mergePropsContext: (firstContext: PropsContext, secondContext: PropsContext) => PropsContext;
3
+ export declare const mergePropsContext: (firstContext?: PropsContext, secondContext?: PropsContext) => PropsContext;
4
4
  export default mergePropsContext;
@@ -6,8 +6,8 @@ export declare const propsContext: import('react').Context<Partial<{
6
6
  Button: import("@/lib/propsContext/types").ComponentPropsContext<"Button">;
7
7
  ButtonGroup: import("@/lib/propsContext/types").ComponentPropsContext<"ButtonGroup">;
8
8
  Checkbox: import("@/lib/propsContext/types").ComponentPropsContext<"Checkbox">;
9
- CheckboxGroup: import("@/lib/propsContext/types").ComponentPropsContext<"CheckboxGroup">;
10
9
  CheckboxButton: import("@/lib/propsContext/types").ComponentPropsContext<"CheckboxButton">;
10
+ CheckboxGroup: import("@/lib/propsContext/types").ComponentPropsContext<"CheckboxGroup">;
11
11
  Content: import("@/lib/propsContext/types").ComponentPropsContext<"Content">;
12
12
  ContextMenu: import("@/lib/propsContext/types").ComponentPropsContext<"ContextMenu">;
13
13
  CopyButton: import("@/lib/propsContext/types").ComponentPropsContext<"CopyButton">;
@@ -30,6 +30,7 @@ export declare const propsContext: import('react').Context<Partial<{
30
30
  Select: import("@/lib/propsContext/types").ComponentPropsContext<"Select">;
31
31
  StatusBadge: import("@/lib/propsContext/types").ComponentPropsContext<"StatusBadge">;
32
32
  Switch: import("@/lib/propsContext/types").ComponentPropsContext<"Switch">;
33
+ Tabs: import("@/lib/propsContext/types").ComponentPropsContext<"Tabs">;
33
34
  Text: import("@/lib/propsContext/types").ComponentPropsContext<"Text">;
34
35
  TextArea: import("@/lib/propsContext/types").ComponentPropsContext<"TextArea">;
35
36
  TextField: import("@/lib/propsContext/types").ComponentPropsContext<"TextField">;
@@ -2,6 +2,7 @@ import { mergeProps as ariaMergeProps } from '@react-aria/utils';
2
2
 
3
3
  interface MergePropsOptions {
4
4
  mergeClassNames?: boolean;
5
+ mergeEventHandler?: boolean;
5
6
  }
6
7
  export declare const getPropsMerger: (options?: MergePropsOptions) => typeof ariaMergeProps;
7
8
  export {};
@@ -4,15 +4,15 @@ import { mergeProps as s } from "@react-aria/utils";
4
4
  import { u as p } from "./propsContext-CauylOgH.js";
5
5
  import c, { isValidElement as d } from "react";
6
6
  import { pickBy as a, omit as m } from "remeda";
7
- import { P as C } from "./PropsContextProvider-BcOGMJkn.js";
7
+ import { P as C } from "./PropsContextProvider-DkNLd3Yj.js";
8
8
  const l = {
9
9
  Action: !0,
10
10
  Avatar: !0,
11
11
  Button: !0,
12
12
  ButtonGroup: !0,
13
13
  Checkbox: !0,
14
- CheckboxGroup: !0,
15
14
  CheckboxButton: !0,
15
+ CheckboxGroup: !0,
16
16
  Content: !0,
17
17
  ContextMenu: !0,
18
18
  CopyButton: !0,
@@ -35,6 +35,7 @@ const l = {
35
35
  StatusBadge: !0,
36
36
  Select: !0,
37
37
  Switch: !0,
38
+ Tabs: !0,
38
39
  TestComponent: !0,
39
40
  Text: !0,
40
41
  TextArea: !0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.1.0-alpha.66",
3
+ "version": "0.1.0-alpha.67",
4
4
  "type": "module",
5
5
  "description": "A React implementation of Flow, mittwald’s design system",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -46,6 +46,10 @@
46
46
  "types": "./dist/types/components/Content/index.d.ts",
47
47
  "import": "./dist/Content.js"
48
48
  },
49
+ "./IllustratedMessage": {
50
+ "types": "./dist/types/components/IllustratedMessage/index.d.ts",
51
+ "import": "./dist/IllustratedMessage.js"
52
+ },
49
53
  "./ContextMenu": {
50
54
  "types": "./dist/types/components/ContextMenu/index.d.ts",
51
55
  "import": "./dist/ContextMenu.js"
@@ -126,6 +130,10 @@
126
130
  "types": "./dist/types/components/List/components/ListLoaderAsyncResource.d.ts",
127
131
  "import": "./dist/List/ListLoaderAsyncResource.js"
128
132
  },
133
+ "./MenuItem": {
134
+ "types": "./dist/types/components/MenuItem/index.d.ts",
135
+ "import": "./dist/MenuItem.js"
136
+ },
129
137
  "./Modal": {
130
138
  "types": "./dist/types/components/Modal/index.d.ts",
131
139
  "import": "./dist/Modal.js"
@@ -241,7 +249,7 @@
241
249
  },
242
250
  "devDependencies": {
243
251
  "@faker-js/faker": "^8.4.1",
244
- "@mittwald/flow-design-tokens": "^0.1.0-alpha.65",
252
+ "@mittwald/flow-design-tokens": "^0.1.0-alpha.67",
245
253
  "@mittwald/react-use-promise": "^2.3.13",
246
254
  "@nx/storybook": "^18.2.4",
247
255
  "@storybook/addon-a11y": "^8.0.6",
@@ -316,5 +324,5 @@
316
324
  "optional": true
317
325
  }
318
326
  },
319
- "gitHead": "9bdbe8df30140d2017e418b1147b13163857e6fc"
327
+ "gitHead": "4dde4841ef3a5f19adfc07884db98ce0dbd80924"
320
328
  }
@@ -1,67 +0,0 @@
1
- "use client"
2
- /* */
3
- import e from "react";
4
- import * as i from "react-aria-components";
5
- import { f as x } from "./flowComponent-CEo3pjEA.js";
6
- import { P as f } from "./Popover-MmxZkKu3.js";
7
- import d from "clsx";
8
- import "./propsContext-CauylOgH.js";
9
- import { P as C } from "./PropsContextProvider-BcOGMJkn.js";
10
- import "@react-aria/utils";
11
- import "remeda";
12
- import "@tabler/icons-react";
13
- import "./Icon-DVRBNZZe.js";
14
- import { I, a as M } from "./IconCheckboxEmpty-BneZ_izo.js";
15
- import { I as E, a as h } from "./IconRadioOn-DNpq9Xk7.js";
16
- import { T as a } from "./Text-D7C_T7CE.js";
17
- import { d as y } from "./deepFindOfType-6pG0fH7S.js";
18
- import { W as N } from "./Wrap-DGT1h1o3.js";
19
- const w = "flow--context-menu", P = {
20
- contextMenu: w
21
- }, J = x("ContextMenu", (n) => {
22
- const {
23
- children: t,
24
- onAction: o,
25
- selectionMode: c,
26
- selectedKeys: s,
27
- defaultSelectedKeys: m,
28
- onSelectionChange: r,
29
- ref: p,
30
- ...u
31
- } = n;
32
- return /* @__PURE__ */ e.createElement(f, { ...u }, /* @__PURE__ */ e.createElement(
33
- i.Menu,
34
- {
35
- className: P.contextMenu,
36
- onAction: o,
37
- selectionMode: c,
38
- selectedKeys: s,
39
- defaultSelectedKeys: m,
40
- onSelectionChange: r,
41
- ref: p
42
- },
43
- t
44
- ));
45
- }), T = "flow--context-menu--context-menu-item", g = "flow--context-menu--context-menu-item--icon", k = "flow--context-menu--context-menu-item--text", l = {
46
- contextMenuItem: T,
47
- icon: g,
48
- text: k
49
- }, O = (n, t) => !!y(n, t), R = (n) => {
50
- const { selectionMode: t, isSelected: o, children: c } = n, s = {
51
- Icon: {
52
- className: l.icon
53
- },
54
- Text: {
55
- className: l.text
56
- }
57
- }, m = t === "none" ? null : t === "single" && o ? /* @__PURE__ */ e.createElement(E, null) : t === "single" && !o ? /* @__PURE__ */ e.createElement(h, null) : t === "multiple" && o ? /* @__PURE__ */ e.createElement(I, null) : /* @__PURE__ */ e.createElement(M, null), r = O(c, a);
58
- return /* @__PURE__ */ e.createElement(C, { props: s }, m, /* @__PURE__ */ e.createElement(N, { if: !r }, /* @__PURE__ */ e.createElement(a, null, c)));
59
- }, L = (n) => {
60
- const { children: t, className: o, ...c } = n, s = d(l.contextMenuItem, o);
61
- return /* @__PURE__ */ e.createElement(i.MenuItem, { ...c, className: s }, (m) => /* @__PURE__ */ e.createElement(R, { ...m }, t));
62
- };
63
- export {
64
- J as C,
65
- L as a,
66
- O as d
67
- };
@@ -1,22 +0,0 @@
1
- "use client"
2
- /* */
3
- import r from "react";
4
- import * as a from "react-aria-components";
5
- import i from "clsx";
6
- import { C as c } from "./ClearPropsContext-CeCMjUK9.js";
7
- import "./propsContext-CauylOgH.js";
8
- import "@react-aria/utils";
9
- import "remeda";
10
- import "@tabler/icons-react";
11
- import "./Icon-DVRBNZZe.js";
12
- import { I as p } from "./IconDanger-BKH4QbJ1.js";
13
- import { f } from "./flowComponent-CEo3pjEA.js";
14
- const E = "flow--field-error", d = {
15
- fieldError: E
16
- }, y = f("FieldError", (o) => {
17
- const { children: e, className: t, ref: l, ...m } = o, s = i(d.fieldError, t);
18
- return /* @__PURE__ */ r.createElement(c, null, /* @__PURE__ */ r.createElement(a.FieldError, { ...m, className: s, ref: l }, ({ validationErrors: n }) => /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(p, { size: "s" }), /* @__PURE__ */ r.createElement("span", null, e || n.join(" ")))));
19
- });
20
- export {
21
- y as F
22
- };
@@ -1,17 +0,0 @@
1
- "use client"
2
- /* */
3
- import e from "react";
4
- import l from "clsx";
5
- import { C as i } from "./ClearPropsContext-CeCMjUK9.js";
6
- import "./propsContext-CauylOgH.js";
7
- import "@react-aria/utils";
8
- import "remeda";
9
- const c = "flow--inline-code", m = {
10
- inlineCode: c
11
- }, N = (o) => {
12
- const { children: t, className: n, ...r } = o, s = l(m.inlineCode, n);
13
- return /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement("code", { ...r, className: s }, t));
14
- };
15
- export {
16
- N as I
17
- };
@@ -1,25 +0,0 @@
1
- "use client"
2
- /* */
3
- import a, { useMemo as t, isValidElement as s, cloneElement as P } from "react";
4
- import { p as h } from "./propsContext-CauylOgH.js";
5
- const u = (n) => {
6
- const {
7
- props: p,
8
- dependencies: d = [],
9
- children: e,
10
- ...r
11
- } = n, i = t(() => p, d), o = s(e) ? {
12
- ...r,
13
- ...e.props
14
- } : r, c = [
15
- e,
16
- ...Object.entries(o).flatMap((m) => m)
17
- ], l = t(
18
- () => s(e) ? P(e, o) : e,
19
- c
20
- );
21
- return /* @__PURE__ */ a.createElement(h.Provider, { value: i }, l);
22
- };
23
- export {
24
- u as P
25
- };
@@ -1,19 +0,0 @@
1
- "use client"
2
- /* */
3
- import n, { forwardRef as u } from "react";
4
- import "./propsContext-CauylOgH.js";
5
- import { u as a } from "./useProps-DoKnPAup.js";
6
- import { TunnelEntry as c } from "@mittwald/react-tunnel";
7
- function w(m, f) {
8
- return u((t, i) => {
9
- const { tunnelId: r, hoc: o, ...l } = a(
10
- m,
11
- t
12
- );
13
- let e = /* @__PURE__ */ n.createElement(f, { ...l, ref: i });
14
- return o && (e = o(e, t)), r && (e = /* @__PURE__ */ n.createElement(c, { id: r }, e)), e;
15
- });
16
- }
17
- export {
18
- w as f
19
- };
@@ -1,7 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
-
3
- import * as Aria from "react-aria-components";
4
- export interface ContextMenuItemProps extends Omit<Aria.MenuItemProps, "children">, PropsWithChildren {
5
- }
6
- export declare const ContextMenuItem: FC<ContextMenuItemProps>;
7
- export default ContextMenuItem;
@@ -1,4 +0,0 @@
1
- import { ContextMenuItem } from './ContextMenuItem';
2
-
3
- export { ContextMenuItem, type ContextMenuItemProps } from './ContextMenuItem';
4
- export default ContextMenuItem;