@mittwald/flow-react-components 0.1.0-alpha.155 → 0.1.0-alpha.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Accordion-S70SYWwS.js → Accordion-COefjSDe.js} +3 -3
- package/dist/Accordion.js +1 -1
- package/dist/ActionGroup.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Breadcrumb.js +2 -2
- package/dist/{Button-Bs4J6es6.js → Button-IKdIGp7F.js} +5 -5
- package/dist/Button.js +1 -1
- package/dist/{Checkbox-zg7icNVe.js → Checkbox-BvQmrLX8.js} +4 -4
- package/dist/Checkbox.js +1 -1
- package/dist/{CheckboxButton-CbLlDhsH.js → CheckboxButton-DGo6XcEz.js} +2 -2
- package/dist/CheckboxButton.js +1 -1
- package/dist/CheckboxGroup.js +3 -3
- package/dist/{Content-arM8nm8H.js → Content-D0XPj3df.js} +1 -1
- package/dist/Content.js +1 -1
- package/dist/ContextMenu.js +3 -3
- package/dist/ContextMenuTrigger-C060kgmE.js +89 -0
- package/dist/ContextualHelp.js +4 -4
- package/dist/CopyButton.js +4 -4
- package/dist/CounterBadge.js +9 -9
- package/dist/{FieldDescription-jVeMFUA3.js → FieldDescription-DEwshe3o.js} +2 -2
- package/dist/FieldDescription.js +1 -1
- package/dist/{FieldError-eiEmcuuK.js → FieldError-Dab589IV.js} +3 -3
- package/dist/FieldError.js +1 -1
- package/dist/{Header-DAaa854y.js → Header-D_2PLC-c.js} +1 -1
- package/dist/Header.js +1 -1
- package/dist/{Heading-ob3LPLN8.js → Heading-Bgo7T_0B.js} +1 -1
- package/dist/Heading.js +1 -1
- package/dist/{Icon-CvhSELPq.js → Icon-BcUUAuaS.js} +1 -1
- package/dist/Icon.js +1 -1
- package/dist/{IconCheck-Bx3sPenK.js → IconCheck-DCcrnlQY.js} +1 -1
- package/dist/{IconCheckboxEmpty-CzAVypP3.js → IconCheckboxEmpty-DIDENgdN.js} +1 -1
- package/dist/{IconCheckboxIndeterminate-CKiaFL3c.js → IconCheckboxIndeterminate-BG6Hlmel.js} +1 -1
- package/dist/{IconChevronDown-BjpRbARt.js → IconChevronDown-BLMCfrbC.js} +1 -1
- package/dist/{IconChevronRight-BKNi_Ug_.js → IconChevronRight-Bvq54XQN.js} +1 -1
- package/dist/{IconChevronUp-D1VuNDfJ.js → IconChevronUp-C_hv0Y2Y.js} +1 -1
- package/dist/{IconClose-DVwhXp3R.js → IconClose-CdUWYo5g.js} +1 -1
- package/dist/{IconContextMenu-B7agrmqo.js → IconContextMenu-UwZtP1Vm.js} +1 -1
- package/dist/{IconCopy-D2sPjH5b.js → IconCopy-CivNYUwi.js} +1 -1
- package/dist/{IconDanger-C-H0zYrp.js → IconDanger-HspqG_TV.js} +1 -1
- package/dist/{IconInfo-DDhh409U.js → IconInfo-DMFotbkY.js} +1 -1
- package/dist/{IconPending-DCgEsvHk.js → IconPending-Cx03rtHO.js} +1 -1
- package/dist/{IconPlus-Uxpaa4X_.js → IconPlus-DFd6fTT9.js} +1 -1
- package/dist/{IconRadioOn-8P7k8SVa.js → IconRadioOn-D56UzZk_.js} +1 -1
- package/dist/{IconSearch-DAPXXri4.js → IconSearch-CII3Rynb.js} +1 -1
- package/dist/{IconSucceeded-YONbnUQb.js → IconSucceeded-Bij5JZkw.js} +1 -1
- package/dist/{IconWarning-zl3wRgfI.js → IconWarning-AOwtgvqO.js} +1 -1
- package/dist/Icons.js +18 -18
- package/dist/Image.js +1 -1
- package/dist/Initials.js +1 -1
- package/dist/InlineAlert.js +2 -2
- package/dist/{Label-25wKJcpL.js → Label-OQTaTaNO.js} +1 -1
- package/dist/Label.js +1 -1
- package/dist/LayoutCard.js +1 -1
- package/dist/{Link-Bal042NI.js → Link-DLgnm7xr.js} +1 -1
- package/dist/Link.js +1 -1
- package/dist/List.js +11 -11
- package/dist/{LoadingSpinner-bd5Is2yg.js → LoadingSpinner-CmmNwPqS.js} +2 -2
- package/dist/LoadingSpinner.js +1 -1
- package/dist/{MenuItem-CCEquV9i.js → MenuItem-BZ7qjsc2.js} +5 -5
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +1 -1
- package/dist/Navigation.js +2 -2
- package/dist/Notification.js +5 -5
- package/dist/NumberField.js +7 -7
- package/dist/OffCanvas.js +5 -5
- package/dist/{Popover-Me79N9-3.js → Popover-B6ltwGLO.js} +1 -1
- package/dist/Popover.js +1 -1
- package/dist/RadioGroup.js +5 -5
- package/dist/Section.js +40 -19
- package/dist/Select.js +5 -5
- package/dist/Slider.js +4 -4
- package/dist/StatusBadge.js +3 -3
- package/dist/{StatusIcon-YOrSQbPf.js → StatusIcon-CBgx8H6P.js} +4 -4
- package/dist/StatusIcon.js +1 -1
- package/dist/Switch.js +5 -5
- package/dist/Tabs.js +7 -7
- package/dist/{Text-BgxTAtk1.js → Text-DyGiCNHx.js} +1 -1
- package/dist/Text.js +1 -1
- package/dist/TextArea.js +2 -2
- package/dist/TextField.js +2 -2
- package/dist/{TextFieldBase-HHASqigh.js → TextFieldBase-41pgAJ1k.js} +2 -2
- package/dist/{flowComponent-CWmvUeHT.js → flowComponent-DDs2bWU2.js} +1 -0
- package/dist/react-hook-form.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/types/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.d.ts +7 -0
- package/dist/types/components/ContextMenu/components/ContextMenuSection/index.d.ts +4 -0
- package/dist/types/components/ContextMenu/stories/Default.stories.d.ts +1 -0
- package/dist/types/components/propTypes/index.d.ts +2 -0
- package/dist/types/lib/controller/overlay/context.d.ts +1 -0
- package/dist/types/lib/propsContext/propsContext.d.ts +2 -0
- package/dist/types/lib/slotContext/slotContext.d.ts +1 -0
- package/package.json +4 -4
- package/dist/ContextMenuTrigger-DXPJlFQQ.js +0 -83
|
@@ -4,7 +4,7 @@ import { PopoverProps } from '../Popover';
|
|
|
4
4
|
import { MenuItemProps } from '../MenuItem';
|
|
5
5
|
|
|
6
6
|
import * as Aria from "react-aria-components";
|
|
7
|
-
export interface ContextMenuProps extends PopoverProps, Pick<Aria.MenuProps<MenuItemProps>, "onAction" | "selectedKeys" | "defaultSelectedKeys" | "onSelectionChange" | "disabledKeys">, FlowComponentProps {
|
|
7
|
+
export interface ContextMenuProps extends Omit<PopoverProps, "withTip">, Pick<Aria.MenuProps<MenuItemProps>, "onAction" | "selectedKeys" | "defaultSelectedKeys" | "onSelectionChange" | "disabledKeys">, FlowComponentProps {
|
|
8
8
|
selectionMode?: "single" | "multiple" | "navigation";
|
|
9
9
|
}
|
|
10
10
|
export declare const ContextMenu: React.ForwardRefExoticComponent<ContextMenuProps & React.RefAttributes<never>>;
|
package/dist/types/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropsWithChildren, default as React } from 'react';
|
|
2
|
+
import { FlowComponentProps } from '../../../../lib/componentFactory/flowComponent';
|
|
3
|
+
|
|
4
|
+
export type ContextMenuSectionProps = PropsWithChildren & FlowComponentProps;
|
|
5
|
+
export declare const ContextMenuSection: React.ForwardRefExoticComponent<{
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
} & FlowComponentProps & React.RefAttributes<never>>;
|
|
@@ -35,6 +35,7 @@ import { CounterBadgeProps } from '../CounterBadge';
|
|
|
35
35
|
import { OffCanvasProps } from '../OffCanvas';
|
|
36
36
|
import { ContextualHelpProps } from '../ContextualHelp';
|
|
37
37
|
import { PopoverProps } from '../Popover';
|
|
38
|
+
import { ContextMenuSectionProps } from '../ContextMenu/components/ContextMenuSection';
|
|
38
39
|
|
|
39
40
|
export * from './types';
|
|
40
41
|
export interface FlowComponentPropsTypes {
|
|
@@ -47,6 +48,7 @@ export interface FlowComponentPropsTypes {
|
|
|
47
48
|
CheckboxGroup: CheckboxGroupProps;
|
|
48
49
|
Content: ContentProps;
|
|
49
50
|
ContextMenu: ContextMenuProps;
|
|
51
|
+
ContextMenuSection: ContextMenuSectionProps;
|
|
50
52
|
ContextualHelp: ContextualHelpProps;
|
|
51
53
|
CopyButton: CopyButtonProps;
|
|
52
54
|
CounterBadge: CounterBadgeProps;
|
|
@@ -14,6 +14,7 @@ export declare const overlayContext: import('react').Context<Partial<{
|
|
|
14
14
|
CheckboxGroup: OverlayController | undefined;
|
|
15
15
|
Content: OverlayController | undefined;
|
|
16
16
|
ContextMenu: OverlayController | undefined;
|
|
17
|
+
ContextMenuSection: OverlayController | undefined;
|
|
17
18
|
ContextualHelp: OverlayController | undefined;
|
|
18
19
|
CopyButton: OverlayController | undefined;
|
|
19
20
|
CounterBadge: OverlayController | undefined;
|
|
@@ -10,6 +10,7 @@ export declare const propsContext: import('react').Context<Partial<{
|
|
|
10
10
|
CheckboxGroup: import('./types').ComponentPropsContext<"CheckboxGroup">;
|
|
11
11
|
Content: import('./types').ComponentPropsContext<"Content">;
|
|
12
12
|
ContextMenu: import('./types').ComponentPropsContext<"ContextMenu">;
|
|
13
|
+
ContextMenuSection: import('./types').ComponentPropsContext<"ContextMenuSection">;
|
|
13
14
|
ContextualHelp: import('./types').ComponentPropsContext<"ContextualHelp">;
|
|
14
15
|
CopyButton: import('./types').ComponentPropsContext<"CopyButton">;
|
|
15
16
|
CounterBadge: import('./types').ComponentPropsContext<"CounterBadge">;
|
|
@@ -54,6 +55,7 @@ export declare const PropsContextProvider: import('react').Provider<Partial<{
|
|
|
54
55
|
CheckboxGroup: import('./types').ComponentPropsContext<"CheckboxGroup">;
|
|
55
56
|
Content: import('./types').ComponentPropsContext<"Content">;
|
|
56
57
|
ContextMenu: import('./types').ComponentPropsContext<"ContextMenu">;
|
|
58
|
+
ContextMenuSection: import('./types').ComponentPropsContext<"ContextMenuSection">;
|
|
57
59
|
ContextualHelp: import('./types').ComponentPropsContext<"ContextualHelp">;
|
|
58
60
|
CopyButton: import('./types').ComponentPropsContext<"CopyButton">;
|
|
59
61
|
CounterBadge: import('./types').ComponentPropsContext<"CounterBadge">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-react-components",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.157",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
"dependencies": {
|
|
281
281
|
"@chakra-ui/live-region": "^2.1.0",
|
|
282
282
|
"@internationalized/string-compiler": "^3.2.4",
|
|
283
|
-
"@mittwald/react-tunnel": "^0.1.0-alpha.
|
|
283
|
+
"@mittwald/react-tunnel": "^0.1.0-alpha.157",
|
|
284
284
|
"@mittwald/react-use-promise": "^2.3.13",
|
|
285
285
|
"@react-aria/utils": "^3.24.1",
|
|
286
286
|
"@react-types/shared": "^3.23.1",
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
},
|
|
308
308
|
"devDependencies": {
|
|
309
309
|
"@faker-js/faker": "^8.4.1",
|
|
310
|
-
"@mittwald/flow-design-tokens": "^0.1.0-alpha.
|
|
310
|
+
"@mittwald/flow-design-tokens": "^0.1.0-alpha.157",
|
|
311
311
|
"@mittwald/react-use-promise": "^2.3.13",
|
|
312
312
|
"@nx/storybook": "^19.3.0",
|
|
313
313
|
"@storybook/addon-a11y": "^8.1.10",
|
|
@@ -383,5 +383,5 @@
|
|
|
383
383
|
"optional": true
|
|
384
384
|
}
|
|
385
385
|
},
|
|
386
|
-
"gitHead": "
|
|
386
|
+
"gitHead": "338d6d3e6f896ba260bd94b438e01a745e185b40"
|
|
387
387
|
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
/* */
|
|
3
|
-
import e from "react";
|
|
4
|
-
import * as s from "react-aria-components";
|
|
5
|
-
import { f as g } from "./flowComponent-CWmvUeHT.js";
|
|
6
|
-
import { P as d } from "./Popover-Me79N9-3.js";
|
|
7
|
-
import "mobx";
|
|
8
|
-
import { u as P } from "./useOverlayController-D8N4X2rc.js";
|
|
9
|
-
import { C as E } from "./ClearPropsContext-CUvsbMn8.js";
|
|
10
|
-
import { P as O } from "./PropsContextProvider-C6Z4XGp6.js";
|
|
11
|
-
import "@react-aria/utils";
|
|
12
|
-
import "./propsContext-DzAKlmhS.js";
|
|
13
|
-
import "remeda";
|
|
14
|
-
import { O as T } from "./OverlayContextProvider-DJzKzUwy.js";
|
|
15
|
-
import { A } from "./Action-DYTtbQCP.js";
|
|
16
|
-
import { O as h } from "./OverlayTrigger-Bdb65OEJ.js";
|
|
17
|
-
const w = "flow--context-menu", F = "flow--context-menu--popover", a = {
|
|
18
|
-
contextMenu: w,
|
|
19
|
-
popover: F
|
|
20
|
-
}, G = g("ContextMenu", (t) => {
|
|
21
|
-
const {
|
|
22
|
-
children: r,
|
|
23
|
-
onAction: n,
|
|
24
|
-
selectionMode: o,
|
|
25
|
-
selectedKeys: c,
|
|
26
|
-
defaultSelectedKeys: i,
|
|
27
|
-
disabledKeys: m,
|
|
28
|
-
onSelectionChange: p,
|
|
29
|
-
refProp: u,
|
|
30
|
-
controller: C,
|
|
31
|
-
...v
|
|
32
|
-
} = t, x = P("ContextMenu", {
|
|
33
|
-
reuseControllerFromContext: !0
|
|
34
|
-
}), l = C ?? x, f = o === "navigation" ? "single" : o, y = {
|
|
35
|
-
MenuItem: {
|
|
36
|
-
selectionVariant: o === "navigation" ? "navigation" : "control"
|
|
37
|
-
}
|
|
38
|
-
}, M = o === "single" || o === "navigation" ? "ContextMenu" : void 0;
|
|
39
|
-
return /* @__PURE__ */ e.createElement(E, null, /* @__PURE__ */ e.createElement(
|
|
40
|
-
d,
|
|
41
|
-
{
|
|
42
|
-
...v,
|
|
43
|
-
className: a.popover,
|
|
44
|
-
controller: l
|
|
45
|
-
},
|
|
46
|
-
/* @__PURE__ */ e.createElement(
|
|
47
|
-
T,
|
|
48
|
-
{
|
|
49
|
-
type: "ContextMenu",
|
|
50
|
-
controller: l
|
|
51
|
-
},
|
|
52
|
-
/* @__PURE__ */ e.createElement(
|
|
53
|
-
s.Menu,
|
|
54
|
-
{
|
|
55
|
-
className: a.contextMenu,
|
|
56
|
-
onAction: n,
|
|
57
|
-
selectionMode: f,
|
|
58
|
-
selectedKeys: c,
|
|
59
|
-
defaultSelectedKeys: i,
|
|
60
|
-
disabledKeys: m,
|
|
61
|
-
onSelectionChange: p,
|
|
62
|
-
ref: u
|
|
63
|
-
},
|
|
64
|
-
/* @__PURE__ */ e.createElement(O, { props: y }, /* @__PURE__ */ e.createElement(A, { closeOverlay: M }, r))
|
|
65
|
-
)
|
|
66
|
-
)
|
|
67
|
-
));
|
|
68
|
-
}), H = (t) => {
|
|
69
|
-
const { children: r, ...n } = t;
|
|
70
|
-
return /* @__PURE__ */ e.createElement(
|
|
71
|
-
h,
|
|
72
|
-
{
|
|
73
|
-
overlayType: "ContextMenu",
|
|
74
|
-
...n,
|
|
75
|
-
component: s.MenuTrigger
|
|
76
|
-
},
|
|
77
|
-
r
|
|
78
|
-
);
|
|
79
|
-
};
|
|
80
|
-
export {
|
|
81
|
-
G as C,
|
|
82
|
-
H as a
|
|
83
|
-
};
|